Skip to content

App Server: expose signed per-thread effective capability and zero-history receipts #36489

Open

Description

@TC-X

What variant of Codex are you using?

Codex Desktop/App Server on macOS

  • ChatGPT app: 26.727.51351 (build 6119)
  • Bundled runtime: codex-cli 0.146.0-alpha.9.2

What feature would you like to see?

A trusted App Server/supervisor API that can launch a fresh top-level thread and return an authoritative, signable receipt for the exact effective worker boundary.

This is needed by hosts that must prove a proposal-only worker has no inherited history and no shell, Node, writable filesystem, inherited environment, nested-agent, Gmail, browser, signed-in app, or message-sending capability before delivering the worker brief. A profile file, request parameters, model output, or caller assertion cannot safely provide that proof.

Current gap

thread/start currently returns useful fragments such as the thread identity, sandbox, approval policy, instruction sources, and active permission-profile provenance. However, it does not return:

  • a complete effective capability/tool manifest after config, permission, plugin, app, MCP, and built-in tool resolution;
  • the exact selected worker/profile content hash;
  • an authoritative zero-history receipt with parent/fork and initial history/input counts;
  • runtime-owned rejection receipts for forbidden capabilities; or
  • a signed/attestable envelope bound to the runtime and exact thread.

Separate calls such as config/read, permissionProfile/list, plugin/installed, app/list, and mcpServerStatus/list are useful for diagnostics, but they are not an atomic thread-specific proof and cannot establish the absence of built-in or dynamically resolved capabilities.

The generated App Server schema also has no effectiveCapabilityManifest field on ThreadStartResponse.

Requested control-plane evidence

Please expose either one atomic launch receipt or a small set of host-owned methods that provide:

  1. Runtime build and protocol/schema hash.
  2. Exact new thread/task ID.
  3. Zero-history proof: no parent, no fork, no resume, zero initial turns/input/history items.
  4. Exact profile/instruction source IDs, paths, and SHA-256 hashes.
  5. Effective sandbox, approval policy, writable roots, environment-inheritance policy, and selected capability roots.
  6. Resolved permission-profile ID plus a hash of the complete effective permission state.
  7. Complete built-in tool, dynamic tool, skill, plugin, app, connector, and MCP manifest, including authentication and read/write capability classification.
  8. Side-effect-free runtime rejection receipts for forbidden capability probes.
  9. Issued time, expiry, signer identity, payload hash, and host signature.
  10. An authoritative worker-termination receipt.

The receipt must be produced by the trusted host/runtime, not by the worker, model, caller, environment variables, or static profile text. Any runtime, profile, plugin, permission, or manifest drift should invalidate it.

Possible API shape

  • Enrich thread/start with zeroHistoryProof and effectiveCapabilityManifest;
  • add a side-effect-free thread/capability/probe method returning runtime-owned rejection receipts; and
  • add an authoritative termination receipt or host-signed combined boundary receipt.

This is adjacent to #30967, which requests first-class per-thread skill/plugin selection. This request is specifically about authoritative evidence of the final resolved boundary so another service can enforce fail-closed readiness before a worker receives sensitive or action-adjacent work.

Safety outcome

Without this interface, downstream systems must remain blocked rather than infer isolation from config files or worker self-report. With it, they can verify one real host-supervised worker and safely gate higher-consequence workflows.

Activity

  1. added
    enhancement
    app
    app-server
    safety-check
    on Aug 1, 2026
  2. github-actions commented on Aug 1, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. BLON333 commented on Aug 25, 2026

    @BLON333

    Downstream Windows evidence and narrow distinction from #36381

    I tested the signed Codex Desktop package 26.818.8289.0 with bundled runtime 0.149.0-alpha.4.3 on Windows. A standard workspace sandbox genuinely prevented writes to the session store, but that is not sufficient for an external admission controller:

    • thread/start can expose effective-looking settings, while turn/start can override sandbox, approval, cwd, and related settings.
    • The current surface exposes no settings epoch, verifier nonce, one-use handle, atomic compare-and-release gate, runtime/config digest, or external-lane binding.
    • requestAttestation / attestation/generate returns an opaque client token; it does not attest the effective per-thread capability state in the trust direction needed by an external controller.

    The #36381 reference implementation appears to provide useful internals that #36489 could reuse: canonical capability snapshots, drift comparison, single-use/expiry handling, atomic claim, strict child ceilings, and denial-before-model-request tests. The remaining requirement here is distinct because it involves a top-level suspended thread plus an external controller:

    1. Create an exact thread with zero initial history/input/model requests and a closed first-input gate.
    2. Atomically snapshot compiled permissions, approval policy, roots, environment/capability definitions, and a mutation epoch.
    3. Bind a verifier nonce, thread/session identifiers, runtime/protocol/config digests, issuance time, and expiry.
    4. Have the Desktop host sign the canonical payload under a verifier-trusted key.
    5. Require turn/start to consume the expected epoch/receipt atomically and reject overrides, replay, drift, wrong-thread use, restart, or concurrent use before any model request.

    App Server can likely reuse the #36381 canonicalization and atomic-claim machinery, but the Desktop/host boundary needs to own the signature because App Server alone cannot prove the closed capabilities of its host. Our downstream admission controller remains fail-closed pending such a primitive.

  4. moias92 commented on Sep 9, 2026

    @moias92

    CLI/macOS: need for native evidence before tool execution

    This issue and the external-controller follow-up overlap with a local one-shot review use case. The additional need concerns evidence that the validated policy was actually applied to a specific tool execution context, before its payload starts.

    Three requirements seem worth distinguishing:

    1. Native evidence bound to the process and call. Relate the policy actually consumed to the tool call, OS child PID/start identity, lineage and executable transitions. A thread receipt or executor handle alone does not establish this binding. In-process tools need equivalent pre-effect enforcement or exclusion.
    2. Blocking validation before execution. The controller must validate the complete, locked resolved state before any tool dispatch. Then, for each call, a non-bypassable native gate must prevent payload startup, including shell startup and imports, until application evidence is validated and a single-use acknowledgement is consumed atomically. Only bounded trusted native bootstrap may precede it. A started event, successful probe or later kill cannot replace this gate.
    3. Invalidation on change. Keep the validated state locked through use, covering permissions, tools and instruction provenance. Reject changes, including change-then-revert sequences, before use. Missing, mismatched, expired or replayed evidence, or observer loss while waiting, must prevent release; evidence cannot transfer between calls or children.

    The baseline is static analysis associated with CLI 0.153.4 on macOS 26.6.2. App Server is only a candidate route. This work does not provide an implementation or runtime validation of the proposed protocol; these are requirements, not demonstrated guarantees.

    For this local consumer, unsigned native evidence could be acceptable under an explicitly trusted host/engine, excluding malicious same-UID processes, administrators and a compromised engine. This does not weaken or replace the signed Desktop/host guarantees requested here.

    Should this application-and-release requirement stay here or become a narrower linked issue? Pointers to supported versioned native producers/barriers and the relevant upstream component owner would help before implementation. This request makes no development, maintenance or release commitment. Detailed scenario constraints can follow if useful.

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

    appapp-serverenhancementsafety-check

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions