Every remaining cluster merged. Each was one design that had been split across
several records because it was worked out over days rather than at once.
the node host 8 -> 1 applies not decides, depends on nothing,
per operating system, root service, the
launcher, episodic, what a declaration is,
actions from the bundle only
a node and how it joins 4 -> 1 what a node is, joining, the link as
security boundary, the enrolment token
modules and the graph 7 -> 1 everything is a module, no domain modules,
three edges, provisioning, the core library
substrate and control 6 -> 1 the test, seven contexts, one control plane,
plane the authority is not a database, the named
products, the pinned bundle
connectivity 3 -> 1 a route is a grant, reachability declared,
filter rules
delivery 5 -> 1 reconciliation not a pipeline, artifacts,
the three silos, a failed step, the verdict
the lab 5 -> 1 (earlier)
how this repository 10 -> 1 (earlier)
works
Nothing was dropped. Each consolidated record carries the reasoning of the ones
it absorbs -- the measurements, the incidents, the alternatives rejected --
because that reasoning is the only reason to keep a record at all. What is gone
is the fragmentation: eight files to read to understand tier 0, when tier 0 is
one component.
The four superseded records went too. They existed to point at their
successors, and the successors now contain what they said.
The checker made this safe. Each merge left dangling links -- 38 files after
the host merge alone -- and it named every one. Nothing was found by reading,
and a manual pass would certainly have missed some, including references inside
AGENTS.md which every session loads.
101 lines
5.4 KiB
Markdown
101 lines
5.4 KiB
Markdown
---
|
|
status: accepted
|
|
date: 2026-08-23
|
|
deciders: jochen
|
|
reconstructed: false
|
|
---
|
|
|
|
# 18. The mesh creates no symlinks — a derived file is a copy
|
|
|
|
## Context
|
|
|
|
[ADR 0018](0018-the-mesh-creates-no-symlinks.md) responded to production data loss — a hand-made
|
|
link, resolved through a container engine's volume handling, pointing a mount somewhere it
|
|
should not have — by centralising linking in the installer and forbidding it everywhere else.
|
|
|
|
That narrowed the incident class. It did not close it. The hazard is not *who* made the link;
|
|
it is that a path can resolve somewhere other than where it appears to. A link made by the
|
|
installer resolves exactly the same way as a link made by hand. The rule made the mechanism
|
|
rarer and better-governed while leaving the mechanism in place.
|
|
|
|
Two things have changed since, and together they remove the argument that kept it.
|
|
|
|
**The original case for linking was staleness.** A copy of a service definition goes stale
|
|
silently while the catalogue moves on, so a link was the cheap way to guarantee the running
|
|
node reads a current definition. That argument assumes the node's copy is unmanaged.
|
|
|
|
**It is not.** [ADR 0004](0004-managed-files-are-generated-never-edited.md) established that
|
|
everything on a node's disk is derived from the mesh and regenerated when its inputs change,
|
|
and the installer already **reconciles** links rather than assuming them — repointing stale
|
|
ones, adopting real files it finds where a link belongs. Reconciling content is the same
|
|
operation as reconciling a pointer, plus a comparison.
|
|
|
|
So the mesh already has the machinery that makes a copy safe, and is using a link to solve a
|
|
problem that machinery solves better. Worse, a link is conceptually the wrong shape: it makes
|
|
the node's runtime state a *pointer into source*, which is the one thing
|
|
[ADR 0048](0048-the-substrate-and-the-control-plane.md) and ADR 0004 exist to prevent.
|
|
State is derived onto nodes; it does not reach back.
|
|
|
|
## Considered options
|
|
|
|
1. **Keep ADR 0011 as the final position** — centralised linking, forbidden elsewhere.
|
|
Rejected as the status quo. It governs the mechanism rather than removing it, and the
|
|
failure it was written for remains reachable by any code path the installer trusts.
|
|
2. **Keep links but harden them** — canonicalise before mounting, refuse a link that escapes
|
|
an expected root. Rejected: it is a check bolted onto a hazard, and it has to be correct in
|
|
every consumer, including container engines the mesh does not control.
|
|
3. **Copy, reconciled by the installer, with staleness detected rather than assumed away.**
|
|
Proposed here.
|
|
|
|
## Decision
|
|
|
|
*Accepted 2026-08-25. The position is settled; the migration is not designed. See "Open" below.*
|
|
|
|
**The mesh creates no symlinks.** A file a node needs is placed on that node as a real file,
|
|
derived from the mesh and reconciled by the installer like every other managed file
|
|
([ADR 0004](0004-managed-files-are-generated-never-edited.md)).
|
|
|
|
The prohibition in ADR 0011 stands and widens: it ceases to be "only the installer may link"
|
|
and becomes "nothing links, the installer included".
|
|
|
|
When this is accepted, ADR 0011 becomes superseded rather than edited — its reasoning is why
|
|
the rule exists at all, and the incident behind it is the reason anyone believes either record.
|
|
|
|
## Consequences
|
|
|
|
- The path-resolution hazard is removed rather than governed. There is no link for a container
|
|
engine to resolve, so the class of failure that cost production data is closed by
|
|
construction.
|
|
- A node's runtime state stops pointing into source. What a node holds is derived output, which
|
|
is what the mesh's model already says it is everywhere else.
|
|
- **Staleness becomes a real problem that must be answered, not assumed away.** This is the
|
|
cost, and it is the whole cost: today a link cannot be stale, and a copy can. The answer has
|
|
to be detection — the installer comparing what is on disk against what the mesh says should
|
|
be — and it must be loud, because a silently stale definition is exactly the failure shape
|
|
this mesh keeps producing ([ADR 0058](0058-delivery.md)).
|
|
- Reconciliation gets more expensive: comparing content rather than checking a pointer's
|
|
target, on every module, on every node.
|
|
- Disk usage rises, trivially, and is not a consideration.
|
|
- Existing links must be converted. A node mid-migration holds both forms, so reconciliation
|
|
has to handle finding a link where a file now belongs — the mirror image of the adoption it
|
|
already does.
|
|
|
|
## Open
|
|
|
|
- **How staleness is detected.** Content hash, version marker, or regeneration on every
|
|
reconcile. This is the decision that makes or breaks the change and it is not taken here.
|
|
- **Whether anything must keep a link** for reasons outside the mesh's control. If something
|
|
does, that is a finding worth recording rather than an exception worth granting quietly.
|
|
- **Migration order.** Converting a node's links is a change to how its services resolve their
|
|
own definitions, which is not a change to make everywhere at once.
|
|
|
|
Until those are answered this record stays `proposed`, and ADR 0011 remains the governing rule.
|
|
|
|
## References
|
|
|
|
- [ADR 0018](0018-the-mesh-creates-no-symlinks.md) — the incident, and the rule this widens.
|
|
- [ADR 0004](0004-managed-files-are-generated-never-edited.md) — the machinery that makes a
|
|
copy safe.
|
|
- [`03-DESIGN/00-as-is/05-runtime-and-installation.md`](../03-DESIGN/00-as-is/05-runtime-and-installation.md)
|
|
— what the installer does today, including reconciliation and adoption.
|