@tea-agent/loop-agent 0.5.0 → 0.6.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.
Files changed (133) hide show
  1. package/AGENTS.md +142 -142
  2. package/CHANGELOG.md +116 -98
  3. package/README.md +195 -195
  4. package/bin/agent-worker.js +22 -22
  5. package/bin/loop-agent.js +21 -21
  6. package/dist/application/dag/args.js +9 -1
  7. package/dist/application/dag/run-dag.js +16 -2
  8. package/dist/cli/command-definitions.js +22 -4
  9. package/dist/cli/help.js +3 -2
  10. package/dist/cli/program.js +7 -5
  11. package/dist/commands/import-prd.js +76 -0
  12. package/dist/commands/init.js +467 -457
  13. package/dist/commands/instructions.js +90 -58
  14. package/dist/commands/loop-benchmark.js +11 -11
  15. package/dist/commands/pi-reuse-benchmark.js +16 -16
  16. package/dist/executors/cursor-executor.js +1 -1
  17. package/dist/executors/dag-pi-executor.js +1 -0
  18. package/dist/executors/pi-sdk-executor.js +63 -1
  19. package/dist/shared/preview.js +39 -0
  20. package/dist/task/runtime.js +27 -27
  21. package/dist/task/source-references.js +221 -0
  22. package/dist/worker/cli.js +62 -1
  23. package/dist/worker/loop-agent/loop-agent-client.js +97 -5
  24. package/dist/worker/materialize/harness-task-materializer.js +162 -5
  25. package/dist/worker/observability/event-store.js +82 -0
  26. package/dist/worker/observability/events.js +79 -0
  27. package/dist/worker/observability/progress-composite.js +33 -0
  28. package/dist/worker/observability/read-model.js +1013 -0
  29. package/dist/worker/observability/snapshot-store.js +43 -0
  30. package/dist/worker/observability/types.js +1 -0
  31. package/dist/worker/observe/paths.js +64 -0
  32. package/dist/worker/observe/routes.js +423 -0
  33. package/dist/worker/observe/server.js +61 -0
  34. package/dist/worker/observe/static/app.js +1419 -0
  35. package/dist/worker/observe/static/index.html +63 -0
  36. package/dist/worker/observe/static/styles.css +613 -0
  37. package/dist/worker/pool/failure-routing.js +41 -6
  38. package/dist/worker/pool/run-store.js +50 -0
  39. package/dist/worker/progress-reporter.js +0 -18
  40. package/dist/worker/run-task/run-task.js +327 -92
  41. package/dist/worker/runner/run-ready.js +112 -4
  42. package/dist/workflows/dag/canvas-observer.js +275 -275
  43. package/dist/workflows/dag/event-observer.js +132 -0
  44. package/dist/workflows/dag/init-hybrid.js +146 -13
  45. package/dist/workflows/dag/observer-compose.js +52 -0
  46. package/docs/README.md +74 -72
  47. package/docs/agent-dag-recovery-playbook.md +184 -184
  48. package/docs/agent-dag-runner.md +42 -42
  49. package/docs/architecture/runtime-boundaries.md +162 -147
  50. package/docs/cursor-executor-usage.md +25 -25
  51. package/docs/decisions/README.md +3 -3
  52. package/docs/design/README.md +49 -36
  53. package/docs/development-principles.md +73 -73
  54. package/docs/dynamic-workflow-dag-engine-roadmap.md +1749 -1749
  55. package/docs/exec-plans/README.md +6 -6
  56. package/docs/exec-plans/active/README.md +12 -7
  57. package/docs/exec-plans/completed/README.md +31 -19
  58. package/docs/feature-workflow.md +186 -186
  59. package/docs/harness-methodology-debugging.md +153 -153
  60. package/docs/harness-methodology-tdd.md +130 -130
  61. package/docs/harness-methodology-verification.md +27 -27
  62. package/docs/init-surface.manifest.json +205 -199
  63. package/docs/loop-agent-harness.md +55 -42
  64. package/docs/production-readiness.md +96 -96
  65. package/docs/progress/README.md +3 -3
  66. package/docs/reports/README.md +9 -5
  67. package/docs/skills/README.md +6 -6
  68. package/docs/skills/vetted-skill-registry.md +26 -26
  69. package/docs/templates/adr.md +60 -60
  70. package/docs/templates/agent-dag-authority-surface-audit.prompt.md +94 -94
  71. package/docs/templates/agent-dag-decision-envelope.schema.json +213 -213
  72. package/docs/templates/agent-dag-decision-gate-dogfood-report.md +117 -117
  73. package/docs/templates/agent-dag-decision-gate.prompt.md +246 -246
  74. package/docs/templates/agent-dag-process-supervisor.prompt.md +98 -98
  75. package/docs/templates/agent-dag-report.schema.json +454 -454
  76. package/docs/templates/agent-dag-review-verdict.prompt.md +68 -68
  77. package/docs/templates/agent-dag.base.json +195 -195
  78. package/docs/templates/agent-dag.final-verification.json +190 -190
  79. package/docs/templates/agent-dag.schema.json +316 -316
  80. package/docs/templates/agent-dag.supervised-implementation.json +500 -500
  81. package/docs/templates/exec-plan.md +64 -64
  82. package/docs/templates/feature-spec.md +53 -53
  83. package/docs/templates/hybrid-dag.json +193 -193
  84. package/docs/templates/init-evolution-review.md +33 -33
  85. package/docs/templates/production-readiness-checklist.md +57 -57
  86. package/docs/templates/progress-log.md +17 -17
  87. package/docs/templates/project-start-checklist.md +9 -9
  88. package/docs/templates/qa-report.md +48 -48
  89. package/docs/templates/sprint-contract.md +29 -29
  90. package/docs/templates/worker-dogfood-evidence.md +52 -0
  91. package/docs/templates/worker-dogfood-setup.md +48 -0
  92. package/docs/verification-matrix.md +41 -41
  93. package/examples/decision-gate-agent-dag.json +123 -123
  94. package/examples/example-dag.json +51 -51
  95. package/examples/hybrid-loop-agent-dag.json +194 -194
  96. package/harness.json +70 -69
  97. package/package.json +66 -66
  98. package/skills/ai-engineering-context/SKILL.md +48 -48
  99. package/skills/code-review-core/SKILL.md +20 -20
  100. package/skills/codebase-scout/SKILL.md +19 -19
  101. package/skills/init-capability-evolution/SKILL.md +69 -69
  102. package/skills/loop-agent/SKILL.md +149 -147
  103. package/skills/loop-agent/references/README.md +67 -67
  104. package/skills/loop-agent/references/command-reference.md +412 -403
  105. package/skills/loop-agent/references/harness-policy.md +263 -259
  106. package/skills/loop-agent/references/hybrid-dag.md +216 -216
  107. package/skills/loop-agent/references/learned/README.md +21 -21
  108. package/skills/loop-agent/references/long-running-loop.md +59 -59
  109. package/skills/loop-agent/references/model-routing.md +36 -36
  110. package/skills/loop-agent/references/multi-worktree.md +54 -54
  111. package/skills/loop-agent/references/one-shot-runs.md +85 -85
  112. package/skills/loop-agent/references/orchestrator-and-interventions.md +169 -169
  113. package/skills/loop-agent/references/pi-prompt.md +23 -23
  114. package/skills/loop-agent/references/pi-subagent-assisted-mode.md +81 -81
  115. package/skills/loop-agent/references/post-implementation-and-patterns.md +44 -44
  116. package/skills/loop-agent/references/task-workflow.md +89 -84
  117. package/skills/loop-agent/references/verification-and-failure-handling.md +128 -128
  118. package/skills/requesting-code-review/SKILL.md +101 -101
  119. package/skills/requesting-code-review/code-reviewer.md +168 -168
  120. package/skills/systematic-debugging/CREATION-LOG.md +119 -119
  121. package/skills/systematic-debugging/SKILL.md +296 -296
  122. package/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
  123. package/skills/systematic-debugging/condition-based-waiting.md +115 -115
  124. package/skills/systematic-debugging/defense-in-depth.md +122 -122
  125. package/skills/systematic-debugging/find-polluter.sh +63 -63
  126. package/skills/systematic-debugging/root-cause-tracing.md +169 -169
  127. package/skills/systematic-debugging/test-academic.md +14 -14
  128. package/skills/systematic-debugging/test-pressure-1.md +58 -58
  129. package/skills/systematic-debugging/test-pressure-2.md +68 -68
  130. package/skills/systematic-debugging/test-pressure-3.md +69 -69
  131. package/skills/test-driven-development/SKILL.md +20 -20
  132. package/skills/verification-before-completion/SKILL.md +154 -154
  133. package/skills/webapp-testing/SKILL.md +19 -19
@@ -1,500 +1,500 @@
1
- {
2
- "$schema": "./agent-dag.schema.json",
3
- "version": 2,
4
- "title": "Agent DAG supervised implementation template",
5
- "objective": "Demonstrate a reusable supervised implementation DAG: contract → parallel scouts → plan → write-set audit → write-set gate → implement → soft verify → process supervisor → repair → hard verify → review verdict → review gate → decision gate → closeout. Write-set, process, and review verdict nodes emit first-line VERDICT for deterministic gates, reducing main-session intervention.",
6
- "successCriteria": [
7
- "contract-pi returns a read-only implementation contract with narrow write boundaries",
8
- "scout-src and scout-tests run in parallel without write conflicts",
9
- "plan-pi produces a writeSet coverage matrix with explicit exclusive owners",
10
- "write-set-audit-pi validates coverage and returns VERDICT pass or request-revision",
11
- "write-set-gate-shell blocks implement-pi unless write-set-audit-pi first-line VERDICT is pass",
12
- "implement-pi and repair-pi write only inside declared writeSet",
13
- "soft-verify-shell archives focused test exit codes before process supervision",
14
- "process-supervisor-pi returns first-line VERDICT pass or request-revision",
15
- "process-gate-shell deterministically accepts valid supervisor verdicts",
16
- "hard-verify-shell archives lint/typecheck/focused tests with active-DAG governance when check-repo runs",
17
- "review-pi returns first-line VERDICT using review verdict prompt invariants",
18
- "review-gate-shell blocks downstream nodes unless review VERDICT is pass",
19
- "decision-pi returns DECISION_ENVELOPE_JSON without pausing runtime by default",
20
- "closeout-pi summarizes evidence without writing files"
21
- ],
22
- "globalConstraints": [
23
- "Replace every REPLACE/WITH/... placeholder with concrete repo paths before execution; do not leave template placeholders in production DAG JSON.",
24
- "Do not commit from DAG nodes; main session inspects and commits after Decision Gate approval.",
25
- "Use only existing executors: pi, shell, static; cursor is optional when explicitly enabled. Pi writer nodes must set toolProfile=write.",
26
- "Read-only nodes must not write repository files, including root artifacts/**.",
27
- "Exclusive writer nodes must stay within declared writeSet.",
28
- "Do not implement automatic retry/resume or mutate historical completed facts.",
29
- "Do not create executor: supervisor; supervisor is a role on executor=pi.",
30
- "Do not create executor: human, executor: decision, or browser executor.",
31
- "Shell governance inside active DAG must use HARNESS_ALLOW_ACTIVE_DAG_RUNS=1 bash scripts/check-repo.sh.",
32
- "On Windows, Bash script commands must run through Git Bash or a configured compatible Bash; do not require WSL or POSIX filesystem paths.",
33
- "Actual file operation paths must be macOS/Windows compatible; use / only for stable repo refs, JSON/Markdown evidence refs, and glob conventions.",
34
- "Prompt templates must not ask main session to write artifacts; node output is the artifact and runner archives it under .harness/dag-runs/.",
35
- "Every task must explicitly declare executor; defaults.executor is schema-only and not a runtime fallback.",
36
- "Prefer same-rank parallel read-only scouts over serial chains when outputs are independent.",
37
- "Same-rank exclusive writeSet entries must be disjoint.",
38
- "Use executorModels for model routing; do not add defaults.model or legacy top-level models."
39
- ],
40
- "defaults": {
41
- "executor": "pi",
42
- "contextProfile": "slim",
43
- "skills": [
44
- "ai-engineering-context"
45
- ],
46
- "writePolicy": "read-only"
47
- },
48
- "skillsByRole": {
49
- "planner": [
50
- "loop-agent"
51
- ],
52
- "scout": [
53
- "ai-engineering-context"
54
- ],
55
- "implementer": [
56
- "verification-before-completion"
57
- ],
58
- "reviewer": [
59
- "requesting-code-review",
60
- "verification-before-completion"
61
- ],
62
- "supervisor": [
63
- "verification-before-completion",
64
- "loop-agent"
65
- ],
66
- "verifier": [
67
- "verification-before-completion",
68
- "systematic-debugging"
69
- ],
70
- "closeout": [
71
- "loop-agent",
72
- "verification-before-completion"
73
- ]
74
- },
75
- "executorModels": {
76
- "cursor": {
77
- "LOW": "composer-2.5",
78
- "MED": "composer-2.5",
79
- "HIGH": "gpt-5.5"
80
- },
81
- "pi": {
82
- "LOW": "gpt-5.3-codex-spark",
83
- "MED": "glm-5.2",
84
- "HIGH": "gpt-5.5"
85
- }
86
- },
87
- "verifyStrategy": {
88
- "intermediateQuota": "1",
89
- "finalQuota": "full",
90
- "focusedCommandSource": "adapter"
91
- },
92
- "tasks": [
93
- {
94
- "id": "contract-pi",
95
- "depends_on": [],
96
- "complexity": "MED",
97
- "executor": "pi",
98
- "role": "planner",
99
- "writePolicy": "read-only",
100
- "allowedPaths": [
101
- "**"
102
- ],
103
- "forbiddenPaths": [
104
- ".harness/**",
105
- "artifacts/**"
106
- ],
107
- "outputContract": "Plain Markdown implementation contract: scope, risks, parallel scout opportunities, verification expectations. No file writes.",
108
- "subtask_prompt": "Read the DAG objective and success criteria. Return a concise implementation contract covering scope, narrow write boundaries, risks, and verification expectations. Do not edit files or write root artifacts/**."
109
- },
110
- {
111
- "id": "scout-src",
112
- "depends_on": [
113
- "contract-pi"
114
- ],
115
- "complexity": "LOW",
116
- "executor": "pi",
117
- "role": "scout",
118
- "writePolicy": "read-only",
119
- "allowedPaths": [
120
- "REPLACE/WITH/SOURCE/PATH/**"
121
- ],
122
- "forbiddenPaths": [
123
- ".harness/**",
124
- "artifacts/**"
125
- ],
126
- "outputContract": "Plain Markdown source reconnaissance summary; no file writes.",
127
- "subtask_prompt": "Perform read-only source reconnaissance under allowedPaths. List relevant files, patterns, and risks. Do not edit files."
128
- },
129
- {
130
- "id": "scout-tests",
131
- "depends_on": [
132
- "contract-pi"
133
- ],
134
- "complexity": "LOW",
135
- "executor": "pi",
136
- "role": "scout",
137
- "writePolicy": "read-only",
138
- "allowedPaths": [
139
- "REPLACE/WITH/TEST/PATH/**"
140
- ],
141
- "forbiddenPaths": [
142
- ".harness/**",
143
- "artifacts/**"
144
- ],
145
- "outputContract": "Plain Markdown test coverage reconnaissance summary; no file writes.",
146
- "subtask_prompt": "Perform read-only test reconnaissance under allowedPaths. List relevant tests, coverage gaps, and focused verification commands. Do not edit files."
147
- },
148
- {
149
- "id": "plan-pi",
150
- "depends_on": [
151
- "scout-src",
152
- "scout-tests"
153
- ],
154
- "complexity": "MED",
155
- "executor": "pi",
156
- "role": "planner",
157
- "writePolicy": "read-only",
158
- "allowedPaths": [
159
- "**"
160
- ],
161
- "forbiddenPaths": [
162
- ".harness/**",
163
- "artifacts/**"
164
- ],
165
- "outputContract": "Plain Markdown plan with WriteSet Coverage Matrix (file → owning exclusive node id). No file writes.",
166
- "subtask_prompt": "Synthesize upstream scouts into an implementation plan. Include a WriteSet Coverage Matrix table mapping each file that must change to exactly one future exclusive implementer/repair node id. Flag parallel work and verification commands. Do not edit files."
167
- },
168
- {
169
- "id": "write-set-audit-pi",
170
- "depends_on": [
171
- "plan-pi"
172
- ],
173
- "complexity": "MED",
174
- "executor": "pi",
175
- "role": "reviewer",
176
- "writePolicy": "read-only",
177
- "allowedPaths": [
178
- "**"
179
- ],
180
- "forbiddenPaths": [
181
- ".harness/**",
182
- "artifacts/**"
183
- ],
184
- "outputContract": "Plain Markdown whose first non-empty line is VERDICT: pass or VERDICT: request-revision; includes writeSet coverage findings. No file writes.",
185
- "subtask_prompt": "Audit plan-pi WriteSet Coverage Matrix against the contract. First non-empty line must be exactly VERDICT: pass or VERDICT: request-revision. List Critical/Important gaps when any required file lacks a single exclusive owner or overlaps forbidden paths. Do not edit files or write root artifacts/**."
186
- },
187
- {
188
- "id": "write-set-gate-shell",
189
- "depends_on": [
190
- "write-set-audit-pi"
191
- ],
192
- "complexity": "LOW",
193
- "executor": "shell",
194
- "role": "verifier",
195
- "writePolicy": "read-only",
196
- "allowedPaths": [
197
- "**"
198
- ],
199
- "forbiddenPaths": [
200
- ".harness/**",
201
- "artifacts/**"
202
- ],
203
- "outputContract": "Deterministic write-set audit verdict gate: exit 0 only when write-set-audit-pi first non-empty assistant output line is pass.",
204
- "subtask_prompt": "Deterministic gate: block implement-pi unless write-set-audit-pi emitted VERDICT: pass.",
205
- "shell": {
206
- "verdictGate": {
207
- "fromNodeId": "write-set-audit-pi",
208
- "accept": [
209
- "VERDICT: pass"
210
- ],
211
- "label": "write-set audit",
212
- "lineMode": "first-verdict-line"
213
- },
214
- "cwd": ".",
215
- "timeoutMs": 60000
216
- }
217
- },
218
- {
219
- "id": "implement-pi",
220
- "depends_on": [
221
- "write-set-gate-shell"
222
- ],
223
- "complexity": "HIGH",
224
- "executor": "pi",
225
- "role": "implementer",
226
- "writePolicy": "exclusive",
227
- "writeSet": [
228
- "REPLACE/WITH/IMPLEMENT/WRITESET/**"
229
- ],
230
- "allowedPaths": [
231
- "REPLACE/WITH/IMPLEMENT/**"
232
- ],
233
- "forbiddenPaths": [
234
- ".harness/**",
235
- "artifacts/**"
236
- ],
237
- "outputContract": "Implementation summary with changed files, focused tests run, and risks. Must not ask main session to write artifacts.",
238
- "subtask_prompt": "Implement the approved change within writeSet only after write-set-gate-shell passed (upstream VERDICT: pass). If write-set gate blocked, output blocked reason without editing files. Keep changes minimal and run focused tests inside allowedPaths when implementing.",
239
- "toolProfile": "write"
240
- },
241
- {
242
- "id": "soft-verify-shell",
243
- "depends_on": [
244
- "implement-pi"
245
- ],
246
- "complexity": "LOW",
247
- "executor": "shell",
248
- "role": "verifier",
249
- "writePolicy": "read-only",
250
- "allowedPaths": [
251
- "REPLACE/WITH/IMPLEMENT/**",
252
- "./**"
253
- ],
254
- "forbiddenPaths": [
255
- ".harness/**",
256
- "artifacts/**"
257
- ],
258
- "outputContract": "Archived shell stdout/stderr with exit codes for focused verification; no worktree writes.",
259
- "subtask_prompt": "Run focused soft verification before process supervision.",
260
- "shell": {
261
- "commands": [
262
- "npx vitest run REPLACE/WITH/FOCUSED/TEST/GLOB.test.ts --reporter=dot"
263
- ],
264
- "verifyEvidence": {
265
- "phase": "intermediate",
266
- "quota": "1",
267
- "commandSource": "inline",
268
- "commandCount": 1,
269
- "commandLabels": [
270
- "focused template verification"
271
- ]
272
- },
273
- "cwd": ".",
274
- "timeoutMs": 300000
275
- }
276
- },
277
- {
278
- "id": "process-supervisor-pi",
279
- "depends_on": [
280
- "soft-verify-shell",
281
- "implement-pi"
282
- ],
283
- "complexity": "HIGH",
284
- "executor": "pi",
285
- "role": "supervisor",
286
- "writePolicy": "read-only",
287
- "allowedPaths": [
288
- "**"
289
- ],
290
- "forbiddenPaths": [
291
- ".harness/**",
292
- "artifacts/**"
293
- ],
294
- "outputContract": "Plain Markdown whose first non-empty line is VERDICT: pass or VERDICT: request-revision, followed by a REPAIR_ARTIFACT_JSON fenced block. Audit writeSet coverage, boundary drift, verification gaps, repair scope. No file writes.",
295
- "subtask_prompt_markdown": "./agent-dag-process-supervisor.prompt.md"
296
- },
297
- {
298
- "id": "process-gate-shell",
299
- "depends_on": [
300
- "process-supervisor-pi"
301
- ],
302
- "complexity": "LOW",
303
- "executor": "shell",
304
- "role": "verifier",
305
- "writePolicy": "read-only",
306
- "allowedPaths": [
307
- "**"
308
- ],
309
- "forbiddenPaths": [
310
- ".harness/**",
311
- "artifacts/**"
312
- ],
313
- "outputContract": "Deterministic process supervisor verdict gate: exit 0 when first non-empty assistant output line is pass or request-revision; exit non-zero otherwise.",
314
- "subtask_prompt": "Deterministic gate: validate process-supervisor-pi first-line VERDICT before repair/hard-verify.",
315
- "shell": {
316
- "verdictGate": {
317
- "fromNodeId": "process-supervisor-pi",
318
- "accept": [
319
- "VERDICT: pass",
320
- "VERDICT: request-revision"
321
- ],
322
- "label": "process",
323
- "lineMode": "first-verdict-line"
324
- },
325
- "repairArtifactGate": {
326
- "fromNodeId": "process-supervisor-pi"
327
- },
328
- "cwd": ".",
329
- "timeoutMs": 60000
330
- }
331
- },
332
- {
333
- "id": "repair-pi",
334
- "depends_on": [
335
- "process-gate-shell",
336
- "process-supervisor-pi"
337
- ],
338
- "complexity": "HIGH",
339
- "executor": "pi",
340
- "role": "implementer",
341
- "writePolicy": "exclusive",
342
- "writeSet": [
343
- "REPLACE/WITH/REPAIR/WRITESET/**",
344
- "docs/templates/agent-dag.supervised-implementation.json",
345
- "docs/templates/agent-dag-process-supervisor.prompt.md",
346
- "docs/templates/agent-dag-review-verdict.prompt.md",
347
- "docs/templates/agent-dag.schema.json",
348
- "./src/workflows/dag/types.ts",
349
- "./src/workflows/dag/skills.ts",
350
- "./src/executors/dag-pi-executor.ts"
351
- ],
352
- "allowedPaths": [
353
- "REPLACE/WITH/REPAIR/**",
354
- "docs/templates/**",
355
- "./src/workflows/dag/**",
356
- "./src/executors/**"
357
- ],
358
- "forbiddenPaths": [
359
- ".harness/**",
360
- "artifacts/**"
361
- ],
362
- "outputContract": "Repair summary or explicit no-op when process supervisor passed; changed files and tests when revised. Must not ask main session to write artifacts.",
363
- "subtask_prompt": "If process-supervisor-pi returned VERDICT: request-revision, apply bounded fixes within writeSet addressing REPAIR_ARTIFACT_JSON.fixScope and preserving REPAIR_ARTIFACT_JSON.invariant. Use REPAIR_ARTIFACT_JSON.failureClass and rootCause before raw logs; raw log is fallback evidence only when rawLogFallbackAllowed is true. If VERDICT: pass, return no-op with evidence. Re-run focused tests when you change code.",
364
- "toolProfile": "write"
365
- },
366
- {
367
- "id": "hard-verify-shell",
368
- "depends_on": [
369
- "repair-pi"
370
- ],
371
- "complexity": "LOW",
372
- "executor": "shell",
373
- "role": "verifier",
374
- "writePolicy": "read-only",
375
- "allowedPaths": [
376
- "./**",
377
- "docs/**",
378
- "scripts/**"
379
- ],
380
- "forbiddenPaths": [
381
- ".harness/**",
382
- "artifacts/**"
383
- ],
384
- "outputContract": "Archived hard verification stdout/stderr with exit codes; no worktree writes.",
385
- "subtask_prompt": "Run hard verification after repair round.",
386
- "shell": {
387
- "preset": "loop-agent-standard-verify",
388
- "commands": [
389
- "HARNESS_ALLOW_ACTIVE_DAG_RUNS=1 bash scripts/check-repo.sh"
390
- ],
391
- "verifyEvidence": {
392
- "phase": "final",
393
- "quota": "full",
394
- "commandSource": "inline",
395
- "commandCount": 1,
396
- "commandLabels": [
397
- "active DAG repo governance checks"
398
- ],
399
- "finalFullRequired": true
400
- },
401
- "cwd": ".",
402
- "timeoutMs": 300000
403
- }
404
- },
405
- {
406
- "id": "review-pi",
407
- "depends_on": [
408
- "hard-verify-shell"
409
- ],
410
- "complexity": "HIGH",
411
- "executor": "pi",
412
- "role": "reviewer",
413
- "writePolicy": "read-only",
414
- "allowedPaths": [
415
- "**"
416
- ],
417
- "forbiddenPaths": [
418
- ".harness/**",
419
- "artifacts/**"
420
- ],
421
- "outputContract": "Plain Markdown whose first non-empty line is VERDICT: pass or VERDICT: request-revision; Critical/Important findings force request-revision. No file writes.",
422
- "subtask_prompt_markdown": "./agent-dag-review-verdict.prompt.md"
423
- },
424
- {
425
- "id": "review-gate-shell",
426
- "depends_on": [
427
- "review-pi"
428
- ],
429
- "complexity": "LOW",
430
- "executor": "shell",
431
- "role": "verifier",
432
- "writePolicy": "read-only",
433
- "allowedPaths": [
434
- "**"
435
- ],
436
- "forbiddenPaths": [
437
- ".harness/**",
438
- "artifacts/**"
439
- ],
440
- "outputContract": "Deterministic review verdict gate: exit 0 only when review-pi first non-empty assistant output line is pass.",
441
- "subtask_prompt": "Deterministic gate: block decision gate unless review-pi emitted VERDICT: pass.",
442
- "shell": {
443
- "verdictGate": {
444
- "fromNodeId": "review-pi",
445
- "accept": [
446
- "VERDICT: pass"
447
- ],
448
- "label": "review",
449
- "lineMode": "first-verdict-line"
450
- },
451
- "cwd": ".",
452
- "timeoutMs": 60000
453
- }
454
- },
455
- {
456
- "id": "decision-pi",
457
- "depends_on": [
458
- "review-gate-shell",
459
- "hard-verify-shell"
460
- ],
461
- "complexity": "HIGH",
462
- "executor": "pi",
463
- "role": "reviewer",
464
- "writePolicy": "read-only",
465
- "allowedPaths": [
466
- "**"
467
- ],
468
- "forbiddenPaths": [
469
- ".harness/**",
470
- "artifacts/**"
471
- ],
472
- "outputContract": "Markdown with exactly one DECISION_ENVELOPE_JSON fenced block plus evidence summary. No file writes.",
473
- "subtask_prompt_markdown": "./agent-dag-decision-gate.prompt.md",
474
- "decisionGate": {
475
- "enabled": true,
476
- "schemaVersion": 1,
477
- "mode": "record-only"
478
- }
479
- },
480
- {
481
- "id": "closeout-pi",
482
- "depends_on": [
483
- "decision-pi"
484
- ],
485
- "complexity": "MED",
486
- "executor": "pi",
487
- "role": "closeout",
488
- "writePolicy": "read-only",
489
- "allowedPaths": [
490
- "**"
491
- ],
492
- "forbiddenPaths": [
493
- ".harness/**",
494
- "artifacts/**"
495
- ],
496
- "outputContract": "Plain Markdown closeout referencing verification, supervisor/review verdicts, and decision envelope. No file writes.",
497
- "subtask_prompt": "Summarize the supervised DAG outcome: contract, write-set audit, implement/repair, soft/hard verify, process supervisor and review verdicts, decision-pi envelope, and recommended main-session next step. Do not edit files or write root artifacts/**."
498
- }
499
- ]
500
- }
1
+ {
2
+ "$schema": "./agent-dag.schema.json",
3
+ "version": 2,
4
+ "title": "Agent DAG supervised implementation template",
5
+ "objective": "Demonstrate a reusable supervised implementation DAG: contract → parallel scouts → plan → write-set audit → write-set gate → implement → soft verify → process supervisor → repair → hard verify → review verdict → review gate → decision gate → closeout. Write-set, process, and review verdict nodes emit first-line VERDICT for deterministic gates, reducing main-session intervention.",
6
+ "successCriteria": [
7
+ "contract-pi returns a read-only implementation contract with narrow write boundaries",
8
+ "scout-src and scout-tests run in parallel without write conflicts",
9
+ "plan-pi produces a writeSet coverage matrix with explicit exclusive owners",
10
+ "write-set-audit-pi validates coverage and returns VERDICT pass or request-revision",
11
+ "write-set-gate-shell blocks implement-pi unless write-set-audit-pi first-line VERDICT is pass",
12
+ "implement-pi and repair-pi write only inside declared writeSet",
13
+ "soft-verify-shell archives focused test exit codes before process supervision",
14
+ "process-supervisor-pi returns first-line VERDICT pass or request-revision",
15
+ "process-gate-shell deterministically accepts valid supervisor verdicts",
16
+ "hard-verify-shell archives lint/typecheck/focused tests with active-DAG governance when check-repo runs",
17
+ "review-pi returns first-line VERDICT using review verdict prompt invariants",
18
+ "review-gate-shell blocks downstream nodes unless review VERDICT is pass",
19
+ "decision-pi returns DECISION_ENVELOPE_JSON without pausing runtime by default",
20
+ "closeout-pi summarizes evidence without writing files"
21
+ ],
22
+ "globalConstraints": [
23
+ "Replace every REPLACE/WITH/... placeholder with concrete repo paths before execution; do not leave template placeholders in production DAG JSON.",
24
+ "Do not commit from DAG nodes; main session inspects and commits after Decision Gate approval.",
25
+ "Use only existing executors: pi, shell, static; cursor is optional when explicitly enabled. Pi writer nodes must set toolProfile=write.",
26
+ "Read-only nodes must not write repository files, including root artifacts/**.",
27
+ "Exclusive writer nodes must stay within declared writeSet.",
28
+ "Do not implement automatic retry/resume or mutate historical completed facts.",
29
+ "Do not create executor: supervisor; supervisor is a role on executor=pi.",
30
+ "Do not create executor: human, executor: decision, or browser executor.",
31
+ "Shell governance inside active DAG must use HARNESS_ALLOW_ACTIVE_DAG_RUNS=1 bash scripts/check-repo.sh.",
32
+ "On Windows, Bash script commands must run through Git Bash or a configured compatible Bash; do not require WSL or POSIX filesystem paths.",
33
+ "Actual file operation paths must be macOS/Windows compatible; use / only for stable repo refs, JSON/Markdown evidence refs, and glob conventions.",
34
+ "Prompt templates must not ask main session to write artifacts; node output is the artifact and runner archives it under .harness/dag-runs/.",
35
+ "Every task must explicitly declare executor; defaults.executor is schema-only and not a runtime fallback.",
36
+ "Prefer same-rank parallel read-only scouts over serial chains when outputs are independent.",
37
+ "Same-rank exclusive writeSet entries must be disjoint.",
38
+ "Use executorModels for model routing; do not add defaults.model or legacy top-level models."
39
+ ],
40
+ "defaults": {
41
+ "executor": "pi",
42
+ "contextProfile": "slim",
43
+ "skills": [
44
+ "ai-engineering-context"
45
+ ],
46
+ "writePolicy": "read-only"
47
+ },
48
+ "skillsByRole": {
49
+ "planner": [
50
+ "loop-agent"
51
+ ],
52
+ "scout": [
53
+ "ai-engineering-context"
54
+ ],
55
+ "implementer": [
56
+ "verification-before-completion"
57
+ ],
58
+ "reviewer": [
59
+ "requesting-code-review",
60
+ "verification-before-completion"
61
+ ],
62
+ "supervisor": [
63
+ "verification-before-completion",
64
+ "loop-agent"
65
+ ],
66
+ "verifier": [
67
+ "verification-before-completion",
68
+ "systematic-debugging"
69
+ ],
70
+ "closeout": [
71
+ "loop-agent",
72
+ "verification-before-completion"
73
+ ]
74
+ },
75
+ "executorModels": {
76
+ "cursor": {
77
+ "LOW": "composer-2.5",
78
+ "MED": "composer-2.5",
79
+ "HIGH": "gpt-5.5"
80
+ },
81
+ "pi": {
82
+ "LOW": "gpt-5.3-codex-spark",
83
+ "MED": "glm-5.2",
84
+ "HIGH": "gpt-5.5"
85
+ }
86
+ },
87
+ "verifyStrategy": {
88
+ "intermediateQuota": "1",
89
+ "finalQuota": "full",
90
+ "focusedCommandSource": "adapter"
91
+ },
92
+ "tasks": [
93
+ {
94
+ "id": "contract-pi",
95
+ "depends_on": [],
96
+ "complexity": "MED",
97
+ "executor": "pi",
98
+ "role": "planner",
99
+ "writePolicy": "read-only",
100
+ "allowedPaths": [
101
+ "**"
102
+ ],
103
+ "forbiddenPaths": [
104
+ ".harness/**",
105
+ "artifacts/**"
106
+ ],
107
+ "outputContract": "Plain Markdown implementation contract: scope, risks, parallel scout opportunities, verification expectations. No file writes.",
108
+ "subtask_prompt": "Read the DAG objective and success criteria. Return a concise implementation contract covering scope, narrow write boundaries, risks, and verification expectations. Do not edit files or write root artifacts/**."
109
+ },
110
+ {
111
+ "id": "scout-src",
112
+ "depends_on": [
113
+ "contract-pi"
114
+ ],
115
+ "complexity": "LOW",
116
+ "executor": "pi",
117
+ "role": "scout",
118
+ "writePolicy": "read-only",
119
+ "allowedPaths": [
120
+ "REPLACE/WITH/SOURCE/PATH/**"
121
+ ],
122
+ "forbiddenPaths": [
123
+ ".harness/**",
124
+ "artifacts/**"
125
+ ],
126
+ "outputContract": "Plain Markdown source reconnaissance summary; no file writes.",
127
+ "subtask_prompt": "Perform read-only source reconnaissance under allowedPaths. List relevant files, patterns, and risks. Do not edit files."
128
+ },
129
+ {
130
+ "id": "scout-tests",
131
+ "depends_on": [
132
+ "contract-pi"
133
+ ],
134
+ "complexity": "LOW",
135
+ "executor": "pi",
136
+ "role": "scout",
137
+ "writePolicy": "read-only",
138
+ "allowedPaths": [
139
+ "REPLACE/WITH/TEST/PATH/**"
140
+ ],
141
+ "forbiddenPaths": [
142
+ ".harness/**",
143
+ "artifacts/**"
144
+ ],
145
+ "outputContract": "Plain Markdown test coverage reconnaissance summary; no file writes.",
146
+ "subtask_prompt": "Perform read-only test reconnaissance under allowedPaths. List relevant tests, coverage gaps, and focused verification commands. Do not edit files."
147
+ },
148
+ {
149
+ "id": "plan-pi",
150
+ "depends_on": [
151
+ "scout-src",
152
+ "scout-tests"
153
+ ],
154
+ "complexity": "MED",
155
+ "executor": "pi",
156
+ "role": "planner",
157
+ "writePolicy": "read-only",
158
+ "allowedPaths": [
159
+ "**"
160
+ ],
161
+ "forbiddenPaths": [
162
+ ".harness/**",
163
+ "artifacts/**"
164
+ ],
165
+ "outputContract": "Plain Markdown plan with WriteSet Coverage Matrix (file → owning exclusive node id). No file writes.",
166
+ "subtask_prompt": "Synthesize upstream scouts into an implementation plan. Include a WriteSet Coverage Matrix table mapping each file that must change to exactly one future exclusive implementer/repair node id. Flag parallel work and verification commands. Do not edit files."
167
+ },
168
+ {
169
+ "id": "write-set-audit-pi",
170
+ "depends_on": [
171
+ "plan-pi"
172
+ ],
173
+ "complexity": "MED",
174
+ "executor": "pi",
175
+ "role": "reviewer",
176
+ "writePolicy": "read-only",
177
+ "allowedPaths": [
178
+ "**"
179
+ ],
180
+ "forbiddenPaths": [
181
+ ".harness/**",
182
+ "artifacts/**"
183
+ ],
184
+ "outputContract": "Plain Markdown whose first non-empty line is VERDICT: pass or VERDICT: request-revision; includes writeSet coverage findings. No file writes.",
185
+ "subtask_prompt": "Audit plan-pi WriteSet Coverage Matrix against the contract. First non-empty line must be exactly VERDICT: pass or VERDICT: request-revision. List Critical/Important gaps when any required file lacks a single exclusive owner or overlaps forbidden paths. Do not edit files or write root artifacts/**."
186
+ },
187
+ {
188
+ "id": "write-set-gate-shell",
189
+ "depends_on": [
190
+ "write-set-audit-pi"
191
+ ],
192
+ "complexity": "LOW",
193
+ "executor": "shell",
194
+ "role": "verifier",
195
+ "writePolicy": "read-only",
196
+ "allowedPaths": [
197
+ "**"
198
+ ],
199
+ "forbiddenPaths": [
200
+ ".harness/**",
201
+ "artifacts/**"
202
+ ],
203
+ "outputContract": "Deterministic write-set audit verdict gate: exit 0 only when write-set-audit-pi first non-empty assistant output line is pass.",
204
+ "subtask_prompt": "Deterministic gate: block implement-pi unless write-set-audit-pi emitted VERDICT: pass.",
205
+ "shell": {
206
+ "verdictGate": {
207
+ "fromNodeId": "write-set-audit-pi",
208
+ "accept": [
209
+ "VERDICT: pass"
210
+ ],
211
+ "label": "write-set audit",
212
+ "lineMode": "first-verdict-line"
213
+ },
214
+ "cwd": ".",
215
+ "timeoutMs": 60000
216
+ }
217
+ },
218
+ {
219
+ "id": "implement-pi",
220
+ "depends_on": [
221
+ "write-set-gate-shell"
222
+ ],
223
+ "complexity": "HIGH",
224
+ "executor": "pi",
225
+ "role": "implementer",
226
+ "writePolicy": "exclusive",
227
+ "writeSet": [
228
+ "REPLACE/WITH/IMPLEMENT/WRITESET/**"
229
+ ],
230
+ "allowedPaths": [
231
+ "REPLACE/WITH/IMPLEMENT/**"
232
+ ],
233
+ "forbiddenPaths": [
234
+ ".harness/**",
235
+ "artifacts/**"
236
+ ],
237
+ "outputContract": "Implementation summary with changed files, focused tests run, and risks. Must not ask main session to write artifacts.",
238
+ "subtask_prompt": "Implement the approved change within writeSet only after write-set-gate-shell passed (upstream VERDICT: pass). If write-set gate blocked, output blocked reason without editing files. Keep changes minimal and run focused tests inside allowedPaths when implementing.",
239
+ "toolProfile": "write"
240
+ },
241
+ {
242
+ "id": "soft-verify-shell",
243
+ "depends_on": [
244
+ "implement-pi"
245
+ ],
246
+ "complexity": "LOW",
247
+ "executor": "shell",
248
+ "role": "verifier",
249
+ "writePolicy": "read-only",
250
+ "allowedPaths": [
251
+ "REPLACE/WITH/IMPLEMENT/**",
252
+ "./**"
253
+ ],
254
+ "forbiddenPaths": [
255
+ ".harness/**",
256
+ "artifacts/**"
257
+ ],
258
+ "outputContract": "Archived shell stdout/stderr with exit codes for focused verification; no worktree writes.",
259
+ "subtask_prompt": "Run focused soft verification before process supervision.",
260
+ "shell": {
261
+ "commands": [
262
+ "npx vitest run REPLACE/WITH/FOCUSED/TEST/GLOB.test.ts --reporter=dot"
263
+ ],
264
+ "verifyEvidence": {
265
+ "phase": "intermediate",
266
+ "quota": "1",
267
+ "commandSource": "inline",
268
+ "commandCount": 1,
269
+ "commandLabels": [
270
+ "focused template verification"
271
+ ]
272
+ },
273
+ "cwd": ".",
274
+ "timeoutMs": 300000
275
+ }
276
+ },
277
+ {
278
+ "id": "process-supervisor-pi",
279
+ "depends_on": [
280
+ "soft-verify-shell",
281
+ "implement-pi"
282
+ ],
283
+ "complexity": "HIGH",
284
+ "executor": "pi",
285
+ "role": "supervisor",
286
+ "writePolicy": "read-only",
287
+ "allowedPaths": [
288
+ "**"
289
+ ],
290
+ "forbiddenPaths": [
291
+ ".harness/**",
292
+ "artifacts/**"
293
+ ],
294
+ "outputContract": "Plain Markdown whose first non-empty line is VERDICT: pass or VERDICT: request-revision, followed by a REPAIR_ARTIFACT_JSON fenced block. Audit writeSet coverage, boundary drift, verification gaps, repair scope. No file writes.",
295
+ "subtask_prompt_markdown": "./agent-dag-process-supervisor.prompt.md"
296
+ },
297
+ {
298
+ "id": "process-gate-shell",
299
+ "depends_on": [
300
+ "process-supervisor-pi"
301
+ ],
302
+ "complexity": "LOW",
303
+ "executor": "shell",
304
+ "role": "verifier",
305
+ "writePolicy": "read-only",
306
+ "allowedPaths": [
307
+ "**"
308
+ ],
309
+ "forbiddenPaths": [
310
+ ".harness/**",
311
+ "artifacts/**"
312
+ ],
313
+ "outputContract": "Deterministic process supervisor verdict gate: exit 0 when first non-empty assistant output line is pass or request-revision; exit non-zero otherwise.",
314
+ "subtask_prompt": "Deterministic gate: validate process-supervisor-pi first-line VERDICT before repair/hard-verify.",
315
+ "shell": {
316
+ "verdictGate": {
317
+ "fromNodeId": "process-supervisor-pi",
318
+ "accept": [
319
+ "VERDICT: pass",
320
+ "VERDICT: request-revision"
321
+ ],
322
+ "label": "process",
323
+ "lineMode": "first-verdict-line"
324
+ },
325
+ "repairArtifactGate": {
326
+ "fromNodeId": "process-supervisor-pi"
327
+ },
328
+ "cwd": ".",
329
+ "timeoutMs": 60000
330
+ }
331
+ },
332
+ {
333
+ "id": "repair-pi",
334
+ "depends_on": [
335
+ "process-gate-shell",
336
+ "process-supervisor-pi"
337
+ ],
338
+ "complexity": "HIGH",
339
+ "executor": "pi",
340
+ "role": "implementer",
341
+ "writePolicy": "exclusive",
342
+ "writeSet": [
343
+ "REPLACE/WITH/REPAIR/WRITESET/**",
344
+ "docs/templates/agent-dag.supervised-implementation.json",
345
+ "docs/templates/agent-dag-process-supervisor.prompt.md",
346
+ "docs/templates/agent-dag-review-verdict.prompt.md",
347
+ "docs/templates/agent-dag.schema.json",
348
+ "./src/workflows/dag/types.ts",
349
+ "./src/workflows/dag/skills.ts",
350
+ "./src/executors/dag-pi-executor.ts"
351
+ ],
352
+ "allowedPaths": [
353
+ "REPLACE/WITH/REPAIR/**",
354
+ "docs/templates/**",
355
+ "./src/workflows/dag/**",
356
+ "./src/executors/**"
357
+ ],
358
+ "forbiddenPaths": [
359
+ ".harness/**",
360
+ "artifacts/**"
361
+ ],
362
+ "outputContract": "Repair summary or explicit no-op when process supervisor passed; changed files and tests when revised. Must not ask main session to write artifacts.",
363
+ "subtask_prompt": "If process-supervisor-pi returned VERDICT: request-revision, apply bounded fixes within writeSet addressing REPAIR_ARTIFACT_JSON.fixScope and preserving REPAIR_ARTIFACT_JSON.invariant. Use REPAIR_ARTIFACT_JSON.failureClass and rootCause before raw logs; raw log is fallback evidence only when rawLogFallbackAllowed is true. If VERDICT: pass, return no-op with evidence. Re-run focused tests when you change code.",
364
+ "toolProfile": "write"
365
+ },
366
+ {
367
+ "id": "hard-verify-shell",
368
+ "depends_on": [
369
+ "repair-pi"
370
+ ],
371
+ "complexity": "LOW",
372
+ "executor": "shell",
373
+ "role": "verifier",
374
+ "writePolicy": "read-only",
375
+ "allowedPaths": [
376
+ "./**",
377
+ "docs/**",
378
+ "scripts/**"
379
+ ],
380
+ "forbiddenPaths": [
381
+ ".harness/**",
382
+ "artifacts/**"
383
+ ],
384
+ "outputContract": "Archived hard verification stdout/stderr with exit codes; no worktree writes.",
385
+ "subtask_prompt": "Run hard verification after repair round.",
386
+ "shell": {
387
+ "preset": "loop-agent-standard-verify",
388
+ "commands": [
389
+ "HARNESS_ALLOW_ACTIVE_DAG_RUNS=1 bash scripts/check-repo.sh"
390
+ ],
391
+ "verifyEvidence": {
392
+ "phase": "final",
393
+ "quota": "full",
394
+ "commandSource": "inline",
395
+ "commandCount": 1,
396
+ "commandLabels": [
397
+ "active DAG repo governance checks"
398
+ ],
399
+ "finalFullRequired": true
400
+ },
401
+ "cwd": ".",
402
+ "timeoutMs": 300000
403
+ }
404
+ },
405
+ {
406
+ "id": "review-pi",
407
+ "depends_on": [
408
+ "hard-verify-shell"
409
+ ],
410
+ "complexity": "HIGH",
411
+ "executor": "pi",
412
+ "role": "reviewer",
413
+ "writePolicy": "read-only",
414
+ "allowedPaths": [
415
+ "**"
416
+ ],
417
+ "forbiddenPaths": [
418
+ ".harness/**",
419
+ "artifacts/**"
420
+ ],
421
+ "outputContract": "Plain Markdown whose first non-empty line is VERDICT: pass or VERDICT: request-revision; Critical/Important findings force request-revision. No file writes.",
422
+ "subtask_prompt_markdown": "./agent-dag-review-verdict.prompt.md"
423
+ },
424
+ {
425
+ "id": "review-gate-shell",
426
+ "depends_on": [
427
+ "review-pi"
428
+ ],
429
+ "complexity": "LOW",
430
+ "executor": "shell",
431
+ "role": "verifier",
432
+ "writePolicy": "read-only",
433
+ "allowedPaths": [
434
+ "**"
435
+ ],
436
+ "forbiddenPaths": [
437
+ ".harness/**",
438
+ "artifacts/**"
439
+ ],
440
+ "outputContract": "Deterministic review verdict gate: exit 0 only when review-pi first non-empty assistant output line is pass.",
441
+ "subtask_prompt": "Deterministic gate: block decision gate unless review-pi emitted VERDICT: pass.",
442
+ "shell": {
443
+ "verdictGate": {
444
+ "fromNodeId": "review-pi",
445
+ "accept": [
446
+ "VERDICT: pass"
447
+ ],
448
+ "label": "review",
449
+ "lineMode": "first-verdict-line"
450
+ },
451
+ "cwd": ".",
452
+ "timeoutMs": 60000
453
+ }
454
+ },
455
+ {
456
+ "id": "decision-pi",
457
+ "depends_on": [
458
+ "review-gate-shell",
459
+ "hard-verify-shell"
460
+ ],
461
+ "complexity": "HIGH",
462
+ "executor": "pi",
463
+ "role": "reviewer",
464
+ "writePolicy": "read-only",
465
+ "allowedPaths": [
466
+ "**"
467
+ ],
468
+ "forbiddenPaths": [
469
+ ".harness/**",
470
+ "artifacts/**"
471
+ ],
472
+ "outputContract": "Markdown with exactly one DECISION_ENVELOPE_JSON fenced block plus evidence summary. No file writes.",
473
+ "subtask_prompt_markdown": "./agent-dag-decision-gate.prompt.md",
474
+ "decisionGate": {
475
+ "enabled": true,
476
+ "schemaVersion": 1,
477
+ "mode": "record-only"
478
+ }
479
+ },
480
+ {
481
+ "id": "closeout-pi",
482
+ "depends_on": [
483
+ "decision-pi"
484
+ ],
485
+ "complexity": "MED",
486
+ "executor": "pi",
487
+ "role": "closeout",
488
+ "writePolicy": "read-only",
489
+ "allowedPaths": [
490
+ "**"
491
+ ],
492
+ "forbiddenPaths": [
493
+ ".harness/**",
494
+ "artifacts/**"
495
+ ],
496
+ "outputContract": "Plain Markdown closeout referencing verification, supervisor/review verdicts, and decision envelope. No file writes.",
497
+ "subtask_prompt": "Summarize the supervised DAG outcome: contract, write-set audit, implement/repair, soft/hard verify, process supervisor and review verdicts, decision-pi envelope, and recommended main-session next step. Do not edit files or write root artifacts/**."
498
+ }
499
+ ]
500
+ }