roadmap REMOVED

54. A network file service a Mac can actually mount

Removed 2026-08-30. Built 2026-08-17, and the implementation was deleted from the tree on 2026-08-30, on calef's decision, after the customer it served moved to borg over SSH on cordoba; journey 2 is retired and milestone 55 (time)'s premise went with it. The status word says BUILT because it was built, and the roadmap vocabulary has no word for "built, then removed"; minting one is an architect's call and this block says so rather than inventing it.

Everything below is history, and is deliberately kept. This milestone was the project's only realized instance of principle 1. A real Mac's own mount_smbfs mounted a share served by nife's userspace SMB adapter over its own TCP stack. It read files byte-correct, remounted, wrote, reported the volume's real free space, served subdirectories, and from 2026-08-17 knew who was asking. Four pieces landed over three days and each was gated on both ISAs.

notes/smb.md is the record, kept in full: what was demonstrated and when, the architecture, what was measured, what never worked, the scale of what was deleted, and why. A future reader deciding whether to build a Mac-mountable share here again should start from that note's BUGS section, which is what the last attempt knew it had not solved.

The pull requests, and the wire decisions in each, were:

Nothing gated this after milestone 107 merged on 2026-08-04, and the block nevertheless sat behind a stale IN-PROGRESS status for eleven days before anyone noticed (2026-08-15). That is the defect class of §76 (what catches a milestone status that is wrong in both places?). That is worth leaving on the record next to the finished status.

Why identity is the half worth reading

Writes made it urgent rather than cosmetic: guest means everyone, and on a writable share that means everyone who can reach the port may change it. But the interesting part is the shape of the answer.

The claim is that the SMB server authenticates a session without ever holding the key, and the kernel suite has asserted a sentence by that name since milestone 65 against a stand-in. It now asserts it against the real adapter, and three separate mechanisms hold it up, deliberately at different rungs of AGENTS.md's ladder:

  1. ntlm is a [dev-dependencies] of smb_proto, not a dependency. The shipping protocol code cannot compute a proof or a session key, and Cargo is the mechanism rather than care. Rung one: the wrong state is unrepresentable.
  2. The seam carries no key material in either direction. An Attempt is a challenge, two public names, a MAC and the client's own blob. [MS-NLMP] §4.2.4.1.2's SessionBaseKey is deliberately absent, because this server does not sign and a field with no consumer is a field somebody has to justify removing later.
  3. The kernel looks at the frame afterwards, through the direct map, which no userspace program could do, and requires the published NTOWFv2, the published session key, and every other nonzero byte to be gone. That is the check the adapter could not make about itself.

This is the property Samba cannot offer. There, smbd opens the password database, so compromising it leaks every hash: crackable offline, reusable wherever the password was reused. Here the adapter's whole authority over identity is one endpoint, revoking it ends the access, and no compromise of it yields the ability to forge anything.

The gate is what makes that more than an argument. The password exists only on the host. xtask's prober computes a real proof over the challenge the guest chose, and sends three AUTHENTICATE messages down one connection. An anonymous login is refused, a one-bit forgery is refused, and the real thing is accepted and not flagged guest. It tries a TREE_CONNECT after each refusal because a refusal that only changes a status word is not a gate. Four processes are on the path of one ls, each holding one authority. They are a host client that knows the password, an adapter that holds no key, a store that holds no network, and a filesystem server that holds no network either.

What is honestly not done, and where each piece now lives

A BUILT status is not a claim that nothing remains. These are recorded in notes/smb.md's BUGS and at the features themselves, and none of them belongs to this milestone's question:

In brief. The board serves files over a protocol macOS speaks natively, so it is useful before Time Machine specifically is solved.

The protocol choice is the whole decision, and it is not obvious.

Option macOS support Size Note
9P None Small Plan 9's protocol, closest to our model, and calef cannot mount it. A demonstrator win with no user
NFSv3 Built in (mount_nfs) Medium RPC/XDR, mount protocol, portmapper. Usable immediately for general storage. Not a supported Time Machine target
SMB3 Built in Large The one that is actually required: the only path to Time Machine (milestone 55)
WebDAV Built in Small HTTP-based, and not a Time Machine target

calef's router already exposes SMB for Time Machine (2026-07-30), which settles this. SMB is required regardless, so NFSv3 would be work thrown away, and 9P would be a demonstrator exercise with no user. Do not build a second protocol just to have an easier first one.

What survives is a better decomposition than "pick a protocol". The file service already exists: fs_proto over RedoxFS, milestone 32. A network protocol is therefore an adapter that speaks the wire on one side and fs_proto on the other, holding one directory capability and one network endpoint. So this milestone is the adapter pattern plus whatever protocol milestone 55 needs, and 9P or NFSv3 become optional later adapters rather than prerequisites.

That framing sharpens the security claim rather than just simplifying the build. The SMB adapter is a protocol translator with no storage authority at all: it cannot reach the block device, cannot enumerate outside the share, and speaks to the FS server only through the same contract every other client uses. A compromise yields the share's contents and nothing structural.

The capability shape, whichever protocol wins. The service holds the share's directory capability and a network endpoint. It cannot enumerate outside the share because no capability reaches there; milestone 47's enumerate/open/create/remove split is what expresses "this client may write backups but not delete them", which is a genuinely useful thing to be able to say to a backup client.

Effort: not estimated, and it depends entirely on the protocol chosen.

Follow-on

Index row

Built 2026-08-17 and removed from the tree 2026-08-30, on calef's decision, after the customer it served moved to borg over SSH. It was the project's only realized instance of principle 1. A real Mac's own mount_smbfs mounted a share this kernel served, read and wrote it, and walked its subdirectories. It proved who it was against the store of milestone 65 (a secrets service) while the adapter held no key. What it demonstrated, what it never reached, and why it went are recorded in full in notes/smb.md. The status word is the vocabulary's closest fit and is not right; see that note