Skip to content

M7: Refuse a failed Codex control call without losing the Turn #297

Description

@Sandstorm831

Parent

Spec #276; implementation sub-issue of M7 #275.

What to build

A timed-out or natively erroring Codex turn/steer or turn/interrupt returns a rejected control receipt and no longer settles the Turn lost. The Turn then settles on its own native terminal: completion, interruption, connection loss, or close. A malformed control response stays protocol corruption, and a transport failure stays on the connection-loss path. This fits ADR 0035's rule that steer keeps its control receipt (stories 114–116).

Acceptance criteria

  • Codex replayer conformance proves a stalled or natively erroring Steer or Interrupt returns a rejected receipt while the Turn settles on its native terminal.
  • Conformance proves malformed responses stay protocol corruption and transport failure stays connection loss.
  • The existing conformance tests that pin lost for timeouts and native errors are rewritten to the new outcome, not kept beside it.
  • CI scenario: runtime conformance is green on Windows x64, macOS arm64, and Linux x64.

Blocked by

Implementation packet

Owner: Codex Harness Adapter, behind the Harness Seam

Ratchet: conformance for refused control calls that keep the Turn

Deletes: settling the Turn lost on a timed-out or natively erroring control call, and the conformance tests pinning it

Gate: ADR 0027 three-OS CI and recorded human evidence, with the slice scenario above.

Dependencies: no new runtime dependency

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions