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


verbatim: you must not run with cursor preset, must run with codex preset


verbatim: you must run it with a blocking turn and consume it's output until completion or failure


type: task

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.


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.


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.


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.