Skip to content

Codex controller: bind native requests before effect admission (T31) #296

Closed

Description

@erickb336

Sage task T31.

Parent: #88. Supports #295 and #243 without closing either.

Implement a strict, provider-local binding boundary between a trusted native host connection and a later Sage action evaluator. Preserve the complete chief/lead/specialist workflow. Do not activate automatic operation or grant effect authority.

Requirements:

  • Bind one immutable trusted assignment, native generation, thread and active turn. Treat these constructor inputs as caller authority, not independently authenticated proof.
  • Parse the actual native dynamic-call event format, reject extra envelope fields and malformed/non-JSON values, and preserve namespace/name/call correlation.
  • Refuse foreign/stale generation or turn, unexpected tool, duplicate/reentrant call, closed binding, and model-supplied role/task identity.
  • Require strict action-argument validation before staging a request. A staged envelope is not permission to execute an effect or publish state.
  • Snapshot returned request/assignment data. Do not retain mutable caller objects.
  • Keep native policy production, common ownership, task/gate/approval checks, durable effect intent/replay and real action adapters as explicit later dependencies.
  • Add behavior tests, including failures before a fake effect boundary. Prove every new test fails on detached main. Run build, check and the full suite; complete two clean independent code/security/QA cycles on the final head.

Source scope: only packages/sage-codex/runtime plus regenerated build output. Do not edit Claude-active board, hook, state-tool or review-profile work. No model turn operation or generic execution API is added. No default change.

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