@cyning/harness 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +2 -1
- package/docs/USER_GUIDE_v1.0_zh.md +58 -5
- package/docs/methodology/graph/INFORM_YAML_MIGRATION_v1_zh.md +81 -0
- package/docs/methodology/graph/PROMPT_ontology_inventory_scan_G0_v1_zh.md +313 -0
- package/docs/methodology/graph/README.md +2 -0
- package/docs/methodology/graph/inventory/ONTOLOGY_INVENTORY_ai_ink_brain_api_python_v1.yaml +283 -0
- package/docs/methodology/graph/inventory/ONTOLOGY_INVENTORY_cyning_harness_v1.yaml +233 -0
- package/examples/demo_checkout/00_main.graph.yaml +42 -0
- package/examples/demo_checkout/00_main.md +66 -0
- package/examples/demo_checkout/README.md +3 -0
- package/examples/demo_checkout/graph.json +111 -0
- package/lib/cli.js +153 -7
- package/lib/graph-yaml.js +547 -0
- package/lib/verify.js +58 -9
- package/ontology.yaml +1 -1
- package/package.json +4 -1
- package/schema/inform_graph.v3.schema.json +134 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# G0 本体构成扫描 · 试点仓辅助报告
|
|
2
|
+
# 生成:ontology-inventory-scan-g0 · 30 执行 · freeze_id ONTOLOGY-INVENTORY-G0
|
|
3
|
+
# 约束:只读扫描 · 未删 .ai.md · 未改 export/compile
|
|
4
|
+
|
|
5
|
+
project: ai-ink-brain-api-python
|
|
6
|
+
scan_date: "2026-06-17"
|
|
7
|
+
report_role: pilot_reference
|
|
8
|
+
prompt_version: "1.3"
|
|
9
|
+
freeze_id: ONTOLOGY-INVENTORY-G0
|
|
10
|
+
|
|
11
|
+
preconditions:
|
|
12
|
+
P1: pass # 扫描源 = ai-ink-brain-api-python/
|
|
13
|
+
P2: pass # docs/_tech_graph/00_main.graph.yaml 存在且非空
|
|
14
|
+
P3: inventory_only # 7× .ai.md 列入 legacy_pending_delete · 不阻断
|
|
15
|
+
P4: pass # HG-TASK-DRAFT approved
|
|
16
|
+
P5: pass # G0 讨论素材
|
|
17
|
+
|
|
18
|
+
scanned_manifest:
|
|
19
|
+
pilot_manifest:
|
|
20
|
+
- path: docs/_tech_graph/00_main.graph.yaml
|
|
21
|
+
role: 图源 YAML(主流程)
|
|
22
|
+
exists: true
|
|
23
|
+
graph_id: "00_main"
|
|
24
|
+
node_count: 24
|
|
25
|
+
- path: docs/_tech_graph/10_flow_rag.graph.yaml
|
|
26
|
+
role: 图源 YAML(RAG 子流程)
|
|
27
|
+
exists: true
|
|
28
|
+
graph_id: "10_flow_rag"
|
|
29
|
+
- path: docs/_tech_graph/11_flow_text2sql.graph.yaml
|
|
30
|
+
role: 图源 YAML(Text2SQL 子流程)
|
|
31
|
+
exists: true
|
|
32
|
+
graph_id: "11_flow_text2sql"
|
|
33
|
+
- path: docs/_tech_graph/12_flow_fts.graph.yaml
|
|
34
|
+
role: 图源 YAML(FTS 子流程)
|
|
35
|
+
exists: true
|
|
36
|
+
graph_id: "12_flow_fts"
|
|
37
|
+
- path: docs/_tech_graph/13_flow_supabase_rpc.graph.yaml
|
|
38
|
+
role: 图源 YAML(Supabase RPC 子流程)
|
|
39
|
+
exists: true
|
|
40
|
+
graph_id: "13_flow_supabase_rpc"
|
|
41
|
+
- path: docs/_tech_graph/14_runtime_observability.graph.yaml
|
|
42
|
+
role: 图源 YAML(运行时可观测)
|
|
43
|
+
exists: true
|
|
44
|
+
graph_id: "14_runtime_observability"
|
|
45
|
+
- path: docs/_tech_graph/15_e2e_boundary.graph.yaml
|
|
46
|
+
role: 图源 YAML(E2E 边界)
|
|
47
|
+
exists: true
|
|
48
|
+
graph_id: "15_e2e_boundary"
|
|
49
|
+
- path: docs/_tech_graph/_manifest.json
|
|
50
|
+
role: 端点/表/env 索引本体
|
|
51
|
+
exists: true
|
|
52
|
+
schema_version: tech_graph_manifest_v1
|
|
53
|
+
endpoint_count: 18
|
|
54
|
+
table_count: 5
|
|
55
|
+
env_count: 53
|
|
56
|
+
- path: docs/_tech_graph/_contract_manifest.json
|
|
57
|
+
role: 契约/公理本体
|
|
58
|
+
exists: true
|
|
59
|
+
schema_version: tech_graph_contract_manifest_v1
|
|
60
|
+
topic: unified_chat_sse_contract
|
|
61
|
+
- path: docs/_tech_graph/99_spec.md
|
|
62
|
+
role: 治理/规约本体
|
|
63
|
+
exists: true
|
|
64
|
+
- path: docs/_tech_graph/01_struct.md
|
|
65
|
+
role: 数据结构本体
|
|
66
|
+
exists: true
|
|
67
|
+
- path: docs/_tech_graph/graph.json
|
|
68
|
+
role: 物化图(由 YAML export 生成,非手写)
|
|
69
|
+
exists: true
|
|
70
|
+
node_count: 135
|
|
71
|
+
edge_count: 186
|
|
72
|
+
graph_ids: [00_main, 10_flow_rag, 11_flow_text2sql, 12_flow_fts, 13_flow_supabase_rpc, 14_runtime_observability, 15_e2e_boundary]
|
|
73
|
+
|
|
74
|
+
meta_ontology:
|
|
75
|
+
implicit_primitive_lens:
|
|
76
|
+
present: true
|
|
77
|
+
documents:
|
|
78
|
+
- 99_spec.md # AI 行为约束 C1–C6 · drift_check 锚点
|
|
79
|
+
- _contract_manifest.json # payload_min_keys · allowed_events 作 K 类锚点
|
|
80
|
+
explicit_meta_path_convention:
|
|
81
|
+
present: true
|
|
82
|
+
documents:
|
|
83
|
+
- 99_spec.md # YAML 单源 → compile → .md · export → graph.json
|
|
84
|
+
note: Inform YAML 闭环(P0–P1 done)· .ai.md 已 deprecated
|
|
85
|
+
global_axioms:
|
|
86
|
+
present: true
|
|
87
|
+
source: 99_spec.md + CI tools/
|
|
88
|
+
axioms_sample:
|
|
89
|
+
- 禁止编造不存在的表/字段/RPC/端点
|
|
90
|
+
- 端点/RPC/表/env 变更须同步 _manifest.json
|
|
91
|
+
- graph.json 禁止手改 · 由 YAML export 生成
|
|
92
|
+
- _contract_manifest payload_min_keys 删改导致 contract_check 失败
|
|
93
|
+
|
|
94
|
+
sub_ontologies:
|
|
95
|
+
- id: GRAPH_TRACK
|
|
96
|
+
name: 图源本体
|
|
97
|
+
files:
|
|
98
|
+
- docs/_tech_graph/00_main.graph.yaml
|
|
99
|
+
- docs/_tech_graph/10_flow_rag.graph.yaml
|
|
100
|
+
- docs/_tech_graph/11_flow_text2sql.graph.yaml
|
|
101
|
+
- docs/_tech_graph/12_flow_fts.graph.yaml
|
|
102
|
+
- docs/_tech_graph/13_flow_supabase_rpc.graph.yaml
|
|
103
|
+
- docs/_tech_graph/14_runtime_observability.graph.yaml
|
|
104
|
+
- docs/_tech_graph/15_e2e_boundary.graph.yaml
|
|
105
|
+
- docs/_tech_graph/graph.json
|
|
106
|
+
primitives_used: [T, K, H]
|
|
107
|
+
core_classes:
|
|
108
|
+
- GraphNode
|
|
109
|
+
- GraphEdge
|
|
110
|
+
- Anchor
|
|
111
|
+
- InformArtifact
|
|
112
|
+
key_relations:
|
|
113
|
+
- graph.yaml --compile--> *.md
|
|
114
|
+
- graph.yaml --export--> graph.json
|
|
115
|
+
- Node --depends_on--> Node # mark -> ~> ?> 等拓扑边
|
|
116
|
+
- Edge --anchor--> api/*.py symbol
|
|
117
|
+
key_axioms:
|
|
118
|
+
- 单图编辑源为 .graph.yaml
|
|
119
|
+
- flowchart 须遵循 99_mermaid_protocol.md 拓扑协议(历史 .ai.md 承载)
|
|
120
|
+
|
|
121
|
+
- id: GOVERNANCE_TRACK
|
|
122
|
+
name: 治理本体
|
|
123
|
+
files:
|
|
124
|
+
- docs/_tech_graph/99_spec.md
|
|
125
|
+
- docs/_tech_graph/_contract_manifest.json
|
|
126
|
+
- docs/_tech_graph/_manifest.json
|
|
127
|
+
- docs/_tech_graph/_test_manifest.json
|
|
128
|
+
primitives_used: [K, H]
|
|
129
|
+
core_classes:
|
|
130
|
+
- ContractManifest
|
|
131
|
+
- TechGraphManifest
|
|
132
|
+
- TestManifest
|
|
133
|
+
key_relations:
|
|
134
|
+
- CI --validates--> _manifest.json
|
|
135
|
+
- CI --validates--> _contract_manifest.json
|
|
136
|
+
- drift_check --scans--> docs/_tech_graph/*.md
|
|
137
|
+
key_axioms:
|
|
138
|
+
- tech_graph_manifest_check.py 门禁
|
|
139
|
+
- tech_graph_contract_check.py SSE 键名校验
|
|
140
|
+
- tech_graph_drift_check.py 子串匹配防静默过期
|
|
141
|
+
|
|
142
|
+
- id: STANDARDS_TRACK
|
|
143
|
+
name: 约束本体(数据结构规约)
|
|
144
|
+
files:
|
|
145
|
+
- docs/_tech_graph/01_struct.md
|
|
146
|
+
primitives_used: [T, B]
|
|
147
|
+
core_classes:
|
|
148
|
+
- documents
|
|
149
|
+
- code_chunks
|
|
150
|
+
- chatbi_access_tokens
|
|
151
|
+
- rag_conversation_logs
|
|
152
|
+
- FileMeta
|
|
153
|
+
key_relations:
|
|
154
|
+
- documents --> FileMeta : metadata
|
|
155
|
+
- code_chunks --> FileMeta : metadata
|
|
156
|
+
key_axioms:
|
|
157
|
+
- Struct 表达 DB 结构 · 来源 supabase/sql/*.sql
|
|
158
|
+
|
|
159
|
+
- id: PROCESS_TRACK
|
|
160
|
+
name: 过程本体
|
|
161
|
+
files:
|
|
162
|
+
- docs/tasks/active/
|
|
163
|
+
- docs/harness/
|
|
164
|
+
- docs/tasks/RECENT_TASK_SCHEDULE.md
|
|
165
|
+
primitives_used: [T, H, B]
|
|
166
|
+
core_classes:
|
|
167
|
+
- Task
|
|
168
|
+
- InvokeSnapshot
|
|
169
|
+
- HumanGate
|
|
170
|
+
key_relations:
|
|
171
|
+
- Task --mustRead--> InformArtifact # _tech_graph/*
|
|
172
|
+
- Task --blocks--> graph-yaml-remove-ai-md # 待 G0 关账后
|
|
173
|
+
key_axioms:
|
|
174
|
+
- Harness SDD 帽链 10→22→30→40
|
|
175
|
+
- Inform 闭环 P0–P1 done(PR #178)
|
|
176
|
+
|
|
177
|
+
- id: VERIFY_TRACK
|
|
178
|
+
name: 验证本体
|
|
179
|
+
files:
|
|
180
|
+
- .github/workflows/tech-graph.yml
|
|
181
|
+
- tools/tech_graph_manifest_check.py
|
|
182
|
+
- tools/tech_graph_contract_check.py
|
|
183
|
+
- tools/tech_graph_drift_check.py
|
|
184
|
+
- tools/tech_graph_test_manifest_check.py
|
|
185
|
+
- tools/graph_yaml_compile.py
|
|
186
|
+
- tools/graph_yaml_export.py
|
|
187
|
+
primitives_used: [K, H]
|
|
188
|
+
core_classes:
|
|
189
|
+
- VerifyArtifact
|
|
190
|
+
- GateCheckRun
|
|
191
|
+
key_relations:
|
|
192
|
+
- CI --runs--> manifest_check / contract_check / drift_check
|
|
193
|
+
- export --generates--> graph.json
|
|
194
|
+
key_axioms:
|
|
195
|
+
- pytest 排除 intent_eval / intent_benchmark
|
|
196
|
+
- graph.json 白名单手改禁止
|
|
197
|
+
|
|
198
|
+
- id: WIKI_TRACK
|
|
199
|
+
name: 知识库本体
|
|
200
|
+
files:
|
|
201
|
+
- docs/coding_wiki/syntheses/
|
|
202
|
+
- docs/spec/governance/SPEC-Governance-Wiki-TechGraph-Bridge-v1.md
|
|
203
|
+
primitives_used: [T, K]
|
|
204
|
+
core_classes:
|
|
205
|
+
- WikiSynthesis
|
|
206
|
+
- graph_nodes # frontmatter 种子
|
|
207
|
+
key_relations:
|
|
208
|
+
- WikiSynthesis --graph_nodes--> GraphNode
|
|
209
|
+
- graph_query.py --neighbors/downstream/upstream--> graph.json
|
|
210
|
+
key_axioms:
|
|
211
|
+
- coding_wiki_graph_nodes_lint.py 校验 frontmatter
|
|
212
|
+
|
|
213
|
+
- id: IDE_TRACK
|
|
214
|
+
name: IDE 适配本体
|
|
215
|
+
files:
|
|
216
|
+
- AGENTS.md
|
|
217
|
+
- .cursor/rules/
|
|
218
|
+
primitives_used: [K]
|
|
219
|
+
core_classes:
|
|
220
|
+
- ConstrainArtifact
|
|
221
|
+
key_relations:
|
|
222
|
+
- Task --constrainedBy--> ConstrainArtifact
|
|
223
|
+
key_axioms: []
|
|
224
|
+
|
|
225
|
+
epic_task_mapping:
|
|
226
|
+
definition: EpicTask 是 Task 的特化子类
|
|
227
|
+
evidence: cyning-harness DESIGN_ONTOLOGY_v1_zh.md §1.4(试点仓引用产品语义真值)
|
|
228
|
+
fields:
|
|
229
|
+
- depends_on: string[] — 子 Task slug 列表
|
|
230
|
+
- completion_policy: must_complete_all | any_completes
|
|
231
|
+
related_gate: HG-EPIC-ROADMAP
|
|
232
|
+
note: 试点仓 RECENT_TASK_SCHEDULE §1.7 G0 链 #1/3 为本扫描 task
|
|
233
|
+
|
|
234
|
+
graph_summary:
|
|
235
|
+
primitive_lens_used: [T, K, H, B]
|
|
236
|
+
hgm_node_labels:
|
|
237
|
+
- InformArtifact # _tech_graph/* 映射
|
|
238
|
+
- Task
|
|
239
|
+
- HumanGate
|
|
240
|
+
- InvokeSnapshot
|
|
241
|
+
meta_paths_observed:
|
|
242
|
+
- tkb # flow 图 Topic → contract payload_min_keys → 业务端点/表实体
|
|
243
|
+
- htb # git/02_version → YAML 版本字段 → graph.json 物化
|
|
244
|
+
- tkh # Track 命名(GRAPH vs PROCESS)→ CI 键校验 → merge 门禁
|
|
245
|
+
missing_meta_paths:
|
|
246
|
+
- HGM events/*.jsonl 未启用(G1 deferred)
|
|
247
|
+
- 部分 Sub-graph 死链(并行 task graph-yaml-subgraph-nit)
|
|
248
|
+
|
|
249
|
+
legacy_pending_delete:
|
|
250
|
+
- path: docs/_tech_graph/00_main.ai.md
|
|
251
|
+
status: deprecated_readonly
|
|
252
|
+
successor: docs/_tech_graph/00_main.graph.yaml
|
|
253
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
254
|
+
- path: docs/_tech_graph/10_flow_rag.ai.md
|
|
255
|
+
status: deprecated_readonly
|
|
256
|
+
successor: docs/_tech_graph/10_flow_rag.graph.yaml
|
|
257
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
258
|
+
- path: docs/_tech_graph/11_flow_text2sql.ai.md
|
|
259
|
+
status: deprecated_readonly
|
|
260
|
+
successor: docs/_tech_graph/11_flow_text2sql.graph.yaml
|
|
261
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
262
|
+
- path: docs/_tech_graph/12_flow_fts.ai.md
|
|
263
|
+
status: deprecated_readonly
|
|
264
|
+
successor: docs/_tech_graph/12_flow_fts.graph.yaml
|
|
265
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
266
|
+
- path: docs/_tech_graph/13_flow_supabase_rpc.ai.md
|
|
267
|
+
status: deprecated_readonly
|
|
268
|
+
successor: docs/_tech_graph/13_flow_supabase_rpc.graph.yaml
|
|
269
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
270
|
+
- path: docs/_tech_graph/14_runtime_observability.ai.md
|
|
271
|
+
status: deprecated_readonly
|
|
272
|
+
successor: docs/_tech_graph/14_runtime_observability.graph.yaml
|
|
273
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
274
|
+
- path: docs/_tech_graph/15_e2e_boundary.ai.md
|
|
275
|
+
status: deprecated_readonly
|
|
276
|
+
successor: docs/_tech_graph/15_e2e_boundary.graph.yaml
|
|
277
|
+
note: 删源 task graph-yaml-remove-ai-md · 须 HG-INVENTORY-ARCHIVED 后
|
|
278
|
+
|
|
279
|
+
gaps:
|
|
280
|
+
- 7× .ai.md 仍存 · 已标 legacy_pending_delete · 待后继 task 删除
|
|
281
|
+
- Sub-graph 死链未修(非本 task 范围 · graph-yaml-subgraph-nit 并行)
|
|
282
|
+
- HGM G1 ingest 未实现(task_cyning_harness_g1_hgm_v2_v1 · blocked)
|
|
283
|
+
- 02_version.md 未列入 pilot_manifest 固定清单(存在但未逐文件展开)
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# G0 本体构成扫描 · 产品仓主报告
|
|
2
|
+
# 生成:ontology-inventory-scan-g0 · 30 执行 · freeze_id ONTOLOGY-INVENTORY-G0
|
|
3
|
+
# 约束:只读扫描 · 未修改 DESIGN_ONTOLOGY 或任何真值文件
|
|
4
|
+
|
|
5
|
+
project: cyning-harness
|
|
6
|
+
scan_date: "2026-06-17"
|
|
7
|
+
report_role: primary
|
|
8
|
+
prompt_version: "1.3"
|
|
9
|
+
freeze_id: ONTOLOGY-INVENTORY-G0
|
|
10
|
+
|
|
11
|
+
preconditions:
|
|
12
|
+
P1: pass # cwd = cyning-harness/
|
|
13
|
+
P2: skip # 产品仓无 docs/_tech_graph/
|
|
14
|
+
P3: skip # 产品仓无 .ai.md
|
|
15
|
+
P4: pass # HG-TASK-DRAFT approved
|
|
16
|
+
P5: pass # G0 讨论素材 · 不修改 DESIGN_ONTOLOGY
|
|
17
|
+
|
|
18
|
+
scanned_manifest:
|
|
19
|
+
product_manifest:
|
|
20
|
+
- path: docs/methodology/STRATEGY_ONTOLOGY_cyning_harness_v1_zh.md
|
|
21
|
+
role: 战略本体
|
|
22
|
+
exists: false
|
|
23
|
+
note: 清单路径未落盘;真值 POINTER 见 docs/methodology/pointers/STRATEGY_ONTOLOGY_v1_zh.md → 工作区 docs/harness/guides/
|
|
24
|
+
- path: docs/methodology/pointers/STRATEGY_ONTOLOGY_v1_zh.md
|
|
25
|
+
role: 战略本体(POINTER · 追加扫描)
|
|
26
|
+
exists: true
|
|
27
|
+
note: 禁止复制全文 · 指向工作区 L1 战略本体
|
|
28
|
+
- path: docs/methodology/product/DESIGN_ONTOLOGY_v1_zh.md
|
|
29
|
+
role: 产品设计本体(主)
|
|
30
|
+
exists: true
|
|
31
|
+
version: v1.2
|
|
32
|
+
status: draft
|
|
33
|
+
- path: docs/methodology/product/PRODUCT_ONTOLOGY_v1.1.md
|
|
34
|
+
role: 产品设计本体(v1.1,若存在)
|
|
35
|
+
exists: false
|
|
36
|
+
- path: docs/methodology/graph/HGM_UPGRADE_OUTLINE_v1_zh.md
|
|
37
|
+
role: HGM 升级大纲(G0)
|
|
38
|
+
exists: true
|
|
39
|
+
version: v1.0
|
|
40
|
+
status: outline
|
|
41
|
+
- path: docs/methodology/graph/HARNESS_GRAPH_MODEL_design_v0_zh.md
|
|
42
|
+
role: HGM 设计稿(v0)
|
|
43
|
+
exists: true
|
|
44
|
+
version: v0.1
|
|
45
|
+
status: proposal
|
|
46
|
+
- path: docs/methodology/ROADMAP_v1_zh.md
|
|
47
|
+
role: 路线图
|
|
48
|
+
exists: true
|
|
49
|
+
version: v1.4
|
|
50
|
+
status: active
|
|
51
|
+
- path: harness/meta/ontology.yaml
|
|
52
|
+
role: 机器可读本体(v0.4+ 规划,若存在)
|
|
53
|
+
exists: false
|
|
54
|
+
note: DESIGN_ONTOLOGY §0.4 骨架已文档化 · v0.4+ harness ontology-check 待实现
|
|
55
|
+
|
|
56
|
+
meta_ontology:
|
|
57
|
+
implicit_primitive_lens:
|
|
58
|
+
present: true
|
|
59
|
+
documents:
|
|
60
|
+
- PROMPT_ontology_inventory_scan_G0_v1_zh.md # T/K/H/B 仅作扫描 Lens
|
|
61
|
+
- DESIGN_ONTOLOGY_v1_zh.md # 类/关系/公理 · 非 T/K/H/B 节点类型
|
|
62
|
+
explicit_meta_path_convention:
|
|
63
|
+
present: false
|
|
64
|
+
note: HGM design v0 提及事件→投影路径 · 未在产品仓固化 T→K→B 元路径 schema
|
|
65
|
+
global_axioms:
|
|
66
|
+
present: true
|
|
67
|
+
source: DESIGN_ONTOLOGY_v1_zh.md §5
|
|
68
|
+
axiom_ids_sample: [P1, P2, S1, S2, S3, S4, S5, D1, D2, D3, D4, D5, D6, D7]
|
|
69
|
+
note: P=过程 · S=同步 · D=部署/发布 · 与 gate-check / sync 机械检查对齐
|
|
70
|
+
|
|
71
|
+
sub_ontologies:
|
|
72
|
+
- id: PROCESS_TRACK
|
|
73
|
+
name: 过程本体
|
|
74
|
+
files:
|
|
75
|
+
- docs/methodology/product/DESIGN_ONTOLOGY_v1_zh.md
|
|
76
|
+
- harness/prompts/10-requirements.md
|
|
77
|
+
- harness/prompts/22-task-audit.md
|
|
78
|
+
- harness/prompts/30-execute-code.md
|
|
79
|
+
- harness/prompts/40-self-check.md
|
|
80
|
+
- harness/templates/TASK_TEMPLATE.md
|
|
81
|
+
- harness/templates/TASK_epic.md
|
|
82
|
+
primitives_used: [T, K, H, B]
|
|
83
|
+
core_classes:
|
|
84
|
+
- Task
|
|
85
|
+
- Epic
|
|
86
|
+
- Hat
|
|
87
|
+
- HumanGate
|
|
88
|
+
- InvokeSnapshot
|
|
89
|
+
- AuditReview
|
|
90
|
+
- FailureReport
|
|
91
|
+
- GateCheckRun
|
|
92
|
+
key_relations:
|
|
93
|
+
- Task --governedBy--> Hat
|
|
94
|
+
- Task --hasGate--> HumanGate
|
|
95
|
+
- HumanGate --blocks--> Hat
|
|
96
|
+
- Epic --decomposesInto--> Task
|
|
97
|
+
- Task --dependsOn--> Task
|
|
98
|
+
- Hat --mayProduce--> InvokeSnapshot
|
|
99
|
+
- Hat --mayProduce--> AuditReview
|
|
100
|
+
key_axioms:
|
|
101
|
+
- S2 禁止 sync 覆盖 docs/tasks、reviews、invokes/by-task
|
|
102
|
+
- 改码类 Task 须 HG-AUDIT-R1 approved 方可 30
|
|
103
|
+
- depends_on 禁止循环依赖
|
|
104
|
+
|
|
105
|
+
- id: GRAPH_TRACK
|
|
106
|
+
name: 图源本体(HGM 设计轨 · 非 Inform _tech_graph)
|
|
107
|
+
files:
|
|
108
|
+
- docs/methodology/graph/HARNESS_GRAPH_MODEL_design_v0_zh.md
|
|
109
|
+
- docs/methodology/graph/HGM_UPGRADE_OUTLINE_v1_zh.md
|
|
110
|
+
- docs/methodology/graph/PROMPT_ontology_inventory_scan_G0_v1_zh.md
|
|
111
|
+
primitives_used: [T, H]
|
|
112
|
+
core_classes:
|
|
113
|
+
- BusinessRepository
|
|
114
|
+
- InformArtifact # HGM 节点标签 · 引用业务仓 GraphTrack
|
|
115
|
+
- GateCheckRun
|
|
116
|
+
- SyncOperation
|
|
117
|
+
key_relations:
|
|
118
|
+
- Task --mustRead--> InformArtifact
|
|
119
|
+
- GateCheckRun --CHECKED--> Task
|
|
120
|
+
- SyncOperation --SYNCED--> BusinessRepository
|
|
121
|
+
- Epic --DECOMPOSES--> Task
|
|
122
|
+
key_axioms:
|
|
123
|
+
- H1 无侵入 · 未启用 HGM 时与纯文件模式一致
|
|
124
|
+
- H2 文件优先 · S2 保护域只追加事件
|
|
125
|
+
- H3 事件不可变
|
|
126
|
+
|
|
127
|
+
- id: GOVERNANCE_TRACK
|
|
128
|
+
name: 治理本体
|
|
129
|
+
files:
|
|
130
|
+
- docs/methodology/ROADMAP_v1_zh.md
|
|
131
|
+
- docs/methodology/product/DESIGN_ONTOLOGY_v1_zh.md # §0.1 变更原则 · §0.3 外部贡献清单
|
|
132
|
+
- docs/methodology/graph/HGM_UPGRADE_OUTLINE_v1_zh.md # D1–D5 维护者决策
|
|
133
|
+
primitives_used: [T, K]
|
|
134
|
+
core_classes:
|
|
135
|
+
- Track
|
|
136
|
+
- Preset
|
|
137
|
+
- VersionManifest
|
|
138
|
+
key_relations:
|
|
139
|
+
- Preset --configures--> AdoptedProfile
|
|
140
|
+
- Track --declaredIn--> TrackManifest
|
|
141
|
+
key_axioms:
|
|
142
|
+
- SEM-02 Track G 用 v2.x · 不写 v0.5/v0.6 指 HGM
|
|
143
|
+
- v1.0 关账后启动 G1
|
|
144
|
+
|
|
145
|
+
- id: IDE_TRACK
|
|
146
|
+
name: IDE 适配本体
|
|
147
|
+
files:
|
|
148
|
+
- harness/prompts/FRAGMENT_30_invoke_block_v1_zh.md
|
|
149
|
+
- harness/prompts/FRAGMENT_30_gate_verify_v1_zh.md
|
|
150
|
+
- harness/prompts/FRAGMENT_task_domain_infer_v1_zh.md
|
|
151
|
+
primitives_used: [K]
|
|
152
|
+
core_classes:
|
|
153
|
+
- IDEFragment
|
|
154
|
+
- MarkerBlock
|
|
155
|
+
key_relations:
|
|
156
|
+
- IDEFragment --embeddedIn--> CLAUDE.md / AGENTS.md
|
|
157
|
+
key_axioms:
|
|
158
|
+
- cyning-harness:begin/end marker 可 merge 区段
|
|
159
|
+
|
|
160
|
+
- id: VERIFY_TRACK
|
|
161
|
+
name: 验证本体
|
|
162
|
+
files:
|
|
163
|
+
- wizard/gate-check.sh
|
|
164
|
+
- test/ # npm test · audit · gate-check.graph
|
|
165
|
+
primitives_used: [K, H]
|
|
166
|
+
core_classes:
|
|
167
|
+
- GateCheckRun
|
|
168
|
+
- VerifyArtifact
|
|
169
|
+
key_relations:
|
|
170
|
+
- Task --verifiedBy--> VerifyArtifact
|
|
171
|
+
- GateCheckRun --CHECKED--> Task
|
|
172
|
+
key_axioms:
|
|
173
|
+
- gate-check 机械扫描 active task 闸表
|
|
174
|
+
- v1.0 gate-check --graph 校验 Inform 模块依赖
|
|
175
|
+
|
|
176
|
+
- id: STANDARDS_TRACK
|
|
177
|
+
name: 约束本体
|
|
178
|
+
files: []
|
|
179
|
+
primitives_used: [K]
|
|
180
|
+
core_classes:
|
|
181
|
+
- ConstrainArtifact
|
|
182
|
+
key_relations:
|
|
183
|
+
- Task --constrainedBy--> ConstrainArtifact
|
|
184
|
+
key_axioms: []
|
|
185
|
+
note: 产品仓模板级 · 实例化后落业务仓 docs/standards/ 与 .cursor/rules/
|
|
186
|
+
|
|
187
|
+
- id: WIKI_TRACK
|
|
188
|
+
name: 知识库本体
|
|
189
|
+
files: []
|
|
190
|
+
primitives_used: [T]
|
|
191
|
+
core_classes: []
|
|
192
|
+
key_relations: []
|
|
193
|
+
key_axioms: []
|
|
194
|
+
note: 产品仓无 coding_wiki · 试点在业务仓
|
|
195
|
+
|
|
196
|
+
epic_task_mapping:
|
|
197
|
+
definition: EpicTask 是 Task 的特化子类
|
|
198
|
+
evidence: DESIGN_ONTOLOGY_v1_zh.md §1.4
|
|
199
|
+
fields:
|
|
200
|
+
- depends_on: string[] — 子 Task slug 列表
|
|
201
|
+
- completion_policy: must_complete_all | any_completes
|
|
202
|
+
- child_tasks: string[]
|
|
203
|
+
related_gate: HG-EPIC-ROADMAP(Epic CLOSE 专用闸门)
|
|
204
|
+
note: Epic 不直接执行 30,通过子 Task 状态聚合判断完成
|
|
205
|
+
|
|
206
|
+
graph_summary:
|
|
207
|
+
primitive_lens_used: [T, K, H, B]
|
|
208
|
+
hgm_node_labels:
|
|
209
|
+
- BusinessRepository
|
|
210
|
+
- Task
|
|
211
|
+
- HumanGate
|
|
212
|
+
- Hat
|
|
213
|
+
- AuditReview
|
|
214
|
+
- InvokeSnapshot
|
|
215
|
+
- FailureReport
|
|
216
|
+
- GateCheckRun
|
|
217
|
+
- SyncOperation
|
|
218
|
+
- InformArtifact
|
|
219
|
+
meta_paths_observed:
|
|
220
|
+
- tkb # Track/Preset 配置 → 约束键(test_strategy) → Task 实例
|
|
221
|
+
- htb # VersionManifest/upgrade 历史 → Track 版本 → 同步产物
|
|
222
|
+
missing_meta_paths:
|
|
223
|
+
- 显式 T→K→B schema 未落盘(仅 Prompt G0 Lens 分析用)
|
|
224
|
+
- ontology.yaml 机器可读双轨未实现
|
|
225
|
+
|
|
226
|
+
legacy_pending_delete: [] # 产品仓无 .ai.md
|
|
227
|
+
|
|
228
|
+
gaps:
|
|
229
|
+
- manifest 路径 STRATEGY_ONTOLOGY_cyning_harness_v1_zh.md 不存在;实际为 pointers/STRATEGY_ONTOLOGY_v1_zh.md(POINTER)
|
|
230
|
+
- PRODUCT_ONTOLOGY_v1.1.md 未发现
|
|
231
|
+
- harness/meta/ontology.yaml 未实现(v0.4+ 规划 · DESIGN_ONTOLOGY §0.4 仅文档骨架)
|
|
232
|
+
- 产品仓无 docs/_tech_graph/ · Inform GraphTrack 在业务仓试点
|
|
233
|
+
- WIKI_TRACK / STANDARDS_TRACK 在产品仓仅为模板引用 · 无实例文件
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
schema_version: "inform_graph.v3"
|
|
2
|
+
graph_id: "00_main"
|
|
3
|
+
title: "Harness P0 金样流程"
|
|
4
|
+
description: "demo_checkout 最小 SDD 闭环流程图"
|
|
5
|
+
version: "2026-06-17"
|
|
6
|
+
direction: "TD"
|
|
7
|
+
|
|
8
|
+
nodes:
|
|
9
|
+
- id: "START"
|
|
10
|
+
label: "空 Git 仓"
|
|
11
|
+
- id: "INIT"
|
|
12
|
+
label: "harness init"
|
|
13
|
+
- id: "TASK"
|
|
14
|
+
label: "task_demo_p0_golden"
|
|
15
|
+
- id: "R1"
|
|
16
|
+
label: "22 审核帽"
|
|
17
|
+
- id: "GATE"
|
|
18
|
+
label: "gate-check"
|
|
19
|
+
- id: "EXEC"
|
|
20
|
+
label: "30 执行帽"
|
|
21
|
+
- id: "DONE"
|
|
22
|
+
label: "P0 通过"
|
|
23
|
+
|
|
24
|
+
edges:
|
|
25
|
+
- from: "START"
|
|
26
|
+
to: "INIT"
|
|
27
|
+
label: "install.sh"
|
|
28
|
+
- from: "INIT"
|
|
29
|
+
to: "TASK"
|
|
30
|
+
label: "复制金样 task"
|
|
31
|
+
- from: "TASK"
|
|
32
|
+
to: "R1"
|
|
33
|
+
label: "10 → 22"
|
|
34
|
+
- from: "R1"
|
|
35
|
+
to: "GATE"
|
|
36
|
+
label: "HG-AUDIT-R1 approved"
|
|
37
|
+
- from: "GATE"
|
|
38
|
+
to: "EXEC"
|
|
39
|
+
label: "exit 0"
|
|
40
|
+
- from: "EXEC"
|
|
41
|
+
to: "DONE"
|
|
42
|
+
label: "40 自检"
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
graph_id: 00_main
|
|
3
|
+
version: 2026-06-17
|
|
4
|
+
generated_at: 2026-06-17T06:16:31Z
|
|
5
|
+
source: 00_main.graph.yaml
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Harness P0 金样流程
|
|
9
|
+
|
|
10
|
+
demo_checkout 最小 SDD 闭环流程图
|
|
11
|
+
|
|
12
|
+
## Mermaid
|
|
13
|
+
|
|
14
|
+
```mermaid
|
|
15
|
+
flowchart TD
|
|
16
|
+
START[空 Git 仓]
|
|
17
|
+
INIT[harness init]
|
|
18
|
+
TASK[task_demo_p0_golden]
|
|
19
|
+
R1[22 审核帽]
|
|
20
|
+
GATE[gate-check]
|
|
21
|
+
EXEC[30 执行帽]
|
|
22
|
+
DONE[P0 通过]
|
|
23
|
+
|
|
24
|
+
START --"install.sh"--> INIT
|
|
25
|
+
INIT --"复制金样 task"--> TASK
|
|
26
|
+
TASK --"10 → 22"--> R1
|
|
27
|
+
R1 --"HG-AUDIT-R1 approved"--> GATE
|
|
28
|
+
GATE --"exit 0"--> EXEC
|
|
29
|
+
EXEC --"40 自检"--> DONE
|
|
30
|
+
|
|
31
|
+
classDef phase fill:#e1f5fe,stroke:#01579b,stroke-width:2px
|
|
32
|
+
classDef doc fill:#fff8e1,stroke:#ff6f00,stroke-width:1px
|
|
33
|
+
classDef infra fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Structured Data
|
|
37
|
+
|
|
38
|
+
### Nodes
|
|
39
|
+
|
|
40
|
+
| ID | Label | Kind |
|
|
41
|
+
|----|-------|------|
|
|
42
|
+
| START | 空 Git 仓 | |
|
|
43
|
+
| INIT | harness init | |
|
|
44
|
+
| TASK | task_demo_p0_golden | |
|
|
45
|
+
| R1 | 22 审核帽 | |
|
|
46
|
+
| GATE | gate-check | |
|
|
47
|
+
| EXEC | 30 执行帽 | |
|
|
48
|
+
| DONE | P0 通过 | |
|
|
49
|
+
|
|
50
|
+
### Edges
|
|
51
|
+
|
|
52
|
+
| From | To | Mark | Type | Label | Anchors |
|
|
53
|
+
|------|----|------|------|-------|---------|
|
|
54
|
+
| START | INIT | -> | depends_on | install.sh | |
|
|
55
|
+
| INIT | TASK | -> | depends_on | 复制金样 task | |
|
|
56
|
+
| TASK | R1 | -> | depends_on | 10 → 22 | |
|
|
57
|
+
| R1 | GATE | -> | depends_on | HG-AUDIT-R1 approved | |
|
|
58
|
+
| GATE | EXEC | -> | depends_on | exit 0 | |
|
|
59
|
+
| EXEC | DONE | -> | depends_on | 40 自检 | |
|
|
60
|
+
|
|
61
|
+
## Sub-graph Links
|
|
62
|
+
|
|
63
|
+
- `Struct`: [`01_struct.md`](01_struct.md)(手写 · 无 `.graph.yaml`)
|
|
64
|
+
- `Version`: [`02_version.md`](02_version.md)(手写 · 无 `.graph.yaml`)
|
|
65
|
+
- 子图编辑源见 `docs/_tech_graph/*.graph.yaml`
|
|
66
|
+
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| [`task_demo_p0_golden_v1.md`](./task_demo_p0_golden_v1.md) | 金样 task · 复制到 `docs/tasks/active/` |
|
|
12
12
|
| [`ACCEPTANCE.md`](./ACCEPTANCE.md) | 分阶段验收勾选 |
|
|
13
|
+
| [`00_main.graph.yaml`](./00_main.graph.yaml) | Inform-YAML v3 编辑源示例(v1.1+) |
|
|
14
|
+
| [`00_main.md`](./00_main.md) | 由 `graph yaml compile` 生成的人类可读图 |
|
|
15
|
+
| [`graph.json`](./graph.json) | 由 YAML 物化的机器可读图切片 |
|
|
13
16
|
| `reviews/` | (自行创建)22 产出落盘目录 |
|
|
14
17
|
|
|
15
18
|
---
|