roadmap BUILT

599. A frame per filesystem client channel

Minted 2026-09-26 by lane milestone/599-fs-client-page, promoted from the proposal a-frame-per-filesystem-client-channel, which milestone 47 (navigation and naming)'s lane wrote on milestone/47-navigation (#1343). The work was first named as case A of notes/shared-page-audit.md by milestone 43 (a second security audit) and never got a number. calef ruled option A (badged endpoints) on 2026-09-26; the same lane built the kernel mechanism, the file server's K windows, the kernel-harness pool, and the witness that proves isolation on all three architectures. What is left is the production progenitor's pool, which has a design question of its own and its own gate; see "What is left". (Number and title provisional: the integrator mints the number at merge, and the title is a draft until an architect names it.)

The proposal said the work had no gate, "a wiring change inside the tree". Reading the server said otherwise: it receives on one endpoint, learns nothing about its caller, and reads every request from one window. A per-client frame it can read needed badged endpoints, a kernel remap at the rendezvous, or a token convention among the page's writers, and calef chose badged endpoints. The second fork, how the progenitor holds the windows, is open; see "What is left". Neither has a section in design/decisions/ yet; the integrator mints them from the note.

The finding, checked 2026-09-26

The file service shares one read-write staging channel (fs::TRANSFER_PAGES, 16 pages, 64 KiB) with every client a boot wires. In the kernel harness it is FILE_SHARED, memoised by fs_service::ensure. On the interactive boot it is the progenitor's BootEndowment::fs_page, which the shell maps at SH_FS_VA and every build_caretaker chain maps at FS_CLIENT_PAGE_VA, caretaker and confined program both (crates/system_initializer/src/lib.rs). What keeps clients apart is which of them is blocked, not what they can map.

It is a correctness bug as well as a confinement one. A client stages its bytes and then calls, so two honest clients active at once overwrite each other; notes/pipes/the-file-end.md is why the shell writes a > file itself rather than letting a second process do it. Today every path keeps one FS client active at a time. The set grant at the prompt would not.

What is built (2026-09-26, option A)

calef ruled option A: a server tells its clients apart by a badge the kernel delivers.

What is built (2026-09-27, the production pool)

calef ruled option 4 of the pool's fork on #1413 (2026-09-27 15:29Z): one run capability over the windows, and a new PageFrame method that derives a capability naming part of it. notes/page-frame-slice.md is the method's semantics write-up, in the shape of §102 (a Frame names a run of pages).

What it costs

From constants, not a boot: 64 KiB of contiguous memory per concurrent client channel, where the whole boot shares one 64 KiB channel today. Carved from a directory job's region (DIR_JOB_REGION_PAGES, 96 pages), that adds about 17% to each job. Per-request cost depends on the option: nothing added under A, a window remap under B, two rendezvous and a copy under C.

What it unblocks

Milestone 47 (navigation and naming)'s set grant at the prompt, which names this as its prerequisite. A ruling on option A would also decide option 1 of the proposal every-client-of-a-network-stack-shares-its-socket-numbers, which is the same question for sockets.

Follow-on

Index row

Every file-service client gets a staging window of its own, and the server tells them apart by a badge on the endpoint; the progenitor slices each client's window out of one pool capability.