ADR 0014 — The host decides: the guest’s kernel may tighten, never grant
- Status: accepted (2026-10-08). Design and measurement only: this record moves no enforcement. The first implementation step is S1 below.
- Owner decisions on acceptance (2026-10-08), each taken as the strongest of the options considered: the wire is the decision channel and the broker only performs (§6), with decision ids that also expire; an eval cell’s starting label is Untrusted whatever its spec claims (§3); an eval-cell requirement is switched on in the PR that adds it, so an eval cell is refused rather than run on the weaker path while a release is pending (§9).
- Amended by the owner (2026-10-08), before S5: one decision wire, with a host-performed effect decided and performed in one host-side step (§6). No decision id reaches the guest for an effect the host performs. The only id a guest holds is an approval id, and it expires (§4, §6). The amendment replaces “the broker performs only against a decision id the host issued”, and the S5 rows of §9 and §13 change with it.
- Tracks: milestone M3 of the eval-cell programme, issue #2702 (L-1), ledger row F12.
- Rests on: ADR 0013 (the threat model: the agent holds root in its guest), ADR 0007 (rule ids cited below), ADR 0011 and ADR 0012 (the host key that signs what the host decided is the node’s own, rooted in its measured boot).
- Owner decisions it applies (2026-10-01): D1 built-ins are confined structurally; D2 taint is computed on the host, and the guest may only raise it; D3 a model call is a declared inference sink; D9 no host-agent mode on Tier 2. Survey recommendations it adopts: D6 the guest kernel becomes tighten-only, then is deleted; D10 the workspace is Untrusted by default.
Context
ADR 0013 names the adversary: the agent, with root in its guest. Against that adversary, anything the guest decides is something the agent can turn off. This record says which decisions move to the host, in what order, over which wire, and what number has to be reached before the host’s answer is the enforced one.
Where each decision is taken today (verified on main at 3eb5243d1)
| Decision | Taken by | Enforced against guest root? |
|---|---|---|
| A tool call (read, write, glob, grep, run, web fetch and search, memory) | The guest’s kernel: Kernel::from_certificate (nucleus-tool-proxy/src/main.rs:1586), through mediation::decide_and_record and mcp.rs:398 | No. The guest enforces its own answer. The host decides the same call in shadow over vsock 1028 (nucleus-node/src/host_decide.rs) and enforces nothing. |
| Credentialed egress (broker perform and stream, vsock 1027) | The guest decides first (mediation.rs:442, decide_effect_with_flow), then the host decides again: broker::pdp_decide (broker.rs:145, level_for(op) != Never only) and the host’s pod kernel (host_decide/effects.rs, taint, budget and action-bound approval) | Yes, by the host’s second decision. The guest’s first one only refuses more. |
| Taint | The guest’s flow graph. The host keeps its own HostTaint, raised by guest Observe frames and by every broker response it delivers (PodPolicy::observe_response) | Partly. The host’s label never falls, but it starts clean and learns about guest-local reads only from the guest. |
| Approvals | Guest-performed effects: the guest verifies a node-signed approval and calls issue_approved_token. Host-performed effects: host-owned, action-bound, single-use (host_decide/effects.rs) | Host-performed only. |
| Budget | Host-performed charges: the host’s SharedBudget. A child pod’s allocation: the node’s ledger (pod_authority.rs:1122, try_allocate against the parent), with the parent’s guest pre-checking its own kernel (pod_mgmt.rs:337). Anything else the guest kernel charges: the guest’s own count | Host-performed charges and child allocations. |
| The signed record of what was authorized | Host-performed effects: the host’s journal, signed with a key the guest never holds (host_decide/evidence.rs). The guest’s mediation-receipt and authority-ledger signers still read NUCLEUS_MEDIATION_SIGNING_KEY (art12_sink.rs:119, authority_ledger.rs:70), which the node no longer serves (FETCH_MEDIATION_KEY is always refused, workload_api_protocol.rs:173). The guest’s audit log is signed with a key the guest generates (#3293). | Host-performed only. The guest’s own records are self-attested. |
Two things the 2026-10-01 survey listed as prerequisites are already done. First, the
host’s policy state belongs to the pod, not to the connection: PodPolicy is one
Arc<Mutex<_>> shared by the decision listener and the broker, so a reconnect does not
reset it. Second, P1–P5 hold on main (pod_api/trust_boundary.rs): the guest never
holds the receipt or exit-report key, and a tainted, unapproved or over-budget perform is
refused, as is a reused approval.
The P0b finding
The survey inferred that a /v1/run child under ContainmentMode::MicroVM ran as guest
root. That was confirmed and fixed by #3119 (f937fc9a7). nucleus::ChildConfinement is
now the one decider for the workload and for every /v1/run command. Under MicroVM a
root runtime’s child drops to uid 65534, and a runtime that cannot drop refuses the spawn
(nucleus/src/command.rs:101-118, hardening.rs:358, exhaustive with no _ arm, B-3).
On guests that carry them, the Landlock ruleset (#3273, 2.6.0) and the derived syscall
filter (#3285, 2.7.0) apply to the same children. #3119 is in every release from v2.3.0, and the guest floor is 2.4.0, so no
admitted guest lacks it. /v1/run is still not a workload-door route (DoorRoute has no
Run), which is deliberate and unchanged. Nothing is left to fix here.
What deciding on the host can buy against guest root, and what it cannot
This is the point the rest of the record depends on, so it is stated before the design. An effect belongs to one of three classes:
- G, guest-performed and staying in the cell. A read or write in the scratch disk, a process run in the guest. Guest root performs these without asking anyone. A host decision cannot prevent them, and ADR 0013 does not forbid them: a write inside scratch is not a contract-forbidden effect. What the host buys for class G is state and record: taint the guest cannot launder, approvals and budget it cannot replay, and a signed record it cannot forge.
- H, host-performed and crossing the boundary. Credentialed egress (the broker), a child pod, an approval, a declassification, the signed record. For class H, a host decision is containment: the effect does not happen unless the host performs it.
- N, network leaving the namespace without the host performing it. In-shell egress, DNS and raw sockets (mediated-set rows 5, 6 and 10). The host decision service never sees these. They belong to M4.
So M3’s containment claim is about class H, using class G state the host computes itself. Saying “the host decides every tool call” without this split would claim containment of class G, which no decision service can give.
Decision
1. Decision points, by effect class, in order
| Order | Decision | Class | Becomes |
|---|---|---|---|
| 1 | Taint | G → H | Host-computed from what the host itself observed (§3). The guest may only raise it, by Observe. |
| 2 | Approvals and budget | G, H | Host state for every operation (§4). An approval is a host ledger entry redeemed once, by value. |
| 3 | Credentialed egress | H | Asked for on the decision channel, and decided and performed in one host-side step (§6). No decision id reaches the guest. |
| 4 | A tool call | G | Decided by the host. The guest enforces the stricter of the host’s answer and its own (§2). |
| 5 | The signed record | H | Host-signed only. The guest’s signing paths are deleted (§5). |
The order follows what is containment first. Taint (1) is what makes the decision about egress (3) mean anything under guest root: a host that cannot see a guest-local read has to assume it happened. Approvals and budget (2) are the state the host needs before it can answer every call (4). The record (5) can only be host-signed once the host is the one that decided.
2. What the guest kernel becomes (D6)
The guest keeps its kernel as defence in depth. It never widens the host’s answer:
enforced = stricter(host, guest) Denied > ApprovalRequired > Allowed
stricter is one total function over Outcome, and it is the only way an enforced
outcome is formed (G-1). When both deny for different reasons, the host’s reason is the
one recorded, because the host signs the record. A guest whose kernel is weaker, older or
missing gets the host’s answer. A guest whose kernel is stricter refuses more, and the
host records the refusal as the guest reports it. The record never says “allowed” for
something the host denied.
Deleting the guest kernel (the second half of D6) is not part of M3. It waits until standard pods have migrated and the guest floor has passed the release that carries the host path.
3. Taint, from facts the host observed (D2, D10)
The host computes the pod’s label as the lattice join of:
- Everything the host put into the cell at admission: the scratch and data disks that
workspace_scanreads before any driver runs, labelled Untrusted (D10); the spec; and the declared inputs. For an eval cell the starting label is Untrusted whatever the spec says: a provenance claim is written by the caller, and nothing the caller writes lowers a label. For a standard pod a provenance claim lowers the starting label only when the host verifies it (a digest the node computed over the disk, signed by a key in the node’s trust set), never on the spec’s word. Credentials are withheld from the guest (cred_split), so they add nothing to the guest’s label. - Every response the host delivers: broker replies (already done,
observe_response), streamed replies, and whatever the node hands one pod from another. - The guest’s
Observeframes. These can only raise the label.LabelRaisehas one consumer, the lattice join, so no frame can lower it.
The label is lowered only by a declassification the host verifies. The governor keys
that verify a declassification token move from the guest’s environment
(NUCLEUS_DECLASSIFY_TRUSTED_KEYS) to the host. A key the guest holds is a key guest root
holds.
As built at S3. host_decide::StartingLabel::of is the one decider of the starting
label. An eval cell starts untrusted. A standard pod starts untrusted when
workspace_scan::sources names any caller content for its driver. The untrusted label is
the lattice point web content already has. No provenance claim lowers the label: this node
has no provenance trust set, and a spec has no claim field, so there is nothing to verify.
Today the host lowers its label in one way only: the operator’s action-bound approval of a
held push (#3255), which is spent once (trust-boundary row P5b). The governor-token path is
not on the host yet. A token names a node in the guest’s graph, which the host’s single
label has no counterpart for, and moving the keys out of the guest changes what a standard
pod may declassify. Both are open (S3 PR).
The consequence for an eval cell is intended and visible: an eval cell with an untrusted workspace has the trifecta guard armed from boot. Its outbound effects that need a trusted label are held for approval or declassification from the start, whether or not the guest reports reading anything. This is the conservative reading of “the guest’s silence is not evidence” (A-2). In shadow it shows up as a host-stricter disagreement, classified as initial taint (§10).
4. Approvals and budget as host state
- Approvals.
host_decide::effects::Approvalsalready holds action-bound, single-use approvals for host-performed effects. It is extended to every operation. A guest-performed operation that needs approval getsVerdict::ApprovalRequired { approval_id }. The operator grants it on the host, and the guest’sRedeemconsumes it once (DecisionLedger::redeemandconsumetake ids by value; C-4, C-5). The guest’sissue_approved_tokenthen accepts only a hostVerdict::Allowed. Verifying the node-signed approval in the guest (GuestCapability::ApprovalByPublicKey) becomes defence in depth. - An approval id is the only id a guest holds, and it expires (amended 2026-10-08). A host-performed effect that needs approval is answered with an approval id. Once the operator grants it, the guest sends the request again carrying that id, and only a request that presents it can spend the grant. The id dies at the host’s deadline (the pending window, then the grant’s validity), with the pod’s approval epoch, and on revocation, whichever comes first. A spent, expired, refused, foreign or mismatched id is refused, each with its own reason (§7).
- Budget. The host’s
SharedBudgetis the only spending count. The guest kernel’s budget is a projection of it (PodPolicy::decide_effectalready projects it this way on the host), so a charge the guest kernel makes on its own is never what grants. Child allocations already come from the node’s ledger (pod_authority.rs:1122). The parent guest’s own charge (pod_mgmt.rs:337) stays as a tighten-only pre-check.
As built at S4. When the host’s kernel answers a guest call with ApprovalRequired, the
host holds it as an ordinary pod approval, keyed by the call’s args_digest, in the same
effects::Approvals table and operator API that host-performed effects use. A guest
Redeem of the pending call’s approval spends a grant it finds. One grant releases one
call, so a reconnect does not reset the grant (trust-boundary row P7). When the guest’s
own grant releases a call, the guest’s shadow client sends that Redeem
(GuestCapability::HostApprovalRedeem, Optional: before S6 nothing is enforced from
it). The guest kernel’s budget is not reset from the host’s projection yet. That needs
a field on the Verdict frame, which is a wire change, and it stays open. The host’s own
verdict already reflects the pod’s host budget (PodPolicy::decide_effect).
5. Receipts, host-signed only (P10)
The host’s evidence journal (host_decide/evidence.rs, a key that is never in
PodMaterial, the guest environment or a workload-API reply) signs an authorization
record for every decision, not just for host-performed effects. The guest-side signing
paths that read NUCLEUS_MEDIATION_SIGNING_KEY are deleted, along with the
FetchMediationKey command arm. The node already refuses that command, so the arm is a
dead branch that still parses. The guest’s own audit log (#3293) stays, documented as
guest-attested: it is evidence of what the guest said, never of what was authorized.
The verifiers (nucleus-audit, the JS and Python SDKs) accept an authorization record
only under the node’s host key (C-2: evidence is minted by the checker).
6. The wire: the decision channel, vsock 1028 (G-1)
One wire decides: the decision channel (nucleus-decision-protocol,
DECISION_VSOCK_PORT = 1028). An effect is asked for there, whichever side performs it.
Owner decision, 2026-10-08 (amends the text accepted the same day). A host-performed
effect is decided and performed in one host-side step. The guest sends
Perform(request), or Stream(open) for a call whose body follows. The host then:
- computes the action digest from the request it will execute: method, resolved URL, credential header name, media type, forwarded headers and payload hash. It never takes a digest from the guest (C-2);
- decides with the pod’s policy (
PodPolicy: capability, taint, budget, approvals); - mints a decision id in the pod’s ledger, consumes it by value against that digest, and
journals the authorization host-signed (
host_decide/evidence.rs); - performs, through the one performer (
broker_perform,broker_stream; G-1).
No decision id reaches the guest for a host-performed effect. Check and use are one step under one lock, so there is no window between them (no TOCTOU). There is also no bearer id for guest root to replay, forge or hold past its moment.
- Guest-performed effects keep
Decide→Verdict. The decision id there is a receipt reference only. It authorizes nothing the host does. - Approvals are the one id a guest holds (§4).
PerformandStreamcan be answeredApprovalRequired { approval_id }. After the operator grants it, the guest sends the request again carryingRedeem(approval_id). The host recomputes the digest, checks the id against the pod’s approval ledger and the operator’s grant, and spends both in the step that performs. A stream may also wait for the operator in line, with the host holding the staged body for a bounded time. A grant that arrives during the wait is spent by that stream, so it needs no id at all. - Budget. The reply to
Perform, and the closing frame of aStream, carry the host’s budget projection: what the pod’s host budget has left. The guest kernel resets its budget from it (§4). The host budget moves only when the host charges it, for a host-performed effect or a child allocation, so that is when the guest is told. - Eval cells use no other wire. The broker listener (vsock 1027),
FETCH_BROKER_SECRETand the frame HMAC are retired for them. The node starts no 1027 listener and mints no broker secret for an eval cell, so a guest that dials 1027 finds nothing there.pdp_decideis not on an eval cell’s path: the pod’s policy alone decides its performs. - Standard pods keep 1027 and its secret until the owner raises the guest floor past
the release that carries
PerformOnDecisionChannel(§9). Then 1027,FETCH_BROKER_SECRETand the frame HMAC are deleted outright, not kept in parity (G-1).
Why this channel and not the broker’s:
- Its frames are the one wire declaration P7 built for exactly this. The parser is total,
bounded and canonical, fuzzed, and destructured with no
..on either side (E-1). The host numbers the frames (SeqGate). Ids are host-minted,!Clone, carry an epoch, and are spent by value (C-1, C-4, C-5). - Approvals are already a verdict on it (
ApprovalRequired/Redeem), and taint is already raise-only on it (Observe). - The broker channel authenticates frames with a per-pod secret that the guest fetches
(
FETCH_BROKER_SECRET). M1 is retiring that secret for exactly the guest-root reason. The decision channel needs no secret: the per-pod vsock socket already names the pod, and under guest root the guest’s identity carries no authority anyway, because the host decides from its own state.
What the amendment answers. The runner-up below lost because each effect class would be decided on a different wire, with a different record shape. The text accepted earlier the same day answered that with two wires sharing one ledger: decide on 1028, then perform on 1027 against the id. That still left two wires. It also gave the guest a bearer id for every host effect, good until it expired, however short that was, and it checked on one connection and used on another. The amendment keeps one wire and one record shape, gives the guest no id for a host effect, and makes the check and the use atomic. Approval ids remain, and they expire, so the accepted “ids expire” decision holds wherever an id still exists. It is the strongest of the three readings: what the guest never holds, it cannot replay.
Runner-up (still rejected): decide host-performed effects at the broker, where the effect happens, and use 1028 only for guest-performed ones. It is simpler and is what the host already does for egress. It loses because each effect class would then be decided on a different wire with a different record shape, and the guest would keep a reason to decide egress itself. The plan’s phrase “over the existing broker vsock channel” (#2702) is superseded by this section.
7. Failure semantics: no answer is a denial (ADR 0007 B, A, I-3)
In authoritative mode, the guest’s call to the host has three outcomes, as a type rather
than a Result<bool> (A-1):
#![allow(unused)]
fn main() {
enum HostAnswer { Verdict(Verdict), Unreachable(HostUnavailable) }
}
Unreachable (connect failure, a timeout, a protocol error, a full queue, too many
sessions, a subject too long to carry) is enforced as Denied. The match that forms the
enforced outcome has no _ arm (B-3, E-2). No Option stands for “the host had no
opinion” (B-2). On the host, PolicyUnavailable (the pod is revoked or its lock is
poisoned) closes the channel, which the guest sees as Unreachable, so it denies. The
guest’s client has the same outcomes for Perform and Stream. A guest that cannot
reach 1028 denies the call. It never falls back to 1027, and an eval cell has no 1027 to
fall back to. A Redeem is refused with a distinct reason for each way it can fail (I-3):
approval_unknown (never issued, or another epoch’s), approval_spent (already
redeemed), approval_expired (past the host’s deadline), approval_refused (the operator
refused it) and approval_mismatch (granted for a different request). None of them falls
back to deciding locally, and none spends the grant.
A host that is down denies everything. Availability is outside ADR 0013’s claim: the agent can always crash its own guest, and a host outage that fails closed is the same class of event.
8. Latency budget
The decision now waits on a vsock round trip it used to skip:
| Budget | |
|---|---|
| Added round trip, guest-measured, p50 | ≤ 0.5 ms |
| Added round trip, guest-measured, p99 | ≤ 5 ms |
Hard deadline (then Unreachable, so denied) | 2 s (the shadow worker’s existing DEADLINE) |
Not measured yet. The shadow client does not time its exchanges, and nothing emits a latency. S1 adds the measurement. Missing the budget blocks the flip (§10); it never turns into an allow.
9. Guest compatibility
The floor stays 2.4.0, which is what the GuestCapability table derives. The pin
stays 2.7.0. Every guest-side change in M3 is a new GuestCapability row. Each row is
Demand::Optional or Demand::When(GuestUse::EvalCell), so no row moves the floor (ADR
0013 rule 4 is the pattern):
| Row | Step | Demand |
|---|---|---|
HostDecideShadow (exists, 2.3.0) | — | Optional, unchanged. Standard pods keep shadowing. |
HostDecideTelemetry (new) | S1 | Optional: the guest prints its shadow tally and latency at shutdown. |
PerformOnDecisionChannel (new) | S5 | When(EvalCell): the guest asks for host-performed effects with Perform and Stream on 1028, redeems approvals there, resets its kernel’s budget from the host’s projection, and never uses 1027. It replaces the accepted text’s HostDecidedPerform. |
HostDecides (new) | S6 | When(EvalCell): the guest enforces stricter(host, guest) and denies on Unreachable. |
Each row lands as FirstShipped::NotYet, and its When(EvalCell) demand is switched on
in the same PR that adds the row. Until a release carries the row, no pinned guest can
serve an eval cell, so the node refuses every eval cell by name, naming the missing row.
That is deliberate: the alternative (switching the demand on at the release bump) would
let an eval cell run on the weaker, guest-decided path between the merge and the release,
and an eval cell is the one pod that must never run weaker than its record says. The
release-bump PR then makes eval cells admissible again, on a guest that carries the row.
Eval cells require the new path. Standard pods keep the shadow path and migrate later,
by raising the floor past the release that carries HostDecides. That is an owner
decision, and it is outside M3.
10. The flip criterion: shadow to authoritative
The corpus. The M3 shadow corpus is every x86_64 live-boot-evidence bundle from
quickstart-boot.yml (artifact live-boot-evidence-x86_64), plus, from S2 on, the
operation-coverage pod in the same job. It is read by cargo xtask host-decide-agreement.
Agreement is measured only on honest traffic. Escape-lane runs are falsifiers, not part of
the corpus, because a hostile guest’s Shadow report is not evidence of what it enforced.
Disagreement classes. Each class is computed from the record the host writes
(host-decide-disagreements.jsonl, guest and host outcome), and the classes are never
summed before they are judged:
| Class | Meaning | Tolerated in the window |
|---|---|---|
| guest stricter | the host would have allowed what the guest refused | 0. Enforcing the host’s answer would grant more. |
| host stricter | the host withholds more than the guest enforced | Only when attributed to a listed honest source: host taint (§3: the initial taint, and the pod-wide join, which is never below the guest’s per-node graph), an approval granted in the guest only, guest-held declassification keys. 0 unattributed. |
| differing reason | both refuse, for different reasons | 0 unattributed: the signed record would name another cause. |
| unclassified | a disagreement with no record | 0 |
The reader attributes a host-stricter pair to host taint when the host’s refusal is
denied:flow_refused. S2’s first live table (run 37835337702) had one such pair: after web
content, a write the guest held as approval_required and the host refused. S3 settled it
in the host’s favour. A write is not an action-bound sink, so no approval declassifies its
flow. The guest offered an approval only from its exposure gate, which it reached because
its own graph did not count the write as tainted. Every other host-stricter pair is
unattributed until a source is listed here, and the reader turns it red.
The threshold. The host becomes authoritative for eval cells (step S6) when one window, of at least 14 consecutive days and at least 2,000 compared decisions, with at least 50 compared decisions for every operation in the coverage set (S2), shows all of the following:
- agreement ≥ 99.5 % of compared decisions;
- the class bounds above;
- not compared (host faults plus guest
HostUnavailable) ≤ 0.5 % of decisions, each one attributed. Teardown races are counted separately and do not consume the bound; - zero unreadable bundles. A window that contains one is restarted, not averaged;
- the latency budget (§8) met.
The rate in (1) is the weakest of these five conditions. Conditions 2–4 are what can actually stop a flip.
11. What this measures today
Read with this PR’s reader (cargo xtask host-decide-agreement) over every
live-boot-evidence-x86_64 bundle GitHub still held on 2026-10-08. That is 103 runs of
quickstart-boot.yml (push, merge-group and pull-request events), 2026-10-06T22:52Z to
2026-10-08T17:39Z, at 83 distinct commits:
| Pods with a decision channel | 206 (2 per run), all 206 reporting a teardown tally |
| Decisions compared | 200: agree 200, disagree 0 |
| Agreement | 200/200 = 100.00 % of compared decisions |
| Disagreement classes | host stricter 0, guest stricter 0, differing reason 0, unclassified 0 |
| Not compared | 6 host faults, all PolicyUnavailable: the posture pod’s one decision arrived after the pod’s policy was revoked at teardown (runs 37570296062, 37632643270, 37671016125, 37716703532, 37800156603, 37806146438) |
| Not visible in any artifact | the guest’s HostUnavailable count (it is only in the guest’s /v1/health), the operation behind each agreement, and latency |
This does not clear the criterion, and the record says so. The corpus is two decisions
per run. 103 of the 200 are the credentialed pod’s web_fetch (the host’s signed
host-effects.jsonl names it). The other 97 are the posture pod’s one decision, whose
operation no log names. “100 %” here means that 200 decisions over at most two operations
agreed. It says nothing about the operations nobody exercised, or about decisions the
guest could not put to the host. Those are “could not measure”, not agreement (A-2,
A-5).
12. The mediated set and ledger row F12
Row (docs/architecture/mediated-set.md) | Today | After M3 |
|---|---|---|
| 5 in-shell egress, 6 DNS, 10 netns raw socket | backstopped-only | Unchanged: M4. M3 does not see this traffic. |
| 7 vsock (broker, task token, SVID) | partial | mediated at S5+S6: the host decides every vsock frame that causes an effect, in the step that performs it, under a decision id it mints and spends itself. An eval cell has no 1027. Workload-API frames carry no agent authority (M1 retires the served secrets). |
| 8 pod-dir socket (container broker) | partial | Unchanged. An eval cell refuses the container tier, so the row is outside the eval cell. |
| 9 node API (pod management) | partial | Unchanged. Child allocations are already the node’s ledger. An eval cell reaches the node API only if its allowlist names the node. |
F12 (the fine-grained decision point survives compromise of the guest it polices)
moves from NOT-YET to TESTED at S6. Its falsifier is the escape lane’s guest-root
stage (below), driven to BREACH on the commit before the flip and CONTAINED after it.
PROVED would need no_sink_reachable_without_discharge stated over the host’s broker and
node paths. That is not in M3.
What M3 does not close: egress the host does not perform (rows 5, 6 and 10, which is M4); class-G effects inside the cell, which no decision service can contain; standard pods, which stay in shadow until the owner raises the floor; timing and microarchitectural channels; and anything a compromised guest prints on its console.
13. Implementation sequence
Each step is one PR. Each has a definition of done and an A-19 falsifier: the check is driven red on the real defect (old behaviour restored), then green. Falsifiers that need a hostile guest are run by the existing escape lane (#3106’s canary, the guest-root mode of M2, and #3338’s verdict once it lands), never by new code in this programme’s PRs.
| Step | What lands | Definition of done | A-19 falsifier |
|---|---|---|---|
| S0 (this PR) | This ADR. cargo xtask host-decide-agreement. | The numbers in §11 come from the reader, at the run ids named. | Reader unit tests are driven red by restoring each defect it refuses: a tally read as zero, a vacuous 100 %, a missing log read as “no shadow”, an unreported pod folded in, a differing reason misclassified (PR body). |
| S1 Measurement complete | Node: the teardown tally as numeric fields, plus per-operation × outcome-pair counts, plus Decides never reported at close, plus host service time. Guest (HostDecideTelemetry): its tally, HostUnavailable by kind, and round-trip p50/p99 on the console at shutdown. live-boot-evidence copies host-decide-disagreements.jsonl into the bundle. The reader consumes all of it, and an unclassified disagreement is exit 1. | The reader reports per-operation counts, host and guest not compared separately, and latency, from a real bundle. | A bundle whose tally says disagree > 0 with its record file withheld exits non-zero (red) and passes with the file restored (green). A node built with the shadow listener disabled reads as “could not measure” (exit 2), never as agreement. |
| S2 Operation coverage | A second pod in the live-boot job, honest traffic only: one permitted call and one refused call per door route and per broker operation. | The reader shows ≥ 1 compared decision per operation per run. | Remove one route from the workload and the coverage check reds, naming the operation. |
| S3 Host taint from host facts (D2, D10) | PodPolicy’s HostTaint starts at the join of the admitted inputs (§3). Declassification is verified on the host. Shadow continues; host-stricter rows are attributed to initial taint. | New trust_boundary row UnobservedTaintHeld Holds: a pod with an untrusted workspace, whose guest sends no Observe, has its outbound push held by the host. | On main the row is Gap: the host’s label is clean until a broker response, so a guest that stays silent is not held. Red on main, green after. Live: the escape lane’s “silent read, then direct broker call” stage. |
| S4 Approvals and budget on the host | effects::Approvals covers every operation. Guest approvals are redeemed with Redeem. The guest kernel’s budget is reset from the host’s projection on every verdict. | trust_boundary row GuestLocalApprovalReuseRefused Holds. The host’s verdict for a guest-performed call reflects the pod’s host budget. | On main, a guest-performed call that needs approval is released by the guest’s own issue_approved_token, so the host never sees the grant and cannot refuse its reuse after a reconnect. Red on main, Retired after. |
| S5 One decision wire (G-1), amended 2026-10-08 | Perform and Stream frames on 1028. The host computes the digest, decides, mints and consumes the decision id in the pod’s ledger, journals it and performs, in one step, through the one performer. Approvals: ApprovalRequired, then Redeem on the re-sent request, with ids that expire. The reply carries the host’s budget projection, and the guest kernel resets from it. An eval cell gets no 1027 listener and no broker secret (PerformOnDecisionChannel, switched on). Standard pods are unchanged. | An eval cell is served only on 1028. A perform the host’s ledger did not decide is never executed. A spent, expired, refused, foreign or mismatched approval id is refused by name. | Each is driven red on main’s behaviour (PR bodies): an eval cell’s guest that dials 1027 is served; a perform runs with no ledger decision; a re-sent request spends a grant without its id, or with a spent or expired one; the guest falls back when the host is unreachable; the guest kernel keeps its own budget count. |
| window | Shadow continues over S1–S5 traffic until §10 holds. | §10, from the reader’s output, quoted in S6’s PR. | — |
| S6 Authoritative for eval cells | The guest enforces stricter(host, guest) and denies on Unreachable (HostDecides). | The escape lane’s guest-root stage “proxy killed, untrusted content read silently, host perform asked for directly” is CONTAINED. F12 → TESTED. ADR 0013’s self-escalation row → answered. | The same stage is BREACH on the commit before (S3 and S5 reverted): guest root’s direct perform after a silent read is performed. |
| S7 Receipts host-signed only (P10) | Every decision gets a host-signed record. The guest’s NUCLEUS_MEDIATION_SIGNING_KEY paths and the FetchMediationKey arm are deleted. The live-boot bundle carries the host decision journal. | nucleus-audit verify and both SDK verifiers accept a decision record only under the node’s host key. | A bundle whose decision record is signed by a guest-generated key is refused. Red against a verifier that accepted it. |
Order: S1 → S2 → (S3 ∥ S4) → S5 → window → S6 → S7. S7 may run beside S6. M4 (the mediated network, rows 5, 6 and 10) follows. Standard-pod migration and deleting the guest kernel come after M4, and both are owner decisions about the floor.
Consequences
- No pod changes behaviour when this record is accepted. Every step before S6 is shadow, host state, or measurement.
- At S6 an eval cell’s tool calls wait on a vsock round trip, and a host that does not answer denies. Standard pods are unaffected until the owner moves the floor.
- An eval cell with an untrusted workspace has its outbound effects held from boot (§3). That is the cost of not trusting the guest’s silence, and it is visible in shadow before it is enforced.
- Between the S5/S6 merges and the next guest release, eval cells are refused by name (§9). Their availability is traded for never running weaker than the record says.
- The live-boot corpus is thin today (§11). S1 and S2 are what make the flip criterion decidable at all. Until they land, the honest statement is “200 of 200 compared decisions agreed, over at most two operations”.