Coder guarantees and authorization
This is the shared interpretation of the implementation chapters. An experiment can establish a property of its bounded profile without establishing it for every live engine. "Implemented" means the chapter's named scope runs; it is not a security audit or a performance comparison.
Coverage by execution path
| Property | Bounded harness experiments | OpenAgents Core (oa-worker) & Inky | Legacy Microcoder & Psionic engine | Claude Code & Codex engines | Cursor & Antigravity (ACP) |
|---|---|---|---|---|---|
| Request reconstruction | Every experimental token request is rebuilt from the experiment's log | Native Coax transcript DAG (transcript_dag.coax) and prompt-cache boundary (prompt_cache.coax) rebuild requests; SSE streaming on Psionic Metal/CUDA, OpenAgents Cloud, and Vertex/Gemini | AJR1 reconstructs each actual translated request, including pruning | Coder reconstructs submitted input; internal model history belongs to Claude Code / Codex | Coder reconstructs submitted prompts; ACP session history belongs to Cursor / agy |
| Prefix and condensation | Chapters 3 and 7 check logged transformations on finite token arrays | Five-layer #authority compaction pipeline (compaction.coax) + cache-exact FORK_AGENT sibling placeholders (oa-subagent.coax) | Frozen system/schema and exact post-pruning bodies recorded; byte-prefix does not imply cache hit | Engine owns compaction and cache behavior | agyworker adds #authority prompt-cache expiry & idle compaction (#14031) |
| Durable reporting | Chapter 2's hash-chain experiment is in memory | Session envelopes (session.coax), sidechain subagent JSONL (oa-subagent.coax), ATIF-v1.8 export | Coder JSONL lines sync before publication | Coder JSONL lines sync before publication | Coder JSONL lines + ACP turn usage records |
| Durable intent before tool effects | Policy experiments log decisions before simulated effects | #authority permission engine (permissions.coax, members.coax), Seatbelt/sandbox + gitguard, bypass-immune WalletPay (#14057) | Command/view intent durable before execution; recovery never retries unknown effects | Engine runs its tools; Coder answers permission controls / hooks | ACP permission requests answered by policy (allow/deny) |
| Approval and confinement | Chapter 5 decides access to three simulated rooms; not an OS sandbox | Interactive permission cards, Plan Mode, Full Auto opt-in (#14063), and bypass-immune WalletPay | Owned proposal tickets gate commands; Linux workspace profiles confine tools | Permission control / PreToolUse hooks (Claude) or app-server approvals & sandbox (Codex) | Chapter 5 policy & --ask; agy_outside inspects workspace paths |
| Default local execution | Explicit experiment grant and budgets | Primary runtime on apps/openagents-desktop/ (#14053); local Inkling 2 Mini $0 tier or OpenAgents Cloud | Deprecated in favor of Inky (#13983) and oa-worker (#14053); kept for CLI/replay parity | Opt-in delegated subagent behind toggle (#14071) or explicit --engine | Opt-in delegated subagent behind toggle (#14071) or explicit --engine |
| Provenance gate | Chapter 6 checks explicit source labels and planner/reader views | Hook/permission/read-only bash guards in openagents/core/agents.coax & hooks.coax | Experimental gate is not integrated through every native tool path | Live Router containment uses ceilings, not experimental provenance gate | Same ceiling rules when driven by Router |
| Consent ledger | Chapter 18 checks labelled sends, grants and revocation | Gates remembered facts and opt-in external delegation (#14071); ordinary inference to selected backend stays explicit | Gates remembered facts; ordinary conversation/tool output not universally ledger-gated | Gates remembered facts | Gates remembered facts |
| Crash recovery | Experimental replay rebuilds simulated state | coder-host resident execution + Git checkpoints (#14026) + compaction-resistant fork guards | AJR1 verifies complete frames; interrupted intents remain unknown | Router launch/delivery recovery checked; engine tool effects remain engine-owned | Stall watchdog (cue_watch) + session/resume / session/load |
Microcoder and Psionic emit versioned request-attempt observations. They identify the configured model and requested effort, preserve missing usage as null, and separate provider cost from the static estimate. The separate private AJR1 journal reconstructs owned-worker requests. Neither record proves resolved model identity. Codex's cumulative snapshots remain a different scope.
The Psionic path currently shares Microcoder's loop on a Chat Completions server. It does not inherit server prefix-cache or constrained-generation qualification merely by selecting --engine psionic. See chapters 9–12 for named engine versions, recorded protocol fixtures and live limitations. The same permission names across engines do not imply identical enforcement.
The complete format, bounds, defaults and executable integration checks are in owned loop v1.
What replay means
| Operation | Reuses what | Effects |
|---|---|---|
coder replay ID | Logged user text, memory/context snapshots and parent turns, compared with recorded engine-input digests | Reads local records; does not re-run the task, its tools or model inference |
Gateway playback with GW_REPLAY | Recorded HTTP responses in order | Sends no gateway request, but commands in returned actions still run for real |
| Experimental seeded replay | Known model/weights, seed, finite tools and recorded state | Recomputes within the named deterministic experiment; not a promise of hosted-model reproducibility |
| Deliberate task re-execution | A task and a chosen environment | New execution with real effects; use a disposable checkout and explicit authorization |
Do not infer equivalent replay modes from the word alone. A missing parent, engine-owned history or deliberately redacted input can limit reconstruction. Treat an unavailable input as unavailable, not as a successful verification. A verified hash chain establishes internal consistency relative to retained evidence. A party that can replace all records and their trusted heads can rewrite history consistently.
Recovery and interrupted effects
A complete recorded result can be retained across recovery. A call that started but has no durable completion may have acted already. It has an unknown outcome until reconciled; a process dying does not make its effects safe to repeat. Exactly-once external effects require receiver-supported operation identity or reconciliation, not only a local intent record.
Chapter 20 checks specific Router boundaries: adopting an already started Worker, finding a posted issue comment by its marker, and completing or reporting interrupted work. Those checks do not qualify arbitrary shell, file or network effects inside every engine. Automatic retry of such effects needs a declared retry contract and its own evidence.
Outbound authorization and current enforcement
An explicit instruction to use a named engine authorizes sending the task and the context needed for that work to that engine's provider. That is ordinary inference. It is distinct from uploading logs for telemetry or training. Engine selection does not authorize unrelated disclosures, and data found inside a repository or historical transcript cannot grant a new destination or widen policy. Existing user authorization persists; a ledger is a mechanism for selected flows, not a reason to ask the same question again.
The following inventory distinguishes that intended authorization contract from ledger enforcement. It does not claim the current runtime enforces every row uniformly.
| Flow | Authorization boundary | Current enforcement and remaining work |
|---|---|---|
| Task, files and tool output to selected engine | Explicit task and selected/default engine in the user's configured workflow | Ordinary conversation goes to that engine; not every byte passes chapter 18's ledger |
| Remembered user/project facts to engine | Additional persistent context must have an active destination/class grant | Chapter 18 gates/minimizes remembered facts; missing grants withhold them |
| Task/event text or watchdog excerpt to System One | Automatic secondary inference needs a session-class System One grant | Routing, Router batch and watchdog use the ledger; refusal yields documented fallback/drop/stuck states |
coder decide question and state | Explicit command authorizes that particular System One call | Not ledger-gated; chapter 18 documents this explicit-call exception |
| Query and facts to Vertex embeddings | Explicit ranked recall uses a remote embedding provider; fact text and query leave the machine | Chapter 19 implements remote embeddings; equivalent destination/class ledger coverage is not established |
| Native gateway fallback | A different provider is a new destination, even if the task is unchanged | Microcoder uses its configured credentialled gateway plan; per-destination consent enforcement across fallback remains open |
| Local foreign-history reader | Explicit history selection or admitted tool call authorizes local reading within existing permissions | Bounded inert data, not a new filesystem grant; secret filtering is not guaranteed |
| Handoff content into another engine | Selection/read permission alone is not authorization for every remote recipient | Govern by the continuing task and authorized engine; a universal labelled handoff send gate remains open |
| MCP/remote tool arguments | Granted tool, destination and task scope | Finite harness adapter checks its policy; chapter 18's labels are not yet joined to all outbound calls |
| Worker/SSH/Pylon delegation | Authorized machine, provider, tool grant and task | Machine grants and credential handles cover named paths; a universal consent-labelled mesh send path remains open |
| Local logs and caches | Task/session persistence policy | Local writing is storage, not outbound sharing; it can retain sensitive content |
| Optional telemetry/training export | Separate explicit purpose and destination authorization | No broad permission follows from ordinary inference or local logging; gate and qualify any exporter before use |
A refused System One decision may still use the first eligible automatic engine: that engine's ordinary inference still occurs. With no eligible engine, Coder refuses dispatch. CODER_ROUTE_ENGINES bounds automatic candidates; recent typed provider failures impose local cooldowns. Explicit --engine intentionally overrides those hints. A failure never silently resends an existing task to another engine. Local Psionic inference may have a local destination, but the surrounding gateway plan, embedding or decision calls must be considered separately.
Revocation stops future covered sends; it cannot recall bytes already sent. Summaries retain their source classes. A full, invalid or concurrently updated consent store must not invent a grant. Chapter 18's finite ledger capacity and cross-process behavior limit the current integration.
Plugin and tool trust
Local shell plugins run commands and hooks with host authority. Bounded Wasm plugins receive admitted imports and resource bounds. A signature authenticates an artifact; it does not convert shell code into confined code or establish that its behavior is benign. Chapter 15 documents both forms.
Coder's policy ceiling is an admission decision. OS confinement is a separate mechanism. Path checks and tool labels alone do not confine an arbitrary program that opens files or accesses the network indirectly. Selected hooks must cover self-approved engine tools as well as explicit permission requests; chapter 20's Claude lab demonstrates why.
Evidence and maintenance
Correctness, privacy and authority requirements remain obligations even if they reduce task completion. Compare optional mechanisms against a simple baseline; do not use that comparison to remove a mandatory boundary.
Survey sections describe adopted designs at three states: implemented with named evidence, proposed for an experiment, or rejected with a reason. "What Coder takes" is a design adoption list, not an implementation status marker: an item without named live evidence in its owning chapter remains proposed. The owning chapter and the coverage matrix govern product claims. Present-tense language about another project's behavior is scoped to its pinned revision, not today's installed product. Update this contract when an integration qualifies a stronger claim, linking the actual check and supported host/engine profile.
For the next practical steps see the repository journey and coding pilot.