@tea-agent/loop-agent 0.1.0 → 0.2.1
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 +62 -45
- package/CHANGELOG.md +60 -28
- package/README.md +160 -124
- package/bin/loop-agent.js +21 -21
- package/dist/adapters/index.js +3 -2
- package/dist/adapters/loop-agent.js +44 -2
- package/dist/application/dag/args.js +420 -0
- package/dist/application/dag/generate-task-dag.js +280 -0
- package/dist/application/dag/report-dag.js +14 -0
- package/dist/application/dag/run-dag.js +106 -0
- package/dist/application/dag/validate-dag.js +102 -0
- package/dist/application/loop/run-action.js +23 -0
- package/dist/cli/catalog.js +2 -237
- package/dist/cli/command-definitions.js +571 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/program.js +65 -1
- package/dist/cli/router.js +13 -0
- package/dist/cli-governance/active-residue-check.js +38 -0
- package/dist/commands/dag-report.js +6 -107
- package/dist/commands/dag-run-task.js +8 -466
- package/dist/commands/dag-validate.js +7 -179
- package/dist/commands/examples.js +90 -0
- package/dist/commands/init.js +1518 -0
- package/dist/commands/loop.js +57 -31
- package/dist/commands/pi-prompt.js +2 -9
- package/dist/commands/run-dag.js +7 -180
- package/dist/executors/cursor-executor-artifacts.js +3 -4
- package/dist/executors/cursor-worker-client.js +13 -3
- package/dist/executors/dag-cursor-executor.js +2 -3
- package/dist/executors/dag-pi-executor.js +3 -4
- package/dist/executors/dag-static-executor.js +2 -5
- package/dist/executors/pi-defaults.js +9 -0
- package/dist/executors/shell-executor.js +12 -20
- package/dist/governance/manifest-types.js +1 -0
- package/dist/infrastructure/harness/active-residue-policy.js +73 -0
- package/dist/infrastructure/harness/artifact-store.js +72 -0
- package/dist/infrastructure/harness/atomic-write.js +49 -0
- package/dist/infrastructure/harness/completed-facts-guard.js +40 -0
- package/dist/infrastructure/harness/loop-action-store.js +23 -0
- package/dist/infrastructure/harness/loop-store.js +41 -0
- package/dist/infrastructure/harness/one-shot-run-store.js +94 -0
- package/dist/infrastructure/harness/task-store.js +77 -0
- package/dist/records/one-shot-runs.js +26 -61
- package/dist/records/promotion.js +3 -4
- package/dist/shared/artifacts-core.js +5 -5
- package/dist/shared/logger.js +9 -15
- package/dist/task/delegate.js +4 -4
- package/dist/task/runtime.js +5 -7
- package/dist/task/state.js +6 -20
- package/dist/workflows/dag/convergence/controller.js +277 -0
- package/dist/workflows/dag/dynamic-runtime/condition.js +48 -0
- package/dist/workflows/dag/dynamic-runtime/loop-until.js +156 -0
- package/dist/workflows/dag/dynamic-runtime/map.js +185 -0
- package/dist/workflows/dag/dynamic-runtime/reduction.js +72 -0
- package/dist/workflows/dag/dynamic-runtime/shared.js +133 -0
- package/dist/workflows/dag/failure-routing.js +82 -0
- package/dist/workflows/dag/lifecycle.js +101 -8
- package/dist/workflows/dag/node-execution.js +262 -0
- package/dist/workflows/dag/report.js +73 -1
- package/dist/workflows/dag/run-store.js +36 -0
- package/dist/workflows/dag/runner.js +82 -1341
- package/dist/workflows/dag/scheduler.js +84 -0
- package/dist/workflows/dag/upstream-artifacts.js +20 -18
- package/dist/workflows/loop/actions/cursor-fix.js +191 -0
- package/dist/workflows/loop/actions/dag-action.js +130 -0
- package/dist/workflows/loop/actions/pi-review.js +267 -0
- package/dist/workflows/loop/actions/shared.js +157 -0
- package/dist/workflows/loop/actions/shell-verify.js +82 -0
- package/dist/workflows/loop/actions/types.js +1 -0
- package/dist/workflows/loop/actions/workflow-action.js +255 -0
- package/dist/workflows/loop/actions.js +55 -1212
- package/dist/workflows/loop/closeout.js +5 -4
- package/dist/workflows/loop/context.js +2 -3
- package/dist/workflows/loop/events.js +3 -2
- package/dist/workflows/loop/policy/auto-policy.js +104 -0
- package/dist/workflows/loop/policy/cursor-fix-policy.js +31 -0
- package/dist/workflows/loop/rounds.js +3 -3
- package/dist/workflows/loop/signals.js +4 -7
- package/dist/workflows/loop/state.js +11 -11
- package/docs/README.md +47 -44
- package/docs/agent-dag-recovery-playbook.md +32 -6
- package/docs/agent-dag-runner.md +17 -17
- package/docs/architecture/runtime-boundaries.md +147 -0
- package/docs/cursor-executor-usage.md +5 -5
- package/docs/decisions/README.md +2 -2
- package/docs/design/README.md +24 -24
- package/docs/development-principles.md +50 -50
- package/docs/dynamic-workflow-dag-engine-roadmap.md +6 -6
- package/docs/exec-plans/README.md +4 -4
- package/docs/exec-plans/active/README.md +10 -5
- package/docs/exec-plans/completed/README.md +9 -5
- package/docs/feature-workflow.md +111 -109
- package/docs/harness-methodology-verification.md +18 -18
- package/docs/loop-agent-harness.md +36 -36
- package/docs/production-readiness.md +96 -0
- package/docs/progress/README.md +2 -2
- package/docs/reports/README.md +4 -2
- package/docs/templates/agent-dag-decision-gate-dogfood-report.md +1 -1
- package/docs/templates/agent-dag-process-supervisor.prompt.md +2 -2
- package/docs/templates/agent-dag-report.schema.json +33 -2
- package/docs/templates/agent-dag-review-verdict.prompt.md +1 -1
- 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 +17 -17
- package/docs/templates/agent-dag.supervised-implementation.json +500 -500
- package/docs/templates/hybrid-dag.json +193 -193
- package/docs/templates/production-readiness-checklist.md +57 -0
- package/docs/templates/progress-log.md +7 -7
- package/docs/templates/project-start-checklist.md +8 -8
- package/docs/templates/qa-report.md +17 -11
- package/docs/templates/sprint-contract.md +19 -19
- package/docs/verification-matrix.md +37 -26
- package/examples/example-dag.json +51 -51
- package/examples/hybrid-loop-agent-dag.json +194 -194
- package/harness.json +5 -5
- package/package.json +62 -61
- package/skills/ai-engineering-context/SKILL.md +21 -21
- package/skills/loop-agent/SKILL.md +56 -171
- package/skills/loop-agent/references/README.md +6 -2
- package/skills/loop-agent/references/command-reference.md +107 -65
- package/skills/loop-agent/references/harness-policy.md +115 -115
- package/skills/loop-agent/references/hybrid-dag.md +30 -30
- package/skills/loop-agent/references/learned/README.md +13 -13
- package/skills/loop-agent/references/long-running-loop.md +59 -0
- package/skills/loop-agent/references/model-routing.md +1 -1
- package/skills/loop-agent/references/orchestrator-and-interventions.md +1 -1
- package/skills/loop-agent/references/pi-prompt.md +9 -9
- package/skills/loop-agent/references/pi-subagent-assisted-mode.md +0 -2
- package/skills/loop-agent/references/post-implementation-and-patterns.md +7 -7
- package/skills/loop-agent/references/task-workflow.md +19 -19
- package/skills/loop-agent/references/verification-and-failure-handling.md +54 -0
- package/skills/requesting-code-review/SKILL.md +40 -40
- package/skills/requesting-code-review/code-reviewer.md +4 -4
- package/skills/systematic-debugging/CREATION-LOG.md +43 -43
- package/skills/systematic-debugging/SKILL.md +113 -113
- package/skills/systematic-debugging/condition-based-waiting.md +20 -20
- package/skills/systematic-debugging/defense-in-depth.md +27 -27
- package/skills/systematic-debugging/root-cause-tracing.md +38 -38
- package/skills/systematic-debugging/test-academic.md +6 -6
- package/skills/systematic-debugging/test-pressure-1.md +6 -6
- package/skills/systematic-debugging/test-pressure-2.md +2 -2
- package/skills/systematic-debugging/test-pressure-3.md +6 -6
- package/skills/verification-before-completion/SKILL.md +37 -37
|
@@ -1,195 +1,195 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./agent-dag.schema.json",
|
|
3
|
-
"version": 2,
|
|
4
|
-
"title": "Agent DAG base template",
|
|
5
|
-
"objective": "Replace with the concrete objective for this DAG run.",
|
|
6
|
-
"successCriteria": [
|
|
7
|
-
"Each node returns output matching its outputContract.",
|
|
8
|
-
"Same-rank read-only scouts run in parallel when their outputs are independent.",
|
|
9
|
-
"Only Pi nodes with toolProfile=write or explicitly enabled Cursor implementer nodes may write files, and only inside declared writeSet.",
|
|
10
|
-
"Pi nodes remain read-only unless toolProfile=write is explicitly selected for a bounded writer node.",
|
|
11
|
-
"Read-only nodes must not write root artifacts/**; root artifacts/ is not a per-node scratchpad."
|
|
12
|
-
],
|
|
13
|
-
"globalConstraints": [
|
|
14
|
-
"Replace every REPLACE/WITH/... placeholder with concrete repo paths before execution; do not leave template placeholders in production DAG JSON.",
|
|
15
|
-
"Do not commit runtime traces under .harness/dag-runs/.",
|
|
16
|
-
"Do not write generated DAG input specs into .harness/dag-runs/active/.",
|
|
17
|
-
"Use a platform-native temp path such as <temp-dir>/<topic>-dag.json for one-off DAG specs; commit reusable templates under examples/ or docs/templates/.",
|
|
18
|
-
"Actual file operation paths must be macOS/Windows compatible; use / only for stable repo refs, JSON/Markdown evidence refs, and glob conventions.",
|
|
19
|
-
"Every task must explicitly declare executor; defaults.executor is schema-only and not a runtime fallback.",
|
|
20
|
-
"Prefer same-rank parallel read-only scouts over serial chains when outputs are independent.",
|
|
21
|
-
"Add depends_on only when a child truly needs upstream output; challenge single-chain topologies during review.",
|
|
22
|
-
"Same-rank exclusive writeSet entries must be disjoint.",
|
|
23
|
-
"Do not add provider fields to DAG JSON; provider routing is executor-owned.",
|
|
24
|
-
"Use executorModels for model routing; do not add defaults.model or legacy top-level models.",
|
|
25
|
-
"Every task must declare outputContract describing the expected Markdown/output shape.",
|
|
26
|
-
"exclusive implementer nodes must use narrow, concrete writeSet and allowedPaths; never keep broad write permissions such as ** or repo root.",
|
|
27
|
-
"Cursor is optional; no-Cursor environments should use Pi read-only scouts and Pi writer nodes with toolProfile=write."
|
|
28
|
-
],
|
|
29
|
-
"defaults": {
|
|
30
|
-
"executor": "pi",
|
|
31
|
-
"contextProfile": "slim",
|
|
32
|
-
"skills": [
|
|
33
|
-
"ai-engineering-context"
|
|
34
|
-
],
|
|
35
|
-
"writePolicy": "read-only"
|
|
36
|
-
},
|
|
37
|
-
"skillsByRole": {
|
|
38
|
-
"planner": [
|
|
39
|
-
"loop-agent"
|
|
40
|
-
],
|
|
41
|
-
"scout": [
|
|
42
|
-
"ai-engineering-context"
|
|
43
|
-
],
|
|
44
|
-
"implementer": [
|
|
45
|
-
"verification-before-completion"
|
|
46
|
-
],
|
|
47
|
-
"reviewer": [
|
|
48
|
-
"requesting-code-review"
|
|
49
|
-
],
|
|
50
|
-
"verifier": [
|
|
51
|
-
"verification-before-completion",
|
|
52
|
-
"systematic-debugging"
|
|
53
|
-
],
|
|
54
|
-
"closeout": [
|
|
55
|
-
"loop-agent",
|
|
56
|
-
"verification-before-completion"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
"executorModels": {
|
|
60
|
-
"cursor": {
|
|
61
|
-
"LOW": "composer-2.5",
|
|
62
|
-
"MED": "composer-2.5",
|
|
63
|
-
"HIGH": "composer-2.5"
|
|
64
|
-
},
|
|
65
|
-
"pi": {
|
|
66
|
-
"LOW": "gpt-5.3-codex-spark",
|
|
67
|
-
"MED": "glm-5.2",
|
|
68
|
-
"HIGH": "gpt-5.5"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"tasks": [
|
|
72
|
-
{
|
|
73
|
-
"id": "contract-pi",
|
|
74
|
-
"depends_on": [],
|
|
75
|
-
"complexity": "MED",
|
|
76
|
-
"executor": "pi",
|
|
77
|
-
"role": "planner",
|
|
78
|
-
"writePolicy": "read-only",
|
|
79
|
-
"allowedPaths": [
|
|
80
|
-
"**"
|
|
81
|
-
],
|
|
82
|
-
"forbiddenPaths": [
|
|
83
|
-
".harness/**",
|
|
84
|
-
"artifacts/**"
|
|
85
|
-
],
|
|
86
|
-
"outputContract": "Plain Markdown implementation contract; no file writes.",
|
|
87
|
-
"subtask_prompt": "Read the task inputs and return a concise implementation contract: scope, risks, narrow write boundaries, parallel scout opportunities, and verification expectations. Do not edit files."
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"id": "scout-src",
|
|
91
|
-
"depends_on": [
|
|
92
|
-
"contract-pi"
|
|
93
|
-
],
|
|
94
|
-
"complexity": "LOW",
|
|
95
|
-
"executor": "pi",
|
|
96
|
-
"role": "scout",
|
|
97
|
-
"writePolicy": "read-only",
|
|
98
|
-
"allowedPaths": [
|
|
99
|
-
"REPLACE/WITH/SOURCE/PATH/**"
|
|
100
|
-
],
|
|
101
|
-
"forbiddenPaths": [
|
|
102
|
-
".harness/**",
|
|
103
|
-
"artifacts/**"
|
|
104
|
-
],
|
|
105
|
-
"outputContract": "Plain Markdown source reconnaissance summary; no file writes.",
|
|
106
|
-
"subtask_prompt": "Perform read-only source reconnaissance. List relevant source files, existing patterns, and risks. Do not edit files."
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"id": "scout-tests",
|
|
110
|
-
"depends_on": [
|
|
111
|
-
"contract-pi"
|
|
112
|
-
],
|
|
113
|
-
"complexity": "LOW",
|
|
114
|
-
"executor": "pi",
|
|
115
|
-
"role": "scout",
|
|
116
|
-
"writePolicy": "read-only",
|
|
117
|
-
"allowedPaths": [
|
|
118
|
-
"REPLACE/WITH/TEST/PATH/**"
|
|
119
|
-
],
|
|
120
|
-
"forbiddenPaths": [
|
|
121
|
-
".harness/**",
|
|
122
|
-
"artifacts/**"
|
|
123
|
-
],
|
|
124
|
-
"outputContract": "Plain Markdown test coverage reconnaissance summary; no file writes.",
|
|
125
|
-
"subtask_prompt": "Perform read-only test reconnaissance. List relevant tests, coverage gaps, and verification commands. Do not edit files."
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"id": "implement-pi",
|
|
129
|
-
"depends_on": [
|
|
130
|
-
"scout-src",
|
|
131
|
-
"scout-tests"
|
|
132
|
-
],
|
|
133
|
-
"complexity": "HIGH",
|
|
134
|
-
"executor": "pi",
|
|
135
|
-
"role": "implementer",
|
|
136
|
-
"writePolicy": "exclusive",
|
|
137
|
-
"writeSet": [
|
|
138
|
-
"REPLACE/WITH/ALLOWED/PATH/**"
|
|
139
|
-
],
|
|
140
|
-
"allowedPaths": [
|
|
141
|
-
"REPLACE/WITH/ALLOWED/PATH/**"
|
|
142
|
-
],
|
|
143
|
-
"forbiddenPaths": [
|
|
144
|
-
".harness/**",
|
|
145
|
-
"artifacts/**"
|
|
146
|
-
],
|
|
147
|
-
"outputContract": "Implementation summary with changed files, tests run, and risks.",
|
|
148
|
-
"subtask_prompt": "Implement the approved change within writeSet only. Keep the change minimal and update relevant tests/docs inside allowedPaths.",
|
|
149
|
-
"toolProfile": "write"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"id": "review-pi",
|
|
153
|
-
"depends_on": [
|
|
154
|
-
"implement-pi"
|
|
155
|
-
],
|
|
156
|
-
"complexity": "MED",
|
|
157
|
-
"executor": "pi",
|
|
158
|
-
"role": "reviewer",
|
|
159
|
-
"writePolicy": "read-only",
|
|
160
|
-
"allowedPaths": [
|
|
161
|
-
"**"
|
|
162
|
-
],
|
|
163
|
-
"forbiddenPaths": [
|
|
164
|
-
".harness/**",
|
|
165
|
-
"artifacts/**"
|
|
166
|
-
],
|
|
167
|
-
"outputContract": "Plain Markdown review summary; no file writes.",
|
|
168
|
-
"subtask_prompt": "Review upstream implementation output against the contract. Identify drift, missing tests, and residual risks. Do not edit files."
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"id": "verify-shell",
|
|
172
|
-
"depends_on": [
|
|
173
|
-
"implement-pi"
|
|
174
|
-
],
|
|
175
|
-
"complexity": "LOW",
|
|
176
|
-
"executor": "shell",
|
|
177
|
-
"role": "verifier",
|
|
178
|
-
"writePolicy": "read-only",
|
|
179
|
-
"allowedPaths": [
|
|
180
|
-
"./**"
|
|
181
|
-
],
|
|
182
|
-
"forbiddenPaths": [
|
|
183
|
-
".harness/**",
|
|
184
|
-
"artifacts/**"
|
|
185
|
-
],
|
|
186
|
-
"outputContract": "Archived shell command stdout/stderr with exit codes; no worktree writes.",
|
|
187
|
-
"subtask_prompt": "Run deterministic loop-agent verification commands and archive outputs.",
|
|
188
|
-
"shell": {
|
|
189
|
-
"preset": "loop-agent-standard-verify",
|
|
190
|
-
"cwd": ".",
|
|
191
|
-
"timeoutMs": 300000
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./agent-dag.schema.json",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"title": "Agent DAG base template",
|
|
5
|
+
"objective": "Replace with the concrete objective for this DAG run.",
|
|
6
|
+
"successCriteria": [
|
|
7
|
+
"Each node returns output matching its outputContract.",
|
|
8
|
+
"Same-rank read-only scouts run in parallel when their outputs are independent.",
|
|
9
|
+
"Only Pi nodes with toolProfile=write or explicitly enabled Cursor implementer nodes may write files, and only inside declared writeSet.",
|
|
10
|
+
"Pi nodes remain read-only unless toolProfile=write is explicitly selected for a bounded writer node.",
|
|
11
|
+
"Read-only nodes must not write root artifacts/**; root artifacts/ is not a per-node scratchpad."
|
|
12
|
+
],
|
|
13
|
+
"globalConstraints": [
|
|
14
|
+
"Replace every REPLACE/WITH/... placeholder with concrete repo paths before execution; do not leave template placeholders in production DAG JSON.",
|
|
15
|
+
"Do not commit runtime traces under .harness/dag-runs/.",
|
|
16
|
+
"Do not write generated DAG input specs into .harness/dag-runs/active/.",
|
|
17
|
+
"Use a platform-native temp path such as <temp-dir>/<topic>-dag.json for one-off DAG specs; commit reusable templates under examples/ or docs/templates/.",
|
|
18
|
+
"Actual file operation paths must be macOS/Windows compatible; use / only for stable repo refs, JSON/Markdown evidence refs, and glob conventions.",
|
|
19
|
+
"Every task must explicitly declare executor; defaults.executor is schema-only and not a runtime fallback.",
|
|
20
|
+
"Prefer same-rank parallel read-only scouts over serial chains when outputs are independent.",
|
|
21
|
+
"Add depends_on only when a child truly needs upstream output; challenge single-chain topologies during review.",
|
|
22
|
+
"Same-rank exclusive writeSet entries must be disjoint.",
|
|
23
|
+
"Do not add provider fields to DAG JSON; provider routing is executor-owned.",
|
|
24
|
+
"Use executorModels for model routing; do not add defaults.model or legacy top-level models.",
|
|
25
|
+
"Every task must declare outputContract describing the expected Markdown/output shape.",
|
|
26
|
+
"exclusive implementer nodes must use narrow, concrete writeSet and allowedPaths; never keep broad write permissions such as ** or repo root.",
|
|
27
|
+
"Cursor is optional; no-Cursor environments should use Pi read-only scouts and Pi writer nodes with toolProfile=write."
|
|
28
|
+
],
|
|
29
|
+
"defaults": {
|
|
30
|
+
"executor": "pi",
|
|
31
|
+
"contextProfile": "slim",
|
|
32
|
+
"skills": [
|
|
33
|
+
"ai-engineering-context"
|
|
34
|
+
],
|
|
35
|
+
"writePolicy": "read-only"
|
|
36
|
+
},
|
|
37
|
+
"skillsByRole": {
|
|
38
|
+
"planner": [
|
|
39
|
+
"loop-agent"
|
|
40
|
+
],
|
|
41
|
+
"scout": [
|
|
42
|
+
"ai-engineering-context"
|
|
43
|
+
],
|
|
44
|
+
"implementer": [
|
|
45
|
+
"verification-before-completion"
|
|
46
|
+
],
|
|
47
|
+
"reviewer": [
|
|
48
|
+
"requesting-code-review"
|
|
49
|
+
],
|
|
50
|
+
"verifier": [
|
|
51
|
+
"verification-before-completion",
|
|
52
|
+
"systematic-debugging"
|
|
53
|
+
],
|
|
54
|
+
"closeout": [
|
|
55
|
+
"loop-agent",
|
|
56
|
+
"verification-before-completion"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"executorModels": {
|
|
60
|
+
"cursor": {
|
|
61
|
+
"LOW": "composer-2.5",
|
|
62
|
+
"MED": "composer-2.5",
|
|
63
|
+
"HIGH": "composer-2.5"
|
|
64
|
+
},
|
|
65
|
+
"pi": {
|
|
66
|
+
"LOW": "gpt-5.3-codex-spark",
|
|
67
|
+
"MED": "glm-5.2",
|
|
68
|
+
"HIGH": "gpt-5.5"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"tasks": [
|
|
72
|
+
{
|
|
73
|
+
"id": "contract-pi",
|
|
74
|
+
"depends_on": [],
|
|
75
|
+
"complexity": "MED",
|
|
76
|
+
"executor": "pi",
|
|
77
|
+
"role": "planner",
|
|
78
|
+
"writePolicy": "read-only",
|
|
79
|
+
"allowedPaths": [
|
|
80
|
+
"**"
|
|
81
|
+
],
|
|
82
|
+
"forbiddenPaths": [
|
|
83
|
+
".harness/**",
|
|
84
|
+
"artifacts/**"
|
|
85
|
+
],
|
|
86
|
+
"outputContract": "Plain Markdown implementation contract; no file writes.",
|
|
87
|
+
"subtask_prompt": "Read the task inputs and return a concise implementation contract: scope, risks, narrow write boundaries, parallel scout opportunities, and verification expectations. Do not edit files."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "scout-src",
|
|
91
|
+
"depends_on": [
|
|
92
|
+
"contract-pi"
|
|
93
|
+
],
|
|
94
|
+
"complexity": "LOW",
|
|
95
|
+
"executor": "pi",
|
|
96
|
+
"role": "scout",
|
|
97
|
+
"writePolicy": "read-only",
|
|
98
|
+
"allowedPaths": [
|
|
99
|
+
"REPLACE/WITH/SOURCE/PATH/**"
|
|
100
|
+
],
|
|
101
|
+
"forbiddenPaths": [
|
|
102
|
+
".harness/**",
|
|
103
|
+
"artifacts/**"
|
|
104
|
+
],
|
|
105
|
+
"outputContract": "Plain Markdown source reconnaissance summary; no file writes.",
|
|
106
|
+
"subtask_prompt": "Perform read-only source reconnaissance. List relevant source files, existing patterns, and risks. Do not edit files."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"id": "scout-tests",
|
|
110
|
+
"depends_on": [
|
|
111
|
+
"contract-pi"
|
|
112
|
+
],
|
|
113
|
+
"complexity": "LOW",
|
|
114
|
+
"executor": "pi",
|
|
115
|
+
"role": "scout",
|
|
116
|
+
"writePolicy": "read-only",
|
|
117
|
+
"allowedPaths": [
|
|
118
|
+
"REPLACE/WITH/TEST/PATH/**"
|
|
119
|
+
],
|
|
120
|
+
"forbiddenPaths": [
|
|
121
|
+
".harness/**",
|
|
122
|
+
"artifacts/**"
|
|
123
|
+
],
|
|
124
|
+
"outputContract": "Plain Markdown test coverage reconnaissance summary; no file writes.",
|
|
125
|
+
"subtask_prompt": "Perform read-only test reconnaissance. List relevant tests, coverage gaps, and verification commands. Do not edit files."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "implement-pi",
|
|
129
|
+
"depends_on": [
|
|
130
|
+
"scout-src",
|
|
131
|
+
"scout-tests"
|
|
132
|
+
],
|
|
133
|
+
"complexity": "HIGH",
|
|
134
|
+
"executor": "pi",
|
|
135
|
+
"role": "implementer",
|
|
136
|
+
"writePolicy": "exclusive",
|
|
137
|
+
"writeSet": [
|
|
138
|
+
"REPLACE/WITH/ALLOWED/PATH/**"
|
|
139
|
+
],
|
|
140
|
+
"allowedPaths": [
|
|
141
|
+
"REPLACE/WITH/ALLOWED/PATH/**"
|
|
142
|
+
],
|
|
143
|
+
"forbiddenPaths": [
|
|
144
|
+
".harness/**",
|
|
145
|
+
"artifacts/**"
|
|
146
|
+
],
|
|
147
|
+
"outputContract": "Implementation summary with changed files, tests run, and risks.",
|
|
148
|
+
"subtask_prompt": "Implement the approved change within writeSet only. Keep the change minimal and update relevant tests/docs inside allowedPaths.",
|
|
149
|
+
"toolProfile": "write"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "review-pi",
|
|
153
|
+
"depends_on": [
|
|
154
|
+
"implement-pi"
|
|
155
|
+
],
|
|
156
|
+
"complexity": "MED",
|
|
157
|
+
"executor": "pi",
|
|
158
|
+
"role": "reviewer",
|
|
159
|
+
"writePolicy": "read-only",
|
|
160
|
+
"allowedPaths": [
|
|
161
|
+
"**"
|
|
162
|
+
],
|
|
163
|
+
"forbiddenPaths": [
|
|
164
|
+
".harness/**",
|
|
165
|
+
"artifacts/**"
|
|
166
|
+
],
|
|
167
|
+
"outputContract": "Plain Markdown review summary; no file writes.",
|
|
168
|
+
"subtask_prompt": "Review upstream implementation output against the contract. Identify drift, missing tests, and residual risks. Do not edit files."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "verify-shell",
|
|
172
|
+
"depends_on": [
|
|
173
|
+
"implement-pi"
|
|
174
|
+
],
|
|
175
|
+
"complexity": "LOW",
|
|
176
|
+
"executor": "shell",
|
|
177
|
+
"role": "verifier",
|
|
178
|
+
"writePolicy": "read-only",
|
|
179
|
+
"allowedPaths": [
|
|
180
|
+
"./**"
|
|
181
|
+
],
|
|
182
|
+
"forbiddenPaths": [
|
|
183
|
+
".harness/**",
|
|
184
|
+
"artifacts/**"
|
|
185
|
+
],
|
|
186
|
+
"outputContract": "Archived shell command stdout/stderr with exit codes; no worktree writes.",
|
|
187
|
+
"subtask_prompt": "Run deterministic loop-agent verification commands and archive outputs.",
|
|
188
|
+
"shell": {
|
|
189
|
+
"preset": "loop-agent-standard-verify",
|
|
190
|
+
"cwd": ".",
|
|
191
|
+
"timeoutMs": 300000
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|