Repository navigation
Description
Current status — manual coordination; automatic runtime not ready
The owner chose manual multi-agent coordination. Implementation and independent code/security/QA agents work under the parent session. Installed automatic Sage remains disabled.
Integration codex/t17-child-compaction is pushed at 58b14c4, including main 5723be6 through #230. Build/check, 130 focused tests and all 1,418 full-suite tests passed. Independent security and QA merge reviews found no preservation defects. Four exact-commit native probes passed: review acceptance, nested reports, task lifecycle with premature-verification refusal, and follow-up recovery. Responses are simulated. Every temporary profile was removed, all local processes exited, and the remote head was verified. Only task updates retain the older transaction writer. This is a verified integration checkpoint, not a final whole-runtime review or installed automatic operation.
Completed in the latest batch:
- Remove unused vulnerable SDK validator from Codex bundle (T47) #209 closed Bundled MCP SDK embeds fast-uri 3.1.0 with known advisories: update before the Codex runtime turns on (#88) #94: removed the SDK's unused vulnerable AJV/fast-uri code. All 1,179 local and CI tests passed.
- Use stable machine identity for logbook locks (T48) #210 closed Lock: identify the machine by a stable id, so a host rename or a shared host name cannot block or break the logbook #101: stable machine identity protects lock holders and waiters. All 1,184 local and CI tests passed.
- Use shared output-writer checks in the active hook (T49) #211 closed Hook: other GitHub API routes to main (main session), and programs that can write a logbook table (pre-existing, high) #99: the active hook consumes shared output-writer checks. All 1,185 local and CI tests passed.
- Use Balanced defaults and optional risk model settings (T50) #212 closed State tool: built-in model defaults match the owner's Balanced choice (no silent Fable), and an optional model per risk flag #98: Balanced Claude defaults and optional risk model settings, with Codex inheritance preserved. All 1,187 local and CI tests passed.
Each final topic had two clean code/security/QA cycles. New tests were checked on detached main; PR bodies distinguish behavioral failures from missing APIs and matrix coverage from the first failing assertion.
Latest completed components and next work:
- Normalize protected programs and read PowerShell launches (T51) #214 merged and closed Hook: program names without case, PowerShell Start-Process and a quoting trick reach the upload and stash rules (pre-existing, high) #97 / T51: protected executable names and literal PowerShell launch parsing. The refusal repair passed all 1,209 local and CI tests and two clean code/security/QA cycles on 9f830b9. Seven new tests fail detached main; the PR records which assertions fail. It merged at 1f8034f.
- Finish recorded runs from saved Codex reports (T52) #215 merged and closed Connect saved Codex reports to their recorded runs (T52) #213 / T52: the consumed saved-report-to-run route. Final head 30411c5 passed all 1,202 local and CI tests, two clean code/security/QA cycles, and the real CLI report probe with simulated responses. Exact report bytes, matching run completion, unchanged retries and unrelated state, and temporary-profile cleanup were verified. It merged at f6e04a3.
- Validate current runs and review targets before dispatch (T53) #217 merged and closed Pin current runs and review targets before native dispatch (T53) #216 / T53: current run/review-target capture and initial dispatch revalidation, including held-task refusal. Final 2dcdcf2 passed all 1,221 local and CI tests and two clean code/security/QA cycles. The exact-commit native report probe passed with simulated responses and cleanup. Invalid fixture pairs were repaired; five isolated mutations demonstrate intended ownership/terminal refusals. Main is 816dbf4.
- Dispatch saved assignments to existing Codex children (T54) #219 / T54 merged and closed Dispatch saved assignments to an existing Codex child (T54) #218: prepared follow-up dispatch, reviewed at
0cf287d, merged at0cfb847. Build/check, all 1,228 local tests and the exact-commit native follow-up probe pass. The same child received the exact saved message and completed two assignments; temporary-profile cleanup passed. All seven new tests fail detached main (six lack the new input, one permits an unprepared call). Two independent code/security/QA cycles are clean. Exact-commit CI passed all 1,228 tests. That main is now integrated. Keep Codex child work and recovery on current targets (T55) #222 / T55 merged and closed Keep Codex child work and recovery on current targets (T55) #220 at main47146fe, reviewed at44a5c9d: build/check, all 1,236 local and CI tests, and three exact-commit native probes pass. Two code/security/QA cycles are clean. Eight new test groups fail behaviorally on detached main. The integration checkpoint above includes this merge. Record native Codex task requests once (T56) #223 / T56 merged at17bf2e2and closed Create recorded tasks through the Codex chief tool (T56) #221 native task creation. Final head7935364passes build/check, all 31 focused tests, all 1,267 local tests and the exact-commit native task-creation probe with simulated responses and cleanup. Two independent code/security/QA cycles are clean after repair of malformed recovery-record handling. Exact-head CI run 38515416318 passed all 1,267 tests. All owned processes finished and temporary storage was removed. Reject non-string saved task IDs (T58) #226 / T58 merged ata4ddfccand closed Require string task IDs in saved creation records (T58) #225. Final head2041545passed build/check, 32 focused tests, all 1,268 local and exact-head CI tests, the simulated-model native task probe with cleanup, and two clean code/security/QA cycles. Its new regression fails behaviorally on detached main. Record native Codex run requests once (T57) #228 / T57 merged at9aad05dand closed Create recorded runs through the Codex chief tool (T57) #224. Reviewed head81df0b6passed build/check, 28 focused checks, all 1,293 local and exact-head CI tests, two clean code/security/QA cycles, and the native run-creation lifecycle. The probe creates/retries one task and run, completes a child, records and finishes the run, and preserves the historical retry. Model responses are simulated; temporary-profile cleanup passed. The 25 new tests fail on detached maina4ddfccbecause its run-creation module is absent; separate regression proofs cover repaired behavior. This merge is included in the pushed integration checkpoint above. Accept saved Codex reviews with validated recovery (T59) #230 / T59 merged at5723be6and closed Accept recorded Codex reviews with recoverable publication (T59) #227. Reviewed heada7f40d3passed build/check, 53 focused checks, all 1,342 local and exact-head CI tests, the native acceptance probe, and two code/security/QA cycles. The probe records one verdict, preserves exact retries and task state, and removes its temporary profile; responses are simulated. The pushed integration checkpoint above includes the merged review writer. Verify native Codex interruption recovery (T60) #231 / T60 merged at70b78e4and closed Verify bound Codex interruption recovery (T60) #229. Reviewed head9013c5apassed build/check, six focused checks, all 1,345 local and exact-head CI tests, and two clean code/security/QA cycles. The native interruption probe passed with one exact interrupted outcome, no Stop callback/report/verdict, unchanged open logbook run and once-only capacity release. A negative control without reconciliation failed as intended; both temporary profiles were removed. Model responses and replacement capacity were simulated. Production recovery already existed on main; detached-main coverage and separate mutations prove that distinction. All owned processes finished. The Restore Codex child instructions and completion after compaction (T17) #138 audit found its compaction code present on main. Closeout is adding direct reader proof for interrupted, ambiguous and oversized assignments, plus owner stability; final native compaction probes and independent reviews remain pending. - Board Board follow-ups from QA: one broken project freezes the live board; README phrase table; PR link on the task page; browser test channel (PR #91) #100 stays deferred. Lead build step 4: the sage:lead agent file and the docs (T181) #119 belongs to Claude.
Remaining runtime work after those components:
- Native task creation (Create recorded tasks through the Codex chief tool (T56) #221) and run creation (Create recorded runs through the Codex chief tool (T57) #224) are merged. Recorded review acceptance (Accept recorded Codex reviews with recoverable publication (T59) #227) is merged. Active-child and compaction target checks merged in Keep Codex child work and recovery on current targets (T55) #222; initial dispatch capture and prepared follow-ups merged in Validate current runs and review targets before dispatch (T53) #217 and Dispatch saved assignments to existing Codex children (T54) #219.
- Finish task updates and repair/check workflows. Claude Lead honesty before step 4 (T289) #140 actively edits task-set/replan behavior and the mergeCheck guard area; avoid those specific functions until coordinated.
- One-lead-per-PR enforcement, interrupted-run repair, additional authoritative failure recovery, active-child restart and cross-session transfer.
- Complete installed policy composition and setup, all-route chief workflow, whole-runtime reviews and a real-project pilot. The policy currently requires an external evaluator; advice hooks alone do not provide automatic orchestration.
- Required-hook failure protection and trusted effective execution context. Upstream [Hooks] Add opt-in fail-closed handling for PreToolUse hook failures openai/codex#41979 remains open. Released CLI 0.162.1 still leaves hook runtime errors and malformed output non-blocking; upgrading alone is not a verified fix. Installed CLI remains 0.160.0. Requested arguments alone do not prove the selected environment, effective cwd, shell, login or permissions.
Existing simulated CLI probes do not establish real-model recovery, session transfer, complete shell enforcement or automatic activation. Exact-commit merge enforcement and separately authorized autopilot behavior still need final evidence. This issue remains open. Nothing is required from the owner for the current independent work.
Previous checkpoint
Latest status: integrated and pushed, not merge-ready
Integration head 71fd98a includes main 0f9df78 through #208. Build/check and three focused native merge tests pass. Its complete local suite passed: 1,299 tests, 1,299 passed, 0 failed, 0 skipped, with npm test -- --test-concurrency=1. The final main merge preserved the exact tested file tree. The branch is pushed and the remote head is verified. All owned local test and review processes finished. Native probes and a real-model pilot were not rerun on this head.
T46 (#208/#207) makes recognized shell merge refusal mandatory before the native evaluator. It covers Sage-on actors and current-epoch bound children after Sage off, while ordinary off-mode actors retain evaluator checks. Two clean code/security/QA cycles and 1,177 local and exact-head CI tests passed. The three new tests fail behaviorally on main. Integration conflict resolution also passed an independent code review. This does not cover GitHub MCP calls, complete command authorization, or installed automatic Sage.
T45 (#206/#205) applies the shared executable-name normalizer to writer, reader-option, and reader-data path checks. It passed two clean code/security/QA cycles plus 1,174 local and exact-head CI tests. This leaves the active Claude hook unchanged. #97 remains open for its remaining Claude/PowerShell work.
T44 (#204/#203) adds common output-file programs to shared write classification and protected-path checks. It passed two clean code/security/QA cycles plus 1,171 local and exact-head CI tests. This leaves Claude's active hook unchanged.
T43 (#202/#201) adds chief-only inspection of an exact saved team report without parent authority or logbook writes. The legacy integration reader is removed, and all callers use the merged reader. T43 passed two clean code/security/QA cycles and all 1,167 local and exact-head CI tests. This does not activate automatic Sage.
T41 (#198/#197) adds shared GitHub API branch-write checks. T42 (#200/#199) recognizes mixed-case and .exe executable names in shared push and expansion checks. T42 passed two clean code/security/QA cycles and all 1,160 local and exact-head CI tests. The remaining Claude-hook and PowerShell parts of #97 and logbook-writer part of #99 remain open. Neither change enables automatic Sage.
Recent components:
- Restrict Codex lead preparation to its active assignment (T40) #196 / Restrict Codex lead preparation to its active assignment (T40) #195 / T40: lead task scope and active-assignment selection. Reviewed head
a203beapassed two clean code/security/QA cycles and all 1,157 local and exact-head CI tests. Three new tests fail behaviorally on detached main. - Read and preserve native Codex follow-up reports (T39) #194 / Read and preserve native Codex follow-up reports (T39) #193 / T39: follow-up report inspection and recovery. Reviewed head
126a40apassed two clean code/security/QA cycles and all 1,154 local and exact-head CI tests. Three new tests fail behaviorally on detached main. - Bind and recover native Codex follow-up delivery (T38) #192 / Bind and recover native Codex follow-up delivery (T38) #191 / T38: native continuation binding and parent recovery. Reviewed head
7b66380passed two clean code/security/QA cycles and all 1,151 local and exact-head CI tests. - Deliver saved targets to Codex children (T37) #190 / Deliver saved run and review targets to Codex children (T37) #189 / T37: saved run and review target instructions. Two clean review cycles and 1,146 local/CI tests.
- Validate review claims against saved assignment scope (T36) #188 / Validate review report claims against their saved target (T36) #187 / T36: review report claim parsing. Two clean review cycles and 1,143 local/CI tests.
Still required: verified native preparation/dispatch wiring, current Git/logbook validation, remaining policy and recovery coverage, final whole-runtime reviews and a real-project pilot. Shared-state changes must wait for Claude #140. Installed automatic Sage remains disabled; #94 and upstream openai/codex#41979 remain open. This issue and #88 are not complete.
Earlier native checks on 62e6e45 passed: --sage-child-repeat-recovery required fresh recovery after both compactions and refused a changed target; --sage-followup-recovery restored the second assignment without restoring the first. These probes predate the current integration head. Both use real Codex 0.160.0 with simulated responses and removed their temporary profiles. This does not prove real-model consumption or installed automatic Sage.
All local checks finished. Historical evidence follows.
Missing behavior
A native Codex child loses its exact Sage assignment after automatic compaction. Sage also refuses the child's next report in the captured route. This is a recovery gap in #88, separate from the required-hook outage.
Sage task T17. The branch codex/t17-child-compaction contains a readiness probe and documentation, not a completed repair. It includes earlier unmerged runtime prerequisites.
Reproduction
Run node scripts/probe-codex-lifecycle.mjs --sage-child-compaction with fake process tools first on PATH. The probe uses actual Codex CLI 0.160.0, a temporary profile, and simulated responses. The first child tool response reports 200,000 tokens against a 100,000-token threshold. These are fixture inputs, not measured usage.
The native child compacts its active turn. The probe observes:
- One saved compaction record and matching PreCompact/PostCompact events with trigger
auto, exact child, root session, and turn. - The fixed summary in the next child model request, but no exact prepared assignment.
- One intact reservation and binding, with no completion before the report.
- No child SessionStart event with source compact.
- Another model request after a fixed valid report, a hook refusal in that request, and no accepted completion.
The readiness command exits 1. After the refusal, the fixture rejects further model requests so the owned native process can close. The final native failure is therefore partly fixture-induced; it does not prove that Codex would stop on its own. The temporary profile is removed. The healthy --sage control exits 0.
Required repair
Preserve or restore the child's role rules and current saved brief across compaction. Recover report completion without weakening identity, current-run, or admission checks. The current root SessionStart repair does not apply to children.
Select exactly one unfinished assignment using trusted child identity, root session, owner epoch, and native turn. Verify its saved preparation, exact task hash, and current run target. Restoration must not create another binding, change mode, or release capacity.
Native static agent developer instructions are a supported candidate for role rules. A tool-denial or stop-block hook could restore dynamic task text before further effects, but its text delivery, bounds, and recovery behavior still need native proof. Do not treat a prompt instruction alone as enforcement.
Acceptance
- Native compaction preserves or restores the exact role and current brief through a supported channel.
- The same child and assignment complete normally, with one accepted completion and no duplicate reservation or binding.
- Invalid, stale, completed, interrupted, ambiguous, changed-target, and oversized assignments refuse recovery.
- Repeated compaction and subsequent assignments cannot restore a previous task.
- No unverified action or report gains permission during recovery.
- New repair tests fail on the previous runtime and detached main, with prerequisite limits stated.
- Build, check, full tests, and two clean code/security/QA cycles pass on the final repair.
Scope limits
This issue remains open until the repair passes. The diagnostic does not enable installed Sage, prove real-model behavior, or resolve the hook-outage blocker. No Claude-owned files change.
Diagnostic validation
Commit efd9eed57d7c744bd6ed562f1a1c25f454c667c9:
npm run build: built 287 files.npm run check: all checks pass.npm test: 1121 tests, 1121 pass, 0 fail, 0 cancelled, 0 skipped.node scripts/probe-codex-lifecycle.mjs --sage: exits 0.node scripts/probe-codex-lifecycle.mjs --sage-child-compaction: exits 1 with the observations above. This expected failure is the unresolved feature, not a passing recovery check.- Independent code and QA source reviews found no actionable problems in the diagnostic. These are not the repair's required review cycles.
No unit test or production behavior changed. The new readiness route reproduces the gap on the current prepared runtime; it is not a repaired-test regression proof. The eventual repair must supply that proof. All processes and review tasks finished; no background tasks remain.
Report completion repaired; instruction recovery remains open
Commit 02099d0ab32648f1d4b1baf3e1b392cb5d68e4ba on codex/t17-child-compaction repairs the report-reader failure. Native compaction summaries carry compaction_output: true without retained report provenance. The reader now distinguishes these summaries from reports, requires native provenance and the matching turn, refuses a retained-source conflict, and clears any earlier final candidate. A later retained final message and matching terminal record remain required.
The actual child-compaction route now exits its native process successfully and records exactly one completion. The readiness command still exits 1 because the exact saved assignment is absent from the model request. The task remains in progress.
Verification:
npm run build: built 287 files.npm run check: all checks pass.npm test: 1123 tests, 1123 pass, 0 fail, 0 cancelled, 0 skipped.- Assignment/report reader tests: 10 pass.
- Both new tests fail behaviorally on detached previous runtime
efd9eed: the old reader rejects a valid later report and accepts an ambiguous retained-source marker. Both fail on detached mainbb9a7abbecause earlier assignment APIs are absent; this is prerequisite evidence only. - Native
--sageand--sage-reportcontrols exit 0. - Native
--sage-child-compactionreports native exit 0, successful child completion, and readiness false. It removes its temporary profile. - Two clean code, security, and QA source-review cycles cover the unchanged commit. The implementation session ran the tests and native checks.
A separate disposable native experiment preserved one fixed developer-instruction marker across child compaction using the supported native configuration. This proves only a static instruction channel, not complete role or dynamic brief recovery.
All checks use fake process tools. No background tasks remain. No installed activation or automatic merge ran. Keep this issue open for instruction recovery and its remaining acceptance criteria.
Current assignment reader verified; automatic enforcement remains open
Commit b28c32e6a3c8bd3b50cfd944a1644081234af7e2 adds sage_read_assignment. It takes no arguments and returns only the native caller's current, delivered assignment. It checks owner epoch, child, active turn, task hash, current run, and review target. It changes no admission or task state and grants no permission to act.
The native --sage-child-recovery route compacts a real child, explicitly calls the reader through simulated model responses, and checks the exact saved message in the next model request. The same child completes with one reservation, binding, and completion. The temporary profile is removed. The final probe correction counts parsed response requests before compaction handlers return.
Verification with fake process tools first on PATH:
npm run build: built 288 files.npm run check: all checks pass.npm test: 1128 tests, 1128 pass, 0 fail, 0 cancelled, 0 skipped on the final commit.- Five focused reader tests pass. They cover unchanged state, existing children after Sage off, refused selectors and actors, stale or missing evidence, changed review targets, and later assignments.
- All five fail on detached previous runtime
02099d0and detached mainbb9a7ab. These failures establish the missing API; main also lacks earlier prerequisites. They do not prove automatic recovery. - Native
--sage-child-recoverypasses on the final commit. Healthy--sageand--sage-reportcontrols passed on reader commit8c66678; the final change only corrects the probe counter. - The original
--sage-child-compactionreadiness control still fails without an explicit recovery request: the native child completes, but its exact assignment is absent after compaction. - Two clean code, security, and QA review cycles cover the unchanged final commit. Reviewers inspected source and evidence; the implementation session ran the checks.
Next: enforce recovery before further child actions or report acceptance, including repeated compaction and later assignments. Static instructions and an explicit simulated tool call do not establish enforcement. Snapshot checks are not atomic. The hook-outage blocker, real-model pilot, and installed automatic Sage remain unresolved.
The branch is pushed and its remote commit verified. No third Codex PR was opened while #122 and #127 remain open. All validation processes and reviewers finished; no background tasks remain. Keep this issue open.
Recovery enforcement channel checks
Three disposable native experiments ran after b28c32e; they did not change the repository or enable product enforcement.
- A fixture denied a fixed child tool call after compaction. The next model request contained the denial, no PostToolUse event existed for that call, and the child then used
sage_read_assignment. Exact assignment recovery and one completion passed. - A fixture blocked the child's first post-compaction report. The same native turn resumed with the block reason and zero premature completions. The child read its assignment and completed once. Two native stop events were observed.
- A reader-result fixture added 76,000 characters of harmless padding. Codex shortened the padding to 8,380 characters in the protected transcript and 8,374 in the model request. The actual 3,151-character assignment remained identical in both and matched its SHA-256. These are fixed fixture sizes, not model-usage measurements. They demonstrate that recorded and delivered tool text can differ.
All three native processes exited zero and removed their temporary profiles. Responses and denial rules were simulated; these checks establish native channels, not the production recovery gate or real-model behavior. The padding comparison used parsed JSON fields and the assignment hash.
The gate must cover child tools, child stop/report acceptance, and parent-side completion reconciliation, including tracked children after Sage off. Its evidence must follow the latest compaction in the current assignment turn; another compaction invalidates earlier recovery. Output bounds and delivery truncation must be resolved before treating a successful reader call as complete restoration. This work remains in progress.
Saved output replay check implemented
Commit e26cedba2fc6d87194326b10359c0e943681eed6 adds readRecoveryOutput. It requires the observed native MCP attribution, child, turn, exact task hash, and saved output budget. Both text items must fit the native replay calculation: the ceiling of each item's UTF-8 byte count divided by four, deducted in order. It adds no second serialization allowance. Missing budgets, malformed shapes, changed assignments, and insufficient budgets are refused with a fixed error.
The native recovery probe now checks this saved output as well as the exact assignment in the actual model request. It passes with replayTextStable: true, one completion, and temporary-profile cleanup. A direct check of the earlier captured native results accepts the intact result and refuses the padded result that native replay shortened.
Verification with fake process tools:
- Build: 290 files. Repository check: all checks pass.
- Full suite: 1132 tests, 1132 pass, 0 fail, 0 cancelled, 0 skipped. A trailing space in the new test file was removed afterward; build, check, and all four focused tests passed again. No production behavior changed after the full run.
- Four focused tests cover exact-budget acceptance, insufficient budgets, UTF-8 and per-item rounding, attribution, unsupported shapes, and changed or shortened assignments.
- All four fail on detached main
bb9a7aband preceding runtimeb28c32ebecause the output checker is absent. These are missing-API comparisons, not full recovery regression proof. - Two clean code, security, and QA review cycles cover the final unchanged commit. Reviewers inspected source and evidence; the implementation session ran validation.
- The branch was pushed and the remote commit matched.
This function checks one supplied output record. It does not authenticate a transcript path, find its matching call, establish ordering after the latest compaction, or authorize an action. Those checks and their integration into child tools, stop/report acceptance, and parent reconciliation remain next. Successful recovery of arbitrarily long assignments is not established. Automatic recovery and installed Sage remain disabled. No new PR was opened; all processes and review tasks finished.
Recovery ordering verified
Commit 06ede51dd20975e5aafa633f442c76031500c09a adds readNativeRecovery. It reads the protected transcript and verifies exact assignment delivery and native child identity. Recovery requires a matching empty reader call and complete output after the latest committed compaction in that assignment's turn. Another compaction invalidates earlier evidence. Earlier turns, orphan outputs, failed reads, and shortened results cannot establish recovery; a new valid read can retry.
Conflicting checkpoints, duplicate calls or results, pending compaction, and recovery after terminal events are refused. The result includes the output position for a later final-report ordering check. It grants no permission to act.
Validation with fake process tools:
- Build and repository check pass.
- Full suite: 1137 tests, 1137 pass, 0 fail, 0 cancelled, 0 skipped.
- Five focused recovery-ordering tests pass. All five fail on detached preceding runtime
e26cedbbecause this API is absent; detached mainbb9a7abalso lacks earlier assignment APIs. These are missing-API comparisons. - The actual native recovery probe first observes recovery required, then verifies the matching reader call and result after the latest checkpoint. One child completes, and the temporary profile is removed.
- Healthy native
--sageand--sage-reportcontrols pass and remove their profiles. - The first native attempt failed because its isolated observer copied the identity reader without its new dependency. The fixture now copies that dependency, and the corrected native check passes.
- Two clean code, security, and QA review cycles cover the final unchanged commit. The branch is pushed, and the remote commit matches.
This remains evidence inspection. Production child tool/stop gates, parent reconciliation, final-report ordering, and cached report handling must require this evidence before automatic recovery is complete. Native responses are simulated; no installed activation or real-model pilot ran. All validation processes and reviewers finished. Keep this issue open.
Recovery enforcement implemented; final review remains open
The branch now ends at 88b46f0. The remote commit was checked after the push. This is work in progress, not a ready-to-merge claim.
Changes since 06ede51:
- Child tool policy requires assignment recovery before ordinary work, and checks again after an awaited policy evaluation.
- Child stops and parent completion reconciliation require recovery before accepting a successful report. The report must follow recovery in the protected transcript. Native interruption remains supported.
- Saved report use requires durable recovery evidence. A legacy receipt without that evidence must recheck the original transcript.
- First completion rechecks the current task and review target. A changed branch, commit, round, or run state cannot complete the recovered assignment.
- A reserved child or follow-up cannot bypass recovery by reaching its first tool after Sage off. Exact delivery and the parent result remain required. This adds no reservation and does not turn Sage on.
Validation on the final repair, with fake process tools first on PATH:
npm run build: passed.npm run check: all checks pass.npm test: 1153 tests, 1153 pass, 0 fail, 0 cancelled, 0 skipped.- Focused assignment and tool recovery checks: 11 pass.
- The three new off-mode regressions fail behaviorally on detached preceding runtime
c6df24f. They fail on detached mainbb9a7abat missing prerequisites; main does not isolate these regressions. - Native
--sage-child-recovery: passes. An ordinary tool and premature report are refused before the exact assignment is restored. A changed task target then blocks completion. Restoring that target permits one completion. The fixture observes 13 response requests, 6 child requests, and 3 stop events. - Native
--sage-off: passes; the unmanaged child completes without Sage capacity or logbook changes. - Both native probes use the actual pinned CLI with simulated responses and remove their temporary profiles.
The new unbound/off cases have packaged-policy tests, not a dedicated native route. Repeated compaction and later assignments have transcript-fixture coverage; the native recovery route compacts once. A real-model pilot and installed automatic operation remain unverified. The upstream hook-outage blocker remains open.
The five new implementation commits still need two clean independent code, security, and QA review cycles on the final unchanged repair. Earlier clean cycles apply only to their earlier commits. No third Codex PR was opened while #122 and #127 remain open. All validation processes finished; none remain running. Keep this issue open.
Repeated native compaction exposed and repaired a reader bug
Commit cdda843 repairs a failure found by the new --sage-child-repeat-recovery probe.
The first recovery passed. After a second compaction, Sage correctly blocked further work but refused the second reader result. The native transcript omitted MCP attribution on that result. The pinned Codex recorder records cumulative source checkpoints; unchanged sources do not produce a new checkpoint. Its first-turn field does not identify each later call.
Recovery now verifies the exact saved native reader call and its matching result. Both need native provenance and the current assignment turn. The fixed namespace, tool name, empty arguments, call ID, exact assignment hash, full message, and replay budget remain required. Transcript ordering still invalidates earlier reads after each compaction. Cumulative attribution cannot substitute for call evidence.
The repeated native route now passes:
- Two actual compactions occur in the same child turn.
- Each compaction requires a fresh reader result before ordinary work or a successful report.
- A changed task target still blocks completion.
- After target restoration, the same assignment completes once: one reservation, one binding, and one completion.
- The probe observes 18 response requests, 10 child requests, and four stop events. It removes its temporary profile.
Validation with fake process tools first on PATH:
- Build and repository check pass.
- Full suite: 1155 tests, 1155 pass, 0 fail, 0 cancelled, 0 skipped.
- The source recovery tests pass 22 checks.
- Both new regressions fail behaviorally on detached preceding runtime
88b46f0. On detached mainbb9a7ab, both fail because earlier recovery APIs are absent; this is prerequisite evidence. - Existing single-compaction and new repeated-compaction native routes pass on the final repair.
- Earlier tests that treated cumulative attribution as per-call provenance now check the actual native call instead. Foreign, retained, mismatched, or non-reader calls remain refused.
The native probes use simulated model responses. Later-assignment recovery has transcript-fixture coverage, not a native later-assignment compaction route. Final independent code, security, and QA review cycles remain outstanding. Installed automatic Sage and the real-model pilot remain unverified. All owned validation processes finished. The branch is pushed and its remote commit matches. Keep this issue open.
Merged main after the lead-write policy landed
Merge commit a4e35c8 incorporates main d6414fa, including merged PR #124. The shared state-tool export conflict keeps main's logbookView and the Codex lifecycle APIs. Generated plugin copies were rebuilt from sources. Claude's checkout was not changed.
Validation on the combined branch:
npm run buildandnpm run check: pass.npm test: 1188 tests, 1188 pass, 0 fail, 0 cancelled, 0 skipped.- Native
--sage-child-repeat-recovery: passes with two compactions and one completion. The temporary profile was removed. - Remote branch commit matches the local merge commit. The working tree is clean.
This merge is not a final independent review. The next integration audit must check that main's held-task restrictions also cover Codex's direct run and review APIs. Installed automatic Sage remains disabled. All validation processes finished. No third PR was opened.
Current local verification (2026-10-13)
The local integration checkout still has an unfinished merge of main 801434a and uncommitted recovery-output boundary tests. This is not a final reviewed or published repair.
The current checkout passes npm run check and all six recovery-output.test.mjs tests. A fresh --sage-child-repeat-recovery native run also passes: two compactions, fresh recovery after each, blocked premature actions/reports, changed-target refusal, and exactly one reservation, binding and completion. The real CLI used simulated responses. Its temporary profile was removed and its process exited.
Remaining work includes integration with current main, the held-task restrictions on direct run/review APIs, a native later-assignment compaction check, topic extraction, full validation and final independent review. Shared state work waits while Claude's #140 remains active. The native probe does not prove that a real model chooses recovery on its own, and installed automatic Sage remains disabled.
Native later-assignment recovery now checked
The local repair adds --sage-followup-recovery to the lifecycle probe. It completes and records the first assignment, prepares a second assignment for the same child, and triggers automatic compaction in the second native turn.
The final probe passes with simulated model responses on actual Codex CLI 0.160.0. It checks both native compaction events against the second turn and reads the saved checkpoint. An ordinary tool is refused before recovery. The reader must return the exact second brief and hash, distinct from the first brief. The same child then completes and records the second report. The first report remains unchanged.
Observed result: 24 response requests, 16 root requests, 6 child requests, two reservations, two bindings, two completions and two reports. The owned process exits zero and removes its temporary profile. Build produces 291 files; repository checks and whitespace checks pass.
This addition is local and uncommitted while the integration merge remains unfinished. It changes only the Codex probe and compaction documentation. Final regression comparison, full validation, extraction and independent repair reviews remain outstanding. No installed activation or real-model recovery is claimed.
Codex validation update — 2026-10-13, T33
PR #182 is merged at a0f6674; component issue #181 is closed. Prepared continuations passed 1,133 local tests and 1,133 exact-head CI tests, with two clean code, security and QA review cycles on f5743a5.
The broader integration is pushed at 1076b8a. Its tree is identical to 0b1bbea, which passed all 1,259 tests and the native follow-up probe. Build and check also passed after the merge. These probes use simulated model responses; they do not prove real-model or installed automatic Sage behavior. All local test and probe processes finished.
Next component: #183, preserve historical journals while preventing new duplicate run dispatches. Claude PR #140 remains separate. Installed automatic Sage remains disabled; #94 and upstream openai/codex#41979 remain unresolved. This parent issue stays open.
T34 review and validation — 2026-10-13
Draft PR #184 implements duplicate-run admission while preserving historical journals. Final head 68254c1 has two clean code, security and QA review cycles. Build/check and 56 focused tests pass. Four new tests fail behaviorally on detached main. Exact-head CI run 38425337326 passes all 1,137 tests.
The local full suite reports 1,136 pass and one existing Claude-hook stress-test failure: F-T229-20 terminated its code-of-paths worker after 120 seconds. That hook and test are unchanged; the isolated test passes on detached main. The local full-suite timeout remains unexplained, so #184 stays draft and unmerged. All local test and diagnostic processes finished. Claude PR #140 remains untouched.
T34 merged — 2026-10-13
PR #184 merged at ed7cf14. Reviewed head 68254c1 passed two clean code/security/QA cycles, all 1,137 exact-head CI tests, and all 1,137 local tests with npm test -- --test-concurrency=1. Serial scheduling retained every assertion and internal concurrency test. The previously failing stress case passed in about 9.9 seconds; resource contention is a supported inference, not a proven cause of the earlier timeout. All narrow-PR test processes finished.
The integration has the same fix at local merge f815120. Build/check and 21 focused checks pass. Its full serial suite is running before push. Installed automatic Sage remains disabled; this does not close #88.
Integration validation after T34 — 2026-10-13
Integration f815120 passed build/check, 21 focused checks, and all 1,259 tests with serial file scheduling. The native --sage-followup probe passed on that commit: one native child completed two distinct assignments and turns, the second report was recorded, and the first report remained unchanged. It used the real CLI with simulated model responses. It does not establish real-model behavior, complete policy coverage, or installed automatic Sage. Temporary probe storage was removed and all owned local test/probe processes finished.
Next extraction: #185 (T35), immutable review targets in prepared assignments. Claude #140 remains open and untouched. #94 remains unresolved: the SDK latest release is still 2.3.1.
T35 merged — 2026-10-13
PR #186 merged at e1b590f. Exact head 859c714 passed two clean code/security/QA cycles, build/check, all 1,140 local tests with serial file scheduling, and all 1,140 CI tests (run 38429335076). Three new tests fail on detached main because review options and the parser were absent. A reported newline-regex finding did not reproduce in ten direct checks and the reviewer withdrew it.
Integration 265f008 includes this main merge. It adds documentation and three tests to f815120, whose full 1,259-test suite and native follow-up probe passed. Runtime code is unchanged; all four focused review-target checks and build/check pass on the updated integration. All owned local test/probe processes finished. Saved review targets do not authorize verdicts or merges. Native review wiring, current-record validation, and installed automatic Sage remain unfinished. Claude #140 remains untouched.
T36 merged and integration verified — 2026-10-13
PR #188 merged at 8af7caa. Reviewed head ecee6f4 passed two clean code/security/QA cycles, build/check, all 1,143 local tests with serial file scheduling, and all 1,143 exact-head CI tests (run 38431096618). Three new tests fail on detached main because the API is absent.
Pushed integration cd66953 has the same tree as tested 72b8de1: build/check, 28 focused checks, and all 1,265 full tests pass. The real CLI --sage-report probe passed with simulated responses: exact review evidence produced one matching recorded verdict, retry retained that result, and task/gate/merge approval stayed unchanged. Temporary storage was removed. All owned local tests and probe processes finished.
This does not verify real-model behavior or complete installed policy. Automatic Sage remains disabled. Claude #140 was left untouched.
Activity
erickb336 commentedon Oct 13, 2026
T37 merged in #190 (main 886bcf2). Saved run and review targets now reach prepared Codex messages and verified child instructions. Bindings load the targets from their linked immutable preparation. Exact message/hash checks remain in place.
Validation: build and check passed; all 1,146 local tests passed with serial file scheduling and process-command stubs. Exact-head CI run 38433792435 also passed all 1,146 tests. Each of the three new tests failed behaviorally on detached main 8af7caa. Two clean code, security and QA cycles covered unchanged e4044ea.
The integration branch includes these tests and documentation. Its build/check and three focused tests pass; the main merge changes no tree from that tested integration commit. The previous 1,265-test integration suite remains evidence for its unchanged runtime, not a new full-suite run.
Remaining: current Git/logbook target validation, native preparation/continuation wiring and activation blockers. Saved instruction delivery does not prove genuine model review or installed automatic Sage. #88 stays open. Claude #140 remains open; its shared-state work was not changed. All owned local checks completed.
erickb336 commentedon Oct 13, 2026
Current native evidence on integration head 9f3abae: all three real Codex CLI 0.160.0 probes passed: --sage-nested-report, --sage-child-repeat-recovery, and --sage-followup-recovery. The nested report flow retained exact assignment receipts and recovery proofs. Repeated compaction required fresh assignment recovery. Follow-up recovery retained the first report and recorded the second assignment separately.
Each probe used simulated model responses and a temporary profile; all three reported verified=true, exited successfully, and removed the temporary root. This does not prove real-model consumption, a real-project pilot, complete policy, or installed automatic Sage.
The next independent gap is #203 / draft #204: common output-file commands in the shared Codex write classifier. It leaves Claude's active #140 work unchanged. #88 and #138 remain open.