Repository navigation
Validate current runs and review targets before dispatch (T53) - #217
Merged
Merged
Conversation
This was referenced Oct 14, 2026
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 #216
Sage task T53
Codex preparation now captures the actual active logbook run and, for reviews, the branch commit, round and requested cycle. Initial dispatch rechecks those records after the awaited evaluator. A lead must still own its saved run before it delegates. A held task cannot prepare or dispatch new work; its existing run remains available for recovery.
Old unpinned preparations remain readable but cannot dispatch. Fixed external logbook configuration supplies the project and state location. This change does not add continuation dispatch checks, active-child tool/completion checks, task/run creation or review acceptance.
The fixtures now record the runs that this contract requires. The existing v2 report-reader connection remains v2 without a logbook. Native lead-ownership testing uses an explicitly synthetic historical overlap because production run creation correctly prevents a second running lead for the same task.
Head:
2dcdcf29ad5a29e2af00566c9a2601433ecad669, including main1f8034f.Validation:
npm run buildandnpm run check: pass; generated provider copies committed.npm test -- --test-concurrency=1: tests 1221, pass 1221, fail 0, cancelled 0, skipped 0. Exact-head CI run 38508729206: success; tests 1221, pass 1221, fail 0.node scripts/probe-codex-lifecycle.mjs --sage-report: exits 0, verifies one child and report/run completion, and removes the temporary profile. Native command control passes at 1b1d73e with simulated responses and temporary-profile cleanup. The command probe hardware trap reports zero identity queries. Completion, synthetic lead overlap, lead edit refusal and writer controls pass on bcea101; runtime code is unchanged.Every repository test and native probe uses fake ps, pgrep and kill first on PATH. Native fixtures disable real machine-identity queries and use temporary profiles and simulated model responses. No real-model pilot, full policy, installed automatic activation or after-dispatch protection is claimed. Claude #140's active task-set, replan and merge-check functions remain unchanged.