roadmap NOT-STARTED

497. A filesystem server that knows what time it is

Promoted from the proposal a-filesystem-server-that-knows-the-time, filed 2026-09-19, on calef's instruction of 2026-09-20 to give every proposal on main a number. The text below is the proposal's own, unedited, by the promotion rule. Written by the milestone 64 (enough std to run somebody else's crate) lane (milestone/64-std-filesystem-shim), from milestone 64's block and notes/touch.md's BUGS.

The mechanism a reader needs already exists and already has a decision behind it: DECISIONS §43 made reading the wall clock a broadly grantable, read-only authority (a Frame capability naming the clock page). Every std program already holds one at slot 5. What this needs is a lane, and one judgment a lane can make: which spawn sites give the FS server the page.

In brief. redoxfs_server stamps every mutation with its own counter (Server::clock, starting at 1 on each mount and incremented per write, create, truncate, attribute change and bare touch), because it holds no clock. The file contract says GETMTIME reports Unix seconds. Give the server a read-only mapping of the clock page and stamp with the wall-clock second it reads, the same way SystemTime::now() does in patches/std-nife/overlay/std/src/sys/time/nife.rs.

Why this matters

The shell's touch reads an on-device mtime, and its BUGS section says the stamp is a counter. Milestone 64 binds std::fs::Metadata::modified, so every std program that asks gets that counter as a SystemTime too, and it is wrong in three ways a program can act on:

std_exerciser is written around these on purpose: its write moves mtime ok line asserts a write moving a file it made forward, and runs before its set_times rather than after. A write after a set_times into the future does not move the time. When this lands, that line should tighten to "inside the wall-clock window", a write after set_times should move the time again, and a write to motd should move the host's stamp; those three are the test of done.

What it would take, measured against the tree

Reversibility: fully reversible, and nothing on the wire changes; the contract already promises Unix seconds. Nobody has acted on the counter values except the tests that were written knowing they are a counter.

What is blocked: nothing hard. Milestone 121's rg --sort modified would order nife-written files wrongly against host-made ones until this lands.

Index row

redoxfs_server stamps every mutation with its own counter (Server::clock, starting at 1 on each mount and incremented per write, create, truncate, attribute change and bare touch), because it holds no clock.