roadmap BUILT

706. A CALL server can tell a Reply from a delegation

Title and slug are drafts.

Raised by the 2026-10-03 security audit's follow-up (finding 11, item (b) of design/audit-reports/2026-10-03-eight-constants-and-thirteen-components.md's reconciliation). An input to fatal risk 7 (the confinement claim). Ruled by calef, 2026-10-03 (UTC): "Option 1 with the typed runtime helper." Recorded as DECISIONS §245 (a CALL server tells a Reply from a delegation), number provisional, which holds the three options and why each won or lost.

The gap

Milestone 634 (a plain SEND received by RECEIVE_CAP never hands the receiver a sender-chosen slot) made x1 on RECV_CAP NO_CAP unless the kernel installed a capability. So the guard every CALL server had was x1 != NO_CAP, and a real capability passes it.

Any client with WRITE on a server's endpoint and GRANT on a capability of its own could SEND_CAP it there. The server invoked reply(x1, ...), which is method 0 on whatever sits in the slot. On a rendezvous nobody receives on, that is SEND, and the server parked for the life of the machine with every client behind it. A delivery that was not a Reply also left its slot behind, one of 32. Severity medium: a denial of service on any CALL server, not an escape.

What was built

What proves it

system_tests::user::recv_cap_attack_tests::a_call_server_tells_its_reply_from_a_delegation_on_both_arrival_orders. A client SEND_CAPs a rendezvous nobody receives on, and another CALLs, on both arrival orders. The server trusts only the tag. It must answer the caller and end holding what it held before.

It tests the tag, not the hang, and that is a choice the brief allowed. A test of the hang itself would have to end a thread blocked in SEND, which needs the timed receive milestone 417 (a usurper that reports instead of hanging) waits on. The replayable falsification zeroes the two stores. Replayed on aarch64 on 2026-10-03, it fails at the predicted assertion: the server deletes the Reply as a delegation, and the caller is never answered.

BUGS

Architectural parity

All three ISAs at once. The tag is written in kernel/src/sched.rs, shared scheduler code, and the runtime helper reads it through invoke5, which each ISA already implements. The test is in the system-test image every leg boots; the falsification is replayed on aarch64 only, as script/falsifications does for every kernel test.

Follow-on

Index row

RECV_CAP tags a CALL's Reply in x4 (abi::rendezvous::REPLY_DELIVERED), and every CALL server receives through user_mode_runtime::recv_request, whose typed Reply is the only thing reply accepts and which deletes an unwanted delegation (DECISIONS §245). A client can no longer park a server or leak its slots by SEND_CAPing where it should CALL.