Skip to content

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

Closed

Description

@erickb336

Sage task T40

Restrict native lead preparation to the task of its unfinished saved assignment. Refuse preparation and spawn from a completed or interrupted lead. A reused lead must select its one unfinished continuation while retaining its original native spawn identity. Reject foreign-task preparations saved by an earlier runtime before they can dispatch.

Scope: Codex preparation.mjs, its documentation and tests. No Claude hooks, shared state or role instructions. Current logbook run/held-task validation remains separate and must land after Claude #140.

Test same-task success, foreign-task refusal, completed/interrupted leads, and a reused lead’s current assignment. Preserve chief preparation, role restrictions, exact-message checks and admission limits. Prove new tests fail detached main; run build/check/full local tests, exact-head CI and two clean code/security/QA cycles. This component does not enable installed automatic Sage.

Activity

  1. added
    codex
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions