Skip to content

Validate current runs and review targets before dispatch (T53) - #217

Merged
erickb336 merged 5 commits into
mainfrom
codex/t53-current-run
Oct 14, 2026
Merged

erickb336 merged 5 commits into
mainfrom
codex/t53-current-run

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

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 main 1f8034f.

Validation:

  • npm run build and npm run check: pass; generated provider copies committed.
  • Initial complete server file: tests 154, pass 154, fail 0.
  • Final test files copied unchanged to detached main 1f8034f: tests 12, pass 0, fail 12. Five review tests fail because main rejects reviewCycle; six tests expose missing target rendering/refusals. The split terminal test preserves existing behavior and fails in fixture setup because captureRunAssignment is absent, before its old assertions. These are first failures, not proof that every matrix row failed before.
  • The first full suite found three older provider fixtures without recorded runs: tests 1213, pass 1210, fail 3. Their original assertions now pass after fixture repair (3 tests), and the restored v2 reader passes (1 test).
  • Final-head 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.
  • Final-head 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.
  • Repaired ownership fixtures use valid task/run pairs and targets. Four focused lead tests pass. Five isolated mutations fail at intended assertions for initial preparation, dispatch, resumed preparation, completion and interruption. Terminal proofs disable adapter and core terminal checks; core still refuses when only the adapter checks are removed.
  • Two clean code/security/QA cycles on final 2dcdcf2. Only test fixtures changed since the native-verified head; runtime and probe sources are identical.

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.

@erickb336
erickb336 marked this pull request as ready for review October 14, 2026 04:06
@erickb336
erickb336 merged commit 816dbf4 into main Oct 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pin current runs and review targets before native dispatch (T53)

1 participant