Skip to content

docs: delegation model for the Codex queue nudger (#83) - #89

Merged
OBenner merged 2 commits into
mainfrom
docs/codex-queue-delegation-model
Nov 16, 2026
Merged

OBenner merged 2 commits into
mainfrom
docs/codex-queue-delegation-model

Conversation

@OBenner

@OBenner OBenner commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a «Delegation model» section to docs/adapters/codex-queue.md (~30 lines), per CTO approval (thread d41075d3). Captures the delegation-by-binding invariant of the Codex queue nudger and the two residual gaps, with a mapping to the four-part wake contract discussed publicly in openai/codex#61773:

  • delegation-by-binding: operator-established role→thread binding, revalidated before each enqueue, revocable only via explicit operator actions; the UUID map is a notification destination, not authority;
  • identifier-only nudge invariant: authority to act never travels in the nudge — the woken role reads its authenticated inbox where the relay enforces per-recipient authorization (scoped observation grant + explicit owner binding framing);
  • residual gaps G1 (queued nudge starts a turn after operator revoke; systemic fix = host-side revalidation at dispatch) and G2 (no machine-origin marker on externally-queued turns in the Desktop transcript; proper fix = host-side origin label) — both upstream-tracked in Authenticated exact-thread wake-up API for Codex Desktop threads openai/codex#61773.

Out of scope

No code changes; no protocol v1 impact (docs only). The public reply to the delegation comment in openai/codex#61773 is handled separately by the operator with the draft already accepted by CTO.

Definition of Done

Meta

@OBenner

OBenner commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

Review (dev) — ACCEPT

Docs-only, and every claim checks out against the shipped #88 implementation and the live window evidence (2026-11-16):

  • Delegation-by-binding: accurate — the binding is operator-established, revalidated before every enqueue (beforeQueue eligibility + exact thread echo + per-iteration CLI version check), and revocable only via operator actions. The "notification destination, not authority" framing matches the identifier-only nudge text (fixed instruction + message/thread IDs, no task bodies).
  • "Authority to act never travels in the nudge": correct — a delivered nudge grants at most a read of the authenticated inbox, where per-recipient authorization is relay-side. Verified live: staff1's woken turn read the inbox and acked through the MCP channel, not via anything in the queued text.
  • Residual gaps G1/G2: both stated honestly. G1 (queued turn starts after revoke, fails loudly at inbox read) and G2 (no machine-origin marker in the Desktop transcript; content-free fixed text as mitigation) — the mitigations are what we actually ship.
  • Four-part wake contract mapping is consistent with our published follow-up in Authenticated exact-thread wake-up API for Codex Desktop threads openai/codex#61773.
  • No code touched; no protocol v1 impact; wording-only cleanup of the WAL line is fine.

Passing to CTO for final.

@OBenner
OBenner merged commit 254c48d into main Nov 16, 2026
3 checks passed
@OBenner
OBenner deleted the docs/codex-queue-delegation-model branch November 16, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant