Skip to content

Keep one initial Sage lead per task across Codex owners (T31) #177

Closed

Description

@erickb336

Sage task T31

Extract initial lead ownership checks from the Codex integration for #88 and #138. The shared admission transaction must refuse a second active lead for the same project task, including across owner sessions. Retain task ownership while the first lead's team remains active. Preserve identical retries, unrelated tasks, and proven completion/failure release.

Source scope: packages/sage-core/admission.mjs, packages/sage-core/role-policy.mjs, admission documentation, provider and native tests. Do not change Claude hooks or shared state.mjs. Existing lead continuation remains a later component.

Acceptance: behavioral tests fail detached main, concurrent reservation attempts yield one winner, native dispatch refusal is verified, build/check/full tests and CI pass, and two clean code/security/QA cycles review the final head. Installed automatic Sage remains disabled.

Current status: PR #178 is merged at eac1945. Reviewed head 3b95d53748117739fad045ac55dc34d1073638bb passed two clean code/security/QA cycles, build/check, and all 1,120 local and CI tests. CI run 38417339414 succeeded. Six focused checks pass, and four new tests fail detached main c241ec1. The native CLI 0.160.0 probe passes with simulated responses and cleanup; main lacks the refusal. All owned test and probe processes finished.

Review repairs preserve historical journals made by main, retain a lead’s original task through its team’s issuer binding, and close concurrent test workers on every exit path.

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