decisions DECIDED

308. The installer asks the terminal to swap: who holds the swap endpoint, and how a new image travels

Milestone 694 (the installer asks the terminal to swap) builds what this section rules. Milestone 23 (a capability-routed component OS with live replacement) built terminal_supervisor, which replaces line_editor live and answers SWAP with SWAPPED or ROLLED_BACK (line_editor::component::supervisor). Nothing on a real boot sends it. system_initializer passes no swap endpoint (children.rs, the terminal builder), and a replacement is the image the supervisor was handed at birth. Two programs agree on a message and one image travels between them, so the shape is an architect's.

What the code says

The forks

1. Who holds the swap endpoints

2. How the new image reaches the supervisor

3. Which terminals swap

4. What an activation does when a swap rolls back

The new build refused the old state, so the old instance serves on.

5. Members with no swap contract (stated, not a fork)

Only line_editor has a swap contract, §232 (the line_editor swap contract). An install that changes console, input, terminal_sink_caretaker or terminal_supervisor activates them for the next build, which is the next session or the next boot. The supervisor is the swapper and is not swapped this way, as milestone 23 says of the root supervisor. The activation's answer names the members that took effect live and the members that wait.

The wire

On the swap endpoint, from system_initializer to terminal_supervisor: SWAP, with the image frame run as the sent capability and its length in bytes. Answers are unchanged: SWAPPED (with the instance count) or ROLLED_BACK (with the reason). One new refusal reason, "image too large", comes before any quiesce. STOP stays test-only. Both ends are in line_editor::component::supervisor, which is already the contract crate the two programs share.

What it unblocks

Milestone 694's build: one lane for 1a and 2a (the endpoints, the frame run and the wire), then 3 and 4 on top. The test is a typist in a terminal while a package install activates a new line_editor, on all three architectures, with the half-typed line and the history carried over. That is the kernel guest test's swap, driven by the real activation path in place of the test.

The ruling

calef, 2026-10-18 (UTC):