Repository navigation
Closed
Labels
codexA sage task handed to Codex: Codex builds and opens a PR; the sage reviews and merges
Description
Parent work: #88 and #138. Depends on #219 / T54.
A Codex child must stop new work when its saved run ends, changes target, or belongs to a held task. After compaction, it must recover the current assignment before work or successful completion can continue.
Extract the existing integration implementation as one topic:
- In
packages/sage-codex/runtime/policy.mjs, check the bound run before evaluation and recheck it after an awaited evaluator. Refuse ended, reported, held, retargeted or terminal assignments. - In
child-assignment.mjs, validate the saved run and review target before returning recovery instructions or granting recovered tool use. - In
child-stop.mjs, validate those targets before recording a new successful completion after compaction. Preserve historical retries and authoritative interruption; neither grants a new success. - Update runtime documentation, focused tests and generated bundles. Use the already merged run-assignment APIs; no core state changes are expected.
Acceptance:
- Valid active work and recovery still pass.
- Changed or held targets refuse before and after awaited evaluation, without false completion or extra capacity.
- Review recovery requires the saved commit, round and cycle.
- The current continuation supplies its own exact brief; earlier reports remain intact.
- New tests fail on detached post-Dispatch saved assignments to existing Codex children (T54) #219 main. State which assertion fails rather than claiming every matrix case failed.
- Build, check, full local tests and exact-head CI pass. Two independent code/security/QA cycles are clean.
- Native repeat-recovery and follow-up-recovery routes, plus a normal completion/report control, pass on the final commit with cleanup. Label simulated responses.
Exclude review-verdict acceptance, task transitions, repair of interrupted logbook runs, complete command policy, installed activation and Claude's active #140 functions. Native completion remains separate from accepting an independent review.
Metadata
Metadata
Assignees
Labels
codexA sage task handed to Codex: Codex builds and opens a PR; the sage reviews and merges
Activity