@tea-agent/loop-agent 0.7.5 → 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 -164
- 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 +13 -11
- package/dist/worker/observe/paths.js +2 -2
- package/dist/worker/observe/routes.js +4 -3
- package/dist/worker/observe/static/app.js +1479 -1480
- package/dist/worker/observe/static/dag-layout.d.ts +31 -31
- package/dist/worker/observe/static/dag-layout.js +83 -83
- package/dist/worker/observe/static/index.html +63 -63
- package/dist/worker/observe/static/styles.css +722 -722
- 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 -79
- 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 -11
- package/docs/exec-plans/completed/README.md +35 -34
- 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,193 +1,193 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 2,
|
|
3
|
-
"title": "Hybrid DAG 示例:Pi 只读契约 + 并行侦察 + Pi 写入配置实现",
|
|
4
|
-
"objective": "演示 v2 hybrid DAG:Pi 节点返回只读契约/审查结论,Pi writer 节点通过 toolProfile=write 执行受控独占实现,shell 节点负责确定性验证。",
|
|
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 remains an explicit optional executor; no-Cursor environments 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 explicit exclusive write nodes"
|
|
24
|
-
],
|
|
25
|
-
"defaults": {
|
|
26
|
-
"executor": "pi",
|
|
27
|
-
"contextProfile": "slim",
|
|
28
|
-
"skills": [
|
|
29
|
-
"ai-engineering-context"
|
|
30
|
-
],
|
|
31
|
-
"writePolicy": "read-only"
|
|
32
|
-
},
|
|
33
|
-
"skillsByRole": {
|
|
34
|
-
"planner": [
|
|
35
|
-
"loop-agent"
|
|
36
|
-
],
|
|
37
|
-
"scout": [
|
|
38
|
-
"ai-engineering-context"
|
|
39
|
-
],
|
|
40
|
-
"implementer": [
|
|
41
|
-
"verification-before-completion"
|
|
42
|
-
],
|
|
43
|
-
"reviewer": [
|
|
44
|
-
"requesting-code-review"
|
|
45
|
-
],
|
|
46
|
-
"verifier": [
|
|
47
|
-
"verification-before-completion",
|
|
48
|
-
"systematic-debugging"
|
|
49
|
-
],
|
|
50
|
-
"closeout": [
|
|
51
|
-
"loop-agent",
|
|
52
|
-
"verification-before-completion"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"executorModels": {
|
|
56
|
-
"cursor": {
|
|
57
|
-
"LOW": "composer-2.5",
|
|
58
|
-
"MED": "composer-2.5",
|
|
59
|
-
"HIGH": "gpt-5.5"
|
|
60
|
-
},
|
|
61
|
-
"pi": {
|
|
62
|
-
"LOW": "gpt-5.3-codex-spark",
|
|
63
|
-
"MED": "glm-5.2",
|
|
64
|
-
"HIGH": "gpt-5.5"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"tasks": [
|
|
68
|
-
{
|
|
69
|
-
"id": "contract-pi",
|
|
70
|
-
"depends_on": [],
|
|
71
|
-
"role": "planner",
|
|
72
|
-
"executor": "pi",
|
|
73
|
-
"complexity": "MED",
|
|
74
|
-
"writePolicy": "read-only",
|
|
75
|
-
"allowedPaths": [
|
|
76
|
-
"./**",
|
|
77
|
-
"docs/**"
|
|
78
|
-
],
|
|
79
|
-
"forbiddenPaths": [
|
|
80
|
-
".harness/**",
|
|
81
|
-
"artifacts/**"
|
|
82
|
-
],
|
|
83
|
-
"outputContract": "Plain Markdown implementation contract summary; no file writes.",
|
|
84
|
-
"subtask_prompt": "阅读 ./README.md 与 docs/agent-dag-runner.md,返回 10 行以内的实现契约摘要(只读分析 + 文档建议,不改代码/文档/artifacts)。指出是否适合并行 scout 与窄 writeSet。"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"id": "scout-src",
|
|
88
|
-
"depends_on": [
|
|
89
|
-
"contract-pi"
|
|
90
|
-
],
|
|
91
|
-
"role": "scout",
|
|
92
|
-
"executor": "pi",
|
|
93
|
-
"complexity": "LOW",
|
|
94
|
-
"writePolicy": "read-only",
|
|
95
|
-
"allowedPaths": [
|
|
96
|
-
"./src/workflows/dag/**"
|
|
97
|
-
],
|
|
98
|
-
"forbiddenPaths": [
|
|
99
|
-
".harness/**",
|
|
100
|
-
"artifacts/**"
|
|
101
|
-
],
|
|
102
|
-
"outputContract": "Plain Markdown reconnaissance summary of DAG-related source modules; no file writes.",
|
|
103
|
-
"subtask_prompt": "只读审计 ./src/workflows/dag/ 中与 DAG 相关的模块,列出关键文件与职责(不要改文件)。"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"id": "scout-tests",
|
|
107
|
-
"depends_on": [
|
|
108
|
-
"contract-pi"
|
|
109
|
-
],
|
|
110
|
-
"role": "scout",
|
|
111
|
-
"executor": "pi",
|
|
112
|
-
"complexity": "LOW",
|
|
113
|
-
"writePolicy": "read-only",
|
|
114
|
-
"allowedPaths": [
|
|
115
|
-
"./test/**"
|
|
116
|
-
],
|
|
117
|
-
"forbiddenPaths": [
|
|
118
|
-
".harness/**",
|
|
119
|
-
"artifacts/**"
|
|
120
|
-
],
|
|
121
|
-
"outputContract": "Plain Markdown test coverage gap summary; no file writes.",
|
|
122
|
-
"subtask_prompt": "只读审计 ./test/ 中与 dag-runner 相关的测试覆盖,列出缺口建议(不要改文件)。"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"id": "implement-core",
|
|
126
|
-
"depends_on": [
|
|
127
|
-
"scout-src",
|
|
128
|
-
"scout-tests"
|
|
129
|
-
],
|
|
130
|
-
"role": "implementer",
|
|
131
|
-
"executor": "pi",
|
|
132
|
-
"complexity": "HIGH",
|
|
133
|
-
"writePolicy": "exclusive",
|
|
134
|
-
"writeSet": [
|
|
135
|
-
"./src/workflows/dag/runner.ts"
|
|
136
|
-
],
|
|
137
|
-
"allowedPaths": [
|
|
138
|
-
"./src/workflows/dag/**"
|
|
139
|
-
],
|
|
140
|
-
"forbiddenPaths": [
|
|
141
|
-
".harness/**",
|
|
142
|
-
"artifacts/**"
|
|
143
|
-
],
|
|
144
|
-
"outputContract": "Implementation summary with changed files, tests run, and residual risks.",
|
|
145
|
-
"subtask_prompt": "基于上游侦察结果,在 writeSet 范围内做最小必要改动并说明风险(若无需改动则输出 no-op 理由)。",
|
|
146
|
-
"toolProfile": "write"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"id": "review-pi",
|
|
150
|
-
"depends_on": [
|
|
151
|
-
"implement-core"
|
|
152
|
-
],
|
|
153
|
-
"role": "reviewer",
|
|
154
|
-
"executor": "pi",
|
|
155
|
-
"complexity": "MED",
|
|
156
|
-
"writePolicy": "read-only",
|
|
157
|
-
"allowedPaths": [
|
|
158
|
-
"./**",
|
|
159
|
-
"docs/**"
|
|
160
|
-
],
|
|
161
|
-
"forbiddenPaths": [
|
|
162
|
-
".harness/**",
|
|
163
|
-
"artifacts/**"
|
|
164
|
-
],
|
|
165
|
-
"outputContract": "Plain Markdown review summary; no file writes.",
|
|
166
|
-
"subtask_prompt": "审查上游实现与侦察结论是否一致,列出范围漂移、验证缺口与残余风险(只读,不改文件/文档/artifacts)。"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"id": "verify-shell",
|
|
170
|
-
"depends_on": [
|
|
171
|
-
"implement-core"
|
|
172
|
-
],
|
|
173
|
-
"role": "verifier",
|
|
174
|
-
"executor": "shell",
|
|
175
|
-
"complexity": "LOW",
|
|
176
|
-
"writePolicy": "read-only",
|
|
177
|
-
"allowedPaths": [
|
|
178
|
-
"./**"
|
|
179
|
-
],
|
|
180
|
-
"forbiddenPaths": [
|
|
181
|
-
".harness/**",
|
|
182
|
-
"artifacts/**"
|
|
183
|
-
],
|
|
184
|
-
"outputContract": "Archived shell verification stdout/stderr with exit codes; no worktree writes.",
|
|
185
|
-
"subtask_prompt": "Run deterministic loop-agent verification and archive command outputs.",
|
|
186
|
-
"shell": {
|
|
187
|
-
"preset": "loop-agent-standard-verify",
|
|
188
|
-
"cwd": ".",
|
|
189
|
-
"timeoutMs": 300000
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"title": "Hybrid DAG 示例:Pi 只读契约 + 并行侦察 + Pi 写入配置实现",
|
|
4
|
+
"objective": "演示 v2 hybrid DAG:Pi 节点返回只读契约/审查结论,Pi writer 节点通过 toolProfile=write 执行受控独占实现,shell 节点负责确定性验证。",
|
|
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 remains an explicit optional executor; no-Cursor environments 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 explicit exclusive write nodes"
|
|
24
|
+
],
|
|
25
|
+
"defaults": {
|
|
26
|
+
"executor": "pi",
|
|
27
|
+
"contextProfile": "slim",
|
|
28
|
+
"skills": [
|
|
29
|
+
"ai-engineering-context"
|
|
30
|
+
],
|
|
31
|
+
"writePolicy": "read-only"
|
|
32
|
+
},
|
|
33
|
+
"skillsByRole": {
|
|
34
|
+
"planner": [
|
|
35
|
+
"loop-agent"
|
|
36
|
+
],
|
|
37
|
+
"scout": [
|
|
38
|
+
"ai-engineering-context"
|
|
39
|
+
],
|
|
40
|
+
"implementer": [
|
|
41
|
+
"verification-before-completion"
|
|
42
|
+
],
|
|
43
|
+
"reviewer": [
|
|
44
|
+
"requesting-code-review"
|
|
45
|
+
],
|
|
46
|
+
"verifier": [
|
|
47
|
+
"verification-before-completion",
|
|
48
|
+
"systematic-debugging"
|
|
49
|
+
],
|
|
50
|
+
"closeout": [
|
|
51
|
+
"loop-agent",
|
|
52
|
+
"verification-before-completion"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"executorModels": {
|
|
56
|
+
"cursor": {
|
|
57
|
+
"LOW": "composer-2.5",
|
|
58
|
+
"MED": "composer-2.5",
|
|
59
|
+
"HIGH": "gpt-5.5"
|
|
60
|
+
},
|
|
61
|
+
"pi": {
|
|
62
|
+
"LOW": "gpt-5.3-codex-spark",
|
|
63
|
+
"MED": "glm-5.2",
|
|
64
|
+
"HIGH": "gpt-5.5"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"tasks": [
|
|
68
|
+
{
|
|
69
|
+
"id": "contract-pi",
|
|
70
|
+
"depends_on": [],
|
|
71
|
+
"role": "planner",
|
|
72
|
+
"executor": "pi",
|
|
73
|
+
"complexity": "MED",
|
|
74
|
+
"writePolicy": "read-only",
|
|
75
|
+
"allowedPaths": [
|
|
76
|
+
"./**",
|
|
77
|
+
"docs/**"
|
|
78
|
+
],
|
|
79
|
+
"forbiddenPaths": [
|
|
80
|
+
".harness/**",
|
|
81
|
+
"artifacts/**"
|
|
82
|
+
],
|
|
83
|
+
"outputContract": "Plain Markdown implementation contract summary; no file writes.",
|
|
84
|
+
"subtask_prompt": "阅读 ./README.md 与 docs/agent-dag-runner.md,返回 10 行以内的实现契约摘要(只读分析 + 文档建议,不改代码/文档/artifacts)。指出是否适合并行 scout 与窄 writeSet。"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "scout-src",
|
|
88
|
+
"depends_on": [
|
|
89
|
+
"contract-pi"
|
|
90
|
+
],
|
|
91
|
+
"role": "scout",
|
|
92
|
+
"executor": "pi",
|
|
93
|
+
"complexity": "LOW",
|
|
94
|
+
"writePolicy": "read-only",
|
|
95
|
+
"allowedPaths": [
|
|
96
|
+
"./src/workflows/dag/**"
|
|
97
|
+
],
|
|
98
|
+
"forbiddenPaths": [
|
|
99
|
+
".harness/**",
|
|
100
|
+
"artifacts/**"
|
|
101
|
+
],
|
|
102
|
+
"outputContract": "Plain Markdown reconnaissance summary of DAG-related source modules; no file writes.",
|
|
103
|
+
"subtask_prompt": "只读审计 ./src/workflows/dag/ 中与 DAG 相关的模块,列出关键文件与职责(不要改文件)。"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "scout-tests",
|
|
107
|
+
"depends_on": [
|
|
108
|
+
"contract-pi"
|
|
109
|
+
],
|
|
110
|
+
"role": "scout",
|
|
111
|
+
"executor": "pi",
|
|
112
|
+
"complexity": "LOW",
|
|
113
|
+
"writePolicy": "read-only",
|
|
114
|
+
"allowedPaths": [
|
|
115
|
+
"./test/**"
|
|
116
|
+
],
|
|
117
|
+
"forbiddenPaths": [
|
|
118
|
+
".harness/**",
|
|
119
|
+
"artifacts/**"
|
|
120
|
+
],
|
|
121
|
+
"outputContract": "Plain Markdown test coverage gap summary; no file writes.",
|
|
122
|
+
"subtask_prompt": "只读审计 ./test/ 中与 dag-runner 相关的测试覆盖,列出缺口建议(不要改文件)。"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "implement-core",
|
|
126
|
+
"depends_on": [
|
|
127
|
+
"scout-src",
|
|
128
|
+
"scout-tests"
|
|
129
|
+
],
|
|
130
|
+
"role": "implementer",
|
|
131
|
+
"executor": "pi",
|
|
132
|
+
"complexity": "HIGH",
|
|
133
|
+
"writePolicy": "exclusive",
|
|
134
|
+
"writeSet": [
|
|
135
|
+
"./src/workflows/dag/runner.ts"
|
|
136
|
+
],
|
|
137
|
+
"allowedPaths": [
|
|
138
|
+
"./src/workflows/dag/**"
|
|
139
|
+
],
|
|
140
|
+
"forbiddenPaths": [
|
|
141
|
+
".harness/**",
|
|
142
|
+
"artifacts/**"
|
|
143
|
+
],
|
|
144
|
+
"outputContract": "Implementation summary with changed files, tests run, and residual risks.",
|
|
145
|
+
"subtask_prompt": "基于上游侦察结果,在 writeSet 范围内做最小必要改动并说明风险(若无需改动则输出 no-op 理由)。",
|
|
146
|
+
"toolProfile": "write"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "review-pi",
|
|
150
|
+
"depends_on": [
|
|
151
|
+
"implement-core"
|
|
152
|
+
],
|
|
153
|
+
"role": "reviewer",
|
|
154
|
+
"executor": "pi",
|
|
155
|
+
"complexity": "MED",
|
|
156
|
+
"writePolicy": "read-only",
|
|
157
|
+
"allowedPaths": [
|
|
158
|
+
"./**",
|
|
159
|
+
"docs/**"
|
|
160
|
+
],
|
|
161
|
+
"forbiddenPaths": [
|
|
162
|
+
".harness/**",
|
|
163
|
+
"artifacts/**"
|
|
164
|
+
],
|
|
165
|
+
"outputContract": "Plain Markdown review summary; no file writes.",
|
|
166
|
+
"subtask_prompt": "审查上游实现与侦察结论是否一致,列出范围漂移、验证缺口与残余风险(只读,不改文件/文档/artifacts)。"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "verify-shell",
|
|
170
|
+
"depends_on": [
|
|
171
|
+
"implement-core"
|
|
172
|
+
],
|
|
173
|
+
"role": "verifier",
|
|
174
|
+
"executor": "shell",
|
|
175
|
+
"complexity": "LOW",
|
|
176
|
+
"writePolicy": "read-only",
|
|
177
|
+
"allowedPaths": [
|
|
178
|
+
"./**"
|
|
179
|
+
],
|
|
180
|
+
"forbiddenPaths": [
|
|
181
|
+
".harness/**",
|
|
182
|
+
"artifacts/**"
|
|
183
|
+
],
|
|
184
|
+
"outputContract": "Archived shell verification stdout/stderr with exit codes; no worktree writes.",
|
|
185
|
+
"subtask_prompt": "Run deterministic loop-agent verification and archive command outputs.",
|
|
186
|
+
"shell": {
|
|
187
|
+
"preset": "loop-agent-standard-verify",
|
|
188
|
+
"cwd": ".",
|
|
189
|
+
"timeoutMs": 300000
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# Init Evolution Review
|
|
2
|
-
|
|
3
|
-
Date:
|
|
4
|
-
Base:
|
|
5
|
-
Head:
|
|
6
|
-
|
|
7
|
-
## Changed Surface
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
## Decision
|
|
12
|
-
|
|
13
|
-
Choose one:
|
|
14
|
-
|
|
15
|
-
- No init impact
|
|
16
|
-
- Surface check only
|
|
17
|
-
- Init update required
|
|
18
|
-
|
|
19
|
-
Rationale:
|
|
20
|
-
|
|
21
|
-
## Updates Made
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
## Verification
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
# commands and results
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Residual Risk
|
|
32
|
-
|
|
33
|
-
-
|
|
1
|
+
# Init Evolution Review
|
|
2
|
+
|
|
3
|
+
Date:
|
|
4
|
+
Base:
|
|
5
|
+
Head:
|
|
6
|
+
|
|
7
|
+
## Changed Surface
|
|
8
|
+
|
|
9
|
+
-
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
Choose one:
|
|
14
|
+
|
|
15
|
+
- No init impact
|
|
16
|
+
- Surface check only
|
|
17
|
+
- Init update required
|
|
18
|
+
|
|
19
|
+
Rationale:
|
|
20
|
+
|
|
21
|
+
## Updates Made
|
|
22
|
+
|
|
23
|
+
-
|
|
24
|
+
|
|
25
|
+
## Verification
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# commands and results
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Residual Risk
|
|
32
|
+
|
|
33
|
+
-
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
# Interactive UI Round-2 A/B/C Experiment
|
|
2
|
-
|
|
3
|
-
## Frozen inputs
|
|
4
|
-
|
|
5
|
-
- Target repo / commit:
|
|
6
|
-
- Controller version:
|
|
7
|
-
- TaskSpec / acceptance hash:
|
|
8
|
-
- Base DAG:
|
|
9
|
-
- Model matrix:
|
|
10
|
-
|
|
11
|
-
Prepare the fixture and three DAGs after installing a published controller that contains `interactive-ui` support:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
bash scripts-local/setup-drill-round2-react.sh /tmp/drill-round2-react-target
|
|
15
|
-
npm run build
|
|
16
|
-
node scripts-local/prepare-round2-ui-experiment.mjs \
|
|
17
|
-
/tmp/drill-round2-react-target \
|
|
18
|
-
dogfood/features/F-2026-001/tasks/FE-001.yaml \
|
|
19
|
-
/tmp/round2-ui-experiment \
|
|
20
|
-
loop-agent
|
|
21
|
-
node scripts-local/build-round2-ui-variants.mjs \
|
|
22
|
-
/tmp/round2-ui-experiment/round2-ui-base.json \
|
|
23
|
-
/tmp/round2-ui-experiment/variants
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Validate every generated variant with the same frozen controller before running it. Use a unique run ID for A, B, and C; do not rewrite `executorModels`.
|
|
27
|
-
|
|
28
|
-
## Variants
|
|
29
|
-
|
|
30
|
-
| Variant | Writer prompt | Writer tier | Run ID | Result |
|
|
31
|
-
| --- | --- | --- | --- | --- |
|
|
32
|
-
| A | interactive-ui contract | MED | | |
|
|
33
|
-
| B | default contract | HIGH | | |
|
|
34
|
-
| C | interactive-ui contract | HIGH | | |
|
|
35
|
-
|
|
36
|
-
## Metrics
|
|
37
|
-
|
|
38
|
-
| Metric | A | B | C |
|
|
39
|
-
| --- | --- | --- | --- |
|
|
40
|
-
| First-pass review gate pass | | | |
|
|
41
|
-
| Framework-native `.tsx` component | | | |
|
|
42
|
-
| Route/parent integration | | | |
|
|
43
|
-
| DOM interaction tests | | | |
|
|
44
|
-
| Helper-only escape | | | |
|
|
45
|
-
| Duration | | | |
|
|
46
|
-
| Tokens | | | |
|
|
47
|
-
|
|
48
|
-
## Required evidence per run
|
|
49
|
-
|
|
50
|
-
- DAG JSON and run ID
|
|
51
|
-
- implement/repair writer model and prompt profile
|
|
52
|
-
- changed component path
|
|
53
|
-
- integration path
|
|
54
|
-
- interaction test path
|
|
55
|
-
- DOM assertions mapped to AC-FE-001
|
|
56
|
-
- review verdict and deterministic test output
|
|
57
|
-
- diff boundary audit
|
|
58
|
-
|
|
59
|
-
## Decision
|
|
60
|
-
|
|
61
|
-
- Production default:
|
|
62
|
-
- Evidence:
|
|
63
|
-
- Cost/quality trade-off:
|
|
64
|
-
- Follow-up:
|
|
65
|
-
|
|
66
|
-
Do not conclude from a single run when provider or environment failures occurred. Re-run the affected variant with the same frozen inputs and a new run ID.
|
|
1
|
+
# Interactive UI Round-2 A/B/C Experiment
|
|
2
|
+
|
|
3
|
+
## Frozen inputs
|
|
4
|
+
|
|
5
|
+
- Target repo / commit:
|
|
6
|
+
- Controller version:
|
|
7
|
+
- TaskSpec / acceptance hash:
|
|
8
|
+
- Base DAG:
|
|
9
|
+
- Model matrix:
|
|
10
|
+
|
|
11
|
+
Prepare the fixture and three DAGs after installing a published controller that contains `interactive-ui` support:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bash scripts-local/setup-drill-round2-react.sh /tmp/drill-round2-react-target
|
|
15
|
+
npm run build
|
|
16
|
+
node scripts-local/prepare-round2-ui-experiment.mjs \
|
|
17
|
+
/tmp/drill-round2-react-target \
|
|
18
|
+
dogfood/features/F-2026-001/tasks/FE-001.yaml \
|
|
19
|
+
/tmp/round2-ui-experiment \
|
|
20
|
+
loop-agent
|
|
21
|
+
node scripts-local/build-round2-ui-variants.mjs \
|
|
22
|
+
/tmp/round2-ui-experiment/round2-ui-base.json \
|
|
23
|
+
/tmp/round2-ui-experiment/variants
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Validate every generated variant with the same frozen controller before running it. Use a unique run ID for A, B, and C; do not rewrite `executorModels`.
|
|
27
|
+
|
|
28
|
+
## Variants
|
|
29
|
+
|
|
30
|
+
| Variant | Writer prompt | Writer tier | Run ID | Result |
|
|
31
|
+
| --- | --- | --- | --- | --- |
|
|
32
|
+
| A | interactive-ui contract | MED | | |
|
|
33
|
+
| B | default contract | HIGH | | |
|
|
34
|
+
| C | interactive-ui contract | HIGH | | |
|
|
35
|
+
|
|
36
|
+
## Metrics
|
|
37
|
+
|
|
38
|
+
| Metric | A | B | C |
|
|
39
|
+
| --- | --- | --- | --- |
|
|
40
|
+
| First-pass review gate pass | | | |
|
|
41
|
+
| Framework-native `.tsx` component | | | |
|
|
42
|
+
| Route/parent integration | | | |
|
|
43
|
+
| DOM interaction tests | | | |
|
|
44
|
+
| Helper-only escape | | | |
|
|
45
|
+
| Duration | | | |
|
|
46
|
+
| Tokens | | | |
|
|
47
|
+
|
|
48
|
+
## Required evidence per run
|
|
49
|
+
|
|
50
|
+
- DAG JSON and run ID
|
|
51
|
+
- implement/repair writer model and prompt profile
|
|
52
|
+
- changed component path
|
|
53
|
+
- integration path
|
|
54
|
+
- interaction test path
|
|
55
|
+
- DOM assertions mapped to AC-FE-001
|
|
56
|
+
- review verdict and deterministic test output
|
|
57
|
+
- diff boundary audit
|
|
58
|
+
|
|
59
|
+
## Decision
|
|
60
|
+
|
|
61
|
+
- Production default:
|
|
62
|
+
- Evidence:
|
|
63
|
+
- Cost/quality trade-off:
|
|
64
|
+
- Follow-up:
|
|
65
|
+
|
|
66
|
+
Do not conclude from a single run when provider or environment failures occurred. Re-run the affected variant with the same frozen inputs and a new run ID.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Product-line execution rules
|
|
2
|
-
|
|
3
|
-
- Read requirement, acceptance, design, test plan, task graph, and the selected TaskSpec before writing.
|
|
4
|
-
- Treat `constraints.allowed_paths` and `constraints.forbidden_paths` as machine-enforced write boundaries; review DAG writer `writeSet` before execution.
|
|
5
|
-
- Advance only tasks whose dependencies are complete. Preserve failed run records; retries receive new worker run IDs.
|
|
6
|
-
- A Ready task must have acceptance references, non-empty allowed/forbidden paths, and deterministic verification commands.
|
|
7
|
-
- QA records an independent verdict and evidence. Do not write `status: success` closeout until `qa_verdict: pass` and non-empty `qa_evidence` exist.
|
|
8
|
-
- Human gates remain human decisions. Record owner, time, reason, evidence, and follow-up without rewriting failed history.
|
|
1
|
+
# Product-line execution rules
|
|
2
|
+
|
|
3
|
+
- Read requirement, acceptance, design, test plan, task graph, and the selected TaskSpec before writing.
|
|
4
|
+
- Treat `constraints.allowed_paths` and `constraints.forbidden_paths` as machine-enforced write boundaries; review DAG writer `writeSet` before execution.
|
|
5
|
+
- Advance only tasks whose dependencies are complete. Preserve failed run records; retries receive new worker run IDs.
|
|
6
|
+
- A Ready task must have acceptance references, non-empty allowed/forbidden paths, and deterministic verification commands.
|
|
7
|
+
- QA records an independent verdict and evidence. Do not write `status: success` closeout until `qa_verdict: pass` and non-empty `qa_evidence` exist.
|
|
8
|
+
- Human gates remain human decisions. Record owner, time, reason, evidence, and follow-up without rewriting failed history.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Product-line feature packet
|
|
2
|
-
|
|
3
|
-
Copy this directory for each product feature. Replace angle-bracket placeholders, keep IDs stable, and run:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
agent-worker task validate-feature <feature-dir>
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
The validator checks acceptance ID uniqueness, task references and dependencies, cycles, TaskSpec/path/verification completeness, and QA evidence before a successful closeout.
|
|
1
|
+
# Product-line feature packet
|
|
2
|
+
|
|
3
|
+
Copy this directory for each product feature. Replace angle-bracket placeholders, keep IDs stable, and run:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
agent-worker task validate-feature <feature-dir>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The validator checks acceptance ID uniqueness, task references and dependencies, cycles, TaskSpec/path/verification completeness, and QA evidence before a successful closeout.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
schema_version: 1
|
|
2
|
-
feature_id: F-YYYY-NNN
|
|
3
|
-
acceptance:
|
|
4
|
-
- id: AC-FEATURE-001
|
|
5
|
-
title: Observable outcome is delivered
|
|
6
|
-
priority: must
|
|
7
|
-
type: behavior
|
|
8
|
-
given: the documented precondition
|
|
9
|
-
when: the user or system performs the action
|
|
10
|
-
then: the observable result occurs
|
|
11
|
-
verification:
|
|
12
|
-
expected_task_refs:
|
|
13
|
-
- BE-001
|
|
14
|
-
- QA-001
|
|
1
|
+
schema_version: 1
|
|
2
|
+
feature_id: F-YYYY-NNN
|
|
3
|
+
acceptance:
|
|
4
|
+
- id: AC-FEATURE-001
|
|
5
|
+
title: Observable outcome is delivered
|
|
6
|
+
priority: must
|
|
7
|
+
type: behavior
|
|
8
|
+
given: the documented precondition
|
|
9
|
+
when: the user or system performs the action
|
|
10
|
+
then: the observable result occurs
|
|
11
|
+
verification:
|
|
12
|
+
expected_task_refs:
|
|
13
|
+
- BE-001
|
|
14
|
+
- QA-001
|