{"type":"meta","slug":"autonomous-gate-self-repair-v2","base_branch":"main","gate0_mode":"strict","preset":"codex","land_mode":"merge-to-main","exec_mode":"ship"}
{"type":"goal","text":"Complete remaining autonomous gate self-repair engine after semantic gate progress landed."}
{"type":"methodology","text":"TDD; failure-domain attribution; bounded isolated base repair; foreground Codex migration; incident-chain acceptance."}
{"type":"direction","verbatim":"i want \"runplan\" do all tht you are doing, to avoid this from happening again"}
{"type":"direction","verbatim":"you must not run with cursor preset, must run with codex preset"}
{"type":"direction","verbatim":"you must run it with a blocking turn and consume it's output until completion or failure"}
{"type":"anchor","path":"docs/specs/2026-07-22-autonomous-gate-self-repair-design.md","what":"spec"}
{"type":"anchor","path":"docs/plans/2026-07-22-autonomous-gate-self-repair.md","what":"plan"}
{"type":"task","id":"t2","wave":1,"deps":[],"seat":"coder","tier":"medium","desc":"Read docs/plans/2026-07-22-autonomous-gate-self-repair.md Task 2. Add evidence-based gate failure attribution and clean-base reproduction. Acceptance: node --test src/test/engine-gates.test.js. Commit only declared files.","files_modify":["src/engine/gates.js","src/test/engine-gates.test.js"],"requires_decision":null}
{"type":"task","id":"t3","wave":2,"deps":["t2"],"seat":"coder","tier":"high","desc":"Read docs/plans/2026-07-22-autonomous-gate-self-repair.md Task 3. Add isolated base repair transaction, retry ledger, and task-base synchronization using active Codex preset. Acceptance: node --test src/engine/repair.test.js src/test/engine-repair.test.js. Commit only declared files.","files_modify":["src/engine/repair.js","src/engine/repair.test.js","src/runner.js","src/test/engine-repair.test.js"],"requires_decision":null}
{"type":"task","id":"t4","wave":3,"deps":["t3"],"seat":"coder","tier":"high","desc":"Read docs/plans/2026-07-22-autonomous-gate-self-repair.md Task 4. Add blocking foreground engine migration re-exec preserving --preset codex. Acceptance: node --test src/test/runner-transcript.test.js && bash test/engine-provenance-runtime.test.sh. Commit only declared files.","files_modify":["bin/runplan","src/runner.js","src/test/runner-transcript.test.js","test/engine-provenance-runtime.test.sh"],"requires_decision":null}
{"type":"task","id":"t5","wave":4,"deps":["t4"],"seat":"coder","tier":"high","desc":"Read docs/plans/2026-07-22-autonomous-gate-self-repair.md Task 5. Add incident-chain E2E acceptance proving all remaining tasks land after stall, base repair, task rebase, and foreground Codex engine migration. Acceptance: bash test/autonomy-e2e.test.sh && bash test/runner-integration.sh. Commit only declared files.","files_modify":["test/autonomy-e2e.test.sh","test/runner-integration.sh"],"requires_decision":null}
