Skip to content

Restrict Codex lead preparation to its active assignment (T40) - #196

Merged
erickb336 merged 2 commits into
mainfrom
codex/t40-lead-preparation-scope
Oct 13, 2026
Merged

erickb336 merged 2 commits into
mainfrom
codex/t40-lead-preparation-scope

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #195
Sage task T40

A native lead can prepare and dispatch children only for its current saved task. Reused leads select their unfinished assignment while retaining their original native identity. Completed and interrupted assignments supply no preparation authority. Chief preparation remains unchanged.

The task check runs both before saving a brief and before dispatch. A foreign-task preparation saved by an earlier runtime cannot bypass it. Current logbook and held-task checks remain separate work while Claude #140 owns shared state.

Validation on a203bea:

  • npm run build: built 285 files.
  • npm run check: all checks pass.
  • Focused lead preparation tests: 3 passed, 0 failed.
  • Detached main 4dfbdec with the new tests: all 3 fail behaviorally. Main permits foreign-task preparation and dispatch, and refuses a valid reused lead.
  • Terminal controls check refusal without depending on error wording. The initial separate terminal test failed baseline only on wording; it was replaced before the final review cycles.
  • Two code, security and QA review cycles on unchanged a203bea: clean.
  • Final npm test -- --test-concurrency=1: 1,157 passed, 0 failed, 0 skipped, with process-command stubs first on PATH. The earlier run is superseded because its test file changed while it ran.
  • Exact-head CI run 38439555273: 1,157 passed, 0 failed.

Not verified: current logbook/held-task validation, full native preparation/dispatch, genuine model behavior or installed automatic Sage. No Claude hook, shared state or role instruction changes. #88 and #138 stay open.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 17:43
@erickb336
erickb336 merged commit 5e324e7 into main Oct 13, 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.

Restrict Codex lead preparation to its active assignment (T40)

1 participant