Repository navigation
Verify Codex child recovery boundaries after compaction (T17) - #233
Merged
Merged
Conversation
…closeout # Conflicts: # scripts/codex-server.test.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #138
Sage task T17
This closes the remaining verification gaps for child recovery after Codex compaction. The recovery implementation already exists on main. This PR adds four direct boundary tests; it changes no production code.
The tests check interrupted turns before parent reconciliation, two valid active bindings for the same child across owner sessions, stable owner activation, and the prepared-message limit at exactly one MiB and one extra byte. Every test includes a successful control and unchanged admission state. The ambiguity case verifies valid admission records, not two fully prepared native assignments. The size fixture changes only an isolated role template and bypasses dispatch sizing to test the reader independently.
Verification
Head:
d6f5a734e38f4e26de66cf913230424b735b46aa, based on main70b78e4.npm run build: built 302 files.npm run check: all checks pass.70b78e4. They close coverage gaps, not production defects.--sage-child-recovery,--sage-child-repeat-recovery, and--sage-followup-recovery. They restore exact saved assignments, require fresh recovery after each compaction, preserve admission during reads, complete each assignment once, and remove temporary profiles. Follow-up recovery retains the same child across two completed assignments. Two independent code/security/QA cycles are clean on this unchanged head.npm test -- --test-concurrency=1passed: 1,349 tests, 1,349 pass, 0 fail, exit 0. Exact-head CI run 38553864385 also passed all 1,349 tests. All owned local processes finished. All tests use fake process commands first on PATH.Acceptance scope
Existing tests cover stale, completed and foreign assignments, changed run/review targets, recovery before tool use, blocked Stops, durable report proof, parent reconciliation and later-assignment isolation. The final native checks exercised single compaction, repeated compaction and recovery in a follow-up assignment. They preserved exact messages, required fresh recovery, completed each assignment once and cleaned up temporary profiles.
Not verified: real-model understanding, installed automatic Sage, the full chief workflow or repository-wide lead ownership. Native model responses are simulated. Those broader obligations remain in #88. Claude's active #140 is unchanged.