Skip to content

Codex controller: transport and restricted turn adapter (T29) #291

Closed

Description

@erickb336

Sage task T29. First implementation unit of the opt-in terminal controller for #88.

The owner approved a separate opt-in terminal client. Codex desktop keeps manual coordination until independently verified integration exists.

Implement a provider-local App Server transport and restricted thread/turn adapter in packages/sage-codex/runtime/. Keep Codex APIs and configuration out of shared core.

Acceptance:

  • Associate responses with exact request IDs and connection generations, including integer zero and string IDs.
  • Handle reordered replies, duplicate/unknown responses, malformed records and disconnects without replaying uncertain operations.
  • Provide no generic request escape that bypasses the restricted thread/turn entry points.
  • Reapply the explicit environment restriction before every new or resumed turn. Native CLI 0.160.0 trials showed tools return after a fresh-process resume if the next turn omits this restriction.
  • Preserve selected model and permissions. Expose required local-process configuration explicitly; do not pretend transport code authenticates the process launch.
  • Keep server-request handling free of command, patch, app, child, logbook or merge effects.
  • Test behavioral failures on detached main, then pass build/check/full tests and two independent final-head code/security/QA cycles.

This component is not full autopilot. Complete hierarchy, shared ownership, trusted execution context, gates, abrupt-loss recovery, isolated publication and real-model/installed acceptance remain required. Do not change defaults or Claude-active board work.

Activity

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