@tea-agent/loop-agent 0.7.4 → 0.8.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/AGENTS.md +143 -142
- package/CHANGELOG.md +148 -161
- package/README.md +206 -204
- package/bin/agent-worker.js +22 -22
- package/bin/loop-agent.js +21 -21
- package/dist/commands/init.js +518 -488
- package/dist/commands/loop-benchmark.js +11 -11
- package/dist/commands/pi-reuse-benchmark.js +16 -16
- package/dist/executors/cursor-executor.js +1 -1
- package/dist/governance/manifest-types.js +1 -1
- package/dist/task/runtime.js +27 -27
- package/dist/worker/cli.js +3 -3
- package/dist/worker/observability/event-store.js +2 -1
- package/dist/worker/observability/read-model.js +51 -13
- package/dist/worker/observe/paths.js +2 -2
- package/dist/worker/observe/routes.js +4 -3
- package/dist/worker/observe/static/app.js +1479 -1419
- package/dist/worker/observe/static/dag-layout.d.ts +31 -0
- package/dist/worker/observe/static/dag-layout.js +83 -0
- package/dist/worker/observe/static/index.html +63 -63
- package/dist/worker/observe/static/styles.css +722 -613
- package/dist/worker/pool/run-store.js +7 -8
- package/dist/worker/run-task/run-task.js +11 -2
- package/dist/worker/runner/run-ready.js +1 -1
- package/dist/workflows/dag/canvas-observer.js +275 -275
- package/docs/README.md +80 -76
- package/docs/agent-dag-recovery-playbook.md +184 -184
- package/docs/agent-dag-runner.md +42 -42
- package/docs/architecture/runtime-boundaries.md +162 -162
- package/docs/cursor-executor-usage.md +25 -25
- package/docs/decisions/README.md +3 -3
- package/docs/design/README.md +49 -49
- package/docs/development-principles.md +73 -73
- package/docs/dynamic-workflow-dag-engine-roadmap.md +1749 -1749
- package/docs/exec-plans/README.md +6 -6
- package/docs/exec-plans/active/README.md +11 -12
- package/docs/exec-plans/completed/README.md +35 -32
- package/docs/feature-workflow.md +187 -187
- package/docs/harness-methodology-debugging.md +153 -153
- package/docs/harness-methodology-tdd.md +130 -130
- package/docs/harness-methodology-verification.md +27 -27
- package/docs/init-surface.manifest.json +245 -241
- package/docs/loop-agent-harness.md +63 -55
- package/docs/production-readiness.md +96 -96
- package/docs/progress/README.md +3 -3
- package/docs/reports/README.md +9 -9
- package/docs/skills/README.md +6 -6
- package/docs/skills/vetted-skill-registry.md +26 -26
- package/docs/templates/adr.md +60 -60
- package/docs/templates/agent-dag-authority-surface-audit.prompt.md +94 -94
- package/docs/templates/agent-dag-decision-envelope.schema.json +213 -213
- package/docs/templates/agent-dag-decision-gate-dogfood-report.md +117 -117
- package/docs/templates/agent-dag-decision-gate.prompt.md +246 -246
- package/docs/templates/agent-dag-process-supervisor.prompt.md +98 -98
- package/docs/templates/agent-dag-report.schema.json +454 -454
- package/docs/templates/agent-dag-review-verdict.prompt.md +68 -68
- package/docs/templates/agent-dag.base.json +195 -195
- package/docs/templates/agent-dag.final-verification.json +190 -190
- package/docs/templates/agent-dag.schema.json +316 -316
- package/docs/templates/agent-dag.supervised-implementation.json +500 -500
- package/docs/templates/exec-plan.md +64 -64
- package/docs/templates/feature-spec.md +53 -53
- package/docs/templates/harness.schema.json +218 -0
- package/docs/templates/hybrid-dag.json +193 -193
- package/docs/templates/init-evolution-review.md +33 -33
- package/docs/templates/interactive-ui-round2-experiment.md +66 -66
- package/docs/templates/product-line/AGENTS.md +8 -8
- package/docs/templates/product-line/README.md +9 -9
- package/docs/templates/product-line/acceptance.yaml +14 -14
- package/docs/templates/product-line/closeout.yaml +9 -9
- package/docs/templates/product-line/design.md +13 -13
- package/docs/templates/product-line/links.md +10 -10
- package/docs/templates/product-line/requirement.md +17 -17
- package/docs/templates/product-line/task-graph.yaml +15 -15
- package/docs/templates/product-line/task.yaml +65 -65
- package/docs/templates/product-line/test-plan.md +7 -7
- package/docs/templates/production-readiness-checklist.md +57 -57
- package/docs/templates/progress-log.md +17 -17
- package/docs/templates/project-start-checklist.md +9 -9
- package/docs/templates/qa-report.md +48 -48
- package/docs/templates/sprint-contract.md +29 -29
- package/docs/templates/worker-dogfood-evidence.md +52 -52
- package/docs/templates/worker-dogfood-setup.md +48 -48
- package/docs/verification-matrix.md +49 -49
- package/examples/decision-gate-agent-dag.json +123 -123
- package/examples/example-dag.json +51 -51
- package/examples/hybrid-loop-agent-dag.json +194 -194
- package/harness.json +73 -71
- package/package.json +68 -67
- package/scripts/check-product-line-docs.sh +22 -22
- package/scripts/check-task-pool-root.sh +32 -0
- package/skills/ai-engineering-context/SKILL.md +48 -48
- package/skills/code-review-core/SKILL.md +20 -20
- package/skills/codebase-scout/SKILL.md +19 -19
- package/skills/init-capability-evolution/SKILL.md +69 -69
- package/skills/loop-agent/SKILL.md +149 -149
- package/skills/loop-agent/references/README.md +67 -67
- package/skills/loop-agent/references/command-reference.md +432 -412
- package/skills/loop-agent/references/harness-policy.md +263 -263
- package/skills/loop-agent/references/hybrid-dag.md +216 -216
- package/skills/loop-agent/references/learned/README.md +21 -21
- package/skills/loop-agent/references/long-running-loop.md +59 -59
- package/skills/loop-agent/references/model-routing.md +36 -36
- package/skills/loop-agent/references/multi-worktree.md +54 -54
- package/skills/loop-agent/references/one-shot-runs.md +85 -85
- package/skills/loop-agent/references/orchestrator-and-interventions.md +169 -169
- package/skills/loop-agent/references/pi-prompt.md +23 -23
- package/skills/loop-agent/references/pi-subagent-assisted-mode.md +81 -81
- package/skills/loop-agent/references/post-implementation-and-patterns.md +44 -44
- package/skills/loop-agent/references/task-workflow.md +89 -89
- package/skills/loop-agent/references/verification-and-failure-handling.md +128 -128
- package/skills/requesting-code-review/SKILL.md +101 -101
- package/skills/requesting-code-review/code-reviewer.md +168 -168
- package/skills/systematic-debugging/CREATION-LOG.md +119 -119
- package/skills/systematic-debugging/SKILL.md +296 -296
- package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
- package/skills/systematic-debugging/condition-based-waiting.md +115 -115
- package/skills/systematic-debugging/defense-in-depth.md +122 -122
- package/skills/systematic-debugging/find-polluter.sh +63 -63
- package/skills/systematic-debugging/root-cause-tracing.md +169 -169
- package/skills/systematic-debugging/test-academic.md +14 -14
- package/skills/systematic-debugging/test-pressure-1.md +58 -58
- package/skills/systematic-debugging/test-pressure-2.md +68 -68
- package/skills/systematic-debugging/test-pressure-3.md +69 -69
- package/skills/test-driven-development/SKILL.md +20 -20
- package/skills/verification-before-completion/SKILL.md +154 -154
- package/skills/webapp-testing/SKILL.md +19 -19
|
@@ -1,194 +1,194 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "Hybrid DAG 示例:Pi 只读契约 + 并行侦察 + Pi 写入实现",
|
|
4
|
-
"objective": "演示 v2 hybrid DAG:Pi 节点返回只读契约/审查结论,Pi 节点并行只读侦察,Pi writer 节点通过 toolProfile=write 独占实现。",
|
|
5
|
-
"successCriteria": [
|
|
6
|
-
"contract-pi 返回可审计的只读实现契约摘要",
|
|
7
|
-
"scout-src 与 scout-tests 并行只读侦察且互不写冲突",
|
|
8
|
-
"implement-core 仅在声明的 writeSet 内修改代码",
|
|
9
|
-
"review-pi 基于上游输出完成只读审查",
|
|
10
|
-
"verify-shell 归档确定性验证命令输出",
|
|
11
|
-
"dag validate 校验通过且 ranks 符合依赖拓扑"
|
|
12
|
-
],
|
|
13
|
-
"globalConstraints": [
|
|
14
|
-
"Do not commit runtime traces under .harness/dag-runs/",
|
|
15
|
-
"Do not enable cross-node Pi runtime reuse by default",
|
|
16
|
-
"Preserve CODE_AGENT_PI_BACKEND=cli-only rollback for Pi nodes",
|
|
17
|
-
"Every task must explicitly declare executor; defaults.executor is schema-only and not a runtime fallback",
|
|
18
|
-
"Prefer same-rank parallel read-only scouts over serial chains when outputs are independent",
|
|
19
|
-
"Add depends_on only when a child truly needs upstream output; challenge single-chain topologies during review",
|
|
20
|
-
"Same-rank exclusive writeSet entries must be disjoint",
|
|
21
|
-
"exclusive implementer nodes must use narrow, concrete writeSet paths; never use ** or repo root",
|
|
22
|
-
"Cursor is optional; no-Cursor environments should use Pi read-only scouts and Pi writer nodes with toolProfile=write",
|
|
23
|
-
"Read-only nodes must not write root artifacts/**; root artifacts/ is reserved for Level 1/current-work summaries or explicit exclusive write nodes"
|
|
24
|
-
],
|
|
25
|
-
"defaults": {
|
|
26
|
-
"executor": "pi",
|
|
27
|
-
"piBackend": "sdk-first",
|
|
28
|
-
"contextProfile": "slim",
|
|
29
|
-
"skills": [
|
|
30
|
-
"ai-engineering-context"
|
|
31
|
-
],
|
|
32
|
-
"writePolicy": "read-only"
|
|
33
|
-
},
|
|
34
|
-
"skillsByRole": {
|
|
35
|
-
"planner": [
|
|
36
|
-
"loop-agent"
|
|
37
|
-
],
|
|
38
|
-
"scout": [
|
|
39
|
-
"ai-engineering-context"
|
|
40
|
-
],
|
|
41
|
-
"implementer": [
|
|
42
|
-
"verification-before-completion"
|
|
43
|
-
],
|
|
44
|
-
"reviewer": [
|
|
45
|
-
"requesting-code-review"
|
|
46
|
-
],
|
|
47
|
-
"verifier": [
|
|
48
|
-
"verification-before-completion",
|
|
49
|
-
"systematic-debugging"
|
|
50
|
-
],
|
|
51
|
-
"closeout": [
|
|
52
|
-
"loop-agent",
|
|
53
|
-
"verification-before-completion"
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"executorModels": {
|
|
57
|
-
"cursor": {
|
|
58
|
-
"LOW": "composer-2.5",
|
|
59
|
-
"MED": "composer-2.5",
|
|
60
|
-
"HIGH": "gpt-5.5"
|
|
61
|
-
},
|
|
62
|
-
"pi": {
|
|
63
|
-
"LOW": "gpt-5.3-codex-spark",
|
|
64
|
-
"MED": "glm-5.2",
|
|
65
|
-
"HIGH": "gpt-5.5"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"tasks": [
|
|
69
|
-
{
|
|
70
|
-
"id": "contract-pi",
|
|
71
|
-
"depends_on": [],
|
|
72
|
-
"role": "planner",
|
|
73
|
-
"executor": "pi",
|
|
74
|
-
"complexity": "MED",
|
|
75
|
-
"writePolicy": "read-only",
|
|
76
|
-
"allowedPaths": [
|
|
77
|
-
"./**",
|
|
78
|
-
"docs/**"
|
|
79
|
-
],
|
|
80
|
-
"forbiddenPaths": [
|
|
81
|
-
".harness/**",
|
|
82
|
-
"artifacts/**"
|
|
83
|
-
],
|
|
84
|
-
"outputContract": "Plain Markdown implementation contract summary; no file writes.",
|
|
85
|
-
"subtask_prompt": "阅读 ./README.md 与 docs/agent-dag-runner.md,返回 10 行以内的实现契约摘要(只读分析 + 文档建议,不改代码/文档/artifacts)。指出是否适合并行 scout 与窄 writeSet。"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"id": "scout-src",
|
|
89
|
-
"depends_on": [
|
|
90
|
-
"contract-pi"
|
|
91
|
-
],
|
|
92
|
-
"role": "scout",
|
|
93
|
-
"executor": "pi",
|
|
94
|
-
"complexity": "LOW",
|
|
95
|
-
"writePolicy": "read-only",
|
|
96
|
-
"allowedPaths": [
|
|
97
|
-
"./src/workflows/dag/**"
|
|
98
|
-
],
|
|
99
|
-
"forbiddenPaths": [
|
|
100
|
-
".harness/**",
|
|
101
|
-
"artifacts/**"
|
|
102
|
-
],
|
|
103
|
-
"outputContract": "Plain Markdown reconnaissance summary of DAG-related source modules; no file writes.",
|
|
104
|
-
"subtask_prompt": "只读审计 ./src/workflows/dag/ 中与 DAG 相关的模块,列出关键文件与职责(不要改文件)。"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"id": "scout-tests",
|
|
108
|
-
"depends_on": [
|
|
109
|
-
"contract-pi"
|
|
110
|
-
],
|
|
111
|
-
"role": "scout",
|
|
112
|
-
"executor": "pi",
|
|
113
|
-
"complexity": "LOW",
|
|
114
|
-
"writePolicy": "read-only",
|
|
115
|
-
"allowedPaths": [
|
|
116
|
-
"./test/**"
|
|
117
|
-
],
|
|
118
|
-
"forbiddenPaths": [
|
|
119
|
-
".harness/**",
|
|
120
|
-
"artifacts/**"
|
|
121
|
-
],
|
|
122
|
-
"outputContract": "Plain Markdown test coverage gap summary; no file writes.",
|
|
123
|
-
"subtask_prompt": "只读审计 ./test/ 中与 dag-runner 相关的测试覆盖,列出缺口建议(不要改文件)。"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"id": "implement-core",
|
|
127
|
-
"depends_on": [
|
|
128
|
-
"scout-src",
|
|
129
|
-
"scout-tests"
|
|
130
|
-
],
|
|
131
|
-
"role": "implementer",
|
|
132
|
-
"executor": "pi",
|
|
133
|
-
"complexity": "HIGH",
|
|
134
|
-
"writePolicy": "exclusive",
|
|
135
|
-
"writeSet": [
|
|
136
|
-
"./src/workflows/dag/runner.ts"
|
|
137
|
-
],
|
|
138
|
-
"allowedPaths": [
|
|
139
|
-
"./src/workflows/dag/**"
|
|
140
|
-
],
|
|
141
|
-
"forbiddenPaths": [
|
|
142
|
-
".harness/**",
|
|
143
|
-
"artifacts/**"
|
|
144
|
-
],
|
|
145
|
-
"outputContract": "Implementation summary with changed files, tests run, and residual risks.",
|
|
146
|
-
"subtask_prompt": "基于上游侦察结果,在 writeSet 范围内做最小必要改动并说明风险(若无需改动则输出 no-op 理由)。",
|
|
147
|
-
"toolProfile": "write"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"id": "review-pi",
|
|
151
|
-
"depends_on": [
|
|
152
|
-
"implement-core"
|
|
153
|
-
],
|
|
154
|
-
"role": "reviewer",
|
|
155
|
-
"executor": "pi",
|
|
156
|
-
"complexity": "MED",
|
|
157
|
-
"writePolicy": "read-only",
|
|
158
|
-
"allowedPaths": [
|
|
159
|
-
"./**",
|
|
160
|
-
"docs/**"
|
|
161
|
-
],
|
|
162
|
-
"forbiddenPaths": [
|
|
163
|
-
".harness/**",
|
|
164
|
-
"artifacts/**"
|
|
165
|
-
],
|
|
166
|
-
"outputContract": "Plain Markdown review summary; no file writes.",
|
|
167
|
-
"subtask_prompt": "审查上游实现与侦察结论是否一致,列出范围漂移、验证缺口与残余风险(只读,不改文件/文档/artifacts)。"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"id": "verify-shell",
|
|
171
|
-
"depends_on": [
|
|
172
|
-
"implement-core"
|
|
173
|
-
],
|
|
174
|
-
"role": "verifier",
|
|
175
|
-
"executor": "shell",
|
|
176
|
-
"complexity": "LOW",
|
|
177
|
-
"writePolicy": "read-only",
|
|
178
|
-
"allowedPaths": [
|
|
179
|
-
"./**"
|
|
180
|
-
],
|
|
181
|
-
"forbiddenPaths": [
|
|
182
|
-
".harness/**",
|
|
183
|
-
"artifacts/**"
|
|
184
|
-
],
|
|
185
|
-
"outputContract": "Archived shell verification stdout/stderr with exit codes; no worktree writes.",
|
|
186
|
-
"subtask_prompt": "Run deterministic loop-agent verification and archive command outputs.",
|
|
187
|
-
"shell": {
|
|
188
|
-
"preset": "loop-agent-standard-verify",
|
|
189
|
-
"cwd": ".",
|
|
190
|
-
"timeoutMs": 300000
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "Hybrid DAG 示例:Pi 只读契约 + 并行侦察 + Pi 写入实现",
|
|
4
|
+
"objective": "演示 v2 hybrid DAG:Pi 节点返回只读契约/审查结论,Pi 节点并行只读侦察,Pi writer 节点通过 toolProfile=write 独占实现。",
|
|
5
|
+
"successCriteria": [
|
|
6
|
+
"contract-pi 返回可审计的只读实现契约摘要",
|
|
7
|
+
"scout-src 与 scout-tests 并行只读侦察且互不写冲突",
|
|
8
|
+
"implement-core 仅在声明的 writeSet 内修改代码",
|
|
9
|
+
"review-pi 基于上游输出完成只读审查",
|
|
10
|
+
"verify-shell 归档确定性验证命令输出",
|
|
11
|
+
"dag validate 校验通过且 ranks 符合依赖拓扑"
|
|
12
|
+
],
|
|
13
|
+
"globalConstraints": [
|
|
14
|
+
"Do not commit runtime traces under .harness/dag-runs/",
|
|
15
|
+
"Do not enable cross-node Pi runtime reuse by default",
|
|
16
|
+
"Preserve CODE_AGENT_PI_BACKEND=cli-only rollback for Pi nodes",
|
|
17
|
+
"Every task must explicitly declare executor; defaults.executor is schema-only and not a runtime fallback",
|
|
18
|
+
"Prefer same-rank parallel read-only scouts over serial chains when outputs are independent",
|
|
19
|
+
"Add depends_on only when a child truly needs upstream output; challenge single-chain topologies during review",
|
|
20
|
+
"Same-rank exclusive writeSet entries must be disjoint",
|
|
21
|
+
"exclusive implementer nodes must use narrow, concrete writeSet paths; never use ** or repo root",
|
|
22
|
+
"Cursor is optional; no-Cursor environments should use Pi read-only scouts and Pi writer nodes with toolProfile=write",
|
|
23
|
+
"Read-only nodes must not write root artifacts/**; root artifacts/ is reserved for Level 1/current-work summaries or explicit exclusive write nodes"
|
|
24
|
+
],
|
|
25
|
+
"defaults": {
|
|
26
|
+
"executor": "pi",
|
|
27
|
+
"piBackend": "sdk-first",
|
|
28
|
+
"contextProfile": "slim",
|
|
29
|
+
"skills": [
|
|
30
|
+
"ai-engineering-context"
|
|
31
|
+
],
|
|
32
|
+
"writePolicy": "read-only"
|
|
33
|
+
},
|
|
34
|
+
"skillsByRole": {
|
|
35
|
+
"planner": [
|
|
36
|
+
"loop-agent"
|
|
37
|
+
],
|
|
38
|
+
"scout": [
|
|
39
|
+
"ai-engineering-context"
|
|
40
|
+
],
|
|
41
|
+
"implementer": [
|
|
42
|
+
"verification-before-completion"
|
|
43
|
+
],
|
|
44
|
+
"reviewer": [
|
|
45
|
+
"requesting-code-review"
|
|
46
|
+
],
|
|
47
|
+
"verifier": [
|
|
48
|
+
"verification-before-completion",
|
|
49
|
+
"systematic-debugging"
|
|
50
|
+
],
|
|
51
|
+
"closeout": [
|
|
52
|
+
"loop-agent",
|
|
53
|
+
"verification-before-completion"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"executorModels": {
|
|
57
|
+
"cursor": {
|
|
58
|
+
"LOW": "composer-2.5",
|
|
59
|
+
"MED": "composer-2.5",
|
|
60
|
+
"HIGH": "gpt-5.5"
|
|
61
|
+
},
|
|
62
|
+
"pi": {
|
|
63
|
+
"LOW": "gpt-5.3-codex-spark",
|
|
64
|
+
"MED": "glm-5.2",
|
|
65
|
+
"HIGH": "gpt-5.5"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"tasks": [
|
|
69
|
+
{
|
|
70
|
+
"id": "contract-pi",
|
|
71
|
+
"depends_on": [],
|
|
72
|
+
"role": "planner",
|
|
73
|
+
"executor": "pi",
|
|
74
|
+
"complexity": "MED",
|
|
75
|
+
"writePolicy": "read-only",
|
|
76
|
+
"allowedPaths": [
|
|
77
|
+
"./**",
|
|
78
|
+
"docs/**"
|
|
79
|
+
],
|
|
80
|
+
"forbiddenPaths": [
|
|
81
|
+
".harness/**",
|
|
82
|
+
"artifacts/**"
|
|
83
|
+
],
|
|
84
|
+
"outputContract": "Plain Markdown implementation contract summary; no file writes.",
|
|
85
|
+
"subtask_prompt": "阅读 ./README.md 与 docs/agent-dag-runner.md,返回 10 行以内的实现契约摘要(只读分析 + 文档建议,不改代码/文档/artifacts)。指出是否适合并行 scout 与窄 writeSet。"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "scout-src",
|
|
89
|
+
"depends_on": [
|
|
90
|
+
"contract-pi"
|
|
91
|
+
],
|
|
92
|
+
"role": "scout",
|
|
93
|
+
"executor": "pi",
|
|
94
|
+
"complexity": "LOW",
|
|
95
|
+
"writePolicy": "read-only",
|
|
96
|
+
"allowedPaths": [
|
|
97
|
+
"./src/workflows/dag/**"
|
|
98
|
+
],
|
|
99
|
+
"forbiddenPaths": [
|
|
100
|
+
".harness/**",
|
|
101
|
+
"artifacts/**"
|
|
102
|
+
],
|
|
103
|
+
"outputContract": "Plain Markdown reconnaissance summary of DAG-related source modules; no file writes.",
|
|
104
|
+
"subtask_prompt": "只读审计 ./src/workflows/dag/ 中与 DAG 相关的模块,列出关键文件与职责(不要改文件)。"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "scout-tests",
|
|
108
|
+
"depends_on": [
|
|
109
|
+
"contract-pi"
|
|
110
|
+
],
|
|
111
|
+
"role": "scout",
|
|
112
|
+
"executor": "pi",
|
|
113
|
+
"complexity": "LOW",
|
|
114
|
+
"writePolicy": "read-only",
|
|
115
|
+
"allowedPaths": [
|
|
116
|
+
"./test/**"
|
|
117
|
+
],
|
|
118
|
+
"forbiddenPaths": [
|
|
119
|
+
".harness/**",
|
|
120
|
+
"artifacts/**"
|
|
121
|
+
],
|
|
122
|
+
"outputContract": "Plain Markdown test coverage gap summary; no file writes.",
|
|
123
|
+
"subtask_prompt": "只读审计 ./test/ 中与 dag-runner 相关的测试覆盖,列出缺口建议(不要改文件)。"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "implement-core",
|
|
127
|
+
"depends_on": [
|
|
128
|
+
"scout-src",
|
|
129
|
+
"scout-tests"
|
|
130
|
+
],
|
|
131
|
+
"role": "implementer",
|
|
132
|
+
"executor": "pi",
|
|
133
|
+
"complexity": "HIGH",
|
|
134
|
+
"writePolicy": "exclusive",
|
|
135
|
+
"writeSet": [
|
|
136
|
+
"./src/workflows/dag/runner.ts"
|
|
137
|
+
],
|
|
138
|
+
"allowedPaths": [
|
|
139
|
+
"./src/workflows/dag/**"
|
|
140
|
+
],
|
|
141
|
+
"forbiddenPaths": [
|
|
142
|
+
".harness/**",
|
|
143
|
+
"artifacts/**"
|
|
144
|
+
],
|
|
145
|
+
"outputContract": "Implementation summary with changed files, tests run, and residual risks.",
|
|
146
|
+
"subtask_prompt": "基于上游侦察结果,在 writeSet 范围内做最小必要改动并说明风险(若无需改动则输出 no-op 理由)。",
|
|
147
|
+
"toolProfile": "write"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "review-pi",
|
|
151
|
+
"depends_on": [
|
|
152
|
+
"implement-core"
|
|
153
|
+
],
|
|
154
|
+
"role": "reviewer",
|
|
155
|
+
"executor": "pi",
|
|
156
|
+
"complexity": "MED",
|
|
157
|
+
"writePolicy": "read-only",
|
|
158
|
+
"allowedPaths": [
|
|
159
|
+
"./**",
|
|
160
|
+
"docs/**"
|
|
161
|
+
],
|
|
162
|
+
"forbiddenPaths": [
|
|
163
|
+
".harness/**",
|
|
164
|
+
"artifacts/**"
|
|
165
|
+
],
|
|
166
|
+
"outputContract": "Plain Markdown review summary; no file writes.",
|
|
167
|
+
"subtask_prompt": "审查上游实现与侦察结论是否一致,列出范围漂移、验证缺口与残余风险(只读,不改文件/文档/artifacts)。"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "verify-shell",
|
|
171
|
+
"depends_on": [
|
|
172
|
+
"implement-core"
|
|
173
|
+
],
|
|
174
|
+
"role": "verifier",
|
|
175
|
+
"executor": "shell",
|
|
176
|
+
"complexity": "LOW",
|
|
177
|
+
"writePolicy": "read-only",
|
|
178
|
+
"allowedPaths": [
|
|
179
|
+
"./**"
|
|
180
|
+
],
|
|
181
|
+
"forbiddenPaths": [
|
|
182
|
+
".harness/**",
|
|
183
|
+
"artifacts/**"
|
|
184
|
+
],
|
|
185
|
+
"outputContract": "Archived shell verification stdout/stderr with exit codes; no worktree writes.",
|
|
186
|
+
"subtask_prompt": "Run deterministic loop-agent verification and archive command outputs.",
|
|
187
|
+
"shell": {
|
|
188
|
+
"preset": "loop-agent-standard-verify",
|
|
189
|
+
"cwd": ".",
|
|
190
|
+
"timeoutMs": 300000
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
package/harness.json
CHANGED
|
@@ -1,71 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./docs/templates/harness.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"project": "loop-agent",
|
|
5
|
+
"governanceRoot": "docs",
|
|
6
|
+
"workflowPolicy": {
|
|
7
|
+
"defaultImplementationWorkflow": "agent-dag",
|
|
8
|
+
"dag": {
|
|
9
|
+
"defaultEntry": "dag run-task",
|
|
10
|
+
"profileRouting": {
|
|
11
|
+
"minimal": "standard-dag",
|
|
12
|
+
"standard": "standard-dag",
|
|
13
|
+
"reviewed": "review-gated-dag",
|
|
14
|
+
"supervised": "supervised-implementation"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"humanGatePolicy": {
|
|
18
|
+
"defaultMode": "record-only",
|
|
19
|
+
"pauseOn": [
|
|
20
|
+
"requirement-ambiguity",
|
|
21
|
+
"architecture-or-public-contract-risk",
|
|
22
|
+
"credential-cost-or-deployment-risk",
|
|
23
|
+
"repeated-gate-failure",
|
|
24
|
+
"high-or-critical-decision-risk"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"entrypoints": {
|
|
29
|
+
"readme": "README.md",
|
|
30
|
+
"agents": "AGENTS.md",
|
|
31
|
+
"governanceIndex": "docs/README.md",
|
|
32
|
+
"principles": "docs/development-principles.md",
|
|
33
|
+
"workflow": "docs/feature-workflow.md",
|
|
34
|
+
"verificationMatrix": "docs/verification-matrix.md",
|
|
35
|
+
"loopAgentHarness": "docs/loop-agent-harness.md",
|
|
36
|
+
"cursorExecutorUsage": "docs/cursor-executor-usage.md"
|
|
37
|
+
},
|
|
38
|
+
"artifacts": {
|
|
39
|
+
"templatesDir": "docs/templates",
|
|
40
|
+
"execPlansDir": "docs/exec-plans",
|
|
41
|
+
"progressDir": "docs/progress",
|
|
42
|
+
"reportsDir": "docs/reports",
|
|
43
|
+
"decisionsDir": "docs/decisions",
|
|
44
|
+
"taskPoolDir": ".harness/task-pool"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"checkRepo": "scripts/check-repo.sh",
|
|
48
|
+
"checkStructure": "scripts/check-engineering-structure.sh",
|
|
49
|
+
"checkDocIndex": "scripts/check-doc-index.sh",
|
|
50
|
+
"checkDocLinks": "scripts/check-doc-links.sh",
|
|
51
|
+
"checkHarnessRuntimeClean": "scripts/check-harness-runtime-clean.sh",
|
|
52
|
+
"checkTaskPoolRoot": "scripts/check-task-pool-root.sh",
|
|
53
|
+
"checkInitEvolutionNeeded": "scripts/check-init-evolution-needed.sh",
|
|
54
|
+
"checkInitSurface": "scripts/check-init-surface.sh",
|
|
55
|
+
"checkProductLineDocs": "scripts/check-product-line-docs.sh",
|
|
56
|
+
"ci": "scripts/ci.sh"
|
|
57
|
+
},
|
|
58
|
+
"executors": {
|
|
59
|
+
"pi": {
|
|
60
|
+
"description": "Pi planning, review, diagnosis, and bounded writing when DAG toolProfile=write",
|
|
61
|
+
"defaultModel": "gpt-5.3-codex-spark",
|
|
62
|
+
"LOW": "gpt-5.3-codex-spark",
|
|
63
|
+
"MED": "glm-5.2",
|
|
64
|
+
"HIGH": "gpt-5.5"
|
|
65
|
+
},
|
|
66
|
+
"cursor": {
|
|
67
|
+
"description": "Cursor via @cursor/sdk (default model: account default)",
|
|
68
|
+
"enabled": false,
|
|
69
|
+
"defaultModel": "default",
|
|
70
|
+
"requiresApiKey": "CURSOR_API_KEY"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|