Expand description
What a running srv can do, written beside its databases at startup
(<data>/srv-features.json), so a migration can tell whether every
AgentMux running on this host understands former slugs before it renames
one (SPEC_FORK_SLUG_MIGRATION_2026_10_22.md §4 Phase 2, preconditions).
Nothing else said it reliably. The srv lock (<data>/srv.lock) says which
pid runs on a data directory, but not what it is; a lease names a version
only while it holds an agent; the cross-channel registry lists only
instances with an agent registered. So each srv now writes its pid and its
features here, and a migration accepts an instance only when the stamp’s
pid is the lock’s. An srv older than this file writes none and is refused,
which is the safe answer: an instance that predates Phase 1 would resolve
nothing addressed to a former slug, and one that predates Phase 0 could
write the old slug back.
Structs§
Constants§
- FORMER_
SLUGS - Phases 0 and 1 of the migration spec: one reader of the slug, no stale write-back, the server’s spawn identity, former slugs resolved and reserved. An srv that writes this understands a renamed agent.
- STAMP_
FILE