Skip to content

Verify native owner mode switches across resumed Codex turns (T18) #260

Closed

Description

@erickb336

Sage task T18

Parent: #88.

Outcome

Verify native Codex instruction delivery across four turns in one session: ordinary prompt, Sage on, Sage off, Sage on again. Existing server tests pass, but they do not establish delivery through the native CLI across resumed turns.

Scope

Add a reproducible diagnostic using the current packaged policy, a temporary profile and fixed loopback model responses. Keep production policy, installed settings and activation defaults unchanged. Preserve the seeded logbook and current admission checks. Do not restore stale integration adapters.

Acceptance

  • Verify the direct native executable and pinned version before execution.
  • Require the same native session, successful completion, and exactly one fixed response request per turn. Reject unexpected tool calls.
  • Check both exact chief instruction parts in outgoing model context. Expected cumulative copies: 0/0, 1/1, 1/1, 2/2. Retained context while off is not a new delivery.
  • Check one owner and stable epoch after activation, three distinct mode turn IDs, and true/false/true mode values. The initial ordinary turn must register no owner.
  • Check no child reservation and an unchanged logbook.
  • Bound captured data. Track every owned process and verify terminal status. Close the server and responses, remove successful temporary profiles, and preserve evidence when cleanup fails.
  • Add meaningful checks for the diagnostic assertions and failure cleanup. Complete independent review, QA and required repository checks.

Evidence boundary

Responses are simulated. Passing proves native delivery and bookkeeping in this fixture; it does not prove skill application, real-model behavior, complete enforcement or installed automatic Sage. This new diagnostic can legitimately pass on main. Do not describe that as a failing-main regression proof.

Trusted execution context (#243), abrupt-loss settlement (#246), shared PR ownership (#239), and required-hook failure handling remain separate. Claude-owned #119, #105 and #67 are outside scope.

Activity

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