Skip to content

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

Closed

Description

@erickb336

Sage task T53
Parent work: #88 and #138.

A prepared Codex assignment must still refer to its current logbook run and review target when the chief dispatches it. Saved instructions alone do not establish that the run remains active or the branch still names the reviewed commit.

Scope:

  • Capture the current active task/run identity during native preparation.
  • For review assignments, capture the branch commit, round and requested review cycle.
  • Revalidate the saved target before reserving an initial spawn, including after awaited preparation work.
  • Revalidate a lead's own saved run before it delegates.
  • Keep old unpinned preparations readable, but refuse their dispatch.
  • Use the fixed external logbook configuration from Finish recorded runs from saved Codex reports (T52) #215.

Keep continuation dispatch, active-child permission/completion checks, report acceptance and task/run mutation APIs separate. Do not change Claude #140's active task-set, replan or merge-check functions.

Acceptance:

  • Matching active records permit preparation and dispatch.
  • Missing, duplicate, ended or changed records refuse before reservation.
  • Changed review commits, rounds or cycles refuse.
  • Injected Git environment and redirected logbooks cannot select another target.
  • Tests preserve the existing preparation controls and prove each new test fails on detached main.
  • Build, repository checks, full tests and two clean code/security/QA review cycles pass.

This component does not establish protection after dispatch or enable installed automatic Sage.

Activity

  1. added
    codex
    on Oct 14, 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