Skip to content

Design Codex route completion and authenticated product gates (T21) #266

Closed

Description

@erickb336

Sage task T21
Parent: #88

Current checkpoint — 2026-10-19

Codex retains this investigation. Claude has PR #273 open for shared task waits; this work has made no changes to its files. Main is 9d650c5 at this checkpoint.

R114 independently reviewed the two saved async transport configurations and completed clean for those observations. R113 remains failed from its usage-limit interruption. Neither review establishes human authenticity, a desktop card-click contract, implementation approval or installed automatic Sage.

The design now proposes exact option identities, separate approved-content and execution-generation identities, explicit carry-forward proof for unchanged content, and gate behavior before admission, before dispatch and during already executing work. Already executing operations cannot be claimed rolled back by a gate; subsequent dependent work is fenced and authentic reporting remains available. These are proposed requirements, not implemented guarantees.

One product preference is pending: when the selected model lacks question cards, use numbered chat choices with an explicit answer, or pause until cards are available. The recommendation is numbered chat choices. No mode, model or experimental setting changes are proposed.

Next: settle that experience, review the complete design for feasibility and missing cases, then define the implementation units. Native reply provenance, real owner interaction, replay, compaction/restart, artifact races and the common mutation/admission coordinator remain unverified. #239, #243, #246 and upstream openai/codex#41979 remain separate blockers. No production code or defaults changed in this investigation.

Design and verify the missing Codex route and product-gate contracts before implementation. This issue does not enable automatic Sage or change Claude behavior.

Current evidence

On main f643a90, core names design, PE and arena route blocks, but its verdict map has no corresponding completion evidence. PE reports describe OK, CHANGE or QUESTION; arena reports describe candidates and the chosen artifact. Neither is an authenticated stage-completion contract.

Core state accepts investigation and evidence-review run roles. The native role policy and rendered role set omit those names. Do not substitute a code-review role and claim route parity.

The gate CLI validates and stores an answer, but does not bind it to an authenticated owner event or an exact design revision. The native owner parser authenticates root prompt context; current consumers use it for mode changes and chief context. The preparation server has no protected gate-answer or design-approval tool.

A prior packaged probe shows that an unanswered gate does not prevent preparation/admission with an evaluator that returns pass. Readiness checks do reject open gates before verified/pr-ready. These are different boundaries; the probe does not establish complete evaluator or installed behavior.

Plan required before code

  • Map every route block to its actor, artifact, result, allowed task states and prerequisite evidence.
  • Bind design, PE review and owner approval to exact artifact revisions and task generations. Changed artifacts invalidate dependent approval.
  • Define exploration allowed to answer a question separately from implementation that depends on its answer.
  • Preserve authentic report intake and terminal settlement when a new gate blocks further work.
  • Define native investigation/evidence-review and arena candidate/judge contracts without substituting roles.
  • Check stages and gates at preparation, reservation, binding, continuation and tool execution. Recheck changes during awaited evaluation.
  • Use common ordered admission/mutation coordination. A caller-only check does not establish race safety.
  • Preserve Claude contracts and active ownership. Identify any shared semantic change before implementation.

Verification required

Use tests for missing or unanswered gates, forged owner answers, stale approval, changed designs, held/replanned tasks, concurrent admission and mutation, exact retries and crash recovery. Establish whether native structured question replies provide authoritative answer evidence before designing around them. Keep model-written claims separate from human approval.

Run each complete route in disposable native sessions, then real-model sessions before installed activation. Record which results use simulated responses. Existing blockers #239, #243, #246 and openai/codex#41979 still apply.

Deliver a reviewed design and implementation sequence first. No implementation, settings change, installation or automatic merge is part of this investigation. Claude-owned #119, #105 and #67 remain outside scope.

Owner-answer source audit

The blocking and asynchronous question handlers are byte-identical in upstream tags rust-v0.160.0 and rust-v0.163.0. The blocking handler awaits structured answers; its retained VerifiedAnswer event is conditional on GuardianApproval. The asynchronous handler returns accepted:true after emitting a question, which is not answer evidence.

Sources: blocking handler, asynchronous handler.

Do not require that optional feature or infer an owner answer from an acknowledgement. Next, inspect actual saved question/result metadata in a disposable native trial. Controlled client responses prove transport only; a later real owner interaction must verify the experience. Source inspection is not a live capability result.

Disposable native answer evidence

Real CLI 0.160.0 trials with fixed simulated model and client responses establish a structured question/result path. The saved call and result share the displayed call and turn IDs and exact answer JSON. This also works with guardian_approval=false. An independent evidence review is clean for these first two trials, with no claim of human authenticity, protected production provenance or installed Sage support.

Two additional observation trials show that the native handler returns and saves empty answers and wrong-question-ID answers. Neither yields a retained verified_answer. These are successful transport observations, not approved Sage decisions. The production contract must reject both. The normal UI was not tested for producing these malformed replies, and these observations passed independent evidence review.

All four final trial processes and listeners closed; temporary profiles were removed. The initial fixture assertion omitted two native question defaults, failed, and was corrected to check them explicitly. That attempt is excluded from passing evidence. Cancellation, replay, compaction, restart, asynchronous replies, gate revision binding and real-owner experience remain unverified.

The interrupted-question trial also passed: the native turn ends interrupted, and its paired tool result says aborted by user. No retained answer appears. Independent review R111 is clean for the empty, wrong-ID and interrupted observations, with no production approval or recovery claim. The final interruption fixture also directly asserts matching turn metadata and client_authored:false; its fresh run passed with complete cleanup.

Normal-mode requirement and draft

A sixth native scenario selects Default mode with stock CLI0.160.0 configuration. It returns request_user_input is unavailable in Default mode, emits no question and stores no retained answer. The turn completes with the error as its paired tool result. Independent review R112 confirms this narrow observation and cleanup. The successful blocking-question trials above used Plan mode; they do not establish ordinary-mode availability.

The route/approval contract draft now describes immutable stage and question records, display/answer receipts, stale-answer rejection, actual route prerequisites and shared coordination requirements. It preserves question batching and project-qualified board answers. Evidence review is clean for its provisional claims, not feasibility or implementation approval.

The asynchronous tool is registered only for root threads whose selected model catalog advertises support. Source: tool registration. Its immediate accepted:true remains delivery acknowledgement. Next, investigate the later reply association without changing user mode, model or experimental settings. Exact option identity, artifact/generation invalidation and fencing active work still need final design.

Asynchronous native trials

Two disposable CLI0.160.0 Default-mode configurations now have transport evidence. When the fixture model advertises async support, Codex emits the exact question and returns accepted:true. Without advertised support, the forced simulated call returns unsupported call and emits no question. Both accept a later controlled plain-text user turn, saved with its own native identity; that input has no question-call reference. This is not a desktop choice-card click and does not prove that every UI reply lacks an association.

All local processes/listeners closed and temporary profiles were removed. The new evidence still needs an accepted independent review: R113 wrote a report file but its agent ended with a usage-limit error. The run is recorded failed; its report is not counted as a completed clean review. No implementation, installed settings or activation changed.

Owner experience decision — 2026-10-19

G2 is answered: use explicit numbered chat choices when the selected model cannot show question cards. Earlier statements that this choice is pending are historical. This selects the fallback experience; it does not approve implementation or establish authenticated answer capture. Exact question/revision/owner-input binding and all existing execution protections remain required. No mode, model, settings, production source or default changed.

The external autopilot controller comparison is recorded separately as deferred T26. Current approved watcher and diagnostic work comes first.

Activity

  1. added
    codex
    on Oct 17, 2026
  2. erickb336 commented on Nov 9, 2026

    @erickb336
    OwnerAuthor

    Closing as superseded. Codex route completion and merging now work through Codex autopilot (PR #455, T677) and the shared logbook with the takeover gate (PR #448, #459). Owner decision 2026-11-09.

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