roadmap BUILT

633. An outside agent attacks the confinement claim

Raised 2026-10-03 (UTC) by calef, when he ruled risk 7 (the confinement claim is false) AMBER on #1495. The number is minted by the maintainer; the title and slug are drafts. calef's ask: task an agent, likely on Fable (model id claude-fable-5-1), to be risk 7's adversarial review.

Why

Risk 7's amber has one named cause: every test and audit of confinement was written by the people and the model family that built it. The in-house passes found real defects (tests that could not fail, three times; claims false in milestone 313 (the security audit that was due since August) and on 2026-09-21) and no escape on a component's own authority. What nobody has run is an attacker who was not in the room. design/fatal-risks/README.md gates the human outsider behind milestone 198 (a package manager, and the trivial install that makes a second customer possible). This milestone is the half of that experiment that needs no stranger.

The experiment

One reviewer agent, briefed with two things only: the 30 published claims in notes/confinement-claims.md and the repository. Independence is the point, so these are the rules:

Premise check

An agent from the same vendor is a weaker outsider than an independent human red team. Shared training may mean shared blind spots, so a class of defect the builders could not see may be one the reviewer cannot see either. That bounds what the result can do.

Record this as the first outsider pass and not the last. The stronger forms are an external human review, or a public bounty once a stranger can install nife, which waits on milestone 198.

Done means

Cost

An estimate, not a measurement: one long reviewer session per ISA plus the fixes it prompts. The review itself is a few million tokens at most. The $200 monthly budget is the constraint, so run it as one lane after the current queue drains and not beside other lanes. QEMU time is small.

Nothing blocks it. It cites risk 7 and is the owner of that risk's remaining half in the running order of design/fatal-risks/README.md.

BUGS

Follow-on

What the first outsider pass found (2026-10-03 UTC)

A Fable reviewer attacked the confinement surface by reading the enforcement and, where it could prove a result cheaply, by a test. It left the three-ISA QEMU sweep undone; the third pass below ran it. The human-outsider half is milestone 198's, as the premise check above says.

One escape, found and fixed

A plain RECEIVE that collects a parked SEND_CAP sender left the sender's delegation staged, and the sender's next plain SEND delivered it to a RECEIVE_CAP on another endpoint. A capability granted to one endpoint reached a receiver on a different one, which is a process reaching an object it was not granted. It is the non-abort sibling of the hazard the 2026-10-03 security-audit follow-up closed in set_ipc_aborted: the teardown path clears outgoing_cap, but the successful-collect path in sched::ipc_receive does not go through set_ipc_aborted, so the clear was missing there. Milestone 634 (a plain SEND received by RECEIVE_CAP never hands the receiver a sender-chosen slot)'s cap_delivered guard does not catch it, because that guard covers the receiver-parks-first order and this leak takes outgoing_cap on the sender-parks-first immediate path of ipc_receive_cap.

Milestone 634 merged as #1503 earlier the same day, so there was nothing to sequence against.

Every claim, attacked, and what each ISA actually evidences

The sweep is gated in CI, not on this machine: the test target boots the kernel suite on aarch64, riscv64 and x86_64, and ci.yml and verify.yml were dispatched on the branch. A host proof is one artifact for every ISA by construction. A kernel test runs on each ISA the table names, but its falsification record names one architecture, so "runs on three, recorded on one" is the honest reading wherever it appears. That gap is milestone 323 (the falsification record is incomplete in five ways, and each was found by a different lane)'s and is not re-raised here.

# Attack this pass ran ISA evidence Outcome
1 Looked for a derive, put or insert path that stores more than the source holds host proof, every ISA held
2 Traced every kernel site turning a user register into Rights: SEND_CAP and CAP_INSERT, both via from_bits then the subset check host proof plus kernel read, every ISA held at the boundary, not only in the crate
3 Looked for a mint site outside derive that takes a rights argument; mint_child takes none host proof, every ISA held
4 Looked for a slot that answers after delete or delete_matching host proof, every ISA held
5 Looked for a sweep that touches a bystander slot host proof and host test, every ISA held
6 Looked for a reap authorized by anything but the supervision rendezvous host proof, every ISA held
7 Looked for a liveness-dependent refusal to a stranger host proof, every ISA held
8 Looked for a survey entry outside the invoked rendezvous's domain host proof, every ISA held
9 Looked for a divergence between the view predicate and the reap predicate host proof, every ISA held
10 Checked each encoder's user-VA gate for the low half and alignment three host proofs, one per ISA held on all three
11 Checked which encoder is proved W^X host proof on x86_64 only held where proved; no aarch64 or riscv64 harness states the claim, so proposed, and since built as no page is both writable and executable, proved on every ISA
12 Read the VT-d entry encoder for reserved bits host proof, x86_64 by subject held
13 Looked for a descriptor the shadow copies from outside the region host proofs, every ISA held
14 Looked for an indirect descriptor reaching the shadow host proof, every ISA held
15 Looked for an unbounded or out-of-ring walk host proofs, every ISA held
16 Looked for two queues sharing a ring block host proof, every ISA held
17 Asked whether a post-validation write can reach the device: it writes the driver's copy, the device reads the shadow structural, every ISA held; unfalsified on purpose, the structural disposition notes/confinement-claims.md records (two disjoint arrays in the harness), not open work
18 Looked for a plan whose rights word is not the declared direction's host proof, every ISA held
19 Read subtree_scope::walk, admit and Bindings for a way up or sideways host proofs; dir_capability_tests runs on all three, recorded on aarch64 held
20 Read the C seam's grant mapping for an out-of-grant page kernel test on all three, falsified by hand held
21 Read the three tests and what each proves aarch64 twice, riscv64 once; x86_64 green with no record held; evidence gap is milestone 323's
22 Checked the per-page low-half refusal in map_segments both tests run on all three, recorded on aarch64 held
23 Looked for a construction path left after the drop kernel test on all three, recorded on aarch64 held
24 Same read as row 19, at the shell kernel test on all three, recorded on aarch64 held
25 Not attacked: the compositor is a userspace server, the class the 2026-09-21 pass also could not reach and the human outsider behind milestone 198 is for kernel test on all three, recorded on aarch64 not attacked; owned by milestone 198
26 Not attacked: a real escape hangs the run, and the fix is a timed receive on the system call surface kernel test on all three not attacked; stays unfalsifiable as written, owned by milestone 417 (a usurper that reports instead of hanging)
27 Read the TSS I/O bitmap, IOPL and the single switch site x86_64 by subject held; every gap fails closed
28 Read the revoke sweep and the NMI broadcast to other cores x86_64 by subject held
29 Read delete_current_cap's local bitmap clear x86_64 by subject held
30 Looked for an in-flight location a sweep misses, and for a completion path that leaves outgoing_cap staged test runs on all three, recorded on aarch64; the new sibling test likewise sweeps held; the completion path broke, and is fixed above

What risk 7's appendix should cite (for the maintainer, under §216)

Observations that are not escapes

The second and third outsider passes (2026-10-05 and 2026-10-06 UTC)

BUILT. Every claim has now been attacked three times by reviewers briefed only with the claims table and the source, and the third pass booted what it could on all three ISAs. The human half stays milestone 198's.

The second pass (#1687): one kernel escape, by read and one boot

Recorded whole in notes/confinement-outsider-pass-2.md. A PortRange capability narrowed to READ still drove x86 port I/O, because the grant install checked no rights: booted red on x86_64, fixed by milestone 768 (a read-only port range grants nothing) and now claim 33. It also read AMD-Vi, which had no claim (milestone 767 (AMD-Vi hardening before the first AMD boot) closed four of its six findings), and eight near misses, each given a BUGS home. Most of its verdicts were read, not booted, which its own BUGS said.

The third pass: booted, one escape at the application boundary, fixed

Recorded whole in notes/confinement-outsider-pass-3.md (name provisional). A Fable reviewer, told to count an attack only when it boots, ran the full suite on each ISA (aarch64 134 passed, riscv64 137, x86_64 216 with 79 skipped) and added three dispatcher tests in system_tests::user::confinement_attack_tests, green on all three. Counts: 1 escape, 4 near misses, 28 held, 0 untestable. Rows 1, 4, 5 and 10 to 18 are host proofs or host tests, one artifact for every ISA; rows 31 and 32 are script/swish-check censuses graded by read.

The retype-GRANT question, ruled (2026-10-07 UTC)

calef ruled option (a) in PR #1798's thread: a retype mints only the budget's rights, so GRANT is delegated, never minted. The fix is milestone 824 (a retype mints no right its budget lacks), which records the refused options.

What risk 7's appendix should cite (for the maintainer, under §216)

Index row

An agent on a different model, briefed with only the 30 published confinement claims, attacks each one under QEMU on three ISAs and reports escapes, near misses and untestable claims. It is risk 7's first outsider pass, not its last.