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

PropertyBounded harness experimentsOpenAgents Core (oa-worker) & InkyLegacy Microcoder & Psionic engineClaude Code & Codex enginesCursor & Antigravity (ACP)
Request reconstructionEvery experimental token request is rebuilt from the experiment's logNative 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/GeminiAJR1 reconstructs each actual translated request, including pruningCoder reconstructs submitted input; internal model history belongs to Claude Code / CodexCoder reconstructs submitted prompts; ACP session history belongs to Cursor / agy
Prefix and condensationChapters 3 and 7 check logged transformations on finite token arraysFive-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 hitEngine owns compaction and cache behavioragyworker adds #authority prompt-cache expiry & idle compaction (#14031)
Durable reportingChapter 2's hash-chain experiment is in memorySession envelopes (session.coax), sidechain subagent JSONL (oa-subagent.coax), ATIF-v1.8 exportCoder JSONL lines sync before publicationCoder JSONL lines sync before publicationCoder JSONL lines + ACP turn usage records
Durable intent before tool effectsPolicy 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 effectsEngine runs its tools; Coder answers permission controls / hooksACP permission requests answered by policy (allow/deny)
Approval and confinementChapter 5 decides access to three simulated rooms; not an OS sandboxInteractive permission cards, Plan Mode, Full Auto opt-in (#14063), and bypass-immune WalletPayOwned proposal tickets gate commands; Linux workspace profiles confine toolsPermission control / PreToolUse hooks (Claude) or app-server approvals & sandbox (Codex)Chapter 5 policy & --ask; agy_outside inspects workspace paths
Default local executionExplicit experiment grant and budgetsPrimary runtime on apps/openagents-desktop/ (#14053); local Inkling 2 Mini $0 tier or OpenAgents CloudDeprecated in favor of Inky (#13983) and oa-worker (#14053); kept for CLI/replay parityOpt-in delegated subagent behind toggle (#14071) or explicit --engineOpt-in delegated subagent behind toggle (#14071) or explicit --engine
Provenance gateChapter 6 checks explicit source labels and planner/reader viewsHook/permission/read-only bash guards in openagents/core/agents.coax & hooks.coaxExperimental gate is not integrated through every native tool pathLive Router containment uses ceilings, not experimental provenance gateSame ceiling rules when driven by Router
Consent ledgerChapter 18 checks labelled sends, grants and revocationGates remembered facts and opt-in external delegation (#14071); ordinary inference to selected backend stays explicitGates remembered facts; ordinary conversation/tool output not universally ledger-gatedGates remembered factsGates remembered facts
Crash recoveryExperimental replay rebuilds simulated statecoder-host resident execution + Git checkpoints (#14026) + compaction-resistant fork guardsAJR1 verifies complete frames; interrupted intents remain unknownRouter launch/delivery recovery checked; engine tool effects remain engine-ownedStall 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

OperationReuses whatEffects
coder replay IDLogged user text, memory/context snapshots and parent turns, compared with recorded engine-input digestsReads local records; does not re-run the task, its tools or model inference
Gateway playback with GW_REPLAYRecorded HTTP responses in orderSends no gateway request, but commands in returned actions still run for real
Experimental seeded replayKnown model/weights, seed, finite tools and recorded stateRecomputes within the named deterministic experiment; not a promise of hosted-model reproducibility
Deliberate task re-executionA task and a chosen environmentNew 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.

FlowAuthorization boundaryCurrent enforcement and remaining work
Task, files and tool output to selected engineExplicit task and selected/default engine in the user's configured workflowOrdinary conversation goes to that engine; not every byte passes chapter 18's ledger
Remembered user/project facts to engineAdditional persistent context must have an active destination/class grantChapter 18 gates/minimizes remembered facts; missing grants withhold them
Task/event text or watchdog excerpt to System OneAutomatic secondary inference needs a session-class System One grantRouting, Router batch and watchdog use the ledger; refusal yields documented fallback/drop/stuck states
coder decide question and stateExplicit command authorizes that particular System One callNot ledger-gated; chapter 18 documents this explicit-call exception
Query and facts to Vertex embeddingsExplicit ranked recall uses a remote embedding provider; fact text and query leave the machineChapter 19 implements remote embeddings; equivalent destination/class ledger coverage is not established
Native gateway fallbackA different provider is a new destination, even if the task is unchangedMicrocoder uses its configured credentialled gateway plan; per-destination consent enforcement across fallback remains open
Local foreign-history readerExplicit history selection or admitted tool call authorizes local reading within existing permissionsBounded inert data, not a new filesystem grant; secret filtering is not guaranteed
Handoff content into another engineSelection/read permission alone is not authorization for every remote recipientGovern by the continuing task and authorized engine; a universal labelled handoff send gate remains open
MCP/remote tool argumentsGranted tool, destination and task scopeFinite harness adapter checks its policy; chapter 18's labels are not yet joined to all outbound calls
Worker/SSH/Pylon delegationAuthorized machine, provider, tool grant and taskMachine grants and credential handles cover named paths; a universal consent-labelled mesh send path remains open
Local logs and cachesTask/session persistence policyLocal writing is storage, not outbound sharing; it can retain sensitive content
Optional telemetry/training exportSeparate explicit purpose and destination authorizationNo 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.