Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31b491c501 |
+10
-19
@@ -643,7 +643,7 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
- **run on request** — a pipeline run for a named commit or group that delivers nothing, asked by the runner's verb
|
||||
`run`; the indexer builds its candidate from the runner's `run-started` (ADR 0666 §18).
|
||||
- **artifact reference** — an artifact written `<module>:<artifact>`, such as `mesh-grants:program`: the end of a
|
||||
dependency edge of the catalog graph (ADR 0666 §14).
|
||||
dependency edge of the module graph (ADR 0666 §14).
|
||||
- **mesh-pipeline-runner** — the seat, held once for the mesh, that runs each pipeline: it reads the policy from the
|
||||
registrations, asks each pipeline step of the seat that serves it, says each step's start and end and each pipeline's
|
||||
end as its events, keeps each pipeline's state and step log on the bus, and serves the run on request (ADR 0666 §7,
|
||||
@@ -675,23 +675,23 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
release 4 of ADR 0429 a pull request carried two statuses, one for the modules the change touches and one
|
||||
for the repository's own script (ADR 0238). Goes at the delivery of design 47's milestone G, the **pipeline** in its
|
||||
place (ADR 0666 §17); the word goes to the *pipeline* entry's *Not:* line with the as-is update after that delivery.
|
||||
- **catalog graph** — the modules as their manifests declare them at one revision (bases, packages, provides and
|
||||
- **module graph** — the modules as their manifests declare them at one revision (bases, packages, provides and
|
||||
requires, invokes and serves), with the acting rules the seats declare; the indexer keeps it, one
|
||||
revision per source revision it takes in (ADR 0656). Its other name is **module graph**, the word for it before
|
||||
ADR 0656, from which each delivery part orders a source revision by its own rule: provisions, bus state, a served
|
||||
revision per source revision it takes in (ADR 0656). It was called "catalog graph" from ADR 0656 until
|
||||
the operator made module graph its one word again (2026-11-23). From it each delivery part orders a source revision by its own rule: provisions, bus state, a served
|
||||
verb and a reader's capability are waited on; a package, and until research 085's milestone a build module's
|
||||
change, are triggers that rebuild, never waits; a verb edge on a cycle is left out (ADR 0603 §1, §2, ADR 0614); from research 085's milestone an acting part's edge is a wait within
|
||||
its step (ADR 0656). From milestone G's delivery it is kept once per **watched branch**, and its edges run between
|
||||
**artifact references**, of six kinds, the reverse order holding when something goes away (ADR 0666 §6, §14).
|
||||
Nothing stores the order. Only the indexer reads the manifests; every other part reads the catalog graph (the operator,
|
||||
Nothing stores the order. Only the indexer reads the manifests; every other part reads the module graph (the operator,
|
||||
2026-11-11; design 47 G §442). Not the **assignment graph**, computed from it.
|
||||
*Not:* ~~build graph~~
|
||||
*Not:* ~~build graph~~, ~~catalog graph~~ (hq)
|
||||
- **assignment graph** — the module versions placed on nodes at one revision, with the edges between versions that
|
||||
its inputs give: provisioning, contribution, and the acting parts' versions that are to act on each entry. The
|
||||
assigner computes it from the catalog graph, the placements and the nodes' capabilities, and nothing else writes it;
|
||||
assigner computes it from the module graph, the placements and the nodes' capabilities, and nothing else writes it;
|
||||
it keeps each revision naming the revisions of its inputs, served by the seat `mesh-wants`, and writes the wants
|
||||
from a trunk revision's alone (ADR 0656), from milestone G's delivery from a revision of the watched branch a
|
||||
placement chose whose `required` pipeline steps passed (ADR 0666 §9). Not the **catalog graph**, whose entries are modules, not
|
||||
placement chose whose `required` pipeline steps passed (ADR 0666 §9). Not the **module graph**, whose entries are modules, not
|
||||
versions on nodes; not an **assignment**, one module put on one node.
|
||||
- **mesh-wants** — the seat, held once for the mesh, that keeps what each node should run, one want
|
||||
per node and module (`want.<node>.<module>`), and a person's upgrade policy, served as its verb `upgrade`
|
||||
@@ -708,7 +708,7 @@ controller (the planner, the rollout) until release 6 of ADR 0429; from each rel
|
||||
the touched nodes and the order read off the edges. It is the change's delivery, and nothing stores a plan beside
|
||||
it (ADR 0656); the assigner serves it by the seat `mesh-wants`'s verb `difference` (design 47). Not a **delivery plan**,
|
||||
which was stored and handed out.
|
||||
- **revision view** — what every part acts on: the catalog graph with its heads, seat definitions, verdicts and
|
||||
- **revision view** — what every part acts on: the module graph with its heads, seat definitions, verdicts and
|
||||
fingerprints, served by the seat `mesh-catalog`'s verb `revision`, and the assignment graph computed from it,
|
||||
served by the seat `mesh-wants`'s verb `revision`, for a trunk revision or a candidate's heads; a pair, each half
|
||||
served by its one owner (ADR 0656; the verbs' names, design 47). A part with none for the current revision waits
|
||||
@@ -1137,7 +1137,7 @@ becomes a message). **Decided by** ADR 0227, 0231, 0240, 0252, 0283, 0564, 0668.
|
||||
|
||||
**Purpose.** To make every node and module reachable by name where it should be, and unreachable where
|
||||
it should not. **Recorded by** the controller. **Upstream of** Provisioning and Health and repair.
|
||||
**Decided by** ADR 0007, 0117, 0138, 0223, 0226, 0247, 0634, 0687, 0688, 0689.
|
||||
**Decided by** ADR 0007, 0117, 0138, 0223, 0226, 0247, 0634.
|
||||
**Uses:** node, machine, assignment and endpoint.
|
||||
|
||||
- **private network** — the mesh's own encrypted network between its nodes, on which every node has an
|
||||
@@ -1155,11 +1155,6 @@ it should not. **Recorded by** the controller. **Upstream of** Provisioning and
|
||||
lists only the mesh's resolvers (ADR 0223), or, where it holds one, its own resolver, which asks them. **uplink** — a
|
||||
node's connection to the outside network, the node seat `node-uplink` (ADR 0117). **hostname** — a node's own name,
|
||||
the node seat `node-hostname`. All three seats are of this domain.
|
||||
- **sign-in page** — the page a network shows before it lets traffic out, until a person signs in (ADR 0687). The
|
||||
holder of the node seat `node-uplink` opens it in the person's browser on its own machine and records it with the
|
||||
seat's events `sign-in-asked` and `sign-in-ended` (ADR 0689). In this sense "portal" and "login page" are not used
|
||||
either (see [Homonyms](#homonyms)).
|
||||
*Not:* ~~captive portal~~
|
||||
- **split DNS** — resolving names by domain on one machine: a VPN's domains through the VPN's servers
|
||||
over its link, every other name through the mesh's resolvers. The provision `split-dns`, provided by
|
||||
the holder of the node seat `node-resolver`, the machine's **own resolver**, which exists only where
|
||||
@@ -1530,10 +1525,6 @@ renaming one sense, the old sense moves to a *Not:* line and becomes mechanical.
|
||||
| push | the controller giving nodes their declarations, until release 6 | **send** (verb `push`) | Core |
|
||||
| | a git push | **git push** | The record |
|
||||
| | a phone notification | **push notification** | Operator and conversation |
|
||||
| portal | the page a network shows before it lets traffic out | **sign-in page** | Connectivity |
|
||||
| | a web page that gathers one service for a person, such as the bookkeeping portal (design 62) | the page's own name | Module |
|
||||
| login page | the page a network shows before it lets traffic out | **sign-in page** | Connectivity |
|
||||
| | an application's own form for a person's credentials | **login page** of that application | Identity and access |
|
||||
| release | a person letting a held delivery go on | **release** | Delivery |
|
||||
| | one milestone built, checked and delivered as one (playbook 07; releases 1 to 6 of ADR 0429) | **release** of a milestone | The record |
|
||||
| | taking a consumer off a licence | **unbind** (verb `release`, to rename) | Identity and access |
|
||||
|
||||
+1
-3
@@ -1,6 +1,6 @@
|
||||
---
|
||||
status: canonical
|
||||
updated: 2026-11-24
|
||||
updated: 2026-09-24
|
||||
---
|
||||
|
||||
# The Novox repositories
|
||||
@@ -37,8 +37,6 @@ one-for-one — `mesh-catalog`, `mesh-sdk` and `mesh-tools` exist where the tabl
|
||||
| `mesh-sdk` | — | the stable spine modules build against — the tool-serving SDK harness, the messaging/event framework, the contracts and core primitives. Holds nothing per-module and nothing volatile (ADR 0039). |
|
||||
| `mesh-lab` | — | **exists.** The lab — scenario lifecycle, networking, placement. Ships to nobody; runs on a workstation. |
|
||||
| `mesh-delivery` | — | the delivery domain: the parts that build, check and deliver a change by watching and writing keys on the bus, nine modules each whole in it, prefixed `mesh-delivery-` (ADR 0429). Made by the forge module from its config (ADR 0428). |
|
||||
| `mesh-contracts` | — | **exists.** The contracts module `mesh-contracts`: the definitions of the Core domain's seats and of every domain with no contracts module of its own, `node-display-session` among them (ADR 0636 §5) |
|
||||
| `mesh-networking` | — | **exists.** The Connectivity domain's modules: its contracts module `mesh-connectivity-contracts` (the definitions of `the-private-network`, `node-uplink` and `node-resolver`) and `mesh-wireguard` (ADR 0636 §6) |
|
||||
|
||||
Tier 4's shape is open, and deliberately so: see ADR 0019 and
|
||||
research 005.
|
||||
|
||||
@@ -22,12 +22,8 @@ code:
|
||||
- mesh-host internal/apply (the service that reflects a rule set; a whole file handed to its new owner)
|
||||
- mesh-controller cmd/mesh-controller/nodes.go (a token issued for a machine's tunnel key, ADR 0169)
|
||||
- mesh-host cmd/mesh-host/join_tunnel.go (a machine joins through the tunnel, ADR 0169)
|
||||
- mesh-networking mesh-connectivity-contracts (the seats node-uplink and node-resolver, ADR 0687)
|
||||
- mesh-catalog modules/networkmanager, modules/systemd-resolved, modules/i3 (a network's sign-in page, ADR 0687)
|
||||
updated: 2026-11-24
|
||||
updated: 2026-10-14
|
||||
decisions:
|
||||
- "ADR 0689"
|
||||
- "ADR 0687"
|
||||
- "ADR 0241"
|
||||
- "ADR 0117"
|
||||
- "ADR 0340"
|
||||
@@ -345,16 +341,55 @@ nothing needs a name before the link, and a fallback nothing needs is a path not
|
||||
|
||||
### Names, and what a container can see
|
||||
|
||||
Internal names are `<node>.internal`: the suffix IANA reserved in 2024, so a name that leaks into a public resolver
|
||||
fails rather than reaching a stranger's machine. They are computed centrally, because a name set needs every node at
|
||||
once.
|
||||
*2026-08-31, from a container that could not resolve a name every machine could.*
|
||||
|
||||
Internal names are `<node>.internal` — the suffix is the one IANA reserved in 2024, so a name that
|
||||
leaks into a public resolver fails rather than reaching a stranger's machine. They are computed
|
||||
centrally, because a name set needs every node at once, and written to each machine's hosts file.
|
||||
|
||||
**A file rather than a resolver**, and the reasoning holds: it works on every Linux, needs no
|
||||
package, and has no failure mode of its own. The stated trigger for a daemon was *names that are
|
||||
not one-per-node* — service names, wildcards.
|
||||
|
||||
**But a container does not inherit the machine's names.** It gets its own hosts file holding only
|
||||
its own hostname. So every name the mesh wrote was invisible to the majority of things that need
|
||||
one — and *on the machine it always worked*, which is exactly what made it easy to miss. It was
|
||||
found by a database client on one node failing to resolve another node, on a mesh where both names
|
||||
were correct and present on both machines.
|
||||
|
||||
**So the mesh gives its names to the containers it declares**, written into each container's own
|
||||
hosts file by the runtime. That extends the file decision rather than overturning it. Given by the
|
||||
mesh and not chosen by a module: a module that listed the machines would go stale the day one
|
||||
joins, and a module that did not would be one whose containers cannot reach anything by name.
|
||||
|
||||
**Superseded for containers by ADR 0148
|
||||
(2026-09-30).** Everything above still describes the machine's own roster file, which is how it works
|
||||
and how it will keep working. It no longer describes containers.
|
||||
|
||||
Copying the roster into each container made the roster part of each container's identity, so one name
|
||||
moving replaced every container in the mesh — a module assigned on one machine restarted the store, the
|
||||
registry, the edge and mail on another
|
||||
([issue 151](../../04-ISSUES/151-a-new-name-recreates-every-container-in-the-mesh/00-report.md)). And it
|
||||
did not stop the staleness it was meant to: a copy taken at creation is stale the moment the roster
|
||||
moves, twice found as a container holding an address that had not existed for days
|
||||
([issues 109](../../04-ISSUES/109-a-container-keeps-the-address-it-was-made-with/00-report.md)
|
||||
and [135](../../04-ISSUES/135-a-containers-mesh-names-are-not-compared/00-report.md)).
|
||||
|
||||
**A container resolves the mesh's names through its machine's resolver, at the moment it asks, and
|
||||
nothing is copied.** The resolver is a machine-level process rather than a container, so nothing
|
||||
circular is being asked for. It was gated on a container being able to reach the resolver from any of
|
||||
the runtime's networks
|
||||
([issue 110](../../04-ISSUES/110-a-container-on-the-runtimes-own-network-cannot-reach-the-resolver/00-report.md)),
|
||||
and landed the day that did, 2026-09-30: the controller writes no mesh name into a container and the node-engine's digest carries only what the module declared for itself.
|
||||
|
||||
The paragraph below states the old boundary, and 0148 deliberately gives it up: a container somebody
|
||||
started by hand resolves the same names as everything else, because the resolver answers the machine,
|
||||
not a list of containers.
|
||||
|
||||
**The boundary, which is deliberate and worth stating:** *declared* containers. A container
|
||||
somebody starts by hand is not the mesh's to configure, and reaching into every container on a
|
||||
machine — declared or not — is what a nameserver in `resolv.conf` would be for.
|
||||
|
||||
**A container resolves the mesh's names through its machine's resolver, at the moment it asks, and nothing is
|
||||
copied** (ADR 0148). The controller writes no mesh name into a container and the node-engine's digest carries only
|
||||
what the module declared for itself, so a container somebody started by hand resolves the same names as everything
|
||||
else: the resolver answers the machine, not a list of containers. Copying the roster into each container, as the
|
||||
mesh did until 2026-09-30, made one moved name replace every container in the mesh and still went stale (issues 151,
|
||||
109 and 135); it ended the day a container could reach the resolver from any of the runtime's networks (issue 110).
|
||||
### The mesh's resolvers
|
||||
|
||||
*2026-10-03, revised 2026-10-05.* **The mesh's names live in one module, held on two machines: the
|
||||
@@ -437,13 +472,83 @@ the `node-hostname` seat's holder and changed through its tools; the controller
|
||||
*Checked by the holder's configuration carrying one forwarding rule per declared zone, and by a push
|
||||
leaving the `hosts` file's operator region byte for byte.*
|
||||
|
||||
**Two things a resolver must not do**, both found by a machine rather than by reasoning: take an address something
|
||||
else holds (systemd-resolved holds `127.0.0.53` and `127.0.0.54`), and read `/etc/resolv.conf` for its upstreams,
|
||||
since whatever points a machine at the mesh writes the resolver's own address there and every question it cannot
|
||||
answer then loops until its receive queue fills. *Which* resolver program a machine runs is not a mesh-wide
|
||||
question: a resolver takes over a singular resource, so it is a claim, and choosing one is assigning its module
|
||||
(ADR 0009). The per-node resolver and its two seats, `the-dns-port` and `the-resolver-configuration`, that this
|
||||
section once described are retired (ADR 0194, ADR 0220, ADR 0223).
|
||||
*What follows describes the per-node resolver this replaces — how it was built and why the roles were
|
||||
split. The split stands; the serving role's scope is what moved.*
|
||||
|
||||
### The resolver, built
|
||||
|
||||
*2026-08-31.* **A service is reached at `<service>.<node>.internal`** — the first label is the
|
||||
service, the rest is the node — so what resolves is *anything under a node's name*, going to that
|
||||
node. What routes it once it arrives is a proxy's, and stays separate.
|
||||
|
||||
*2026-09-30.* **So the node in a route's internal name is the one whose proxy answers it**
|
||||
(ADR 0151).
|
||||
Composed from the node the module ran on, the name sent a client to a machine with nothing listening
|
||||
whenever the proxy ran elsewhere
|
||||
([issue 139](../../04-ISSUES/139-an-internal-route-name-resolves-to-the-consumers-node/00-report.md));
|
||||
composed from the serving node, the rule above holds without exception. The public name stays the
|
||||
module's node's, which is where the operator put it.
|
||||
|
||||
**The mesh writes the data and runs no daemon.** One wildcard per machine, from the same set that
|
||||
writes the `hosts` file. A resolver is third-party software and runs *on* the mesh rather than being
|
||||
*of* it: the mesh has no business shipping one, choosing which one, or knowing its configuration
|
||||
language. Swapping dnsmasq for unbound changes that module and nothing in the controller.
|
||||
|
||||
**Two roles, two claims, because they are different things.** systemd-resolved cannot answer a
|
||||
wildcard at all — it routes the mesh's suffix to something that can. Treating serving and asking
|
||||
as one role produces a module that cannot work.
|
||||
|
||||
| | claims | |
|
||||
|---|---|---|
|
||||
| serving | `the-dns-port` | answers the wildcards |
|
||||
| asking | `the-resolver-configuration` | decides what the machine asks |
|
||||
|
||||
So *which* resolver is not a mesh-wide decision. One machine can use what systemd already owns and
|
||||
another can run dnsmasq, and two of either on one machine is refused rather than fought over.
|
||||
|
||||
**Two things a resolver must not do**, both found by a machine rather than by reasoning:
|
||||
|
||||
- **Take an address something else holds.** systemd-resolved holds `127.0.0.53` *and* `127.0.0.54`.
|
||||
- **Read `resolv.conf` for its upstreams.** Whatever points a machine at the mesh writes the
|
||||
resolver's own address there, so it becomes its own upstream and every query it cannot answer
|
||||
loops until its receive queue fills. It needs no upstream: only the mesh's suffix is routed to
|
||||
it.
|
||||
|
||||
*Checked on two machines, through the path an application takes — nsswitch, files, then DNS —
|
||||
because the module deciding what the machine asks is half of what is being tested and only that
|
||||
path goes through it.*
|
||||
|
||||
**That is now the second reason to want a resolver**, and it is a different one from the trigger
|
||||
above:
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| names that are not one-per-node | a service named under a machine — `postgres.novox.internal` |
|
||||
| containers the mesh did not declare | anything a person or another tool starts on a node |
|
||||
|
||||
### Which resolver is not a question the mesh answers
|
||||
|
||||
*Written 2026-08-31, after treating it as open when it had been decided two days earlier.*
|
||||
|
||||
**A resolver takes over `/etc/resolv.conf`, which is a singular resource, so it is a claim** —
|
||||
ADR 0009 lists it in the table beside the seat
|
||||
and pid 1. Choosing between resolved, dnsmasq and unbound is **assigning a module**, per machine,
|
||||
and two of them cannot both be assigned there:
|
||||
|
||||
> `resolved-config and dnsmasq both claim "/etc/resolv.conf", and only one thing may hold it per node`
|
||||
|
||||
So there is nothing global to settle and nothing for the mesh to guess. One machine can use what
|
||||
systemd already owns and another can run dnsmasq, and neither has to know about the other.
|
||||
|
||||
**What the mesh contributes is the part only it can know**: which machines exist and where. That
|
||||
is `mesh-resolver`, which writes one file and holds no claim, because writing a file takes nothing
|
||||
over. A daemon module requires that data and claims the resolver — so swapping the daemon changes
|
||||
that module and nothing else.
|
||||
|
||||
**This was recorded on 2026-08-29 and reopened as an unanswered question on the 31st.** Which is
|
||||
the argument for the table in ADR 0009 being a table: the pattern is only obvious once seen, and
|
||||
the cost of not seeing it is inventing a mechanism that already exists.
|
||||
|
||||
### The mesh resolves only its own names; a public name resolves publicly
|
||||
|
||||
**The mesh's resolver holds each node's internal domain and nothing else** — `<node>.internal` and
|
||||
@@ -458,13 +563,36 @@ mesh, a routed service is reached, and certified by the internal authority, unde
|
||||
and on a machine by asking its resolver for a public name the mesh serves: the answer is the public
|
||||
address.*
|
||||
|
||||
*How it got here, kept because the reasoning it rejects is the expensive half to rediscover.* On 2026-09-09 an
|
||||
internal issuer could not certify a routed public name, because nothing inside the mesh resolved it and an issuer
|
||||
validates by connecting to the name; so every granted route was published into internal resolution with a private
|
||||
answer. On 2026-10-03 that was withdrawn (ADR 0191): every resolver that also serves a LAN became an outage for the
|
||||
LAN's other machines (a phone was handed the control-node's tunnel address for the mail server) while every check,
|
||||
run from a member, passed; and its reason had gone, since routes have internal names (ADR 0151) and the proxy
|
||||
certifies public names from a public authority and internal names from the internal one.
|
||||
*What follows is how the mesh got here, kept because the reasoning it rejects is the expensive half to
|
||||
rediscover.*
|
||||
|
||||
*2026-09-09, found by an internal certificate authority that could not issue.* The mesh writes every
|
||||
`<node>.internal` name into every declared container and treats the public names a proxy serves as a
|
||||
separate matter — *what routes it once it arrives is a proxy's, and stays separate*, above. That
|
||||
holds for a client dialling by internal name. It does not hold for anything **inside** the mesh that
|
||||
must reach a public name, and the first such thing to appear was the internal issuer of §5.
|
||||
|
||||
**An issuer validates by connecting to the name it is certifying.** Asked for a certificate for a
|
||||
routed public name, the internal authority accepted the order, offered a challenge, and then could
|
||||
not connect: nothing in the mesh resolved that name, so the challenge had no target. A name the mesh
|
||||
can reach from the outside but cannot resolve from the inside is a name it cannot certify with an
|
||||
authority of its own.
|
||||
|
||||
**So a granted route is published into internal resolution as well** — the routed name to the node
|
||||
that serves it, mesh-wide, by the same mechanism that writes the node names — and as itself: a routed
|
||||
name has no mesh form, and the suffixed alias the roster once added beside it resolved to a refusal
|
||||
([issue 157](../../04-ISSUES/157-a-routed-names-internal-alias-is-served-by-nothing/00-report.md)). It is *given by the
|
||||
mesh, not chosen by a module*, for the same reason the node names are: a module listing the routes
|
||||
would go stale the day one changes. The mesh propagates the names it was told to serve and still
|
||||
knows nothing about what they mean
|
||||
(ADR 0066).
|
||||
|
||||
*2026-10-03, withdrawn.* Publishing public names with private answers turned every resolver that also
|
||||
serves a LAN into an outage for that LAN's non-members — a phone was handed the control-node's tunnel
|
||||
address for the mail server — while every check, run from a member, passed. Its reason had gone: routes
|
||||
have internal names since ADR 0151, and the proxy certifies public names from a public authority and
|
||||
internal names from the internal one. Superseded by the rule at the head of this section
|
||||
(ADR 0191).
|
||||
|
||||
## 3 — Exposure
|
||||
|
||||
@@ -916,57 +1044,82 @@ resolved inside the mesh (ADR 0066).
|
||||
|
||||
## 6 — One statement behind exposure, filtering and certificates
|
||||
|
||||
*2026-09-28, ADR 0138; extended by ADR 0340 and ADR 0167.* An endpoint a module declares, bound by its assignment to a
|
||||
machine port with one reach (`internal`, `public`, `both` or `local-network`), is what the filter, the proxy and the
|
||||
certificates all read. Its lines, moved whole, are in the part
|
||||
[08-milestones/one-statement-of-reach.md](08-milestones/one-statement-of-reach.md).
|
||||
*2026-09-28, preparing the control-node's convergence —
|
||||
[issue 140](../../04-ISSUES/140-an-endpoints-reach-is-not-declared/00-report.md), settled by
|
||||
ADR 0138.*
|
||||
|
||||
## 7 — A network's sign-in page
|
||||
The three sections above each decide, independently, how far a service reaches. §3 composes a name
|
||||
from a label and the node's domain. §4 opens a port to the source a listen named. §5 certifies the
|
||||
names that exist, from whichever authority the proxy holds. Each is coherent on its own, and together
|
||||
they mean **reachability is never stated anywhere** — it is the sum of three derivations, and a sum is
|
||||
not something anyone can review or refuse.
|
||||
|
||||
*2026-11-24, ADR 0687 and ADR 0689.* A network that lets traffic out only after a person signs in answers every
|
||||
plain http request with its **sign-in page**. The network manager finds such a network itself; on the desktop the mesh
|
||||
composes nothing showed the page, so the network looked broken. Now it opens by itself, the same for every network
|
||||
(none is named anywhere, ADR 0687 §6); signing in stays the person's. Behind the page the private network's tunnel,
|
||||
and with it the bus, is out of reach, so the machine reacts on its own (ADR 0689).
|
||||
What that costs, measured: an identity provider holding a public certificate valid 90 days and an
|
||||
internal one valid 24 hours, neither asked for by any assignment, because both names existed and a
|
||||
proxy certifies what it serves. And an endpoint that is not routed — git over ssh — which can be
|
||||
spoken about only in the filter's vocabulary, so *this must be reachable from outside* is a setting
|
||||
exactly one mechanism reads.
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
nm[the network manager's rating] -->|changes| up[node-uplink's holder]
|
||||
up -->|xdg-open, on the machine| browser[the person's browser]
|
||||
up -->|the desktop notification service, on the machine| note[a notification]
|
||||
up -->|sign-in-asked, sign-in-ended, kept until the bus answers| fam[(node-uplink.events, 7 days)]
|
||||
up -->|uplink-names: its check's host| res[node-resolver]
|
||||
res -->|the guard, every round| link[the link carrying the default route]
|
||||
```
|
||||
**An endpoint is the thing that was missing.** A module declares named endpoints: one port it serves,
|
||||
what it is for, and what it would serve that to absent any instruction. A route contribution names an
|
||||
endpoint rather than repeating a port number. An assignment — which is where a module's configuration
|
||||
lives (ADR 0046)
|
||||
— then binds each endpoint to a machine port and says how far it reaches.
|
||||
|
||||
- **The uplink's holder reacts on its machine** (ADR 0689 §1, §4): when the network manager rates the network as one
|
||||
with a sign-in page, at its own start while it is so rated, and when the person's graphical session starts while
|
||||
it is, the holder of the node seat `node-uplink` opens the page in the person's browser and shows a notification
|
||||
saying why, through the standards the session offers; it says again when the network is open. A machine with no
|
||||
graphical session opens nothing.
|
||||
- **The uplink says it** (ADR 0687 §1, ADR 0689 §2): `node-uplink` gains the events `sign-in-asked` and
|
||||
`sign-in-ended`, in the family `node-uplink.events`, the mesh's record of it, published with acknowledgement and
|
||||
kept in order until the bus answers again; nothing in the mesh consumes them. Both are optional for a holder.
|
||||
- **The check resolves through the network it tests** (ADR 0687 §2): the node seat `node-resolver` gains the verb
|
||||
`uplink-names`; its guard answers those names over whichever link carries the default route, so on a machine with
|
||||
its own resolver a working network is rated fully connected again and a network with a sign-in page is rated as one
|
||||
(issue 960). ADR 0688's fallback lets the page's name resolve meanwhile (design 50).
|
||||
- **The display session opens an address on request** (ADR 0687 §4, ADR 0689 §3): the node seat
|
||||
`node-display-session` gains the verb `open`, an http or https address in the person's default browser, for any
|
||||
caller over the bus (issue 935, design 42); the sign-in reaction does not call it.
|
||||
One value, three readers:
|
||||
|
||||
**Acceptance tests** (ADR 0687 and ADR 0689, *How it is checked*):
|
||||
| reach | the filter opens | the proxy serves | the certificate comes from |
|
||||
|---|---|---|---|
|
||||
| `internal` | the machine port, to the private network | the internal name | the mesh's own authority |
|
||||
| `public` | the machine port, to anywhere | the public name | the public authority |
|
||||
| `both` | the machine port, to anywhere | both names | each name's own authority |
|
||||
| `local-network` | the machine port, to the private network and the machine's local networks | the internal name | the mesh's own authority |
|
||||
|
||||
1. *Live, on the laptop, on a working network:* the network manager rates it fully connected and the wifi link's
|
||||
default route carries no 20000 penalty (`<node>/node-resolver.routes` shows the check's host on that link).
|
||||
2. *Live, on the laptop, with the tunnel down, at the next join of a network with a sign-in page:* the uplink
|
||||
holder's journal shows the rating PORTAL, the page opens within seconds with a notification saying why while no
|
||||
mesh runtime answers, and after signing in a second notification says the network is open; once the bus answers,
|
||||
both events are in `node-uplink.events` with the times of the changes. If the journal shows LIMITED instead, ADR
|
||||
0687's assumption does not hold: the record is amended, tracked by issue 960.
|
||||
3. *Live, on the laptop:* `<node>/node-display-session.open` with an http address opens it and answers its program;
|
||||
with a `file:` path it is refused.
|
||||
4. *Unit and integration:* the milestone part's tests pass within each module's budget.
|
||||
*2026-10-13.* **A port may be reached from the machine's own local network, and only its private
|
||||
part** (ADR 0340). A home server serves devices on its own network that will never be nodes, and until
|
||||
now the only value that reached them was `anywhere`, which says the internet. A new source,
|
||||
`local-network`, and the reach of the same name mean the networks the machine is attached to through
|
||||
its uplink, as the node-engine reports them among its facts. Only networks wholly in a private range
|
||||
count (RFC 1918, and unique local addresses for IPv6); a public subnet the machine sits on is never
|
||||
counted, so the source cannot open a port to the internet. The filter renders it on that port's rule
|
||||
alone, as the subnets it resolved to. A machine that reports no private network has a `local-network`
|
||||
port admitted from no local network, and the rule set and the plan say so. The plan shows what each
|
||||
such port resolved to, and `node` shows which attached networks counted and why the others did not.
|
||||
A laptop that travels admits whichever local network it is on, which the plan makes visible.
|
||||
|
||||
*2026-10-02.* **The proxy serves an internal name to the private network only**
|
||||
(ADR 0138,
|
||||
its insight of this date). It answers public and internal names on the same listeners, so the name a
|
||||
request carries is the request's own claim, not where the request came from. An internal name is
|
||||
served to the machines of the mesh and to the machine itself; to anyone else it is answered as a name
|
||||
never routed, in the handshake as well as the request. Without this, an endpoint with reach `internal`
|
||||
would be public under a name that is easy to guess
|
||||
([issue 191](../../04-ISSUES/191-a-route-with-only-an-internal-name-is-dropped/00-report.md)).
|
||||
The proxy is told who the mesh is, and its routes, in its membership on the bus — the same machine
|
||||
addresses the filter's "from the mesh" is rendered from
|
||||
(ADR 0167).
|
||||
|
||||
**An endpoint that is not routed is reached and never named.** No route contribution means no name is
|
||||
composed and no certificate requested, while the filter still acts on it. That is the case the model
|
||||
could not express at all, and it is the ordinary case for anything that is not HTTP.
|
||||
|
||||
**Nothing moves until an assignment says so.** An endpoint whose assignment is silent keeps the
|
||||
default its manifest states, so every machine already converged renders exactly as it does today —
|
||||
the same property §4 needed when a machine gained a way to say which networks it routes.
|
||||
|
||||
This is what the certificate questions were waiting for. Which authority signs a name, whether a name
|
||||
may appear in a public issuance log, and what must be trusted where are all answerable once an
|
||||
endpoint says whether it is internal — and unanswerable while the proxy decides by composing every
|
||||
name it can. It is also the fact
|
||||
[issue 139](../../04-ISSUES/139-an-internal-route-name-resolves-to-the-consumers-node/00-report.md)
|
||||
needs: an internal name should be composed from the machine serving the endpoint, which is the
|
||||
assignment that bound it.
|
||||
|
||||
**How it is checked** is stated with the decision: one module with two endpoints of differing reach
|
||||
asserted per chain body; the names and the certificate requests following the reach and failing
|
||||
against today's behaviour, where both are always composed; an unrouted endpoint filtered and never
|
||||
named; an assignment naming an endpoint the module does not declare refused where it is said; and a
|
||||
silent assignment rendering byte-identically to today.
|
||||
|
||||
## The five through the network layers
|
||||
|
||||
@@ -1090,22 +1243,17 @@ The list is worth having in one place, because it is most of the argument:
|
||||
- **The RFC1918 inference**, and the lab substitution that existed to satisfy it.
|
||||
- **`scope:`**, and the class of manifest key that means nothing.
|
||||
|
||||
## Milestones
|
||||
|
||||
| milestone | what it builds | part | state |
|
||||
|---|---|---|---|
|
||||
| one-statement-of-reach | one endpoint's reach read by the filter, the proxy and the certificates (ADR 0138, ADR 0340, ADR 0167) | [08-milestones/one-statement-of-reach.md](08-milestones/one-statement-of-reach.md) | written before milestone parts, moved whole on 2026-11-24 |
|
||||
| hub-adopts-the-predecessors-tunnel | the hub takes over the tunnel it finds on an adopted node (ADR 0105, ADR 0119) | [08-milestones/hub-adopts-the-predecessors-tunnel.md](08-milestones/hub-adopts-the-predecessors-tunnel.md) | written before milestone parts, moved whole on 2026-11-24 |
|
||||
| sign-in-page | a network's sign-in page opens by itself (ADR 0687, ADR 0689), closing issues 960 and 935 | [08-milestones/sign-in-page.md](08-milestones/sign-in-page.md) | designed |
|
||||
|
||||
The sections above were built before designs were cut into milestone parts; their remaining lines move into a part
|
||||
of their own at their next amendment (playbook 02, *The shape of a design*).
|
||||
|
||||
## Open
|
||||
|
||||
- **A second uplink stays rated limited** (ADR 0687 §2). The check's host name is given to the one link that carries
|
||||
the default route; a second uplink beside it (a cable beside the wifi) is still rated limited by the network
|
||||
manager and keeps its route penalty. Tracked as a note on issue 960.
|
||||
- **One resolver (ADR 0194).** *Correction of fact,
|
||||
2026-10-05:* no node holds `node-dns-resolver` any more, and
|
||||
ADR 0220 deletes the seat. What stood here before: *"Not built: every node still runs
|
||||
`node-dns-resolver`. The migration's four steps are in the record, in order."* Nor did it
|
||||
stay true that *"the workstation moves to the one resolver only once"* zones and the `hosts` file's
|
||||
holder (ADR 0199)
|
||||
exist: every node, the workstation included, asks the one resolver, and every node holds
|
||||
`node-hosts-file`.
|
||||
|
||||
- ~~**What happens when the hub is down.**~~ **Resolved** by
|
||||
ADR 0006, together with `06`'s
|
||||
matching question — they were one question. Nothing takes over. WireGuard has no failover, the
|
||||
@@ -1130,8 +1278,25 @@ of their own at their next amendment (playbook 02, *The shape of a design*).
|
||||
|
||||
## The hub adopts the predecessor's tunnel
|
||||
|
||||
*2026-09-23, ADR 0105 and ADR 0119.* Its lines, moved whole, are in the part
|
||||
[08-milestones/hub-adopts-the-predecessors-tunnel.md](08-milestones/hub-adopts-the-predecessors-tunnel.md).
|
||||
*2026-09-23, ADR 0105.*
|
||||
|
||||
On an adopted node that is the hub, the private network is not raised beside the tunnel it finds;
|
||||
it **takes it over**: the found interface's private key, its port, its address and range, and every
|
||||
peer it had, carried as peers not yet enrolled. The found interface is stopped, its configuration
|
||||
kept on disk. A predecessor machine sees the same server key at the same endpoint and cannot tell
|
||||
the tunnel changed hands; when it enrols, it keeps the address the tunnel already held for its key.
|
||||
|
||||
The mesh's own addresses are the adopted range's — every binding, hosts entry and endpoint the
|
||||
controller composes follows it, as readers of a setting. ADR 0100's non-overlap rule applies only
|
||||
where a found tunnel is left running beside the mesh's; where it is adopted there is one tunnel.
|
||||
The guard admits the mesh's ports from that one interface, and the predecessor's peers arrive on
|
||||
it.
|
||||
|
||||
*2026-09-27, ADR 0119.* The
|
||||
found configuration is kept only until the take is proven — the found unit down, the mesh's
|
||||
interface up and handshaking with a peer. Then it is removed from where the found unit reads it
|
||||
(its original stays kept), the hold ends, and the predecessor's tunnel cannot be raised again by
|
||||
anything but a person restoring it by hand. Undeclaring the private network does not bring it back.
|
||||
|
||||
## The bus is NATS
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
---
|
||||
layer: to-be
|
||||
design: 08
|
||||
milestone: hub-adopts-the-predecessors-tunnel
|
||||
updated: 2026-11-24
|
||||
code: [mesh-controller, mesh-host]
|
||||
decisions:
|
||||
- "ADR 0105"
|
||||
- "ADR 0119"
|
||||
- "ADR 0100"
|
||||
---
|
||||
|
||||
# Design 08, milestone hub-adopts-the-predecessors-tunnel — the hub takes over the tunnel it finds
|
||||
|
||||
**What this part is.** The section of design 08 that ADR 0105 (2026-09-23) and ADR 0119 (2026-09-27) gave, written
|
||||
before designs were cut into milestone parts and moved here whole on 2026-11-24, so the main file keeps room within
|
||||
its bound (playbook 02, *The shape of a design*). Its words are unchanged; each paragraph is one numbered line, its
|
||||
bold lead taken from its own first words. Cited as "design 08 hub-adopts-the-predecessors-tunnel §n".
|
||||
|
||||
## Lines
|
||||
|
||||
1. **The hub takes over the tunnel it finds** (ADR 0105). On an adopted node that is the hub, the private network is not raised beside the tunnel it finds;
|
||||
it **takes it over**: the found interface's private key, its port, its address and range, and every
|
||||
peer it had, carried as peers not yet enrolled. The found interface is stopped, its configuration
|
||||
kept on disk. A predecessor machine sees the same server key at the same endpoint and cannot tell
|
||||
the tunnel changed hands; when it enrols, it keeps the address the tunnel already held for its key.
|
||||
2. **The mesh's own addresses are the adopted range's** (ADR 0105, ADR 0100). The mesh's own addresses are the adopted range's — every binding, hosts entry and endpoint the
|
||||
controller composes follows it, as readers of a setting. ADR 0100's non-overlap rule applies only
|
||||
where a found tunnel is left running beside the mesh's; where it is adopted there is one tunnel.
|
||||
The guard admits the mesh's ports from that one interface, and the predecessor's peers arrive on
|
||||
it.
|
||||
3. **The found configuration is kept only until the take is proven** (ADR 0119). *2026-09-27, ADR 0119.* The
|
||||
found configuration is kept only until the take is proven — the found unit down, the mesh's
|
||||
interface up and handshaking with a peer. Then it is removed from where the found unit reads it
|
||||
(its original stays kept), the hold ends, and the predecessor's tunnel cannot be raised again by
|
||||
anything but a person restoring it by hand. Undeclaring the private network does not bring it back.
|
||||
@@ -1,87 +0,0 @@
|
||||
---
|
||||
layer: to-be
|
||||
design: 08
|
||||
milestone: one-statement-of-reach
|
||||
updated: 2026-11-24
|
||||
code: [mesh-controller, mesh-host, mesh-catalog modules/route-proxy]
|
||||
decisions:
|
||||
- "ADR 0138"
|
||||
- "ADR 0340"
|
||||
- "ADR 0167"
|
||||
- "ADR 0046"
|
||||
---
|
||||
|
||||
# Design 08, milestone one-statement-of-reach — one statement behind exposure, filtering and certificates
|
||||
|
||||
**What this part is.** Design 08's §6, which ADR 0138 settled (issue 140) and ADR 0340 and ADR 0167 extended, written
|
||||
before designs were cut into milestone parts and moved here whole on 2026-11-24, so the main file keeps room within
|
||||
its bound (playbook 02, *The shape of a design*). Its words are unchanged; each paragraph is one numbered line, a bold
|
||||
lead added where it had none. Cited as "design 08 one-statement-of-reach §n". *2026-09-28, preparing the control-node's convergence —
|
||||
[issue 140](../../../04-ISSUES/140-an-endpoints-reach-is-not-declared/00-report.md), settled by
|
||||
ADR 0138.*
|
||||
|
||||
## Lines
|
||||
|
||||
1. **Reachability was stated nowhere.** The three sections above each decide, independently, how far a service reaches. §3 composes a name
|
||||
from a label and the node's domain. §4 opens a port to the source a listen named. §5 certifies the
|
||||
names that exist, from whichever authority the proxy holds. Each is coherent on its own, and together
|
||||
they mean **reachability is never stated anywhere** — it is the sum of three derivations, and a sum is
|
||||
not something anyone can review or refuse.
|
||||
2. **What that cost.** What that costs, measured: an identity provider holding a public certificate valid 90 days and an
|
||||
internal one valid 24 hours, neither asked for by any assignment, because both names existed and a
|
||||
proxy certifies what it serves. And an endpoint that is not routed — git over ssh — which can be
|
||||
spoken about only in the filter's vocabulary, so *this must be reachable from outside* is a setting
|
||||
exactly one mechanism reads.
|
||||
3. **An endpoint is the thing that was missing.** A module declares named endpoints: one port it serves,
|
||||
what it is for, and what it would serve that to absent any instruction. A route contribution names an
|
||||
endpoint rather than repeating a port number. An assignment — which is where a module's configuration
|
||||
lives (ADR 0046)
|
||||
— then binds each endpoint to a machine port and says how far it reaches.
|
||||
4. **One value, three readers.** One value, three readers:
|
||||
|
||||
| reach | the filter opens | the proxy serves | the certificate comes from |
|
||||
|---|---|---|---|
|
||||
| `internal` | the machine port, to the private network | the internal name | the mesh's own authority |
|
||||
| `public` | the machine port, to anywhere | the public name | the public authority |
|
||||
| `both` | the machine port, to anywhere | both names | each name's own authority |
|
||||
| `local-network` | the machine port, to the private network and the machine's local networks | the internal name | the mesh's own authority |
|
||||
5. *2026-10-13.* **A port may be reached from the machine's own local network, and only its private
|
||||
part** (ADR 0340). A home server serves devices on its own network that will never be nodes, and until
|
||||
now the only value that reached them was `anywhere`, which says the internet. A new source,
|
||||
`local-network`, and the reach of the same name mean the networks the machine is attached to through
|
||||
its uplink, as the node-engine reports them among its facts. Only networks wholly in a private range
|
||||
count (RFC 1918, and unique local addresses for IPv6); a public subnet the machine sits on is never
|
||||
counted, so the source cannot open a port to the internet. The filter renders it on that port's rule
|
||||
alone, as the subnets it resolved to. A machine that reports no private network has a `local-network`
|
||||
port admitted from no local network, and the rule set and the plan say so. The plan shows what each
|
||||
such port resolved to, and `node` shows which attached networks counted and why the others did not.
|
||||
A laptop that travels admits whichever local network it is on, which the plan makes visible.
|
||||
6. *2026-10-02.* **The proxy serves an internal name to the private network only**
|
||||
(ADR 0138,
|
||||
its insight of this date). It answers public and internal names on the same listeners, so the name a
|
||||
request carries is the request's own claim, not where the request came from. An internal name is
|
||||
served to the machines of the mesh and to the machine itself; to anyone else it is answered as a name
|
||||
never routed, in the handshake as well as the request. Without this, an endpoint with reach `internal`
|
||||
would be public under a name that is easy to guess
|
||||
([issue 191](../../../04-ISSUES/191-a-route-with-only-an-internal-name-is-dropped/00-report.md)).
|
||||
The proxy is told who the mesh is, and its routes, in its membership on the bus — the same machine
|
||||
addresses the filter's "from the mesh" is rendered from
|
||||
(ADR 0167).
|
||||
7. **An endpoint that is not routed is reached and never named.** No route contribution means no name is
|
||||
composed and no certificate requested, while the filter still acts on it. That is the case the model
|
||||
could not express at all, and it is the ordinary case for anything that is not HTTP.
|
||||
8. **Nothing moves until an assignment says so.** An endpoint whose assignment is silent keeps the
|
||||
default its manifest states, so every machine already converged renders exactly as it does today —
|
||||
the same property §4 needed when a machine gained a way to say which networks it routes.
|
||||
9. **What the certificate questions waited for.** This is what the certificate questions were waiting for. Which authority signs a name, whether a name
|
||||
may appear in a public issuance log, and what must be trusted where are all answerable once an
|
||||
endpoint says whether it is internal — and unanswerable while the proxy decides by composing every
|
||||
name it can. It is also the fact
|
||||
[issue 139](../../../04-ISSUES/139-an-internal-route-name-resolves-to-the-consumers-node/00-report.md)
|
||||
needs: an internal name should be composed from the machine serving the endpoint, which is the
|
||||
assignment that bound it.
|
||||
10. **How it is checked** is stated with the decision: one module with two endpoints of differing reach
|
||||
asserted per chain body; the names and the certificate requests following the reach and failing
|
||||
against today's behaviour, where both are always composed; an unrouted endpoint filtered and never
|
||||
named; an assignment naming an endpoint the module does not declare refused where it is said; and a
|
||||
silent assignment rendering byte-identically to today.
|
||||
@@ -1,137 +0,0 @@
|
||||
---
|
||||
layer: to-be
|
||||
status: in-progress
|
||||
design: 08
|
||||
milestone: sign-in-page
|
||||
updated: 2026-11-24
|
||||
decisions:
|
||||
- "ADR 0687"
|
||||
- "ADR 0689"
|
||||
---
|
||||
# 08, milestone sign-in-page — the lead's answers to the first review by architectural domain
|
||||
|
||||
The lead's answers to the findings of the four reviews by architectural domain, for the milestone part
|
||||
[sign-in-page](sign-in-page.md): each names the principle or record that settles it, and is cited by its key
|
||||
(R-M2, H-N6 and the like) as "design 08 sign-in-page lead answer R-M2". Each is written into the part's lines.
|
||||
|
||||
Lead answers to the four reviews by architectural domain of design/0687-sign-in-page at 11688f3a (fix-1981@g14, 2026-11-24). Each names the principle or record that settles it. The bus finding (all four reviewers) is answered by the operator: a new record amends ADR 0687 so the uplink's holder reacts on its own machine without the bus: ADR 0689, accepted 2026-11-24. Findings that only concerned i3's reaction or its start read (running-and-testing N5, health-and-events M4 and N7 for i3, seams M2 and M4, security M4 for i3) end with it.
|
||||
|
||||
RUNNING AND TESTING
|
||||
R-M2 The guard keeps the list it applied and the link it applied it to in its own file beside the names (/var/lib/node-resolver/uplink-names.applied), read at its start; a unit test for a guard restart and for a changed list. Principle: a part reads its own state, nothing is inferred.
|
||||
R-M3 Name the grant for networkmanager publishing node-uplink's events: if the grants part already derives a seat event publish from the holder's claim (as for node-packet-filter's allowances-changed), say so and cite it; if not, name mesh-delivery modules/mesh-grants, the grant, its test and the ordering edge in Where. Principle: the design leaves the builder no choice.
|
||||
R-M4 Add one integration test that starts networkmanager's uplink-tools whole (watcher, publication with acknowledgement, kept queue, the call of uplink-names); add live tests of open: an http address answers its program, a file: path is refused. Rule: a change to how a module runs carries a whole-module test.
|
||||
R-N6 networkmanager calls <node>/node-resolver.uplink-names directly; "no holder" is an answer, not a failure. The prepare reads whether node-engine's running event fires for a restarted module and writes it down.
|
||||
R-N7 The prepare records each module's test counts against the budget.
|
||||
R-N8 Move one section that predates the milestone out of 08-connectivity.md into a part, so the main file keeps room.
|
||||
|
||||
HEALTH AND EVENTS
|
||||
H-M1 uplink-tools gains a health check and a read tool: the watcher subscribed or not, the last rating heard and when, the asks opened and ended, the last uplink-names call with its result and time, the publishes waiting; unhealthy while the watcher is not subscribed or the call stands failed. A test for each. Principle: a module says how it is healthy (ADR 0240); tools read everything a module holds.
|
||||
H-M2 open reads xdg-open's exit status and refuses on failure; the answer names the program only when it started. The sign-in notification says the page "is opening in" the browser only after that status; a test where the opener fails. Principle: evidence over assertion.
|
||||
H-M3 networkmanager reacts to node-engine's running event only for the module holding node-resolver on its own node, and only when that module's state is running.
|
||||
H-M5 Answered by the new record's clause 2: publish with the stream's acknowledgement, keep a failed publish in order and publish it when the bus answers, journal every refusal, show the waiting publishes in H-M1's read tool, and test it.
|
||||
H-N6 routes answers uplink_names from what the resolver holds for the link, not from the file; when the resolver refuses the names, the guard writes the refusal to the journal and to routes.
|
||||
H-N7 for uplink-tools: after its own restart while the rating is PORTAL it opens the page once more; that is wanted (what needs the person is visible), and is said in the design.
|
||||
H-N8 uplink-tools writes a journal line when it opens a page, when the open fails, when it shows a notification and when a publish waits or is sent.
|
||||
|
||||
SEAMS AND TOOLS
|
||||
S-M1 consumes stays the event's name: networkmanager hears node-engine.running for every node and drops any whose subject's node is not its own. No new manifest word. Principle: use the forms the mesh has.
|
||||
S-M3 uplink-tools' tools: the read tool of H-M1; a tool that calls uplink-names again now; a tool that reads NetworkManager's rating again now and acts on it. Unit tests for both. Principle: every act a module does by itself can be started by a tool.
|
||||
S-N5 routes also answers whether the mesh's resolvers are silent and since when.
|
||||
S-N6 Name ${machine:account} where the account is meant. The guard's 5 s round stays as built (ADR 0688). The names in the file stay until the resolver's module leaves, and are said so.
|
||||
S-N7 Fix 08-connectivity.md: the paragraph that ends mid-sentence ("cannot be raised again by") and the dropped section "The bus is NATS" are restored or moved whole, never cut.
|
||||
|
||||
SECURITY AND UPGRADE
|
||||
U-M2 open never builds a command line from the address: it percent-encodes every character outside RFC 3986's unreserved set and the separators a URL needs, and passes the address as one argument; a test with ', ;, , and $( in the address. Principle: a caller's text is never a command.
|
||||
U-M3 Each seat defined whole carries every field today's definition holds unchanged (paths with steps-back-for, optional on resolvers and links, replaces on node-resolver's verbs, receives on node-display-session); say so per seat.
|
||||
U-M5 Name the programs the guard runs to write the names file (as root, with sudo -n): the exact commands, added to the module's sudo rules.
|
||||
U-N6 §2 and §3 say who calls the new verbs: modules whose manifest invokes the verb, and the operator, through the mesh MCP server (the lead wrote "console", a retired word).
|
||||
U-N7 A rollback line per step: what stays when systemd-resolved, networkmanager or i3 goes back one version (the names on the link until it changes; nothing else).
|
||||
|
||||
## Round 2
|
||||
|
||||
Lead answers to round 2 of the reviews by architectural domain of design/0687-sign-in-page at d2f85655 (fix-1981@g14, 2026-11-24). Each names what settles it.
|
||||
|
||||
R2-1 (running-and-testing must; health-and-events must). FACT read in mesh-tools 393449e, the tool runner's `node-tools serve`: the tool runner starts no bundle before it has connected to the bus (connectPatiently retries forever; runtime.Run follows the connection), so after a cold boot behind a sign-in page uplink-tools never runs. ANSWER: networkmanager's watcher and its reaction (watching NetworkManager's rating, opening the page, the notifications, keeping the events) run as a process resource of networkmanager, a service the machine starts at boot without the bus, as the zfs module's zfs-watch process does; that process declares health of kind tool, with the tool, interval, failing looks and grace named as zfs-watch's are. The bundle uplink-tools keeps the verbs and tools: it reads the watcher's state and publishes the kept events once the runner is connected, through the module's own local state between its two parts (a file under /run or a socket of the module's own, named in the design). The watcher subscribes again when its system bus connection returns, and uplink_rating_again makes it subscribe again. Tests: the two unhealthy cases (watcher not subscribed, uplink-names call failed), the resubscribe, and a whole-module integration test that starts the watcher with no bus, sees the page open, and sees the kept events published once the bus is back. Principles: a part that must work without the bus may not need the bus to start; a module's own parts share its own state; a module says how it is healthy (ADR 0240). ADR 0689 says "uplink-tools" for the reacting part: the record-writer adds a progressive insight naming the watcher process; the decision is unchanged.
|
||||
R2-2 /run/node-resolver: the guard makes it (root, 0755) and it goes at the next boot; said in §8.
|
||||
R2-3 The open runs beside the watcher; rating changes heard meanwhile are handled in their order.
|
||||
R2-4 08-connectivity.md: move one more section that predates the milestone out into a part now, so the main file keeps room (it grew to 79.7 KB).
|
||||
R2-5 networkmanager also calls uplink-names again when its bus connection comes back (an event), with one row in the tests.
|
||||
R2-6 Name the reader of the events: nats.nats_stream_messages filtered to mesh.seat.node-uplink.event.*.<node>.
|
||||
R2-7 The bounds of §15 (60 s), §16 (10 s) and §19 (256 kept) stay stated constants.
|
||||
~~R2-8 Going back: a seat's definition goes back before its holders (definitions first, then holders), in reverse of the ordering edges.~~ *Corrected by R3-2 (2026-11-24): going back is one delivery group of the three seat definitions and their holders together, since the manifest check refuses either without the other.*
|
||||
R2-9 open keeps unencoded only RFC 3986's unreserved characters and : / ? # [ ] @ & = + % ; every other character is percent-encoded; §28's test adds , and ".
|
||||
R2-10 Say what the publish grant covers, as read in mesh-sdk's EmitSeat and the grants part: the holder's own node's subject only, or every node's; if every node's, say so (the events are a record only).
|
||||
R2-11 A kept event keeps its message id when published again, so the bus drops a duplicate.
|
||||
R2-12 The watcher's read (uplink_sign_in) also counts refused publishes, shows the last session start and its outcome, and shows the resolver's refusal of the names as routes answers it.
|
||||
R2-13 The guard writes resolved's refusal to the journal once per change, not every round.
|
||||
R2-14 i3's open writes one journal line per call, opened or refused, with the program.
|
||||
|
||||
## Round 3
|
||||
|
||||
Lead answers to round 3 (the last) of the reviews by architectural domain of design/0687-sign-in-page at ffb64bc7 (fix-1981@g14, 2026-11-24).
|
||||
|
||||
R3-1 (running-and-testing, health-and-events, seams-and-tools: the sequence). The watcher keeps the next sequence of its message ids in a file `sequence` in the folder of §12, written whole (to a file beside, renamed over), never reset while the folder lives, removed with it; a test in §25: a watcher restarted after its events were published and pending/ emptied makes ids it has not used before, and the bus keeps them. Principle: failure must be loud; work that reports success and did nothing is the worst fault.
|
||||
R3-2 (security-and-upgrade: going back). R2-8 was wrong: the manifest check refuses a holder without its seat's new verbs and a seat definition without its holders' serves, either order. The milestone goes back as it was delivered: one delivery group of the three seat definitions and their holders together. Correct R2-8 and the part's going-back lines to say this. (The lead's earlier answer, corrected on the reviewer's reading of mesh-sdk `catalogue/seats.go`.)
|
||||
R3-3 (seams-and-tools: invokes). Add seat:node-resolver.routes to networkmanager's invokes (§13), since uplink_sign_in reads it.
|
||||
R3-4 (health-and-events notes). The README says the watcher's health is judged only once the tool runner has reached the bus; uplink_sign_in counts the events dropped past the 256 bound.
|
||||
R3-5 (seams-and-tools note). Add the tool uplink_publish_again, which asks the publish of the kept events now, with a unit test. Principle: every act a module does by itself can be started by a tool.
|
||||
R3-6 (security-and-upgrade note). The prepare confirms, on each machine that runs networkmanager, that the tool runner runs as the same account as the watcher (the folder is 0700).
|
||||
|
||||
## The prepare
|
||||
|
||||
Lead answers to the prepare of design 08's milestone sign-in-page (fix-1981@g14, 2026-11-24). Each names what settles it; the prepare's recommendations are taken unless said.
|
||||
|
||||
DQ-1 The guard learns the private network's interface name as a rendered fact beside `suffix`. Principle: the mesh owns the truth; nothing is guessed.
|
||||
DQ-2 The link carrying the default route is the lowest-metric default route's link that is neither routed (a VPN's) nor the private network's; none when there is none. Principle: the design leaves the builder no choice (ADR 0687 §2 means the network's own link).
|
||||
DQ-3 routes answers, per link, the applied list's names that resolved holds on that link now. Principle: evidence over assertion.
|
||||
DQ-4 mesh-sdk joins the group only to refresh its test copies of the three seats and the two tests that assert today's verbs; the seat-name constants stay. Principle: one release, one check; nothing seat-specific is added to mesh-sdk (ADR 0613 §5).
|
||||
DQ-5 The guard's machine socket answers routes the same as the bus. Principle: one answer per verb.
|
||||
DQ-6 Yes: i3's force input and its answer fields (i3, watcher) are optional fields in node-display-session's definition. Principle: a seat's contract names every field a holder answers.
|
||||
DQ-7 open is class act and each call is written to the log of acts done by hand, with its caller and why, as issue 935 asks. Principle: an act on the person's screen by an agent is read back later (tools-are-how-a-module-is-spoken-to).
|
||||
DQ-8 "No holder" is read from the assignments, never from the bus's no-responders text. Principle: read the owner's state.
|
||||
~~DQ-9 The watcher hears the user manager's environment change (org.freedesktop.systemd1.Manager PropertiesChanged on Environment on the person's systemd); the developer proves it with a unit test against a recorded signal and checks it once on the laptop; if the user manager sends no such signal, §15's file event on the X socket folder is the trigger and the design line says so. Principle: events first; evidence over assertion.~~ *Corrected (2026-11-24): `org.freedesktop.systemd1.Manager`'s property `Environment` carries the annotation `org.freedesktop.DBus.Property.EmitsChangedSignal` `false` in systemd's interface description (`org.freedesktop.systemd1.Manager.xml`, read by the lead on the laptop), so the user manager sends no `PropertiesChanged` for it. The trigger is the kernel's file events on `/tmp/.X11-unix` and on the session's `RuntimePath`, the environment reread at each for at most 60 s.*
|
||||
DQ-10 Yes: §16's WAYLAND_DISPLAY import applies to a Wayland session's start block only.
|
||||
DQ-11 Yes: correct design 42's citation to §29–§31.
|
||||
DQ-12 Yes: the contracts modules carry the generated packages; holders import them at the zero version (ADR 0573 §2, §4).
|
||||
|
||||
DMC-1 Yes: the tool runner may not publish a node seat event naming its machine today; mesh-delivery's grants part grants it for the holder's own node only (this also covers nftables), and mesh-delivery joins the group with its ordering edge before the holders. Principle: a gap in the delivery system is built there (design-it-as-it-should-be).
|
||||
DMC-2 Yes: the guard leaves the uplink names out of its judgement of a routed link, so the fallback still applies to a link holding only uplink names (ADR 0688 stands).
|
||||
DMC-3 Yes: each holder takes its own subcommands and tools from its manager.go; main.go stays the byte-equal copy.
|
||||
DMC-4 Yes: the bundle hears a reconnect as the first heartbeat answered after a missed one. Principle: use what the runtime gives.
|
||||
DMC-5 Yes: the five tools and the health tool are listed in the manifest's tools (§27).
|
||||
DMC-6 The module's folders are removed when the module leaves only as the node-engine does for a directory resource; where it keeps a directory that still holds files, the design says the folders are kept and why (state of the module, harmless). Principle: the design says what the mesh does, never an intention it does not carry out.
|
||||
DMC-7 Yes: write a README for networkmanager and for systemd-networkd.
|
||||
DMC-8 Yes: i3's opener runs in cmd/i3-tools, not the shared desktop package, so its 10 s bound is its own.
|
||||
DMC-9 Yes: accept the runtime's module prefix on message ids; the sequence file of §12 keeps them unique.
|
||||
|
||||
PREPARE CHECK. The node-engine says no running for a module restarted in place at the same build (read in code and on the bus: the guard's restart 2026-11-23 23:41, no running followed). So §11's trigger for a restarted resolver does not fire: networkmanager also calls uplink-names on its bus reconnect (R2-5) and when routes shows its names missing at its health look; no new node-engine event in this milestone. Principle: events first, and the design names only events that fire.
|
||||
|
||||
## The build
|
||||
|
||||
L-1. The resource `sign-in-state` (§12's folder) carries `unknown` `module` (ADR 0422 §3: the module's own process reacts, as its README says and its tests show). The watcher leaves a path it does not know (anything but `watch.sock`, `check-address`, `pending/` and its files, `names.json`, `sequence`) as it is and writes it to the journal once per path; the README (§24) says so and one unit test (§25) shows it. Not `move-out` (ADR 0422 §4 would move the module's own files at every look), not `program` (§2: no other program writes there).
|
||||
|
||||
L-2. The fact `private-interface` renders the literal `mesh0`. Quick, not thorough: the private network's interface on the laptop is `mesh0`, and netcheck and networkmanager's configuration already name it literally; one value every module reads is the thorough fix, outside this milestone (a finding the lead carries; the laptop's assignment names the tunnel `wg0`, which contradicts what runs).
|
||||
|
||||
L-3. Read on the laptop on 2026-11-25: the node-engine sets no `MESH_NODE` for a process resource (the unit holds only `MESH_FINGERPRINT`; zfs-watch's on another machine has none), so the watcher, a process, cannot know its node. The watcher needs no node: it opens and notifies without one; a kept change in `pending/` holds the event's name, its sequence and its body without the node; the bundle (which the tool runner gives `MESH_NODE`) fills its node into the subject, the message id `<node>.<event>.<sequence>` and the body when it publishes. Quick, not thorough: the thorough fix (the node-engine gives every process resource `MESH_NODE`) is a finding the lead carries.
|
||||
|
||||
## Code review round 1
|
||||
|
||||
Lead answers to code review round 1 of the milestone sign-in-page (fix-1981@g14, 2026-11-24). Each names what settles it.
|
||||
|
||||
C-1 (grants: membership). The tool runner's membership lists the held seat's own-node machine event too (onMachine), so its runtime's mayPublish lets it publish; tests on node-uplink's sign-in-asked.<node> subject itself, and the whole test publishes through the runtime's check, not straight to the stream. Principle: evidence over assertion; §4a.
|
||||
~~C-2 (validator: a tool check alone). networkmanager's service resource (NetworkManager's unit) carries health of kind unit, so the watcher's tool check stands beside a check of another kind (ADR 0227 rule 8, ADR 0240 rule 2), as zfs's process watch stands beside its units' unit checks (read in mesh-catalog main, modules/zfs). §27 changes from "the service resource as it is today" to that.~~ *Corrected by C-2c (2026-11-24): NetworkManager.service keeps no state and no health (ADR 0117 §4, §5).*
|
||||
C-3 (mesh-sdk test copies). Copy the three definitions byte for byte from mesh-networking and mesh-contracts at their heads, and fix the two tests' decision text to match. Principle: a copy is a copy.
|
||||
C-4 (guard: names in place). The guard judges "in place" from the domains resolved holds on the link now (rawDomainsOf), not from its applied record alone, and sets them again when they are missing; a test where the network manager rewrites the link's domains and one where resolved restarts. §7.
|
||||
C-5 (i3: the opener's bound). cmd/i3-tools runs the opener with its own run that stops waiting at 10 s without killing the opener (DMC-8); a test with an opener that outlives the bound and keeps running.
|
||||
C-6 (generated packages). systemd-resolved and i3 import noderesolver and nodedisplaysession at the zero version and answer with their types; uplink-names' names is an array as the definition says. DQ-12.
|
||||
C-7 (/var/lib/node-resolver unknown). It stays: mesh-catalog's checks/owned refuses a directory without unknown (ADR 0422 §8). Its value is "module", as L-1: the guard leaves a path it does not know as it is and writes it to the journal once; README line and a unit test. Not "program" (no other program writes there, ADR 0422 §2).
|
||||
C-8 (bounds). The watcher socket's 5 s and the names file write's 15 s are stated constants in the design lines, as R2-7 holds for 60 s, 10 s and 256. Principle: a bound is stated; a setting only where machines differ.
|
||||
NOTES taken: (a) node-resolver's real definition adds outside_writes to routes' answer, which systemd-resolved answers today (U-M3: every existing field carries over); (b) a refused open writes a hand-act too (DQ-7: each call); (c) fallback.json's since is the time of the guard's first round, never zero; (d) the watcher redials the system bus only on the socket's file event and on rating-again, never in a loop. mesh-catalog-connectivity's stale generated files on trunk stay a finding outside the milestone.
|
||||
|
||||
~~C-2b (corrects C-2). NetworkManager.service keeps no state and no health (ADR 0117 §4, §5: the mesh never starts, stops, enables or disables it; a unit check on a service not stated running is refused, ADR 0240 rule 1). The sign-in process's health is of kind exec, command `./uplink-tools health`, which asks the watcher's socket and exits non-zero when the watcher is not subscribed or the last uplink-names call stands failed (60s, 20s, 2 looks, 60s grace); with no tool check left, ADR 0227 rule 8 does not apply, and the check runs on the machine, so it works behind a sign-in page (ADR 0689). `uplink_health` stays a tool of the bundle, not a health check.~~ *Corrected by C-2c (2026-11-24): an exec check exists only for a container; the manifest validator refuses it on a process, and the node-engine runs exec checks only through the container runtime (the node-engine's `internal/apply/apply.go` `runtimeCheckArgs`, `internal/liveness/readiness.go`).*
|
||||
|
||||
C-2c (corrects C-2 and C-2b). NetworkManager.service keeps no state and no health (ADR 0117 §4, §5); the sign-in process's health is of kind unit (its unit `networkmanager-sign-in` active), judged on the machine without the bus; `uplink_health` stays a tool of the bundle, not a node-engine check, answering not subscribed and a failed uplink-names call, both also in `uplink_sign_in` and the journal; the watcher exits non-zero when it cannot subscribe again after the system bus returns, so its unit shows failing.
|
||||
|
||||
## Code review round 2
|
||||
|
||||
C2-1. When the watcher's first subscribe at its start fails while the system bus's socket already exists, it writes the reason to its journal and exits non-zero, as when it cannot subscribe again after the bus returns (C-2c; failure must be loud), so its unit shows failing and the service manager restarts it.
|
||||
@@ -1,459 +0,0 @@
|
||||
---
|
||||
layer: to-be
|
||||
design: 08
|
||||
milestone: sign-in-page
|
||||
updated: 2026-11-24
|
||||
code: [mesh-networking mesh-connectivity-contracts, mesh-contracts, mesh-catalog modules/networkmanager, mesh-catalog modules/systemd-networkd, mesh-catalog modules/systemd-resolved, mesh-catalog modules/i3, mesh-catalog retired-words]
|
||||
decisions:
|
||||
- "ADR 0687"
|
||||
- "ADR 0689"
|
||||
- "ADR 0688"
|
||||
- "ADR 0117"
|
||||
- "ADR 0247"
|
||||
- "ADR 0208"
|
||||
- "ADR 0443"
|
||||
- "ADR 0636"
|
||||
- "ADR 0613"
|
||||
- "ADR 0303"
|
||||
- "ADR 0573"
|
||||
- "ADR 0363"
|
||||
---
|
||||
|
||||
# Design 08, milestone sign-in-page — a network's sign-in page opens by itself on the person's desktop
|
||||
|
||||
**What it builds.** When the network a machine's default route leaves through asks for a sign-in, the holder of the
|
||||
node seat `node-uplink` opens the network's sign-in page in the person's default browser and tells them why, on its
|
||||
own machine and without the bus, which is out of reach behind the page (ADR 0689 §1); it also says the ask and its
|
||||
end as `node-uplink`'s events, the mesh's record of it (ADR 0687 §1, ADR 0689 §2). On a machine with its own
|
||||
resolver, the network manager's own check resolves through the network it tests, so its rating means what it says
|
||||
(ADR 0687 §2). The seat `node-display-session` gains the verb `open` for any caller over the bus (ADR 0687 §4); no
|
||||
part of the sign-in reaction calls it (ADR 0689 §3). The purpose and the whole shape are the main file's,
|
||||
[§7](../08-connectivity.md#7--a-networks-sign-in-page). This part holds every line the milestone builds, cited as
|
||||
"design 08 sign-in-page §n"; the lead's answers it follows are in
|
||||
[sign-in-page-lead-answers.md](sign-in-page-lead-answers.md), cited by their keys (R-M2 and the like). It closes
|
||||
issue 960 (§5 to §10, on the machines where the resolver runs) and issue 935 (§3, §29).
|
||||
|
||||
**Where.** Five repositories, one delivery group with one check: mesh-networking (the contracts module
|
||||
`mesh-connectivity-contracts`: §1, §2), mesh-contracts (§3), mesh-sdk (its test copies, §4), mesh-delivery (the grants
|
||||
part, §4a) and mesh-catalog (`systemd-resolved` §5 to §10, `networkmanager` §11 to §27, `systemd-networkd` §28, `i3`
|
||||
§29 to §31, the copy of the retired words §32). **Ordering edges**, which the delivery plan derives: the three seat
|
||||
definitions before any holder that serves or publishes what they add, and before any module whose `invokes` names it
|
||||
(the manifest validator refuses a name no definition holds, design 26); mesh-delivery's grants part (§4a) before the
|
||||
holders whose bundles publish a machine's event through the tool runner (`networkmanager`); `systemd-resolved`
|
||||
serving `uplink-names` before `networkmanager` calls it (a served verb). **The grant** (DMC-1, correcting R-M3): the
|
||||
grants part grants a held seat's events to the module's own account, and grants the tool runner, which carries a
|
||||
bundle, a carried module's held-seat events only where the event names no machine; `sign-in-asked.<node>` names the
|
||||
machine, so §4a builds that grant. It covers the holder's own node's subjects only: an event subject with a part
|
||||
`<node>` is granted to that node's account alone (the seat definition's `Subject` rule, ADR 0363 §2; R2-10).
|
||||
|
||||
**What exists today, and its fate.** `node-uplink`'s definition gives the read verbs `resolvers` and `links` and no
|
||||
events; `networkmanager`'s `uplink-tools` answers those two and watches nothing: both stay. `node-resolver` has
|
||||
`routes`, `route` and `unroute`, served by `systemd-resolved`, whose guard keeps the resolver file and runs ADR 0688's
|
||||
fallback (design 50 resolver-fallback): all stay. `node-display-session` has `reload`, `workspaces` and `windows`,
|
||||
served by `i3`, whose own tool `i3_exec` runs a command line in the session: all stay, and `open` is the narrow verb
|
||||
beside `i3_exec` that issue 935 asks for. **Going back one version** (U-N7; R3-2, which corrects R2-8): as the milestone was
|
||||
delivered, one delivery group of the three seat definitions and their holders together, since the manifest check
|
||||
refuses a holder without its seat's new verbs and a seat definition without its holders' `serves`, in either order.
|
||||
Then: `systemd-resolved` back leaves the names on the link until the
|
||||
network manager changes that link's domains, and its folder `/var/lib/node-resolver` with its files kept (§6);
|
||||
`networkmanager` back removes the watcher's process, keeps its state folder with its files (§12), publishes no more
|
||||
and calls nothing; `i3` back drops `open`. The kept folders are listed by the node-engine's `cleanup list` and read
|
||||
by nothing (DMC-6).
|
||||
|
||||
## The seats' definitions
|
||||
|
||||
1. **`node-uplink` is defined whole, with two events in the family `node-uplink.events`** (ADR 0687 §1, as ADR 0689
|
||||
§2 changes it; ADR 0613 §1, §3; ADR 0636 §5). Only the three seats this milestone changes are defined whole (§1 to
|
||||
§3); the domain's other seats keep their grain (ADR 0613's deciders: the operator, 2026-11-03, "full definitions
|
||||
only for the seats the milestone changes"; the lead's answer of 2026-11-24). In `mesh-connectivity-contracts` the
|
||||
definition carries every field today's definition holds, unchanged: its path `/etc/resolv.conf` with its
|
||||
`steps-back-for` naming `node-resolver`, and the verbs `resolvers` and `links`, each marked `optional` as today,
|
||||
with their inputs and answers as `networkmanager` answers them (U-M3). It adds the events `sign-in-asked` and
|
||||
`sign-in-ended` and the family `{name: node-uplink.events, max-age-days: 7}`: the shared events stream filtered to
|
||||
the seat's subjects, which keeps them 7 days. Each event's subject is `<event>.<node>` after
|
||||
`mesh.seat.node-uplink.event.`, the `<node>` the publishing node. The bodies, each a JSON Schema with every field
|
||||
required:
|
||||
- `sign-in-asked`: `node` (the node's name), `link` (the interface name of the link the default route leaves
|
||||
through), `network` (the network's name as the network manager knows it, its connection's name), `address` (an
|
||||
http or https address, the one opened), `at` (the time of the change it says, never of its publish, RFC 3339 in
|
||||
UTC to the second: ADR 0689 §2).
|
||||
- `sign-in-ended`: `node`, `link`, `network`, `at`, and `why`, one of `signed-in`, `left`, `no-longer-asked`;
|
||||
`link` and `network` are empty only for a `no-longer-asked` said with no connection active (§21).
|
||||
|
||||
**Both are optional for a holder**: the definition marks neither as required and the manifest validator asks no
|
||||
holder to publish them; a holder whose network manager cannot tell a sign-in page announces neither and says so in
|
||||
its README (§28). **No part of the mesh consumes them** (ADR 0689 §2, §3); they are the mesh's record, read with the
|
||||
bus module's tool `nats.nats_stream_messages` filtered to `mesh.seat.node-uplink.event.*.<node>` (R2-6), and a
|
||||
reader takes their time from `at`, never from arrival. The conformance fixtures
|
||||
hold one value per event, with documentation names only (§33). Checked by the indexer's generator test over the
|
||||
definition and `networkmanager`'s whole-module test matching a published event, subject and body, against a
|
||||
fixture (design 26).
|
||||
2. **`node-resolver` is defined whole, with the verb `uplink-names`** (ADR 0687 §2, changing ADR 0247 §10; ADR 0613
|
||||
§1, §3; ADR 0636 §5). In `mesh-connectivity-contracts` the definition holds `routes`, `route` and `unroute` with
|
||||
every field today's definition holds, their `replaces` unchanged (U-M3), and `uplink-names`, required of every
|
||||
holder as the seat's other verbs are (ADR 0247 §15). Its callers are the modules whose manifest `invokes` it
|
||||
(`networkmanager`, §13) and the operator, through the mesh MCP server (U-N6).
|
||||
- input `{names}`: a list of 0 to 8 host names, each a name of 1 to 253 bytes in letters, digits, hyphens and
|
||||
dots, taken lower-cased. The list replaces what was given before; an empty list takes every name away.
|
||||
- answer `{names, link, set_at}`: the names now given, the link they are answered over now (empty when no link
|
||||
carries a default route), and when the list was set.
|
||||
- refused, naming the name and the reason: a name that is not a host name (a wildcard, a trailing dot, a label over
|
||||
63 bytes), the root, the mesh's own domain or a name under it (ADR 0247 §12's rule for `route`, for the same
|
||||
reason), more than 8 names.
|
||||
|
||||
`routes`'s answer gains `uplink_names` `{names, link, refused}`: `names` are the names of the applied list (§8)
|
||||
that resolved holds on that link now (DQ-3), never the file's, with `refused` the reason resolved last refused them, or empty (H-N6); and `mesh_resolvers`
|
||||
`{silent, since}`: whether the mesh's resolvers are silent now, by ADR 0688's guard, and since when (S-N5). Why 8
|
||||
names: the network manager has one check address; 8 leaves room and keeps the guard's round small. `routes` keeps
|
||||
every field it answers today, `outside_writes` included, which systemd-resolved answers now (U-M3; note a).
|
||||
3. **`node-display-session` is defined whole, with the verb `open`** (ADR 0687 §4, changing ADR 0208 §3; ADR 0613 §1,
|
||||
§3; ADR 0636 §5). In `mesh-contracts` the definition holds `reload`, `workspaces` and `windows` as `i3` answers
|
||||
them today and every field today's definition holds, its `receives` unchanged (U-M3); `reload` gains `force` as an
|
||||
optional input and `i3` and `watcher` as optional answer fields, the descriptions staying the definition's (DQ-6);
|
||||
and `open`, of class act (DQ-7), required of every
|
||||
holder so that any holder of the display session serves it the same way (ADR 0687 §4: i3 or sway). Its callers are
|
||||
the modules whose manifest `invokes` it and the operator, through the mesh MCP server; the sign-in reaction is not one (ADR 0689 §3;
|
||||
U-N6).
|
||||
- input `{address}`: the address to open.
|
||||
- answer `{address, program, command, started}`: the address as handed on (the encoding below), the desktop entry
|
||||
that opened it (as `browser.desktop`), the first word of that entry's command, and `started`: `opened` when the
|
||||
opener ended well within its bound, `opening` when it still ran at its bound (§29). `program` and `command` are
|
||||
given only once the opener started (H-M2).
|
||||
- refused, naming the reason: a scheme other than `http` or `https` (named), no scheme (a file path), no host, an
|
||||
address over 2048 bytes once encoded, no graphical session running, no default program for the scheme, the
|
||||
opener ending with a failure (its status named).
|
||||
- **the encoding** (U-M2, R2-9): RFC 3986's unreserved characters (letters, digits, `-`, `.`, `_`, `~`) and `:`
|
||||
`/` `?` `#` `[` `]` `@` `&` `=` `+` `%` are kept as they are; every other character is percent-encoded, as the
|
||||
bytes of its UTF-8 form. Nothing is refused for a character, and no shell reads the address.
|
||||
4. **mesh-sdk keeps no layout of the three seats, and refreshes its test copies** (ADR 0613 §3, §5; DQ-4, DQ-12).
|
||||
The prepare found no type layout of these seats in mesh-sdk. mesh-sdk joins the group only to replace its test
|
||||
copies of the three definitions (`go/seatlist/seatlisttest/seats/`: `node-uplink.json`, `node-resolver.json`,
|
||||
`node-display-session.json`) with the whole definitions, and the two tests that assert today's verbs
|
||||
(`go/catalogue/node_resolver_test.go`, `graphical_session_test.go`, and `uplink_verbs_test.go`); its seat-name
|
||||
constants stay, being names and not layouts, and nothing seat-specific is added to it. The contracts modules carry
|
||||
the generated packages as the generator places them (`go/seats/nodeuplink`, `noderesolver`,
|
||||
`nodedisplaysession` and their TypeScript packages, with their artifacts), and `systemd-resolved`,
|
||||
`networkmanager` and `i3` import them at the zero version for the subjects, the verbs and the bodies (ADR 0573
|
||||
§2, §4).
|
||||
**4a. The grants part grants the tool runner its node's machine events of the seats its carried modules hold**
|
||||
(DMC-1). mesh-delivery's grants part composes the tool runner's account, which is per node, with the publish of
|
||||
the event subjects carrying its own node of every seat a module it carries holds, so a bundle's
|
||||
`sign-in-asked.<node>` is let through (and nftables' `allowances-changed` with it); no other node's subject. The
|
||||
tool runner's membership lists that own-node event too, so its runtime's check of what it may publish lets the
|
||||
bundle publish it (C-1). Its tests: a tool runner carrying a holder of `node-uplink` is granted and lists
|
||||
`mesh.seat.node-uplink.event.sign-in-asked.<its node>` and no other node's; the whole-module test of §25 publishes
|
||||
through the runtime's check, never straight to the stream.
|
||||
|
||||
## The resolver answers the check's names (`systemd-resolved`)
|
||||
|
||||
5. **`systemd-resolved` serves `uplink-names` on the mesh** (ADR 0687 §2). Its claim of `node-resolver` serves
|
||||
`uplink-names` beside its three verbs, through the node's tool runner as `${machine:account}`. It is not served on
|
||||
the machine's socket: its caller is on the bus, and a host name of the network manager's check is no VPN's data
|
||||
(ADR 0247 §31 to §34 hold for those). The socket's `routes` answers the same as the bus's, `uplink_names` and
|
||||
`mesh_resolvers` included (DQ-5).
|
||||
6. **The names are kept in one file the guard reads** (ADR 0687 §2). The verb writes
|
||||
`/var/lib/node-resolver/uplink-names`, root's, mode 0644, one name per line, empty for an empty list, whole: it runs
|
||||
`sudo -n install -m 0644 -o root -g root /dev/stdin /var/lib/node-resolver/uplink-names.new` with the lines on its
|
||||
input, then `sudo -n mv -f /var/lib/node-resolver/uplink-names.new /var/lib/node-resolver/uplink-names` (U-M5). The
|
||||
`sudo` module's one rule for `${machine:account}` covers both; no module carries sudo rules of its own. The write
|
||||
is bounded at 15 s, a stated constant (C-8); past it the verb is refused naming the bound and the file is left as
|
||||
it was. The module declares the directory `/var/lib/node-resolver` (root, 0755) as its resource, with `unknown`
|
||||
`module` (ADR 0422 §3, §8; C-7): the guard leaves a path there it does not know (anything but `uplink-names`,
|
||||
`uplink-names.new` and `uplink-names.applied` and its file written beside) as it is and writes it to its journal
|
||||
once per path; not `program`, since no other program writes there (ADR 0422 §2). When the module leaves, the
|
||||
node-engine keeps the directory while it holds files, as data, listed by `cleanup list`, and nothing reads it then
|
||||
(DMC-6); the names stay until a call with an empty list or a person's cleanup (S-N6). Why a
|
||||
file on the machine: the guard, as root, reads only the machine and resolved, as it does today; the file holds
|
||||
across a restart of resolved, of the guard and of the machine, and the caller states the names again at each of
|
||||
its starts (§13).
|
||||
7. **The guard gives the names to the link that carries the default route, every round** (ADR 0687 §2, changing
|
||||
ADR 0247 §16). In each round of its pass over links (ADR 0688's round as built: every 5 s, or after
|
||||
`answer-within` when that is longer; design 50 resolver-fallback §2; S-N6), the guard reads the names file and
|
||||
finds the link carrying the default route: among the kernel's IPv4 default routes, or the IPv6 ones when there is
|
||||
no IPv4 default, the one with the lowest metric whose link is neither one `route` routed (a VPN's) nor the private
|
||||
network's interface; none when there is no such link (DQ-2). The private network's interface name it reads from a
|
||||
fact the module renders beside `suffix`, `/etc/node-resolver/private-interface` (DQ-1), which renders the literal
|
||||
`mesh0` (L-2): that is the private network's interface where the resolver runs, and netcheck and `networkmanager`'s
|
||||
configuration already name it so. One value every module reads is the thorough fix, outside this milestone. It sets that
|
||||
link's domains, through resolved, to the domains the link has plus one routing-only domain `~<name>` per name,
|
||||
keeping every search domain and routing domain it has, and takes the names off the link it gave them to before,
|
||||
when that differs. **In place** is judged from the domains resolved holds on the link now, never from its applied
|
||||
record alone: when the network manager rewrote the link's domains, or resolved restarted, the names are set again
|
||||
in that round (C-4). A round in which they are in place changes nothing. It never sets a link's servers, its default
|
||||
route for names (that stays ADR 0688's fallback alone), its addresses or its routes (ADR 0117 §13, §14; ADR 0247
|
||||
§13): the link stays one a network manager gave servers and not one `route` routed, so ADR 0688's fallback gives
|
||||
it its default route back while the mesh's resolvers are silent, as before. The guard leaves the applied uplink
|
||||
names out when it judges whether a link is routed (all its domains routing-only), so a link holding only those
|
||||
names is not taken for a routed one (DMC-2).
|
||||
8. **The guard keeps what it applied in a file of its own** (R-M2). After each change it writes
|
||||
`/var/lib/node-resolver/uplink-names.applied`, root's, mode 0644, whole (written beside and renamed over): `{names,
|
||||
link, at, refused}`, the list it applied, the link, when, and resolved's refusal or empty. At its start it reads
|
||||
it, so after a restart it takes the names off the link it gave them to, never inferring which. When resolved
|
||||
refuses the names, the guard writes the refusal into `refused` and to its journal once per change of the refusal,
|
||||
never every round (H-N6, R2-13). It writes a journal line when the link changes and when the names change, never
|
||||
every round. **Its state for `routes`** (S-N5, R2-2): at each of ADR 0688's two turns it writes
|
||||
`/run/node-resolver/fallback.json`, root's, mode 0644, `{silent, since}`, which `routes` reads; at its first round
|
||||
it writes the state it finds, `since` that round's time, never zero (note c). The guard makes
|
||||
`/run/node-resolver` (root, 0755) when it is missing; it goes at the next boot, and the guard's first round writes
|
||||
the file again.
|
||||
9. **Its tests** (ADR 0687, *How it is checked*, clause 2), unit, within the module's budget: the names given are
|
||||
answered over the link that carries the default route, and over the new one after that route moves to another
|
||||
link, the old one losing them; the link keeps its search domains; a guard restarted with an applied file takes
|
||||
the names off the link it names; a changed list replaces the old one on the link; a link that has only those names
|
||||
is still given its default route back while the mesh's resolvers are silent (ADR 0688's test of that, issue 1981's
|
||||
AC1, still passes), a link with no search domain of its own and only the uplink names included (DMC-2); the link
|
||||
chosen is the lowest-metric one that is neither routed nor the private network's, none when there is none, the
|
||||
private interface read from its fact (DQ-1, DQ-2); the names set again after the network manager rewrites the
|
||||
link's domains and after resolved restarts (C-4); an unknown path in its folder left and journalled once (C-7); a
|
||||
names file write past its 15 s bound refused with the file left as it was (C-8); each refusal of §2; the socket's `routes` equal to the bus's; `routes` answers `uplink_names` from resolved, with `refused`, and
|
||||
`mesh_resolvers`.
|
||||
10. **Its README** says the verb, the two files, the guard's new duty, the commands of §6, that the guard leaves an
|
||||
unknown path in `/var/lib/node-resolver` as it is and journals it once (C-7), and that `uplink-names` sets only
|
||||
how resolved answers names over a link, never the link.
|
||||
|
||||
## The uplink's holder reacts on its own machine (`networkmanager`)
|
||||
|
||||
11. **`networkmanager` runs in two parts: a watcher started at boot without the bus, and its bundle** (ADR 0689 §1,
|
||||
§2; R2-1). The tool runner starts no bundle before it has reached the bus, so after a cold boot behind a sign-in
|
||||
page a bundle never runs; the part that must work without the bus may not need the bus to start. So:
|
||||
- **the watcher** is a process resource of `networkmanager`, as the zfs module's watch is: its `name`
|
||||
`networkmanager-sign-in`, `artifact` `tools`, `run` `./uplink-tools watch`, `user` `${machine:account}`,
|
||||
started by the machine's service manager at boot and kept running, needing no bus and no node: the node-engine
|
||||
gives a process resource no `MESH_NODE`, and the watcher opens, notifies and keeps events without one
|
||||
(L-3); its `health` of kind `unit`:
|
||||
its unit `networkmanager-sign-in` active, judged on the machine without the bus, so it holds behind a sign-in
|
||||
page (ADR 0689; C-2c). The watcher exits non-zero when it cannot subscribe again after the system bus returns
|
||||
(§14), so its unit shows failing. It
|
||||
watches the rating (§14), opens the page and tells the person (§15 to §19), and keeps the events (§20, §21).
|
||||
- **the bundle** `uplink-tools`, in the tool runner once it reaches the bus, as today: it answers `resolvers` and
|
||||
`links`, serves the tools (§23), publishes the kept events (§20) and calls `uplink-names`
|
||||
(§13). It reads the watcher's state only through the module's own local state (§12).
|
||||
- **the shared code** (DMC-3): `main.go`, `uplink.go`, `uplink_test.go` and `copies_test.go` stay byte-equal
|
||||
between `networkmanager` and `systemd-networkd`; `main.go` takes each holder's own subcommands and tools from its
|
||||
own `manager.go`, where `networkmanager`'s adds `watch` and the tools of §23 and `systemd-networkd`'s adds none.
|
||||
|
||||
ADR 0689 names `uplink-tools` as the reacting part; the record-writer adds a progressive insight naming the
|
||||
watcher process, and the decision is unchanged (R2-1).
|
||||
12. **The two parts share the module's own local state, in one folder** (R2-1). `networkmanager` declares the
|
||||
directory `${machine:account-home}/.local/state/mesh/networkmanager` (owner `${machine:account}`, mode 0700) as
|
||||
its resource `sign-in-state`, with `unknown` `module` (ADR 0422 §3; L-1): the module's own process reacts to a path
|
||||
it does not know. The watcher leaves any path but `watch.sock`, `check-address`, `pending/` and its files,
|
||||
`names.json` and `sequence` as it is, and writes it to its journal once per path. Not `move-out`, which would move
|
||||
the module's own files at every look (ADR 0422 §4); not `program`, since no other program writes there (§2). When the module leaves, the node-engine keeps it while it holds files, as data, listed by `cleanup
|
||||
list`, and nothing reads it then (DMC-6). In it:
|
||||
- `watch.sock` (mode 0600), the watcher's socket, made at its start: one JSON line asked, one answered, within
|
||||
5 s, a stated constant (C-8); a bundle's ask past it counts as no answer. `state`
|
||||
answers the watcher's state (§23's read); `rating-again` makes the watcher subscribe again, read the rating now
|
||||
and act on it as on a change.
|
||||
- `check-address`, written whole by the watcher (beside and renamed over) at its start and whenever the network
|
||||
manager's check address changes: the address on one line, empty when there is none.
|
||||
- `pending/`, the kept events: one file each, `<sequence>.json` with a ten-digit sequence, holding `{event,
|
||||
sequence, body}`, the body without `node` (L-3), written whole by the watcher and deleted by the bundle once the bus acknowledged it (§20).
|
||||
- `names.json`, written whole by the bundle: its last `uplink-names` call, `{names, result, at}`, `result` one of
|
||||
`ok`, `no holder` or the failure.
|
||||
- `sequence`, written whole by the watcher (beside and renamed over): the next sequence of its message ids and
|
||||
kept files, never reset while the folder lives (R3-1), so an id is never used twice.
|
||||
|
||||
Nothing else reads or writes the folder.
|
||||
13. **The bundle gives the resolver the check's host name** (ADR 0687 §2; R-N6, H-M3, S-M1, R2-5). At its start,
|
||||
when `check-address` changes (a file event of the kernel), when its bus connection comes back (the connection's
|
||||
reconnect, an event), and when it hears the node seat `node-engine`'s event `running` for a module that holds
|
||||
`node-resolver` on its own node and is running, it calls `<node>/node-resolver.uplink-names` directly with the
|
||||
check address's host name, or with an empty list when the address is empty, and writes `names.json`. Its manifest
|
||||
`consumes` `node-engine.running`; it drops every event whose subject names another node; which module holds
|
||||
`node-resolver` on its node it reads with `mesh-module-assigner.assignments` (its node, `seats`) when such an event
|
||||
comes. An answer that no holder serves the verb is no failure: `result` is `no holder`, and the machine's resolver
|
||||
file then lists the mesh's resolvers, through which the check already resolves. A failed call is written to its
|
||||
journal with the reason, makes its health unhealthy (§11) and is asked again at the next such moment or by its
|
||||
tool (§23), never on a timer (the lead's answer of 2026-11-24: events first). Its manifest `invokes`
|
||||
`seat:mesh-module-assigner.assignments`, `seat:node-resolver.uplink-names` and `seat:node-resolver.routes`, which
|
||||
`uplink_sign_in` reads (§23; R3-3). **The moments, corrected by the prepare** (the
|
||||
prepare's check): the node-engine says no `running` for a module restarted in place at the same build, so a
|
||||
restarted resolver gets no new call: it needs none, since the names file holds across its restart (§6) and the
|
||||
guard sets them again from what resolved holds (§7, C-4). One more moment is added, with no new node-engine event
|
||||
in this milestone: the bus connection coming back. (The health look the prepare's answer added here is gone with
|
||||
C-2c: the node-engine's check of the watcher is its unit's state, and calls nothing on the bus.) **The bus
|
||||
connection coming back** is the first heartbeat of its consumer answered after a missed one (mesh-sdk's
|
||||
`OnHeartbeat` and `Missed`; DMC-4). **`no holder`** is read from `mesh-module-assigner.assignments` (its node,
|
||||
`seats`) naming no holder of `node-resolver` on its node, never from the bus's no-responders text (DQ-8).
|
||||
14. **The watcher watches the network manager's rating as it changes** (ADR 0687 §3; R2-1). It hears the network
|
||||
manager's `PropertiesChanged` signal on the system bus for `Connectivity`, `PrimaryConnection`,
|
||||
`ConnectivityCheckEnabled`, `ConnectivityCheckAvailable` and `ConnectivityCheckUri`, an event the network manager
|
||||
sends; nothing runs on a timer, and the check itself stays the network manager's. When its system bus connection
|
||||
drops, it writes that to its journal and subscribes again when the system bus's socket comes back (a file event
|
||||
of the kernel on the socket's folder), then reads the rating and acts on it as on a change; `rating-again` (§12)
|
||||
does the same at once. It redials the system bus only at those two, never in a loop (note d). When it cannot
|
||||
subscribe again after the system bus returns, it writes the reason to its journal and exits non-zero, so its unit
|
||||
shows failing and the machine's service manager restarts it (C-2c). The same holds when its first subscribe at
|
||||
its start fails while the system bus's socket already exists: it writes the reason to its journal and exits
|
||||
non-zero (C2-1; failure must be loud). It runs as `${machine:account}`, which on a machine with a graphical session is the
|
||||
person's (ADR 0689 §1).
|
||||
15. **It opens the page and tells the person, at three moments** (ADR 0689 §1, §4). With the check on: when the
|
||||
rating becomes PORTAL on the active connection; at its own start when the rating already is PORTAL; and when the
|
||||
person's graphical session starts (§17) while the present rating is PORTAL. Each time it opens the check address
|
||||
(§18) and shows the notification (§19). **Once per ask**: it acts again only after the rating has left PORTAL, a
|
||||
session's start and its own restart excepted; after its own restart while PORTAL it opens the page once more,
|
||||
which is wanted, because what needs the person is shown (H-N7). It reads the present rating at a session's start,
|
||||
never a kept event (ADR 0443 §3). With no graphical session found (§16) it opens and shows nothing and still keeps
|
||||
the events (ADR 0689 §4).
|
||||
16. **How it finds the person's session** (ADR 0689, *Consequences*). Over the system bus it asks logind for the
|
||||
sessions of its own account (`ListSessions`, then each session's `Type`, `Remote`, `State` and the user's
|
||||
`RuntimePath`): the session is the one of type `x11` or `wayland`, not remote, whose state is `active` or
|
||||
`online`. Its session bus is `unix:path=<RuntimePath>/bus`. Its display is in the user manager's environment,
|
||||
read over that bus (the systemd user manager's `Environment`), into which the session's start block imports
|
||||
`DISPLAY` and `XAUTHORITY` (ADR 0208 §17): that is the X11 start block's import today; a Wayland holder's start
|
||||
block imports `WAYLAND_DISPLAY` (DQ-10). No such session, or no display named there, is no
|
||||
session. It reads no other module's files or code (ADR 0689 Considered Options).
|
||||
17. **How it hears a session start** (DQ-9, as corrected). It hears logind's `SessionNew` signal on the system bus.
|
||||
For a session of its own account of type `x11` or `wayland`, it waits for the user manager's environment to name a
|
||||
display, rereading it at each file event of the kernel on `/tmp/.X11-unix` (an X server's socket) and on the
|
||||
session's `RuntimePath` (a Wayland socket), for at most 60 s, a stated constant (R2-7); past that it writes to its
|
||||
journal that the session's start was not acted on. Then §15's third moment applies. Why file events and not the
|
||||
user manager's signal: `org.freedesktop.systemd1.Manager`'s property `Environment` is annotated
|
||||
`org.freedesktop.DBus.Property.EmitsChangedSignal` `false` in systemd's interface description, so the user manager
|
||||
sends no `PropertiesChanged` for it (read by the lead on the laptop, 2026-11-24).
|
||||
18. **How it opens the page** (ADR 0689 §1; R2-3). It runs, with the session bus and `XDG_RUNTIME_DIR` of §16 in its
|
||||
environment, `systemd-run --user --collect --quiet --wait -- xdg-open <address>`, the address as one argument and
|
||||
never through a shell, so the browser runs under the person's user manager in their session and outlives the
|
||||
watcher. Before it, it asks `xdg-mime query default x-scheme-handler/<scheme>` the same way for the program. If
|
||||
the run ends within 10 s, a stated constant (R2-7), its status decides: success is `opened`, failure is a failed
|
||||
open naming the status; if it still runs at 10 s, the page is `opening` and the run is left to go on. The open runs
|
||||
beside the watch: rating changes heard meanwhile are handled after it, in the order they came (R2-3).
|
||||
19. **How it tells the person** (ADR 0689 §1). It calls `org.freedesktop.Notifications.Notify` on the session bus
|
||||
of §16 (the desktop notification service), `app_name` `mesh`, only after §18's outcome (H-M2):
|
||||
- opened: summary "This network asks you to sign in", body "<network>: its sign-in page is open in <program>.";
|
||||
- opening: the same summary, body "<network>: its sign-in page is opening in <program>.";
|
||||
- failed: the same summary with urgency critical, body "<network>: the page did not open (<reason>); open
|
||||
<address> in a browser.": failure is loud;
|
||||
- the rating leaving PORTAL for FULL, with a session: summary "The network is open", body "<network>: signed in.";
|
||||
any other end shows nothing.
|
||||
20. **The events are kept by the watcher and published by the bundle, in order** (ADR 0689 §2; H-M5, R2-1, R2-11).
|
||||
The watcher writes each event of §21 into `pending/` (§12) at its change, with `at` the time of the change, its
|
||||
name and its sequence, taken from `sequence` (§12), and no node (L-3). The bundle, which the tool runner gives
|
||||
`MESH_NODE`, fills its node in when it publishes: into the subject `<event>.<node>`, into the body's `node`, and
|
||||
into the `message_id` `<node>.<event>.<sequence>`, the same for every publish of one file. It keeps at most 256 files, a stated constant (R2-7); past
|
||||
that it deletes the oldest with a journal line naming it. The bundle publishes them in sequence order on the
|
||||
seat's subject (§1), each with its `message_id` as the bus's message id (the runtime prefixes it with the module,
|
||||
`networkmanager.<node>.<event>.<sequence>`, which is the bus's id; DMC-9), so a second publish of one is dropped by
|
||||
the bus as a duplicate, awaiting the stream's acknowledgement, and deletes each file once acknowledged; it does so
|
||||
at its start, at each file event of the kernel on `pending/` and when its bus connection comes back. A publish
|
||||
refused or unacknowledged stays in `pending/`, is written to its journal and counted (§23), and is published again
|
||||
at the next such moment. The kept events survive a restart of either part and of the machine.
|
||||
21. **Which events it keeps** (ADR 0687 §3, which ADR 0689 §1 keeps for how it rates). The watcher keeps in memory
|
||||
whether a sign-in is asked, and for which connection:
|
||||
- the rating becomes PORTAL while the check is on and a connection is active, and no sign-in is asked: one
|
||||
`sign-in-asked` for that connection, `address` the check address; while it stays PORTAL nothing more;
|
||||
- a sign-in is asked and the rating becomes FULL: `sign-in-ended` with `signed-in`;
|
||||
- a sign-in is asked and the active connection goes or is replaced: `sign-in-ended` with `left`, for the old
|
||||
connection; then, when the rating is PORTAL for the new one, `sign-in-asked` for it;
|
||||
- a sign-in is asked and the rating becomes anything else (NONE, LIMITED, UNKNOWN, the check being switched off
|
||||
included): `sign-in-ended` with `no-longer-asked`, so the record never holds an ask that ended unsaid;
|
||||
- at its own start, with the check on: `sign-in-asked` when the rating is PORTAL, otherwise `sign-in-ended` with
|
||||
`no-longer-asked`, for the active connection or with an empty `link` and `network` when none is active;
|
||||
- with the check off (not enabled, or not available) it keeps nothing, at its start and after.
|
||||
|
||||
`link` is the interface of the active connection's first device, `network` its connection's name, `at` the
|
||||
machine's clock at the change. A check address that is not http or https keeps nothing, opens nothing and is
|
||||
written to its journal.
|
||||
22. **Their journals** (H-N8): the watcher writes a line for every rating change heard (the old rating, the new one,
|
||||
the connection's name), every page opened, every open that failed, every notification shown, every session start
|
||||
and what it did, every event kept and every one dropped past the bound; the bundle a line for every publish sent,
|
||||
refused or left waiting, and every `uplink-names` call with its result.
|
||||
23. **Its tools and its health** (H-M1, S-M3, R2-12; ADR 0240), served by the bundle:
|
||||
- `uplink_sign_in` (reads): from the watcher's `state` (§12): whether it is subscribed, the last rating heard and
|
||||
when, the ask open now (network, link, since), the asks opened and ended since its start, the last open with
|
||||
its outcome and time, the last notification, the last session start with what it did, the events dropped past
|
||||
the bound of 256 (R3-4); from the folder: the events waiting in `pending/` and the publishes refused since the
|
||||
bundle's start; from `names.json`: the last
|
||||
`uplink-names` call; and, where a holder of `node-resolver` runs on its node, the resolver's refusal of the
|
||||
names as `<node>/node-resolver.routes` answers it (`uplink_names.refused`).
|
||||
- `uplink_names_again` (acts): calls `uplink-names` now as §13 does.
|
||||
- `uplink_rating_again` (acts): asks the watcher `rating-again` (§12).
|
||||
- `uplink_publish_again` (acts): publishes the kept events in `pending/` now, as §20 does (R3-5).
|
||||
- `uplink_health` (reads; a tool of the bundle, not a node-engine check, C-2c): unhealthy while the watcher's
|
||||
socket does not answer, while the watcher is not subscribed, or while the last `uplink-names` call stands
|
||||
failed, naming which; `no holder` is healthy. The watcher not subscribed and a failed `uplink-names` call are
|
||||
also shown by `uplink_sign_in` and written to the journal.
|
||||
24. **Its README**, written whole in this milestone (DMC-7), says the two parts and their shared folder, that the watcher opens the page and tells the person on
|
||||
its own machine without the bus, how it finds the session (§16, §17), that it keeps and the bundle publishes the
|
||||
two events from the network manager's own rating, that with the check switched off it neither opens nor keeps,
|
||||
and that the bundle calls `uplink-names` where a holder of `node-resolver` runs (ADR 0687 §2, §3; ADR 0689); and
|
||||
that the watcher's health is its unit's state, judged on the machine without the bus, and that `uplink_health`
|
||||
is a tool, not a health check (C-2c, replacing R3-4's line); and that the watcher leaves a path in its folder it does not know as it is and writes it to its
|
||||
journal once per path (§12; L-1). Its review reads it.
|
||||
25. **Its tests** (ADR 0687 and ADR 0689, *How it is checked*), unit, with the network manager's D-Bus signals,
|
||||
logind, the user manager, the opener and the notification service stood in, and no bus: PORTAL at a join opens
|
||||
the page and shows one notification; PORTAL at the watcher's start does the same; PORTAL to FULL shows that the
|
||||
network is open; PORTAL to any other rating shows nothing; a second PORTAL without a leave does nothing; a session
|
||||
that starts while the rating is PORTAL opens the page once, one that starts while it is not opens nothing; with no
|
||||
session it opens and shows nothing and still keeps the events; an opener that fails gives the critical
|
||||
notification; a rating change heard during an open is handled after it; each line of §21; nothing with the check
|
||||
off; no timer; the system bus dropping and coming back makes the watcher subscribe again, and so does
|
||||
`rating-again`; past 256 kept events the oldest is dropped with a journal line; the bundle publishes the kept
|
||||
events in order with their message ids and deletes each on acknowledgement, keeps a refused one and publishes it
|
||||
at the next moment; `uplink-names` called at the bundle's start, on a changed `check-address`, when the bus
|
||||
connection comes back and on a running holder of `node-resolver`, `no holder` recorded as healthy; `uplink_health`
|
||||
unhealthy for a socket that does not answer, a watcher not subscribed and a failed `uplink-names` call, healthy
|
||||
for `no holder`; the watcher exits non-zero when it cannot subscribe again after the system bus returns (C-2c), and when its first
|
||||
subscribe at its start fails while the system bus's socket exists (C2-1); a watcher restarted after its
|
||||
events were published and `pending/` emptied makes message ids it has not used before, and the bus keeps them
|
||||
(R3-1); `uplink_publish_again` publishes what waits (R3-5); a path in the folder of §12 it does not know is left as
|
||||
it is and written to the journal once (L-1); each tool. **One integration
|
||||
test** starts `networkmanager` whole, watcher and bundle, with no bus: it sees the page opened by the stood-in
|
||||
opener; then it starts a real bus holding `node-uplink`'s definition and a stand-in holder of `node-resolver`,
|
||||
and sees the kept events published in order with the times of their changes and `uplink-names` called (R-M4,
|
||||
R2-1).
|
||||
26. **Nothing names a network in it** (ADR 0687 §6): §33 holds for its code, configuration and tests.
|
||||
27. **Its manifest** declares the process of §11, the directory of §12, the `consumes` and `invokes` of §13, the
|
||||
five tools of §23 under `tools` (DMC-5), and keeps its claim of `node-uplink`, its package, its configuration file
|
||||
and its service resource as today: `NetworkManager.service` keeps no state and no health, since the mesh never
|
||||
starts, stops, enables or disables it (ADR 0117 §4, §5) and a unit check on a service not stated running is
|
||||
refused (ADR 0240 rule 1; C-2c, correcting C-2 and C-2b). The prepare
|
||||
confirms, on each machine that runs `networkmanager`, that the tool runner runs as the same account as the
|
||||
watcher, `${machine:account}`, since the folder of §12 is that account's alone (mode 0700), and writes it in the
|
||||
milestone file (R3-6).
|
||||
28. **`systemd-networkd`'s README, written whole in this milestone (DMC-7), says it announces neither event and opens nothing** (ADR 0687 §1): systemd-networkd
|
||||
cannot tell a sign-in page. Its review reads it.
|
||||
|
||||
## The display session's verb (`i3`)
|
||||
|
||||
29. **`i3` serves `open`** (ADR 0687 §4; H-M2, U-M2). Its claim of `node-display-session` serves `open` beside its
|
||||
three verbs, as the tool `node-display-session.open`. It checks the address by §3's refusals and percent-encodes
|
||||
it by §3's encoding; it finds the session's bus and runtime directory with its `desktop` package, used only to
|
||||
find the session; its opener runs in `cmd/i3-tools`, not in the shared `desktop` package, whose `Exec` kills a
|
||||
command at its deadline: its own run stops waiting at 10 s without stopping the opener, which goes on (DMC-8,
|
||||
C-5). It asks `xdg-mime query
|
||||
default x-scheme-handler/<scheme>` for the program, refusing when there is none, and runs `systemd-run --user
|
||||
--collect --quiet --wait -- xdg-open <address>` with the address as one argument, never a command line: not
|
||||
through i3's IPC `exec`, which hands a shell a line. The run's outcome is decided as §18 decides it (10 s), and the
|
||||
answer names the program only once it started. It reads the command from the entry's `Exec` line in the XDG data
|
||||
directories. With no graphical session it refuses, as its other tools answer. Its manifest declares the package
|
||||
`xdg-utils` present (ADR 0303 §2). It writes one journal line per call, the address, opened or refused, and the
|
||||
program or the reason (R2-14). **`open` is an act**: each call is written to the log of acts done by hand through
|
||||
`seat:mesh-hand-acts.hand-act`, with its caller and why, as issue 935 asks and as nftables writes its acts, a
|
||||
refused call too, with its reason (note b); its manifest `invokes` it (DQ-7).
|
||||
30. **`i3` hears nothing of the uplink** (ADR 0689 §3, replacing ADR 0687 §5). It consumes no `node-uplink` event
|
||||
and reads no kept event at its session's start, so ADR 0443 §3 holds untouched. Checked by the milestone's code
|
||||
review: no consumer of `node-uplink`'s events and no read of kept events in `i3`.
|
||||
31. **Its README and tests** (ADR 0687, *How it is checked*, clause 4). The README says the verb, its refusals and
|
||||
the encoding. Unit tests, with the session and the opener stood in: `open` refuses every scheme but http and
|
||||
https, a file path and each other refusal of §3; an address holding `'`, `;`, a space, `$(`, `,` and `"` is handed on
|
||||
percent-encoded as one argument and no shell reads it (R2-9); an opener that fails is refused with its status and names
|
||||
no program; one that ends well answers `opened` with the program; one still running at its bound answers
|
||||
`opening` and keeps running after it (C-5); each call, a refused one too, writes one act to the log of acts done
|
||||
by hand (DQ-7, note b). The live tests are the main file's acceptance test 3.
|
||||
|
||||
## Words and checks
|
||||
|
||||
32. **The catalog's copy of the retired words gains "captive portal"** (ADR 0687, *Consequences*: the glossary's
|
||||
word **sign-in page**). mesh-catalog's `retired-words` lists it, so hq's words test agrees with the copy, and no
|
||||
tool or seat verb description in the change uses it.
|
||||
33. **Nothing names a network** (ADR 0687 §6). Code, configuration and tests name no network, sign-in page or
|
||||
employer: the tests use documentation names only (`example.net`, a network named `guest-example`). The milestone's
|
||||
code review searches the change's code, configuration and tests for a wifi name or a host outside the
|
||||
documentation domains, and finds none.
|
||||
34. **The test budget** (R-N7). The prepare records each touched module's unit and integration test counts against
|
||||
its budget in the milestone file, and the review reads them.
|
||||
35. **The live cases** are the main file's acceptance tests 1 to 3. Issue 960 is resolved once the first holds;
|
||||
issue 935 once the third does; if the second shows the rating LIMITED instead of PORTAL, ADR 0687 is amended,
|
||||
tracked by issue 960.
|
||||
@@ -298,7 +298,7 @@ approves, for a marked event or a restricted stream.
|
||||
7-approval-mark §4's table gains the row). A module that marks only events needs neither `operator-channel` in
|
||||
`uses` nor `approval-mark/1`: the tool runner asks for the wait, not the module.
|
||||
33. **The tool runner reads the marks from the catalog half on the bus.** The tool runner derives each module's marked
|
||||
subjects from the catalog half it holds (§14; the catalog graph entry carries `needs-approval` and each stream's
|
||||
subjects from the catalog half it holds (§14; the module graph entry carries `needs-approval` and each stream's
|
||||
`grant`, design 46 7-approval-mark §5): for a marked event `<event>` of module `<module>`,
|
||||
`mesh.mod.<module>.event.<event>` and `mesh.stream.<module>.event.<event>`, each event pattern as the bus spells it
|
||||
(`WirePattern`); for a stream with a `grant`, every subject of `ModuleStream.Subjects()`; and each of these also
|
||||
|
||||
@@ -2,10 +2,8 @@
|
||||
layer: to-be
|
||||
status: in-progress
|
||||
code: [mesh-catalog, mesh-controller, mesh-host]
|
||||
updated: 2026-11-24
|
||||
updated: 2026-11-12
|
||||
decisions:
|
||||
- "ADR 0689"
|
||||
- "ADR 0687"
|
||||
- "ADR 0369"
|
||||
- "ADR 0303"
|
||||
- "ADR 0215"
|
||||
@@ -243,7 +241,6 @@ flowchart LR
|
||||
| milestone | what it builds | part | state |
|
||||
|---|---|---|---|
|
||||
| zfs-owns-zfs | the zfs module's ownership of ZFS (ADR 0679), with its three node-engine prerequisites and their readers, under issue 1979 | [42-milestones/zfs-owns-zfs.md](42-milestones/zfs-owns-zfs.md) | designed |
|
||||
| sign-in-page (design 08's) | `i3`'s verb `open` (ADR 0687 §4; ADR 0689 §3) | [08-milestones/sign-in-page.md](08-milestones/sign-in-page.md) §3, §29 to §31 | designed |
|
||||
|
||||
The modules of the tables above were built before designs were cut into milestone parts; their remaining lines move
|
||||
into a part of their own at their next amendment (playbook 02, *The shape of a design*).
|
||||
@@ -314,13 +311,6 @@ The node-engine is delivered first, so the machines report the two capabilities.
|
||||
next, because it parses `data`, `if-capability` and `renders`. The catalog comes last. Left open: the
|
||||
draw at the wall (a metered plug or a UPS), a GPU-load block from a generic module, and the headsets.
|
||||
|
||||
**Added 2026-11-24** (ADR 0687 §4, changing ADR 0208 §3; ADR 0689 §3). `node-display-session` gains the verb `open`:
|
||||
one http or https address in the person's default browser, in their session, as the person, answering which program
|
||||
opened it and refusing every other scheme and a file path; `i3` serves it, beside its own `i3_exec`, for any caller
|
||||
over the bus (issue 935). `i3` does not react to a network's sign-in page: the uplink's holder opens that page on its
|
||||
own machine (ADR 0689 §1, design 08 §7). Every line it builds is in design 08's milestone part
|
||||
[sign-in-page](08-milestones/sign-in-page.md), §3 and §29 to §31.
|
||||
|
||||
## Phase 3 — one machine model
|
||||
|
||||
The laptop's hardware module (vendor daemon, GPU mode, charge limit, logind, brightness and vendor keys)
|
||||
|
||||
@@ -36,7 +36,7 @@ every-event, whose marked waits (design 34 every-event §32 to §37) use this ga
|
||||
gate in G").
|
||||
|
||||
**Where.** mesh-sdk (the manifest field, the seat definition's field, the per-machine state's keys), mesh-contracts
|
||||
(the login shell's seat definition), mesh-delivery (the indexer's manifest validator and catalog graph entry, the grants
|
||||
(the login shell's seat definition), mesh-delivery (the indexer's manifest validator and module graph entry, the grants
|
||||
part's deny), mesh-tools (the tool runner's gate, its state, its tools, and the mesh MCP server's `mesh_describe` in
|
||||
it) and mesh-catalog (the zsh module, which holds the login shell, and the forge module, §21). Nothing is built in a controller: no controller issues memberships today, bus permissions are the grants part's
|
||||
(seat `mesh-grants`), the hand-act log is the seat `mesh-hand-acts`, and the asker's logic is operator-channel's client
|
||||
@@ -106,7 +106,7 @@ enter; `node-files.stat` answers such a file's mode from this milestone (§21a),
|
||||
|
||||
## Where the marks are read, and where they are withheld
|
||||
|
||||
5. **From the catalog half on the bus, never from a bundle.** The indexer's catalog graph entry of a module (design 47
|
||||
5. **From the catalog half on the bus, never from a bundle.** The indexer's module graph entry of a module (design 47
|
||||
G §174) carries the validated manifest whole (design 47 G §443), its `needs-approval`, its `emits` and its streams
|
||||
(their events as the manifest spells them, and whether each carries a `grant`) among it; mesh-sdk's `buscompose`
|
||||
exports `WirePattern`, which a reader uses to turn a stream's events into the bus's subjects, the grants part's own
|
||||
@@ -385,7 +385,7 @@ enter; `node-files.stat` answers such a file's mode from this milestone (§21a),
|
||||
its budget.
|
||||
23. **In G's delivery group, ordered by the module graph.** The members are pushed and checked in design 47 milestone
|
||||
G's group, with design 34's milestone every-event. The orders are the module graph's: the indexer's manifest
|
||||
validator and catalog graph entry that read `needs-approval` before any manifest or seat definition carrying it (a
|
||||
validator and module graph entry that read `needs-approval` before any manifest or seat definition carrying it (a
|
||||
reader edge, design 47 G §89, whose list covers `needs-approval`; Q-RE); and the grants part that composes the deny of §6 before the seat definition marking
|
||||
`execute` (an edge of the seat definition's readers), so no machine serves `execute` unasked between the two; and
|
||||
the grants part serving `withheld` before a node-engine calls it (a served-verb edge, §6).
|
||||
|
||||
@@ -170,7 +170,7 @@ running delivery never touches merging: a merge moves the source revision, and t
|
||||
**From research 085's milestone, every change is checked and delivered by the acting parts built from its own
|
||||
heads** (ADR 0656, which supersedes ADR 0645 to ADR 0648). The acting parts, the parts that act on other modules'
|
||||
changes, declare in their seats' definitions what they act on and are versions in the module graph like any module.
|
||||
The indexer keeps the **catalog graph** (the modules as their manifests declare them) and the assigner computes the
|
||||
The indexer keeps the **module graph** (the modules as their manifests declare them) and the assigner computes the
|
||||
**assignment graph** (module versions placed on nodes, with the edges between versions), each per revision; a
|
||||
change's **graph difference** against the current assignment graph is its delivery, its acting parts' new versions
|
||||
acting first within a bound; its check runs on the acting parts built from its heads and fails, naming one that
|
||||
@@ -227,7 +227,7 @@ source revision is derived from the keys: every **want** equals its module's **f
|
||||
the indexer and the gate for the reads they make and the events they hear (*The seat `git`*, under *The verbs*).
|
||||
- **The indexer** computes each module's fingerprint at the merge preview and writes the candidates of each
|
||||
group and the modules of the trunk. It reads no placement: placement is not in any repository, and the forge
|
||||
bridge carries nothing of placement (ADR 0567). From research 085's milestone it keeps the catalog graph per
|
||||
bridge carries nothing of placement (ADR 0567). From research 085's milestone it keeps the module graph per
|
||||
revision and serves its half of the revision view by a verb of its seat `mesh-catalog` (ADR 0656,
|
||||
ADR 0656).
|
||||
- **The builder** claims a build by creating its key, once per fingerprint, and orders it as an ask on the stream of the artifact's
|
||||
@@ -282,13 +282,13 @@ source revision is derived from the keys: every **want** equals its module's **f
|
||||
no placement and waits for no node's answer: a pull request changes no placement, since placement is bus state
|
||||
changed by a proposal (ADR 0567; ADR 0446 §3 read as written). Its own composition stands in for every sealed value, so only a node's answer to a proposal can say that
|
||||
what the node would run is the same. From research 085's milestone it computes the assignment graph from the
|
||||
catalog graph, the placements and the nodes' capabilities, keeps each revision (ADR 0656) as objects
|
||||
module graph, the placements and the nodes' capabilities, keeps each revision (ADR 0656) as objects
|
||||
in an `objects` section in the old form (ADR 0619 §2), serves it and a change's graph difference by verbs of
|
||||
its seat `mesh-wants`, and writes the wants from a trunk revision's assignment graph alone (ADR 0656). From G's
|
||||
delivery it runs the composition step, and writes a want only from a revision whose every `required` pipeline step
|
||||
passed, on the watched branch a placement chose (ADR 0666 §9, §17).
|
||||
- **The node agent**, the node-engine's own process, follows its node's wants, **composes each wanted module for
|
||||
its own node** with the composition of `mesh-delivery-sdk` from the catalog graph's entry of the build (from milestone G; before it, the manifest by digest), the module's resolved values from
|
||||
its own node** with the composition of `mesh-delivery-sdk` from the module graph's entry of the build (from milestone G; before it, the manifest by digest), the module's resolved values from
|
||||
mesh-config, its secrets and bus credential asked of the vault sealed to the node's key, its licences and what
|
||||
its providers contribute, applies one module at a time and only what differs from what runs, backs up a data
|
||||
module first, and writes its haves with the fingerprint and the digest of the composition it runs (ADR 0547 §2,
|
||||
@@ -1075,7 +1075,7 @@ backup holder backs up nothing, and the have says so.
|
||||
*ADR 0360 §8, §9, ADR 0377, ADR 0429 §4, §6, ADR 0539 §9, §14 to §16, ADR 0546 §5, §6, ADR 0547 §2 to §9, ADR 0549, ADR 0555.*
|
||||
|
||||
- **Each node composes its own.** For each want `want.<node>.<module>` the node agent composes that module for
|
||||
its own node with the composition of `mesh-delivery-sdk` from the catalog graph's entry of the build, from milestone G (before it, the manifest by digest the indexer wrote), the module's resolved
|
||||
its own node with the composition of `mesh-delivery-sdk` from the module graph's entry of the build, from milestone G (before it, the manifest by digest the indexer wrote), the module's resolved
|
||||
values read from mesh-config's resolved state filtered to its node, its secrets and bus credential asked of the
|
||||
vault sealed to the node's key (ADR 0349 §11), its licences, and what its providers contribute; and the node's
|
||||
own composition (adoption, firewall openings, accounts, the resolver, identities and groups) from the same
|
||||
@@ -1090,7 +1090,7 @@ backup holder backs up nothing, and the have says so.
|
||||
- **the node records**, each in its node's own have key `<node>.node`, written by that node alone and heard as
|
||||
the key's change (ADR 0555 §3);
|
||||
- **the manifests**, until milestone G the indexer's `modules.<module>` and its manifests by digest, or the digest the composing
|
||||
node's want names where it runs another build; from milestone G the catalog graph's entries of the catalog half,
|
||||
node's want names where it runs another build; from milestone G the module graph's entries of the catalog half,
|
||||
the indexer being the only part that reads a manifest (design 47 G §442); the private network's manifest is its holder `mesh-wireguard`'s
|
||||
own (ADR 0636 §4);
|
||||
- **the config values**, mesh-config's resolved state, the composing node's slice alone for a node agent; a module
|
||||
@@ -1385,7 +1385,7 @@ assignments bucket is kept equal to it by the holder until ADR 0547's third mile
|
||||
| placement candidate | while a proposal is open: one node's placement as the proposal lays it, which that node composes in shadow and answers | the assigner | the seat's state `candidates` |
|
||||
| assignment | until ADR 0547's third milestone: the module and node, pinned or not, ended or not, written by `assign` and `unassign` after an approved placement change, so that it equals the placement (ADR 0567) | the controller, called by the holder | `mesh-controller_assignments` |
|
||||
| rollout | read-only from release 6: each plan of releases 1 to 5, its tiers, the builds it carried and the assignments it changed | nobody from release 6 | `mesh-controller_rollouts` |
|
||||
| catalog graph revision | from research 085's milestone: every module as its manifest declares it at one source revision, with the seats' acting rules (ADR 0656), kept while a delivery record pins it or it is current | the indexer | objects in an `objects` section in the old form (ADR 0619 §2), capped at 512 MiB |
|
||||
| module graph revision | from research 085's milestone: every module as its manifest declares it at one source revision, with the seats' acting rules (ADR 0656), kept while a delivery record pins it or it is current | the indexer | objects in an `objects` section in the old form (ADR 0619 §2), capped at 512 MiB |
|
||||
| assignment graph revision | from research 085's milestone: every module version on a node at one revision, its edges, and the revisions of its inputs (ADR 0656), kept while a delivery record pins it or it is current | the assigner | objects in an `objects` section in the old form (ADR 0619 §2), capped at 512 MiB, served by the seat `mesh-wants` |
|
||||
| delivery record | from research 085's milestone: one milestone's delivery, its group's state, its trace and what happened to each entry on each node (ADR 0656), kept 90 days by default (the gate's setting `record-retention`) | the gate | a ledger instance of the gate's (ADR 0595, ADR 0597) |
|
||||
|
||||
@@ -1693,7 +1693,7 @@ list:
|
||||
performance is fixed; no check starts real builds.
|
||||
37. **Nothing is delivered ahead.** Research 085's milestone is delivered with no part delivered ahead of it, read
|
||||
from its delivery record (ADR 0656, How it is checked).
|
||||
38. **A newer indexer is reached.** *(Retires at milestone H, design 47 H §764.)* A merged revision naming a newer indexer gives, from the running indexer, a catalog
|
||||
38. **A newer indexer is reached.** *(Retires at milestone H, design 47 H §764.)* A merged revision naming a newer indexer gives, from the running indexer, a module
|
||||
graph revision that is the previous one with only the indexer's entry replaced; no other want moves; the new
|
||||
indexer is wanted, granted, started, and takes the revision in.
|
||||
39. **Revisions are kept, and stores say their fill.** A revision pinned by two records stays until both free it, one
|
||||
@@ -1720,7 +1720,7 @@ Each change ADR 0656 makes in an earlier record, and its test:
|
||||
§1) builds each other module once, by it, with no build by the running recipe of a module the new build module
|
||||
builds; the third node builds nothing of the language until it reports the agreed version (whole, assigner and
|
||||
builder).
|
||||
44. **The graph is kept per revision** (ADR 0603 §2). A source revision taken in gives one catalog graph revision and
|
||||
44. **The graph is kept per revision** (ADR 0603 §2). A source revision taken in gives one module graph revision and
|
||||
its assignment graph revision, kept as objects in an `objects` section in the old form, and a revision a delivery
|
||||
record pins is not removed; no per-module key with five past values is written (whole, indexer and assigner).
|
||||
45. **The tiers are a view of the difference** (ADR 0603 §6). The view's tiers of a group equal those read off its
|
||||
@@ -2170,7 +2170,7 @@ release reports the controller's code lines against research 063's baseline (acc
|
||||
| L6 | Provisioning leaves the controller (ADR 0570): every provision is one key of the seat `mesh-provisioner`, held by mesh-provisioner, holding a reference and never a value, and each placed module's provisioning plan a key of its state `plans`, both composed from placement, the wants and the manifests on change events; each provider acts once all a provision depends on is provided; the assigner moves a want only once its build's provisions are provided; a provision no want needs is retiring, and its account or credential is removed only on the operator's Approve, its data never; the vault mints each provision's secret sealed to the consumer's and the provider's node, and the consumer's node-engine writes it; a wait for a person is a provision's state, which the watchman reads; bus permissions stay with the grants part (ADR 0349, ADR 0230, ADR 0547 §11) | — | mesh-sdk, the node-engine (`mesh-host`), mesh-tools (the tool runner's provisioner client), mesh-catalog (mesh-provisioner, the vault, the provisioner client, postgres, keycloak, gitea, route-adapter), mesh-delivery (assigner, watchman) | 1954 |
|
||||
| L7 | History and records leave the controller (ADR 0571): the builder keeps its build log, one entry at a build's start and one at its end, from which build history and durations are read and the module mesh-catalog asks the builds it missed; the artifact sweep is the seat `mesh-artifact-sweep`, held by artifact-store-tools beside the artifact store, its keep set from the store's own listing, the wants and the build log, sweeping at each build's end from the lease write and recording each deletion in the hand-act log; disk readings are disk-load's own state on every node; who holds which seat is the state `seat-holders` of the seat `mesh-placement` (now `mesh-module-assigner`), and tools are found by the tool runners' announcements; what a node runs is its want and its have; the grants part writes `grants.<module>.<fingerprint>` and keeps memberships in its own state; root-free is a probe of the self-check; no manifest but the controller's reads, invokes or consumes `mesh-controller`, but a named list kept to the lease write, so the lease write's check passes (ADR 0189, ADR 0547 §11, ADR 0549 §6) | — | mesh-sdk, mesh-controller (its pin only), mesh-delivery (builder, indexer, assigner, grants part, view), mesh-catalog (artifact-store-tools, disk-load, the backup seat's holder, mounts, nfs-server, minio, mesh-watcher, the messenger, the self-check, the module mesh-catalog, docker), mesh-tools (the tool runner) | 1955 |
|
||||
| B0 | The bootstrap delivery: every check, a lone pull request's as a group of one and a verdict carried after a trunk move included, is judged by a checking program built from the change's own heads in the build seat's sandbox, which also makes the heads' one seat list that the check hands the manifest validator and the composer; it brings no seat definition and no manifest field, so the running checker checks it (ADR 0644; *The bootstrap delivery, and the one milestone after it*) | 26 needs it | mesh-sdk (`go/delivery`: the seat `node-build-go`'s ask `run` and the checker's record of which checking program judged; `go/composer`: the request's seat list), mesh-catalog (mesh-build-go: the run step, the refused answer, the kept programs' tools and sweep), mesh-delivery (checker: the checking program and its command), hq (this design, the glossary) | 1921 |
|
||||
| G | Two graphs and one revision view: the catalog graph and the assignment graph kept per revision, a change delivered as its graph difference, the acting parts' rules on their seats as bounded waits that hold their modules when the new version fails, the check on the change's own acting parts, the revision view and each process's own build, the gate's delivery record, and the trace's links (ADR 0656); no part reads a pull request's description (ADR 0659); every delivery part reaches the forge through the seat `git` and names no other module; nothing holds an approved merge for another check; and, one milestone with them, research 086's pipelines: a change of any module goes from a commit on a watched branch to the machines through its module's pipeline, its policy in its registration, ordered by edges between artifacts, with no Approve per merge and no hand act, the checker gone (ADR 0666, ADR 0667). Test counts at its start (G's prepare, 2026-11-09): mesh-delivery 665 unit and 68 integration, the node-engine (`mesh-host`) 1,742 unit; each other repository's and each catalog module's from the last check's verdict, read in the joint prepare | 26 to 62, 63 to 106 | mesh-sdk (the runtime: the fingerprint, the view, the definition reader, the seat list's one wiring), mesh-contracts and the domains' contracts modules (`acts`, the new verbs and events, the seat `mesh-grants`, the seat `git`'s verbs), mesh-delivery (indexer, assigner, checker until its removal, builder, grants part, gate's view, forge bridge, watchman, the new pipeline runner `mesh-delivery-pipeline`, `contracts` and `sdk` moved under `modules/`), mesh-catalog (the gate, the build modules, the forge module, mesh-issues, mesh-knowledge, the `node-backup` holder, the router, nats: a module's kept data on the bus as a backed-up item and the object store beside each state), mesh-sdk (also its small object store package, for values of any size), the node-engine (`mesh-host`), hq | 1966, 1961 (retargeted to this row's shape), 1660, 1972, 1721, 1783, 1785, 1794, 1791, 1373, 595; 1962 goes back with 1958, whose assignment entry it needs (ADR 0641 §3) |
|
||||
| G | Two graphs and one revision view: the module graph and the assignment graph kept per revision, a change delivered as its graph difference, the acting parts' rules on their seats as bounded waits that hold their modules when the new version fails, the check on the change's own acting parts, the revision view and each process's own build, the gate's delivery record, and the trace's links (ADR 0656); no part reads a pull request's description (ADR 0659); every delivery part reaches the forge through the seat `git` and names no other module; nothing holds an approved merge for another check; and, one milestone with them, research 086's pipelines: a change of any module goes from a commit on a watched branch to the machines through its module's pipeline, its policy in its registration, ordered by edges between artifacts, with no Approve per merge and no hand act, the checker gone (ADR 0666, ADR 0667). Test counts at its start (G's prepare, 2026-11-09): mesh-delivery 665 unit and 68 integration, the node-engine (`mesh-host`) 1,742 unit; each other repository's and each catalog module's from the last check's verdict, read in the joint prepare | 26 to 62, 63 to 106 | mesh-sdk (the runtime: the fingerprint, the view, the definition reader, the seat list's one wiring), mesh-contracts and the domains' contracts modules (`acts`, the new verbs and events, the seat `mesh-grants`, the seat `git`'s verbs), mesh-delivery (indexer, assigner, checker until its removal, builder, grants part, gate's view, forge bridge, watchman, the new pipeline runner `mesh-delivery-pipeline`, `contracts` and `sdk` moved under `modules/`), mesh-catalog (the gate, the build modules, the forge module, mesh-issues, mesh-knowledge, the `node-backup` holder, the router, nats: a module's kept data on the bus as a backed-up item and the object store beside each state), mesh-sdk (also its small object store package, for values of any size), the node-engine (`mesh-host`), hq | 1966, 1961 (retargeted to this row's shape), 1660, 1972, 1721, 1783, 1785, 1794, 1791, 1373, 595; 1962 goes back with 1958, whose assignment entry it needs (ADR 0641 §3) |
|
||||
| H | The build-and-delivery system delivers itself by its one model, in six releases (H0 to H5, the plan's section 6): one merge call of the seat `git`'s `merge-pull` naming one or more pull requests is a delivery's start and its group; the gate names the merged heads one source revision and opens its record; the indexer takes it in (a commit, the fingerprints of its repositories' modules, one catalog revision) and names the movers; one pipeline per take-in, none in parallel (`pipelines-at-once`, default 1); a want is the newest released version whose pipeline passed; the forge's event is the watchdog (`head-untaken`); every delivery part wakes on its inputs alone and reads no other part's state; the per-pull-request paths, the catch-up by comparison, the sweep and the checker go; one clean state placed by hand once, after which every release is delivered by its own pipeline (ADR 0682, ADR 0681, ADR 0666, ADR 0667; design 47 H §734 to §774) | 110 to 119 | mesh-delivery, mesh-catalog, `mesh-host`, mesh-tools, mesh-sdk, mesh-contracts, hq | opened by each release's prepare |
|
||||
|
||||
An issue is in one row only (ADR 0493 §2): where a row named an issue another row names too, the last row keeps it and the
|
||||
@@ -2354,7 +2354,7 @@ and what answers it:
|
||||
| testing | a revert test that needed a second check; the view with the assigner down | whole-module revert tests on the real builds from before milestone G; the assigner stopped and a cold control-node |
|
||||
| health and events | waits with no event or bound; a record that never ends; parts waiting for the view unreported; when a wait is first said; a put that never ends | `wait-held` at the start with its bound, timed by the watchman; held and failed outcomes and `record-ended`; `view-waits` after five minutes; `put-stands`, timed by the watchman from the put's `wait-held` |
|
||||
| security | a checking program hiding a removed rule; forged events; the `run` ask's grant; a kept build overwritten by the program it built; the review line retired before the review verb's grant | the running checker names every change of the checking program's fingerprint; the node in event subjects and grants per account; builds kept only from a step that runs nothing; the review verb left to issue 1782 |
|
||||
| upgrade | a newer indexer never wanted after milestone G; a revert across a change of kept data's form | the stand-in catalog graph revision; restore points taken before a move across a `form` change, restored at a revert before the reverted build starts, the node-engine back last |
|
||||
| upgrade | a newer indexer never wanted after milestone G; a revert across a change of kept data's form | the stand-in module graph revision; restore points taken before a move across a `form` change, restored at a revert before the reverted build starts, the node-engine back last |
|
||||
|
||||
The amendment for milestone B0 (2026-11-06) carries the review of seams and tools of B0's prepare, which did not
|
||||
approve on three findings: a `run` ask an old build module drops is silent, the kept programs have no tool, and the
|
||||
@@ -2390,7 +2390,7 @@ hold ends itself on the node's `running`, built first in the issue 1966 recovery
|
||||
test 62); and ADR 0662, which decided the same switch as ADR 0661 another way, is withdrawn, so G builds ADR 0661.
|
||||
|
||||
The amendment for research 086's graduation (2026-11-10) writes ADR 0666 and ADR 0667 into this design: *Pipelines
|
||||
per module* whole (registrations, watched branches and the catalog graph per branch, the pipeline steps and the policy,
|
||||
per module* whole (registrations, watched branches and the module graph per branch, the pipeline steps and the policy,
|
||||
what holds a delivery, approval as a step and a session's merge through `merge-pull` judged on the runs at the head's
|
||||
fingerprint, groups, the six kinds of edge between artifacts, a publish that rebuilds, values of any size, the pipeline
|
||||
making the check, callers per verb, health, the recovery fix, the tools, the runner's kept data and the build capacity,
|
||||
|
||||
@@ -41,7 +41,7 @@ ADR 0664 §4, ADR 0398 §2, ADR 0593 §9; research 086, Direction.*
|
||||
|
||||
§1 From milestone G's delivery. A change of any module, the delivery system's own parts included, goes from a commit to
|
||||
the machines through that module's **pipeline**: the pipeline steps its **policy** names, run for each commit or group
|
||||
on each of the module's **watched branches** by the seat `mesh-pipeline-runner`, ordered by the catalog graph's edges
|
||||
on each of the module's **watched branches** by the seat `mesh-pipeline-runner`, ordered by the module graph's edges
|
||||
between artifacts, with no hand act (ADR 0666 §1). Milestone G is the one milestone that builds it, beside the two
|
||||
graphs, the revision view and the delivery record (ADR 0667 §1). Until G's delivery the sections this one replaces
|
||||
(*Checks*, *A try*, *The Approve and the merge*, the state table and the trunk-only want) hold as written, and they
|
||||
@@ -49,7 +49,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
|
||||
```
|
||||
a session ──merge-pull (seat git)──► forge ──commit on a watched branch──► forge bridge ──► indexer (mesh-catalog)
|
||||
│ registrations; a catalog graph
|
||||
│ registrations; a module graph
|
||||
│ per watched branch; the revision
|
||||
│ validated before take-in
|
||||
▼ take-in.taken
|
||||
@@ -70,7 +70,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
operator's Approve (ADR 0666 §2). The indexer is a foundation part, so the registrations are kept in its old sections
|
||||
(ADR 0619 §1 to §3, ADR 0666 §4): one key per module in its old `state` section `registrations`, and every version on
|
||||
its old `streams` section's stream `registration-history`, kept with no age limit.
|
||||
The catalog graph is derived from the registrations and the manifests they point to; the mesh knows modules, and a
|
||||
The module graph is derived from the registrations and the manifests they point to; the mesh knows modules, and a
|
||||
repository only as a module's git origin.
|
||||
- §3 **Changing one is a trusted act.** The seat's verbs `register` (a module whole), `policy` (one module's step
|
||||
statuses, per artifact), `watch` and `unwatch` (add or remove a watched branch) each raise an authorising ask of tier
|
||||
@@ -95,7 +95,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
value. How it is checked: a unit test of the manifest validator refuses a template in the manifest of every part on
|
||||
its list, the runner's included, and judges every other part's manifest as any part's.
|
||||
- §7 **No part fixes a name: a guideline the code review reads.** (§507) Every branch, repository and module name a part
|
||||
needs is read from the registrations and the catalog graph, never fixed in its code. This is a guideline, not a
|
||||
needs is read from the registrations and the module graph, never fixed in its code. This is a guideline, not a
|
||||
step: the code review reads it, and no lint step scans for names (the operator, 2026-11-11 about 00:05 CET: the scan was a flaky check; where
|
||||
guidelines live is research 087's). It departs from ADR 0666 §5's refusal by the lint step, by the operator's choice,
|
||||
and a later record brings it in line. The names G's own work removes (about 39 in 9 parts, found on 2026-11-09,
|
||||
@@ -129,7 +129,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
as one ask, and `indexer_seed_again` asks it again after a Decline and after an expiry; a policy making code review
|
||||
`required` is refused. Tests 75, 68 and 83.
|
||||
|
||||
### Watched branches and the catalog graph per branch
|
||||
### Watched branches and the module graph per branch
|
||||
|
||||
- §11 **Only a watched branch starts a pipeline.** (§509) The forge bridge hears every commit of every watched branch the
|
||||
registrations name, through the seat `git`'s event `branch-moved` (a branch's new head, from the forge's push
|
||||
@@ -143,12 +143,12 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
unless it waits as progress not owed: a member of a gathered group is governed by ADR 0633 §5's 30-minute bound, and
|
||||
a merge behind a pending revision of the same branch by its 60-minute bound (ADR 0666 §24). The finding clears on the
|
||||
runner's `pipeline-started` for that head.
|
||||
- §13 **The catalog graph per watched branch.** The indexer keeps the catalog graph once per watched branch, from that
|
||||
- §13 **The module graph per watched branch.** The indexer keeps the module graph once per watched branch, from that
|
||||
branch's manifests at each source revision (ADR 0666 §6): each revision names its branch, and the stores, caps and
|
||||
pins of *Two graphs, one source of truth* hold per branch.
|
||||
- §14 **A placement names the branch.** Each module of a placement key names the watched branch its node runs, by default the
|
||||
registration's first, set by a placement proposal like every other placement change (ADR 0567, ADR 0666 §6). The
|
||||
assigner computes each node's entries from the catalog graph of the branch its placement names, so a module watched on
|
||||
assigner computes each node's entries from the module graph of the branch its placement names, so a module watched on
|
||||
`main` and `beta` runs `beta` only where a placement chose it.
|
||||
- §15 **A source revision per watched branch.** The gate keeps one source revision per watched branch, `source.<branch>`,
|
||||
in place of `source.main` (ADR 0429 §11 to §13 as ADR 0666 §6 changes them), in the old `state` section `source`
|
||||
@@ -352,7 +352,7 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
|
||||
### Dependencies between artifacts
|
||||
|
||||
- §47 **Six kinds of edge between artifact references.** The catalog graph's edges run between **artifact references**,
|
||||
- §47 **Six kinds of edge between artifact references.** The module graph's edges run between **artifact references**,
|
||||
`<module>:<artifact>`, such as `mesh-grants:program`, of six kinds (ADR 0666 §14):
|
||||
|
||||
| Kind | B before A | Derived from |
|
||||
@@ -372,11 +372,11 @@ check and deliver milestone G itself (ADR 0667 §2); each of them says so in a l
|
||||
old holder released before the new one claims (ADR 0666 §14).
|
||||
- §49 **The edges alone order.** (§569) The build and the delivery order by these edges alone; a cycle of delivery edges
|
||||
(kinds 2, 4, 5, 6) alone is delivered as one step, and a cycle with any build edge (kind 1 or 3), whatever its other
|
||||
edges, is refused, naming every artifact on it (ADR 0666 §14; research 086, R17). The cycle rule is the indexer's, in the catalog graph it keeps, so the checking
|
||||
edges, is refused, naming every artifact on it (ADR 0666 §14; research 086, R17). The cycle rule is the indexer's, in the module graph it keeps, so the checking
|
||||
program's cycle rule goes with the checker.
|
||||
- §50 **A format's reader first.** A format a running reader cannot read is preceded by its reader, an edge of kind 4 on
|
||||
every watched branch (ADR 0666 §14): the indexer's manifest validator for a new field of a seat definition or a
|
||||
manifest, and on each node the node-engine that reads a catalog graph entry's new fields before any manifest that writes them
|
||||
manifest, and on each node the node-engine that reads a module graph entry's new fields before any manifest that writes them
|
||||
(ADR 0667 §4).
|
||||
- §51 **How it is checked.** Unit (indexer's graph): a chain per artifact where modules would cycle; two programs needing
|
||||
each other's new verb are one step; two artifacts each needing the other's new package to build are refused, naming
|
||||
|
||||
@@ -161,7 +161,7 @@ each the design's choice with its reason, §468 to §479 those of the runner's,
|
||||
module), a fetched build whose bytes do not match its digest fails the step naming the member.
|
||||
- §466 **A build names what it resolved.** Each built artifact of the build answer (BuiltArtifact, in the step's
|
||||
result) gains `resolved`, a list of `{package, version, digest}`, one per mesh package the build resolved (one
|
||||
that the catalog graph entry's packages name, the edges of kind 1), `digest` the `sha256:` digest of the package's
|
||||
that the module graph entry's packages name, the edges of kind 1), `digest` the `sha256:` digest of the package's
|
||||
bytes as the build fetched them; ToolchainUsed gains `digest`, the building node's digest of its toolchain program
|
||||
(§472), kind 3's entry, never the build module's own program. The builder carries both, per artifact,
|
||||
in `package-published` as `resolved` and `toolchain`, from which the indexer writes §374's entries of kinds 1 and 3.
|
||||
|
||||
@@ -247,7 +247,7 @@ reason. What a question of another kind leaves open waits for the operator and i
|
||||
build without a version (§371, §458), the builder writing it in its journal naming the module; at G's heads the
|
||||
validator refuses such a manifest (§411). Why: such an entry is only read from a revision before G (develop
|
||||
question of the builder). How it is checked: unit (builder), an entry of version `"1"` reserves nothing.
|
||||
- §506 **The entry carries its manifest's digest.** (§609) The catalog graph entry gains `manifest-digest`, the `sha256:`
|
||||
- §506 **The entry carries its manifest's digest.** (§609) The module graph entry gains `manifest-digest`, the `sha256:`
|
||||
digest of the manifest's bytes as the forge answered them, set by the indexer at take-in (in `EntryInputs`) and
|
||||
never computed again from the manifest whole, whose encoding may differ; the module's value and §445's
|
||||
`manifests` key are that digest. Why: the bytes, not the map, are what the node-engines before G read (develop
|
||||
|
||||
@@ -208,7 +208,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
revision; the manifest validator, beside §508's refusal of a second claim, refuses a revision in which no module
|
||||
claims it, naming the seat. §364's, §365's and §508's "from the seat list" read so, the condition keeper's too. With
|
||||
no entry claiming the seat, which only a revision from before G shows, as at a revert of G, the node-engine's own
|
||||
module is the module of the catalog graph entry its own build's fingerprint names (§443, §205), so a revert of the
|
||||
module is the module of the module graph entry its own build's fingerprint names (§443, §205), so a revert of the
|
||||
node-engine applies. Why: §364 and §508 have the node-engine claim its seat
|
||||
as one module, so the claim names it (develop question H-15). How it is checked: unit (manifest validator), a
|
||||
revision with no claim of `node-engine` refused; whole (node-engine), its guard protects the module its catalog
|
||||
@@ -226,7 +226,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
- **Every other part** asks both in its `requires`: the state `findings` by the template `state`, keeping its local
|
||||
name and carrying its settings as options (ADR 0595 §11), and the stream by the template `events` under the local
|
||||
name `finding-events`, with `max-age-days` 7 and `max-mib` 16, which the template drops oldest when full (ADR 0595
|
||||
§3), its entry listing the three finding events in its field `events`, which the catalog graph entry carries
|
||||
§3), its entry listing the three finding events in its field `events`, which the module graph entry carries
|
||||
(§365), published on its binding's subject, `mesh.bus.<module>.finding-events.<event>.<node>`.
|
||||
- **`mesh-healers`**, whose old `streams` declares `mesh-healers-findings` on main, moves it so in G's change, as
|
||||
ADR 0595 §11 moves a module G touches. Its old stream stays on the bus as an orphan that `orphans` lists, removed
|
||||
@@ -240,7 +240,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
moved; every other old `streams` entry is judged as today. A part whose list entry is missing is a fault of the
|
||||
list, fixed in the validator (ADR 0619 §3). The validator refuses a manifest whose state `findings` has no finding
|
||||
stream in its part's form, or no `consumes` of `mesh-conditions.findings-asked` (§387). The writer (§461) is handed
|
||||
the subjects from the part's binding or its old stream, as it is handed every subject. The catalog graph entry
|
||||
the subjects from the part's binding or its old stream, as it is handed every subject. The module graph entry
|
||||
carries the finding stream in either form (§365); the grants part makes the keeper's consumer of §386 on an
|
||||
old stream at the revision that declares it, and on a template stream when it hears the bus module's `created` for
|
||||
`finding-events` and grants each part publish on its own finding stream's subjects of its own node only, in either form; the
|
||||
@@ -335,7 +335,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
## The bus module's plans
|
||||
|
||||
- §533 **A module of the new form.** "A module of the new form" (§59, §344) is a module that is no foundation part.
|
||||
The bus module tells it by its catalog graph entry declaring no old `objects` section `sent-objects`: a foundation
|
||||
The bus module tells it by its module graph entry declaring no old `objects` section `sent-objects`: a foundation
|
||||
part whose entry claims a seat whose definition has a verb or an event, or declares an event of its own, declares
|
||||
it (§59), and the manifest validator refuses such a foundation part's manifest without it, naming it. Why: the bus
|
||||
module reads no list of foundation parts, which is the validator's alone (ADR 0619 §3; develop question on §59 and
|
||||
@@ -349,7 +349,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
a seat whose verbs come only from an included part gives its holder a sent store, and one including only bodies
|
||||
gives none.
|
||||
- §538 **The bus module plans again when the bus-state entries change.** The bus module compares, for each module,
|
||||
the bus-state entries the catalog graph entry carries with those it last planned for that module, kept in its old
|
||||
the bus-state entries the module graph entry carries with those it last planned for that module, kept in its old
|
||||
`state` section `plans` (the bus module is a foundation part), one key `<module>` holding the entries as planned
|
||||
and their digest, written after each plan and deleted when the module is in no watched branch's newest revision, its
|
||||
entries then orphans that `orphans` lists; its tool `nats_plans` reads it. It plans again only when they differ; it never compares the manifest's digest (§506), which changes with
|
||||
@@ -502,7 +502,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
refused; unit (tool runner), the words it states are exactly its manifest's `states`; unit (delivery plan), the edge to the module stating the word.
|
||||
- §546 **When the builder forgets a node's toolchain.** The builder deletes its `toolchains-heard` key
|
||||
`<node>.<language>` (§604) when the node-engine seat's `running.<node>.<module>` says `stopped` (§365) for the
|
||||
module whose catalog graph entry claims the build seat of that language (its `acts` rule `build` with `on` naming
|
||||
module whose module graph entry claims the build seat of that language (its `acts` rule `build` with `on` naming
|
||||
it, §535), heard through its consumer of that seat's `running`, read as §556 has it; never on a placement, which
|
||||
is the seat `mesh-module-assigner`'s state. The state is an old `state` section of the builder, a foundation part,
|
||||
one key per node and language, about 12 keys of about 0.3 KiB each, capped at 1 MiB, so it adds no objects store
|
||||
@@ -519,7 +519,7 @@ that round are written into the lines they name, here. Questions that an earlier
|
||||
server's own limit does not. So each `<state>-objects` is planned with 16 MiB (about 2.4 GiB for 150 states), a
|
||||
state needing more naming `objects-max-mib`, and no later measure is waited for. The bus module reads the account's
|
||||
and the server's storage limits at its start and at each plan, sums the cap of every entry it plans (states, objects
|
||||
stores, sent stores, streams, logs) and of every old section the catalog graph's entries declare, and shows the sum and
|
||||
stores, sent stores, streams, logs) and of every old section the module graph's entries declare, and shows the sum and
|
||||
both limits in its `list` and its read tool. A plan whose sum would pass the account's limit is refused, naming the
|
||||
sum and the limit, said as its `refused` (ADR 0595 §6): the plan refused is the one that adds or raises a cap, and
|
||||
the caps already made stay as they are. With no account limit (unlimited) nothing is refused and the sum is shown
|
||||
|
||||
@@ -98,12 +98,12 @@ are written into the lines of G-12 they name.*
|
||||
consumer §556 needs, from the process's `consumes`; its calls of `node-backup`'s `restore`, which takes its class's default with no own-item limit (§610, §555), and
|
||||
of `mesh-broker`'s `snapshot-get` and `snapshot-restore` with `snapshot-get`'s chunk subjects, and the hearing
|
||||
of `snapshot-restored` from its `consumes` (§681); and nothing else. The bus names granted are those of every kept data
|
||||
of every catalog graph entry the catalog half keeps (§443) and of every entry a restore point names (an old
|
||||
of every module graph entry the catalog half keeps (§443) and of every entry a restore point names (an old
|
||||
section's name before a form change, a template's binding after), read by the grants part through
|
||||
`kept-points` (§565); no stream of the mesh's own (`CONTROL`, `NODES`, `EVENTS`, `DEAD_LETTER_NOTICES`, `DEAD_LETTERS`,
|
||||
`PROV_APPLIED`, `CHECKS_READY`, `CHECKS_OTHER`, every `SEAT_` stream and every `KV_` bucket of a seat) is ever
|
||||
granted. Restricted streams (ADR 0436) are among the names, as ADR 0672 records.
|
||||
- **Bus names.** The recovery module turns a module and a kept data into bus names from the catalog graph entry of
|
||||
- **Bus names.** The recovery module turns a module and a kept data into bus names from the module graph entry of
|
||||
the fingerprint it acts at, read by `mesh-catalog`'s `entry` (§443) in its `invokes` (an edge of kind 6): a
|
||||
template entry's name is `<module>_<local>` (ADR 0595 §1), an old section's its declared name; a point records the
|
||||
names it took, and a restore uses those.
|
||||
@@ -183,7 +183,7 @@ are written into the lines of G-12 they name.*
|
||||
takes a long form, `{verb, fields}`: `verb` as today (`seat:<seat>.<verb>`), `fields` the names of its answer's
|
||||
fields the consumer relies on. The manifest validator refuses a field the seat's definition does not give that
|
||||
verb's answer, naming it. The delivery plan derives the edge of kind 6 from the holders of that seat to the
|
||||
consumer, held until the holder runs a build whose catalog graph entry's seat definition (§194) gives the verb's
|
||||
consumer, held until the holder runs a build whose module graph entry's seat definition (§194) gives the verb's
|
||||
answer every named field; §374's entry of kind 6 records the verb and its fields, and `outdated` (§375) says it
|
||||
behind when the delivered version no longer gives them. Both forms stay: the short string where no field is relied on, the long form
|
||||
where one is. On main mesh-sdk's manifest reader reads `invokes` as a list of strings, so the long form is read
|
||||
|
||||
@@ -266,7 +266,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
record of the builder's retry, ADR 0673 §1 to §3, which changes ADR 0664 §3: a key whose error opens `transport
|
||||
fault:` is built again, once, as a new revision of the key (ADR 0429 §18), on the first event after its failure
|
||||
that says its cause passed. Two events say so (ADR 0673 §2): the node-engine seat's `running.<node>.<module>`
|
||||
saying `running` for a module whose catalog graph entry claims the build seat the failed step ran on (§546), on
|
||||
saying `running` for a module whose module graph entry claims the build seat the failed step ran on (§546), on
|
||||
any node; and the node-engine seat's `manifest-reads-changed` of the node the failed step ran on with `why`
|
||||
`returned` (ADR 0618 §4, ADR 0668 §4; §590), which it says when that node is heard again after being away. One
|
||||
saying `why` `started` builds nothing again. The builder hears both through its consumers of the node-engine seat, read as §556 has it.
|
||||
@@ -472,7 +472,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
|
||||
## The indexer's forms
|
||||
|
||||
- §578 **`manifest-digest` carries its prefix, and the key does not.** (§506, §445) The catalog graph entry's field
|
||||
- §578 **`manifest-digest` carries its prefix, and the key does not.** (§506, §445) The module graph entry's field
|
||||
`manifest-digest` is `sha256:` followed by the 64 hex digits, as every digest a record names. The module's value
|
||||
and §445's `manifests` key stay the 64 hex digits as on main, since a key's name takes no `:` (§73), and mesh-sdk's
|
||||
catalog client gives the bare digits as today. The indexer writes all three from the one digest it computed at take-in.
|
||||
@@ -481,7 +481,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
prefix equals the key's name and the module's value.
|
||||
- §579 **The indexer keeps the records pinning each revision, and removes a revision only on an event.** (§153,
|
||||
§178, §216)
|
||||
- **Where.** The indexer, a foundation part, keeps its old `state` section `pins`: one key per catalog graph
|
||||
- **Where.** The indexer, a foundation part, keeps its old `state` section `pins`: one key per module graph
|
||||
revision, `<branch>.<revision>` (the watched branch and the revision's id, each escaped as a key's name is, §73),
|
||||
whose value is the list of delivery record ids that pin it. A list of ids is kept rather than a count, so a
|
||||
`pinned` heard twice pins once. At about 20 revisions pinned a day for 90 days, about 1,800 keys of about 0.2 KiB
|
||||
@@ -505,7 +505,7 @@ form only. A note that corrects a line of G-12 or G-14 is written in that line;
|
||||
`pins-stated` said after its state `pins` was made. It judges on applying `freed`, on a revision ceasing to be
|
||||
current, on being caught up, and at its start after both of these hold, when it judges every kept revision, so a
|
||||
stop between a take-in and a removal keeps nothing for ever. Never on a timer.
|
||||
- **Inputs.** A catalog graph revision names no input revision. "The input revisions it names" (§178) are an
|
||||
- **Inputs.** A module graph revision names no input revision. "The input revisions it names" (§178) are an
|
||||
assignment graph revision's catalog revisions, which a delivery record pins itself (§153), so the indexer keeps
|
||||
each by its own list alone.
|
||||
- **The assigner** keeps its pins of assignment graph revisions in the same form and by the same rules: its old
|
||||
|
||||
@@ -70,7 +70,7 @@ answer of 2026-11-11, between 15:14 and 15:42 CET. A line of another file that o
|
||||
- **By itself, on an event.** The operator, 2026-11-11 between 15:14 and 15:42 CET at lead-47's terminal, decided by
|
||||
ADR 0674 (the builder's publish again), which extends ADR 0673 to publishes: the builder
|
||||
publishes again, by itself, every reserved version `version-unreleased` names (§369), on the node-engine seat's
|
||||
`running` of a module whose catalog graph entry claims the registry seat of the missing artifacts' kind, on any
|
||||
`running` of a module whose module graph entry claims the registry seat of the missing artifacts' kind, on any
|
||||
node, and on the node-engine seat's `manifest-reads-changed` with `why` `returned` of the node that holder runs on
|
||||
(ADR 0673 §2, §590); one with `why` `started`, or with none, publishes nothing. No timer. The builder's manifest
|
||||
`consumes` both events (it does for ADR 0673 already).
|
||||
@@ -116,9 +116,9 @@ answer of 2026-11-11, between 15:14 and 15:42 CET. A line of another file that o
|
||||
- §589 **`builder_build` answers a module's build keys whole.** (§348, §568, §575; *one-question-one-tool*) The
|
||||
builder's tool `builder_build` (class `read`) takes `module` and, optional, `fingerprint`. With `fingerprint`, it
|
||||
answers that key whole; with `module` alone, the module's build keys newest first, at most 20, each with its
|
||||
`fingerprint` whole (the build-input fingerprint as the catalog graph entry carries it, never cut), `state`
|
||||
`fingerprint` whole (the build-input fingerprint as the module graph entry carries it, never cut), `state`
|
||||
(`queued`, `building`, `done` or `failed`), the key's revision and since when, the step and its node, the error
|
||||
whole, `event-builds` and the open ask (§568), and `newest: <branch>` for each watched branch whose newest catalog
|
||||
whole, `event-builds` and the open ask (§568), and `newest: <branch>` for each watched branch whose newest module
|
||||
graph entry of the module names that fingerprint, read from the builder's own view of the catalog half (§348). A
|
||||
module none of whose keys the newest entry names says so, naming the entry's fingerprint. Beside it,
|
||||
`builder_builds_since` gains `module`, which narrows its answer to that module's builds, and `builder_stuck`
|
||||
@@ -205,9 +205,9 @@ answer of 2026-11-11, between 15:14 and 15:42 CET. A line of another file that o
|
||||
|
||||
## Readers of a module's manifest
|
||||
|
||||
- §594 **The readers take a module's manifest from its catalog graph entry.** (§196, §421, §443, §445; ADR 0656 §6,
|
||||
- §594 **The readers take a module's manifest from its module graph entry.** (§196, §421, §443, §445; ADR 0656 §6,
|
||||
ADR 0615 §1) The holders of `mesh-config`, `mesh-provisioner` and `mesh-self-check`, and the claude-code module,
|
||||
read a module's manifest from the catalog graph entry that carries it whole (§443), taken through
|
||||
read a module's manifest from the module graph entry that carries it whole (§443), taken through
|
||||
`meshcatalogclient`'s view of the catalog half, which follows each watched branch's newest `catalog-revision` and
|
||||
asks `revision` again on a gap (§196). None reads a manifest by digest from the indexer, its state `manifests` or
|
||||
its tools: `manifests` is kept only for node-engines from before G (§445). Why: test 61's "no call of the indexer
|
||||
|
||||
@@ -170,7 +170,7 @@ for several build maps is answered once, and the maps' names for it are given in
|
||||
every finding that view raised (`first-view-unanswered`, `view-waits`, `view-unsaid`, `view-too-large`), says the
|
||||
drop and each cleared finding in the part's log, and removes the view's row of `<module>_first_views` [D-12].
|
||||
|
||||
This is the one form for every reader of which modules exist and of the catalog graph's entries: the tool runner
|
||||
This is the one form for every reader of which modules exist and of the module graph's entries: the tool runner
|
||||
(its owner of the assigner's views, §616, and its branches, [mesh-tools Q-R12]), the grants part [D-5], the
|
||||
readers of §594, the node-engine (§421) and the Go build module (§615); and it answers mesh-sdk's question on
|
||||
§532. Why: the same question came from five build maps, each about to build its own form (develop's D-5). How it
|
||||
@@ -181,7 +181,7 @@ for several build maps is answered once, and the maps' names for it are given in
|
||||
runner), a part started with one branch at `none-yet` acts once every first view is in; a dropped branch's findings
|
||||
are cleared; whole (node-engine), a want composed with no branch view and no `source` answered.
|
||||
- §615 **The tool runner's and the Go build module's manifests come from the entry too.** (§594, §614, §443, §445,
|
||||
test 61) The mesh MCP server of the tool runner takes each module's manifest from its catalog graph entry, through §614's
|
||||
test 61) The mesh MCP server of the tool runner takes each module's manifest from its module graph entry, through §614's
|
||||
reader; its first view of the indexer's `manifests` and its `consumes` of `mesh-delivery-indexer.views.manifests`
|
||||
go [mesh-tools Q-R2]. The Go build module's compose ask takes each manifest whole from the entry its fingerprint
|
||||
names, by `seat:mesh-catalog.entry` (§506's `manifest-digest` naming the entry's), and its `invokes` of
|
||||
@@ -466,7 +466,7 @@ for several build maps is answered once, and the maps' names for it are given in
|
||||
- §663 **The condition keeper's sources are the bus module's `created` events, and it follows a moved stream.** (§515,
|
||||
§529, §611, §612) The keeper takes a source when it hears the seat `mesh-broker`'s `created` of a part's
|
||||
`finding-events` entry, named in its `consumes`, and a foundation part's old finding stream from the catalog half
|
||||
(§614); at its start it reads both by `list` and the catalog half. When a part's catalog graph entry no longer
|
||||
(§614); at its start it reads both by `list` and the catalog half. When a part's module graph entry no longer
|
||||
declares the stream the keeper follows for it (its findings moved to a template, §611, or to an old section, §612),
|
||||
the keeper drops that source (the grants part its consumer, §690), keeps the part's open conditions, and asks `findings-asked` on the
|
||||
new stream once it is a source; the part's statement there settles them (§384). §515 is corrected so.
|
||||
|
||||
@@ -110,7 +110,7 @@ node-engine keeps and the grants part's first composition (§682 to §684); the
|
||||
seat server: the waiting calls with their caller, ask and state, the `act.` keys and the claims, never an argument
|
||||
of a call it was not asked by that call's caller.
|
||||
- **A holder that does not check is never reached.** The grants part composes, for a module's process that serves
|
||||
a marked verb, the subscription of that verb's subjects only when the catalog graph entry of the build its want
|
||||
a marked verb, the subscription of that verb's subjects only when the module graph entry of the build its want
|
||||
names (heard by `wanted`, §344) declares that `approvals` entry, which only a build of G's seat server passes the
|
||||
validator with, so a G holder is granted before it subscribes; otherwise it composes the subscribe deny design 46
|
||||
7-approval-mark §6 composes for a runner that does not state `approval-mark/1`, named in `withheld` with "its
|
||||
@@ -307,7 +307,7 @@ node-engine keeps and the grants part's first composition (§682 to §684); the
|
||||
full pass waits on the gate's G version (kind 6), while the gate's G version waits on the grants part composing its
|
||||
account (kind 5). So, until every branch it follows has its first view, the grants part keeps the user list it last
|
||||
wrote and composes, for a want whose account it holds none of or whose fingerprint changed, that one account from
|
||||
the want's catalog graph entry by fingerprint (§614, *An older build's entry*) and the assigner's views alone, as it
|
||||
the want's module graph entry by fingerprint (§614, *An older build's entry*) and the assigner's views alone, as it
|
||||
composes any account, every marked subject in it denied while the marks are unread (design 46
|
||||
7-approval-mark §19); it writes that account into the user list it keeps, and says in its log and in
|
||||
`<module>_first_views` that it composed it before its first views. Its full pass, once the first views are in,
|
||||
@@ -379,7 +379,7 @@ node-engine keeps and the grants part's first composition (§682 to §684); the
|
||||
- §690 **Who drops the keeper's consumer of a moved finding stream, and the gate's `source` in mesh-contracts.**
|
||||
(§386, §611, §612, §614, §663, §684) [D-25, mesh-catalog COND9.]
|
||||
- **The grants part drops it.** The grants part, which makes the keeper's consumers (§386), deletes the keeper's
|
||||
durable consumer on a part's stream at its first composition from a catalog graph entry of that part that no
|
||||
durable consumer on a part's stream at its first composition from a module graph entry of that part that no
|
||||
longer declares the stream, and makes the consumer on the new stream from the same entry, as §386 does for a
|
||||
module that declares the events later. The keeper deletes no consumer: when it hears, through its catalog half
|
||||
reader (§614), the part's new entry, it stops reading the old source and keeps the part's open conditions.
|
||||
|
||||
@@ -45,7 +45,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
beside it, `<state>-objects`, a template form of ADR 0595 that the bus module provides and the grants part grants to
|
||||
the state's owner alone (ADR 0666 §16); a foundation part's large values go in an old `objects` section of its own.
|
||||
Its size is the template's (ADR 0595 §3). An object store holds no space until a value is written to it, so the many
|
||||
it adds reserve nothing; the few values over the limit (a delivery record, a catalog graph revision list, a test's
|
||||
it adds reserve nothing; the few values over the limit (a delivery record, a module graph revision list, a test's
|
||||
output) are estimated, as a guess, at under 1 GiB across the mesh.
|
||||
- §59 **An object sent is readable by the modules it is for.** (§533) A reply's or an event's object is written to the sender's
|
||||
**sent store**, `<module>_sent-objects`: the bus module plans it, with no manifest field, for every module of the new
|
||||
@@ -55,9 +55,9 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
event, read within its call's bound or its consumer's lag, so its expiry is not a removal of kept data that ADR 0595
|
||||
§4 holds to a person's word (the design's choice; 7 days is a guess at the longest a consumer lags, read from the
|
||||
fill tools once G runs). A full sent store is the bus module's `full` and its condition (ADR 0595 §6), and the sender
|
||||
then refuses the large reply or event loudly, naming the store. The grants part derives from the catalog graph (§442), never from a manifest, a standing grant to read them: the
|
||||
then refuses the large reply or event loudly, naming the store. The grants part derives from the module graph (§442), never from a manifest, a standing grant to read them: the
|
||||
callers its seat definition names for the verbs it serves, and the consumers whose `consumes` declare its events;
|
||||
no other module may read them (ADR 0666 §16). The grant follows the catalog graph, so it is written at each `catalog-revision` that changes it,
|
||||
no other module may read them (ADR 0666 §16). The grant follows the module graph, so it is written at each `catalog-revision` that changes it,
|
||||
never per object. A consumer's reader of
|
||||
the form is delivered before its producer writes it, an edge of kind 4.
|
||||
- §60 **Its tools come with the package.** The package serves each module that imports it `<module>_state_objects` (the
|
||||
@@ -240,7 +240,7 @@ and an estimated 2 mesh-sdk publishes a day, each rebuilding about 120 artifacts
|
||||
| the teller | `widens-said` (§335) | the template `state` | until the branch is unwatched | a few KiB; the template's |
|
||||
| each build module | `detected-steps` (§326, §414) | the template `state` | one key per artifact, dropped by `steps` with `drop` | under 1 MiB; the template's |
|
||||
| the indexer | `registrations` and its stream `registration-history` | old `state` and `streams` sections | the life of the mesh, never derived again | 64 MiB (*A module's registration*) |
|
||||
| the indexer | catalog graph revisions, per watched branch | objects in the old form (ADR 0619 §2) | while a record pins it or it is its branch's current | 512 MiB, as *Two graphs, one source of truth*; a second watched branch on a few modules adds a few MiB |
|
||||
| the indexer | module graph revisions, per watched branch | objects in the old form (ADR 0619 §2) | while a record pins it or it is its branch's current | 512 MiB, as *Two graphs, one source of truth*; a second watched branch on a few modules adds a few MiB |
|
||||
| the gate | `source`: one key per watched branch | its old `state` section, as today | 64 revisions of each key; a branch's key deleted when `registration-changed` says the last registration watching it unwatched it (`unwatch`) | a few KiB |
|
||||
| the forge module | `failed-steps`: failed `required` steps by module and fingerprint, with the commits each was seen at, and the `seen` keys of §487 | state | an entry deleted once none of its commits is a watched branch's head or the head an open pull request names, judged on each `branch-moved` and each pull request's close | the template's 64 MiB; an estimated 50 failed steps a day of about 0.5 KiB, most gone within days, is under 1 MiB; the `seen` keys under 3 MiB (§487) |
|
||||
| every module that imports the object store package | `<state>-objects` beside each state | objects | an object no key names, its key deleted or its value replaced, until `<module>_state_objects_drop` on a person's word (ADR 0595 §4, ADR 0666 §16) | the template's; nothing reserved until written |
|
||||
@@ -278,7 +278,7 @@ step keys and the builder's build log, against the checker's last week (test 99)
|
||||
them; the manifest validator for the manifests' new words (`version`, §368; a `*` emitter in `consumes`, §386; the
|
||||
finding stream an observer declares, §383, §387) and the grants part that makes a `*` entry's durable consumers
|
||||
(§386), before the keeper's or any observer's manifest using them; on each node the node-engine that reads `form`
|
||||
and `catch-up` from the catalog graph before any manifest writing them. The manifest validator the running checker asks for G's own check is the indexer's, so the reading
|
||||
and `catch-up` from the module graph before any manifest writing them. The manifest validator the running checker asks for G's own check is the indexer's, so the reading
|
||||
of these words goes in the reader release of §340, whether or not that validator already takes one of them.
|
||||
- §90 **The stream maker first** (ADR 0667 §5): the grants part, which makes each kept seat stream and its durable
|
||||
consumers, before the parts that hear a kept stream.
|
||||
@@ -344,7 +344,7 @@ step keys and the builder's build log, against the checker's last week (test 99)
|
||||
| §121 The six kinds derived from existing words, `needs` per artifact only where nothing says it | one form of each fact (ADR 0656 §6); the catalog entry's `needs` already exists from G |
|
||||
| §122 The cycle rule in the indexer's graph | the graph is the indexer's, and the checking program goes with the checker |
|
||||
| §123 The builder's seat `mesh-builds` and its event `package-published` | the record has the builder say the publication as an event of its seat (ADR 0666 §15); its waits move only when a later change gives the seat its verbs |
|
||||
| §124 Each state's object store `<state>-objects` through mesh-sdk's small package, sent objects readable by a standing grant derived from the catalog graph, and the package's two tools | one object store per state, granted to its owner; the sender's declared callers and consumers read what it sends (ADR 0666 §16); only its users import it, so nothing else is rebuilt |
|
||||
| §124 Each state's object store `<state>-objects` through mesh-sdk's small package, sent objects readable by a standing grant derived from the module graph, and the package's two tools | one object store per state, granted to its owner; the sender's declared callers and consumers read what it sends (ADR 0666 §16); only its users import it, so nothing else is rebuilt |
|
||||
| §125 The `run` ask published by the runner's account and the indexer's; the verb `run` called by the sessions and the operator only | the steps and the validation run code from the change, in the sandbox only, and each asker reads only its own step keys (ADR 0363 §2); a run publishes tagged packages, so nothing else may ask one |
|
||||
| §126 The checker's step `check` becomes `pipeline`; `kept` starts empty | the runner is an acting part in the checker's place (ADR 0666 §19); a step's result is taken only from its seat holder (ADR 0666 §21), so no verdict of the checker's is taken in, at the cost of one round of every module's tests |
|
||||
| §127 The field `callers` in a seat definition replaces the holders' trusted `callers`, a missing field taking the default of the verb's `class` (§391) | the record makes the definition the grants part's one source (ADR 0666 §20); a field left out must open nothing |
|
||||
|
||||
@@ -50,7 +50,7 @@ design's choice within the record it cites, tested against [the principles](../.
|
||||
order for the assigner's `Compute`. A catalog entry's `requires` stay bare provision names. For each requirement
|
||||
R of a placed module on node N, in this order:
|
||||
1. **The named seat's holder.** The seat whose definition's field `delivers` (mesh-sdk `seatdef`) is R, among the
|
||||
seat definitions the entry's catalog graph revision names in its `definitions` (each read whole through the
|
||||
seat definitions the entry's module graph revision names in its `definitions` (each read whole through the
|
||||
seat `mesh-catalog`'s verb `seat-definitions`, as every part reads the catalog half). Its holder is read from
|
||||
the same revision's placements, from their `holds`, as the assigner's state `seat-holders` keeps them: the key
|
||||
`<seat>` for a seat held once for the mesh, `<seat>.<N>` for a node seat. A seat that delivers R and that no
|
||||
@@ -138,7 +138,7 @@ design's choice within the record it cites, tested against [the principles](../.
|
||||
§569, A-208) This completes §47's row 5 for the indexer, which writes a catalog entry's edges (A-208).
|
||||
- **The entry's `acts`.** The indexer fills a catalog entry's field `acts` when it makes the entry: for each seat
|
||||
its manifest's `claims` names, each acting rule that seat's definition carries, among the definitions the entry's
|
||||
catalog graph revision names in its `definitions` (read through the seat `mesh-catalog`'s verb
|
||||
module graph revision names in its `definitions` (read through the seat `mesh-catalog`'s verb
|
||||
`seat-definitions`, as §708), as one item `{seat, step, on, bound}`: `seat` the claimed seat, `step`, `on` and
|
||||
`bound` as the definition writes them, `bound` left absent where the rule names none (its step's default, §266,
|
||||
is the reader's). Items sorted by `seat`, then `step`; a module that claims no seat with a rule has no `acts`. It
|
||||
|
||||
@@ -116,7 +116,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
found by holder from the seat list; the acting rules `step`, `on` and `bound` and the credentials the entries
|
||||
declare), and the grants part's `grants-for` (the permissions); no other verb.
|
||||
- **A-208** (ADR 0656, §558, §605, §16, §293, §600, §18, §104, §44-§46, A-93, A-190; principle 7) The indexer writes a
|
||||
catalog entry's edges of kinds 1 to 6, as the catalog graph is its own; the long form of `invokes` is read by the
|
||||
catalog entry's edges of kinds 1 to 6, as the module graph is its own; the long form of `invokes` is read by the
|
||||
second reader release's `InvokeFields`, which G merges. Every watched branch's take-in uses the trunk's machinery,
|
||||
per branch: its own pending revision (holding only that branch) and its own groups. `stepsVia` is open while the
|
||||
entry's fingerprint is still in the branch's newest revision; `messageVia` while a pending entry names the merge or
|
||||
@@ -509,7 +509,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
step key that names them: the store's age is the steps state's time to live (two days), its cap 256 MiB, and the
|
||||
bus's own age removes an object; nothing else deletes one. The milestone's lifetime list gains this line.
|
||||
- **A-310** (§615, §506; principles 7 and 3) A compose request's manifest named by digest also names the fingerprint
|
||||
whose catalog graph entry holds it: `composer.Manifest` gains `fingerprint` beside `digest`, and the checker, the one
|
||||
whose module graph entry holds it: `composer.Manifest` gains `fingerprint` beside `digest`, and the checker, the one
|
||||
part that sends digests, fills it (a pull's `Fps`, else the trunk revision's entry of that module). The Go build module
|
||||
reads the entry by `seat:mesh-catalog.entry` with that fingerprint, takes its manifest whole, and refuses the request,
|
||||
saying which module, when the entry's `manifest-digest` differs or a digest comes without a fingerprint. A manifest
|
||||
@@ -609,7 +609,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
§49's: where the build edge (kind 3) goes out of an artifact of a module that holds a build seat into an artifact it
|
||||
builds, the running version builds the new one (§270), so the cycle is broken at the running version and is allowed.
|
||||
Every other cycle with a build edge is refused at take-in, naming every artifact on it (§49, §51); the indexer builds
|
||||
that rule in G, over the catalog graph it keeps. An edge of kind 4 names the artifact that offers the provision (its
|
||||
that rule in G, over the module graph it keeps. An edge of kind 4 names the artifact that offers the provision (its
|
||||
`answered-by`), not the module's first process resource.
|
||||
- **A-327** (§21, §23, §54; principles 1, 3) A pipeline started before its module has a registration is placed when the
|
||||
registration arrives: the runner, on `registration-changed`, places from the registration the steps of every pipeline of
|
||||
@@ -929,7 +929,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
assignment graph's requirement resolution and the order waits keep reading holders from the holds alone; the post-G
|
||||
remarks take that up with the rest of the holders question.
|
||||
- **A-401** (live, the control-node 2026-11-14 21:5x: the assigner ended every proposal, since f1-circuits (watched on
|
||||
`master`), link2pay and photos (watched on nox-mesh) are held in no catalog graph of their branch; the gate writes
|
||||
`master`), link2pay and photos (watched on nox-mesh) are held in no module graph of their branch; the gate writes
|
||||
`source.<branch>` only on a take-in of a merge on that branch (A-34), so a newly watched branch is never started; the
|
||||
operator, 2026-11-14 about 22:00: "by doing a git clone"; principles 2, 4 and 7, §15, §430, A-85, A-93) A watched branch
|
||||
starts from the forge, as a clone does. The gate, at its start and on each `registration-changed` of the seat
|
||||
@@ -1270,13 +1270,13 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
Go fetch's one caller with no `dir` is that check, and a fetch with no `dir` still fetches the tree whole for it;
|
||||
every pipeline step and build names its module (A-447 to A-447c). The refusal of a fetch with no `dir` lands with
|
||||
the checker's removal.
|
||||
- **A-448** (§476, §493, §200; principles 3 and 7) `take-in.taken` names the catalog graph revision the take-in made
|
||||
- **A-448** (§476, §493, §200; principles 3 and 7) `take-in.taken` names the module graph revision the take-in made
|
||||
(`revision`), written by the indexer with the event. The runner starts each pipeline of a take-in at that revision,
|
||||
never at the revision its own view holds; while its view holds an older one, it waits for it (§200) and places no step.
|
||||
(Live, 2026-11-16: main.947 was started at revision 356 while its take-in made 357; its composition read 356 after
|
||||
the indexer had removed it.)
|
||||
- **A-449** (§153, §579, design 47's "kept while a delivery record pins it or it is current"; principle 7; corrected in
|
||||
place by design 47 H §763, H §749) A pipeline pins its catalog graph revision: the indexer pins it in the take-in's
|
||||
place by design 47 H §763, H §749) A pipeline pins its module graph revision: the indexer pins it in the take-in's
|
||||
write (A-449a) or on the runner's `pipeline-started`, and frees it on the runner's `pipeline-ended`, so the indexer
|
||||
keeps the revision while any pipeline runs on it. The runner says no `pinned` or `freed` of the seat
|
||||
`mesh-delivery`; those stay the gate's alone (§153).
|
||||
@@ -1287,7 +1287,7 @@ the principle that settles it, cited as "design 47 G A-n".
|
||||
- **A-226b** (completes A-226 and A-167; ADR 0593 §7; principles 7 and 9) The seat `node-engine`'s `compose-candidate`
|
||||
takes three key forms, parsed by one parser in the seat's client (`nodeengineclient`) that every caller builds its key
|
||||
with: a check's candidate `<group>.<heads hash>` (as today), a branch pipeline's revision `<branch>.<revision>` and a
|
||||
run's `run-<id>`. For a revision key the node-engine reads that catalog graph revision's entries through
|
||||
run's `run-<id>`. For a revision key the node-engine reads that module graph revision's entries through
|
||||
`mesh-catalog.revision` and composes them as the candidate; for a run's key it reads the run's candidate from the
|
||||
indexer's `runs` state. The seat definition's `candidate` input names the three forms. The assigner builds its key
|
||||
with the client's builder, never by hand. (Live, 2026-11-16: main.948's composition step: "\"main.362\" is not a
|
||||
|
||||
@@ -17,13 +17,13 @@ deals with it, which is how the list is kept true.
|
||||
|
||||
## The operator's remarks (2026-11-14, deferred until G is live)
|
||||
|
||||
1. **Two graphs only:** the catalog graph and the assignment graph. Each node's modules publish the state they own and
|
||||
1. **Two graphs only:** the module graph and the assignment graph. Each node's modules publish the state they own and
|
||||
the version they run on the bus; a gap between the assignments and what a node says is closed by the node-engine.
|
||||
2. **What a node can run is checked only on assignment and un-assignment** (for the modules that depend on it), never
|
||||
as an input to every computation. The glossary's *assignment graph* and ADR 0656 say the assigner computes from the
|
||||
catalog graph, the placements and the nodes' capabilities: check the record and the code against this.
|
||||
module graph, the placements and the nodes' capabilities: check the record and the code against this.
|
||||
3. **Assignments enter as commands** (the seat `mesh-module-assigner`'s `propose`: place, take off, ...); the assigner
|
||||
computes no placement, it only derives each placed module's version from the catalog graph into the wants. Check the
|
||||
computes no placement, it only derives each placed module's version from the module graph into the wants. Check the
|
||||
glossary's wording against this.
|
||||
4. **A pin** ("use this provider for this provision") may not belong in the assignments at all: question it, and what
|
||||
the provision wiring should be instead.
|
||||
|
||||
@@ -234,7 +234,7 @@ graphs answer them, the second computed from the first, so there is one source o
|
||||
Findings 11). How each is kept, read and retained is this design's choice under ADR 0656.
|
||||
|
||||
```
|
||||
manifests ──► indexer (mesh-catalog) ──► catalog graph revision ──┐
|
||||
manifests ──► indexer (mesh-catalog) ──► module graph revision ──┐
|
||||
├──► assigner (mesh-wants) ──► assignment graph revision
|
||||
placements (mesh-module-assigner) ───────────────────────────────┤ │ │
|
||||
node capabilities (node-engine seat) ────────────────────────────┘ │ └─► wants, from a trunk revision only
|
||||
@@ -242,22 +242,22 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
a change's assignment graph − the current one = its graph difference = its delivery
|
||||
```
|
||||
|
||||
- §174 **The catalog graph is the indexer's.** The indexer, holder of the seat `mesh-catalog`, keeps the modules as their
|
||||
- §174 **The module graph is the indexer's.** The indexer, holder of the seat `mesh-catalog`, keeps the modules as their
|
||||
manifests declare them; it is today's module graph, and *module graph* stays its other name (ADR 0656). At each
|
||||
revision it holds one entry per module: its bases, its packages, the toolchain version and recipe version of the
|
||||
build module that builds it as ADR 0603 §2 has them, its provides and requires, its invokes and serves, and its
|
||||
fingerprint, with the rules the seats declare (*An acting part's new version acts first*, below).
|
||||
- §175 **The assignment graph is the assigner's, computed and never written by hand.** The assigner, holder of the seats
|
||||
`mesh-module-assigner` and `mesh-wants`, computes the module versions placed on nodes, with the edges between
|
||||
versions, from the catalog graph, the placements and the nodes' capabilities, and nothing else writes it
|
||||
versions, from the module graph, the placements and the nodes' capabilities, and nothing else writes it
|
||||
(ADR 0656). Each entry is one module version on a node; its edges are provisioning, contribution, and the acting
|
||||
parts' versions that are to act on it (ADR 0656), whose rules and versions come in with the catalog graph. It is
|
||||
parts' versions that are to act on it (ADR 0656), whose rules and versions come in with the module graph. It is
|
||||
kept, but it is no stored plan: it has one writer, no part orders work by a stored plan, and any revision is computed
|
||||
again from the inputs it names and compared with the one kept, by a tool (below), so a kept revision is a checked
|
||||
derivation, never a second source of the kind research 063 removed (research 085, Findings 5).
|
||||
- §176 **Each graph is kept per revision, and each revision names its inputs** (ADR 0656). The indexer keeps a catalog
|
||||
- §176 **Each graph is kept per revision, and each revision names its inputs** (ADR 0656). The indexer keeps a module
|
||||
graph revision for each source revision it takes in; the assigner keeps an assignment graph revision for each change
|
||||
of its inputs, naming the catalog graph revision, the placements and the capability readings it was computed from.
|
||||
of its inputs, naming the module graph revision, the placements and the capability readings it was computed from.
|
||||
Both parts are the foundation (ADR 0619 §1), so both keep their revisions as objects declared in an `objects`
|
||||
section in the old form, each with a cap it declares there, never in the new form (ADR 0619 §2), and neither waits
|
||||
on the bus module to start; the manifest validator refuses either manifest that declares them in the new form
|
||||
@@ -265,8 +265,8 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
verbs. This replaces ADR 0603 §2's one key per module with five past values as the graph's form (ADR 0656, which
|
||||
changes ADR 0603 §2); the keys are written no more, and a revert of milestone G restores them from their backup
|
||||
(*Reverted*, below).
|
||||
- §177 **A revision is made by a merge, and also with no merge.** The indexer makes a catalog graph revision when it
|
||||
takes a source revision in. The assigner makes an assignment graph revision on each new catalog graph revision, on
|
||||
- §177 **A revision is made by a merge, and also with no merge.** The indexer makes a module graph revision when it
|
||||
takes a source revision in. The assigner makes an assignment graph revision on each new module graph revision, on
|
||||
the seat `mesh-module-assigner`'s event `assignments-changed` (ADR 0567 §5, ADR 0641), and on the node-engine seat's event
|
||||
`manifest-reads-changed`, which a node-engine says when the capabilities it states change and when its node returns
|
||||
(ADR 0614 §4, ADR 0618 §3, §4; §590), so the assigner follows an event and never reads a node record across the seam (ADR 0596). A
|
||||
@@ -286,12 +286,12 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
revision whatever changed, and a cap would only delay the same fill.
|
||||
- §180 **The caps and the growth** (estimates, to be read from the fill tools once the milestone runs). A whole assignment
|
||||
graph revision of about 120 modules on four nodes is under the bus's 256 KiB value limit (its unit test), and a
|
||||
catalog graph revision's list of about 120 entries about 4 KiB, its entries, each carrying its manifest whole
|
||||
module graph revision's list of about 120 entries about 4 KiB, its entries, each carrying its manifest whole
|
||||
(§443), about 15 KiB each. A record pins the revisions before and after its
|
||||
delivery, and consecutive records share one, so at an estimated 20 deliveries a day about 20 revisions of each graph
|
||||
a day stay pinned. A delivery moving 5 modules on four nodes adds about 20 assignment entries of about 1 KiB and a
|
||||
list of about 15 KiB, and 5 catalog entries of about 15 KiB and a list of about 4 KiB: about 0.7 MiB a day of assignment graph and
|
||||
1.6 MiB of catalog graph, about 63 MiB and 144 MiB at the records' default retention of 90 days. The caps are 512 MiB
|
||||
1.6 MiB of module graph, about 63 MiB and 144 MiB at the records' default retention of 90 days. The caps are 512 MiB
|
||||
for each, many times the steady state. Placement-only and capability-only revisions are pinned by no record and go
|
||||
when they stop being current.
|
||||
- §181 **A store filling is said before it is full.** The indexer, the assigner and the gate each say their fill against
|
||||
@@ -309,9 +309,9 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
- §183 **The want stays the one record a node reads.** The assigner writes `want.<node>.<module>` from a trunk
|
||||
revision's assignment graph only; a node-engine reads its want, never the assignment graph, and the have stays what
|
||||
it runs (ADR 0656, which changes ADR 0571 §8).
|
||||
- §184 **From G's delivery, per watched branch and between artifacts.** The catalog graph is kept once per watched branch,
|
||||
- §184 **From G's delivery, per watched branch and between artifacts.** The module graph is kept once per watched branch,
|
||||
each revision naming its branch, and its edges run between artifact references, of the six kinds of *Dependencies
|
||||
between artifacts* (ADR 0666 §6, §14). The assigner computes a node's entries from the catalog graph of the branch its
|
||||
between artifacts* (ADR 0666 §6, §14). The assigner computes a node's entries from the module graph of the branch its
|
||||
placement names, and writes a want from a revision of that branch whose `required` steps passed, in place of a trunk
|
||||
revision's alone (ADR 0666 §9, which changes ADR 0656 §2).
|
||||
- §185 **Reverted.** Only the new form is written: the indexer, the assigner and the gate keep nothing of ADR 0603 §2's
|
||||
@@ -323,7 +323,7 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
|
||||
| Part | Kept data before G (form 0) | After G | Restored at a revert |
|
||||
|---|---|---|---|
|
||||
| the indexer | the state `modules` (ADR 0603 §2's one key per module) and its durable consumer's position on the forge bridge's stream `forge`; the states `holds`, `engine-reads` and `hold-bounds` of its mesh-wide hold | catalog graph revisions as objects, form 1; `modules` no longer declared, nor its tool `indexer_read_modules` or its view; the mesh-wide hold, its three states and its tools `indexer_holds` and `indexer_engine_reads` gone, the wait per node being the assigner's (*Composing waits per node, by the assigner*); every reader of it reading the catalog half (*Every other reader of which modules exist*, under *The revision view*, below) | yes: `modules` and the hold's three states as they stood at G's delivery, and the consumer's position |
|
||||
| the indexer | the state `modules` (ADR 0603 §2's one key per module) and its durable consumer's position on the forge bridge's stream `forge`; the states `holds`, `engine-reads` and `hold-bounds` of its mesh-wide hold | module graph revisions as objects, form 1; `modules` no longer declared, nor its tool `indexer_read_modules` or its view; the mesh-wide hold, its three states and its tools `indexer_holds` and `indexer_engine_reads` gone, the wait per node being the assigner's (*Composing waits per node, by the assigner*); every reader of it reading the catalog half (*Every other reader of which modules exist*, under *The revision view*, below) | yes: `modules` and the hold's three states as they stood at G's delivery, and the consumer's position |
|
||||
| the gate | the states `merges` and `turns` | the delivery record's ledger, form 1; `merges` and `turns` no longer declared | yes: `merges` and `turns` as they stood at G's delivery |
|
||||
| the assigner | the wants, written from the indexer's `modules` | the same wants, form 0, written from the assignment graph; the assignment graph revisions as objects, form 1 | no |
|
||||
|
||||
@@ -341,7 +341,7 @@ Findings 11). How each is kept, read and retained is this design's choice under
|
||||
### A change's graph difference is its delivery
|
||||
|
||||
- §186 **The difference names everything a plan named.** (§512) For a change (a pull request's heads, a delivery group's
|
||||
heads, or a merge), the indexer gives its catalog graph and the assigner its assignment graph. Compared with the
|
||||
heads, or a merge), the indexer gives its module graph and the assigner its assignment graph. Compared with the
|
||||
current revision, the difference names the new versions, the moved edges, the touched nodes and the order, read off
|
||||
the edges, and no plan is stored (ADR 0656). The assigner serves it by the seat `mesh-wants`'s verb `difference`,
|
||||
for two revisions of the assignment graph or for a candidate against trunk. ADR 0603 §6's tiers, as ADR 0633 §5
|
||||
|
||||
@@ -42,10 +42,10 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
### The revision view
|
||||
|
||||
- §194 **A pair, each half served by its one owner** (ADR 0656). For a trunk revision, or for a candidate's heads before
|
||||
any merge, the indexer serves the catalog half by the seat `mesh-catalog`'s verb `revision`: the catalog graph, the
|
||||
any merge, the indexer serves the catalog half by the seat `mesh-catalog`'s verb `revision`: the module graph, the
|
||||
heads, the seat definitions, the manifests' verdicts and the fingerprints. The assigner serves the assignment half by
|
||||
the seat `mesh-wants`'s verb `revision`: an assignment graph revision, named by its own revision and naming its
|
||||
inputs, the catalog graph revision, the placements and the capability readings. A part's view for the current
|
||||
inputs, the module graph revision, the placements and the capability readings. A part's view for the current
|
||||
revision is the newest assignment half and the catalog half it names. `seat-definitions` stays the seat list's verb
|
||||
(ADR 0636 §4), and the catalog half carries the same definitions at its revision.
|
||||
- §195 **Every part takes a first view, then follows the events.** The checker, the builder, the grants part and the
|
||||
@@ -69,7 +69,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
module, names the seat and never the indexer, and keeps no list of its own (ADR 0656 §6, ADR 0596 §2; ADR 0615 §1,
|
||||
under which every reader of the indexer's state moves in one milestone). A reader that misses a `catalog-revision`
|
||||
(a gap in the revisions it heard) asks `revision` once more, said in its log (ADR 0615 §5). The design's choice
|
||||
under ADR 0656 §6: one form of the fact, never `modules` kept beside the catalog graph for these readers, which
|
||||
under ADR 0656 §6: one form of the fact, never `modules` kept beside the module graph for these readers, which
|
||||
would be a second source of the same fact. How it is checked: test 61.
|
||||
- **The forge module's tools come from mesh-sdk's TypeScript side.** mesh-sdk's TypeScript side has no view
|
||||
today; milestone G adds there a view follower with its read and ask-again tools, which adopts and drops a branch's
|
||||
@@ -108,7 +108,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
indexer's whole-module test, started with a definition on a contracts trunk that no event announced, the first
|
||||
manifest claiming that seat is judged with it.
|
||||
- §199 **Who holds a seat is applied by one rule, from what each node runs.** (§556) The node-engine and the grants part decide a
|
||||
seat's pass by mesh-sdk's `SeatsToPassOn` (ADR 0660 §3), reading the catalog graph's entry of the build each assignment
|
||||
seat's pass by mesh-sdk's `SeatsToPassOn` (ADR 0660 §3), reading the module graph's entry of the build each assignment
|
||||
runs, never a manifest (ADR 0660 §2; §442). What each node runs is heard, never asked: each part keeps it from the node-engine seat's events
|
||||
`running.<node>.<module>` (*What each step says*), through a durable consumer of its own declared in its `consumes`,
|
||||
so a pass is decided with no call to a node that may be away. The seat's stream keeps the last message per subject
|
||||
@@ -118,7 +118,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
digest of the build's manifest, which is the indexer's manifest of that build (ADR 0660 §2's "the indexer's
|
||||
manifest of it"), read by digest from the catalog half; the builder's done key is not needed, since the event names
|
||||
the digest it would give. A node that has said no `running` for a module since the part's consumer began counts by
|
||||
the catalog graph's entry of the module on its placement's branch, as ADR 0660 §2 has it where the running build cannot be read, and both parts apply that same
|
||||
the module graph's entry of the module on its placement's branch, as ADR 0660 §2 has it where the running build cannot be read, and both parts apply that same
|
||||
fallback in the one function (ADR 0660 §3), whose input is §459's. Never another node's have key, its want or the assignment half (ADR 0596
|
||||
§2; *Each part acts on its own entries*). The design's choice under ADR 0660 §2: the node that runs a build says what
|
||||
it runs, and an event kept by a durable consumer answers when that node is away. How it is checked: test 56.
|
||||
@@ -147,7 +147,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
naming the language of the modules it acts on, matched against what the manifest says its language is, as the
|
||||
indexer's language map matches today; and `bound`, how long an entry waits in that step for the acting part's new
|
||||
version (*An acting part's new version acts first*, below, gives each step's default). The definition format's own
|
||||
schema (design 26) gains the field, and the format stays 1. The indexer reads it into the catalog graph, the assigner
|
||||
schema (design 26) gains the field, and the format stays 1. The indexer reads it into the module graph, the assigner
|
||||
into edges, and the checking program from the revision view. **Its cost in mesh-sdk:** the seat-definition reader in
|
||||
mesh-sdk's runtime refuses a definition with a field it does not know or a format other than 1, so a reader built
|
||||
before the field refuses every definition that carries `acts`, and a refused definition blocks new claims of that
|
||||
@@ -236,7 +236,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
| §234 Each step's wait held by the part that does the step, with its own read and release tools and the events `wait-held` (at the wait's start, with its bound) and `wait-ended`, timed by the watchman, whose clock starts when the new version's build is done | the part that does the step already holds its state; the watchman timing from `wait-held` still raises a wait whose holder stopped, and counting from the build done leaves a slow build to the build's own wait |
|
||||
| §235 The bound per step in the acting rule, with a default per step | the time a step's new version needs is the acting part's to know, not another module's |
|
||||
| §236 A build module's wait ends on the agreed toolchain naming the new build module | the agreed toolchain is what a fingerprint takes (ADR 0584 §1), so before it names the new build module no module could be built once by it |
|
||||
| §237 The running indexer makes a catalog graph revision with the named indexer's entry | the newer indexer can then be wanted and granted, so a revision waiting for it is never stuck behind it |
|
||||
| §237 The running indexer makes a module graph revision with the named indexer's entry | the newer indexer can then be wanted and granted, so a revision waiting for it is never stuck behind it |
|
||||
| §238 The acting rule's field `acts` with `step`, `on` and `bound`, the definition format staying 1 | the steps and the language match are what the indexer's map and the checker's cases held in code (research 085, Findings 2); the reader refuses an unknown field, so the runtime learns it in the one rebuild the milestone makes |
|
||||
| §239 The fingerprint handed as `MESH_FINGERPRINT` at a process's start | one value every runtime reads before anything else, a service and a container alike |
|
||||
| §240 The delivery record's consumer, held and failed outcomes, end and `record-ended`, the finding `record-open`, node away and wake, switch done once, and tools | a restart must lose and double nothing; a reader sees why an entry stands still; a node asleep must not hold a delivery open; a switch run twice must ask no approved group again |
|
||||
@@ -248,7 +248,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
| §246 The seat list's reader and its two tools wired once by mesh-sdk's runtime | ADR 0636 §7 puts them in the runtime bundle; four hand-wired copies would each learn `acts` apart |
|
||||
| §247 The trunk's heads from the catalog half, and nothing read of the gate by the checker | ADR 0596 §2; with the hold and turns removed nothing of the gate is left for the checker to read |
|
||||
| §248 The indexer reads every contracts trunk's definitions at its start, before it judges | a definition merged while it was down is never judged against a list that lacks it (ADR 0636 §1) |
|
||||
| §249 Another node's running build kept from the node-engine seat's `running` events by a durable consumer, the event carrying the fingerprint and the manifest's digest, the catalog graph's entry for a node that said nothing | ADR 0660 §2 reads the manifest of the build each node runs; an event kept by a durable consumer answers while a node is away, where a call would wait on it; one fallback in the one function keeps the two parts agreed (ADR 0660 §3) |
|
||||
| §249 Another node's running build kept from the node-engine seat's `running` events by a durable consumer, the event carrying the fingerprint and the manifest's digest, the module graph's entry for a node that said nothing | ADR 0660 §2 reads the manifest of the build each node runs; an event kept by a durable consumer answers while a node is away, where a call would wait on it; one fallback in the one function keeps the two parts agreed (ADR 0660 §3) |
|
||||
| §250 What the gate and the checker owe the forge said as the event `owed` per repository and pull request, each act safe to repeat at the forge, each outcome said as `owed.ended` and recorded, an unanswered act said again at the gate's start and stalled after 15 minutes | ADR 0596 §1, §2 end the watches of the gate's and the checker's keys; an act safe to repeat cannot be lost between the act and its record, where an id recorded first could; an outcome said and recorded leaves no act unseen |
|
||||
| §251 A merge made at the forge opens a `forge-made` delivery record | its trace and outcomes are kept like every delivery's, and no later merge waits behind a merge the gate never heard |
|
||||
| §252 Every delivery part and the gate reach the forge only through the seat `git`'s verbs and events, the act verbs granted by the holder's trusted `callers` to the forge bridge alone, a failed read answered as an error | the delivery parts name no other module (ADR 0656 §1, acceptance test 27); the forge's answers are typed in the seat's contract instead of guessed in each caller; the bridge stays the one part that acts on the forge; an error read as an empty answer would hide a forge down |
|
||||
@@ -263,7 +263,7 @@ One file of milestone G's part of [design 47](../47-delivery-from-commit-to-deli
|
||||
|
||||
### What each step says
|
||||
|
||||
§260 Each step says what it did as its own event, the event of the part that did it. A catalog graph revision kept
|
||||
§260 Each step says what it did as its own event, the event of the part that did it. A module graph revision kept
|
||||
carries the source revision; an assignment graph revision kept and a difference worked out carry the source revision
|
||||
and the assignment graph revisions; an entry taken in, built, checked, composed, wanted and running also carries the
|
||||
entry's fingerprint and its node. The gate's delivery record is built from them. The seat's event comes first where
|
||||
@@ -278,7 +278,7 @@ say another runs a build (ADR 0363 §2); the gate's events are granted to the ga
|
||||
|
||||
| Step | Event | Owner: the seat, then the module | Subject | Declared in |
|
||||
|---|---|---|---|---|
|
||||
| a catalog graph revision kept, saying whether it is a trunk revision or a candidate's and its watched branch | `catalog-revision` | `mesh-catalog`, the indexer | `mesh.seat.mesh-catalog.event.catalog-revision`, the watched branch in the subject from G's delivery | the seat's definition in `mesh-delivery-contracts` |
|
||||
| a module graph revision kept, saying whether it is a trunk revision or a candidate's and its watched branch | `catalog-revision` | `mesh-catalog`, the indexer | `mesh.seat.mesh-catalog.event.catalog-revision`, the watched branch in the subject from G's delivery | the seat's definition in `mesh-delivery-contracts` |
|
||||
| an assignment graph revision kept | `assignment-revision` | `mesh-wants`, the assigner | `mesh.seat.mesh-wants.event.assignment-revision` | the seat's definition in `mesh-delivery-contracts` (ADR 0641 §2) |
|
||||
| a difference worked out | `difference` | `mesh-wants`, the assigner | `mesh.seat.mesh-wants.event.difference` | the same |
|
||||
| an entry taken in | `take-in.taken`, which gains the entries | the indexer's own | `mesh.stream.mesh-delivery-indexer.event.take-in.taken` | the indexer's manifest |
|
||||
@@ -309,8 +309,8 @@ on another node's subject is refused by the bus.
|
||||
|
||||
| Line | The assigner | The indexer |
|
||||
|---|---|---|
|
||||
| read everything it holds | `assigner_revision` (one assignment graph revision whole, with the revisions of its inputs), `assigner_revisions` (every kept revision with what pins it, and the store's fill against its cap), `assigner_entry` (one entry, with the seat rule that gave each edge), `assigner_difference` (a change's difference), `assigner_waits` (*Order without a person*), `assigner_candidate_graphs` (every candidate's graphs: its heads, its revisions, since when), `assigner_consumer` (its consumer of the gate's events: the last applied, the waiting), `assigner_puts` (each put with its step, since when, held or not, the `running` that ended it, and for a put without hold whether it is past its 30-minute bound; a put older than the trunk's newest build of its module said so) | `indexer_catalog_revision` (one catalog graph revision), `indexer_catalog_revisions` (every kept revision with what pins it, and the store's fill against its cap), `indexer_candidate_graphs` (every candidate's catalog half), `indexer_consumer` (the same as the assigner's) |
|
||||
| do by hand what it does itself | `assigner_recompute` (compute a revision again from its named inputs and compare it with the one kept) | `indexer_recompute` (compute a catalog graph revision again from its source revision and compare it with the one kept) |
|
||||
| read everything it holds | `assigner_revision` (one assignment graph revision whole, with the revisions of its inputs), `assigner_revisions` (every kept revision with what pins it, and the store's fill against its cap), `assigner_entry` (one entry, with the seat rule that gave each edge), `assigner_difference` (a change's difference), `assigner_waits` (*Order without a person*), `assigner_candidate_graphs` (every candidate's graphs: its heads, its revisions, since when), `assigner_consumer` (its consumer of the gate's events: the last applied, the waiting), `assigner_puts` (each put with its step, since when, held or not, the `running` that ended it, and for a put without hold whether it is past its 30-minute bound; a put older than the trunk's newest build of its module said so) | `indexer_catalog_revision` (one module graph revision), `indexer_catalog_revisions` (every kept revision with what pins it, and the store's fill against its cap), `indexer_candidate_graphs` (every candidate's catalog half), `indexer_consumer` (the same as the assigner's) |
|
||||
| do by hand what it does itself | `assigner_recompute` (compute a revision again from its named inputs and compare it with the one kept) | `indexer_recompute` (compute a module graph revision again from its source revision and compare it with the one kept) |
|
||||
| recover without help | `assigner_drop_candidate_graph` (drop a candidate's graphs whose gate event never came), `assigner_release` (*Order without a person*) | `indexer_drop_candidate_graph` (the same for its half) |
|
||||
| one seat, many tools | `mesh-wants`: `revision`, `entry`, `difference` | `mesh-catalog`: `revision`, beside `seat-definitions` |
|
||||
|
||||
@@ -330,8 +330,8 @@ steered by a tool.
|
||||
§263 **How it is checked.** Unit (assigner): a revision of the assignment graph computed again from its named inputs
|
||||
equals the one kept; a fixture change with a new fingerprint and an empty difference is refused, naming its module;
|
||||
one revision of about 120 modules on four nodes stays under the bus's value limit; of the view the assigner reads only
|
||||
the catalog half. Unit (indexer): a catalog graph revision holds one entry per module of its source revision. Whole
|
||||
(indexer): a source revision taken in gives one catalog graph revision kept as objects in an `objects` section in the
|
||||
the catalog half. Unit (indexer): a module graph revision holds one entry per module of its source revision. Whole
|
||||
(indexer): a source revision taken in gives one module graph revision kept as objects in an `objects` section in the
|
||||
old form within the cap its manifest declares; the manifest validator refuses the indexer's or the assigner's manifest
|
||||
that declares them in the new form. Whole (indexer, assigner): a revision a delivery record pins is not removed; one
|
||||
two records pin stays until both free it; one neither pinned nor current is removed; a `freed` said while the part
|
||||
|
||||
@@ -147,7 +147,7 @@ names go, since every new acting part needed code changes elsewhere (research 08
|
||||
- §273 **The indexer's own steps have no wait, and a newer indexer is reached.** Taking in and validating stay as *Taken in
|
||||
by the indexer it names* has them: a revision is taken in only by the indexer it names, which judges its own change
|
||||
at its start, and no build waits on which indexer judged it (ADR 0603 §4, as ADR 0633 §1 changes it). So that the
|
||||
named indexer can start at all, the running indexer makes, for a merged revision naming a newer indexer, a catalog
|
||||
named indexer can start at all, the running indexer makes, for a merged revision naming a newer indexer, a module
|
||||
graph revision that is the previous one with only the indexer's entry replaced by the one its manifest at the merge
|
||||
gives, and nothing else of the revision, so no other want moves before the named indexer takes the revision in; the assigner wants it and the grants part grants it like any module, and once it runs it takes the revision
|
||||
in whole. Without that, a revision waiting for its indexer would wait for good.
|
||||
@@ -191,7 +191,7 @@ names go, since every new acting part needed code changes elsewhere (research 08
|
||||
`wait-held` carries `clock-from` from the builder's `build.ended`. Whole (assigner, node-engine): during a node-engine change with
|
||||
one node away, the present nodes take their new node-engine and then their other wants, nothing waits on the node
|
||||
away and no condition is raised for it; a node asleep since before milestone G wakes, takes its new node-engine
|
||||
first, then the rest. Whole (indexer, assigner): a merged revision naming a newer indexer gives a catalog graph
|
||||
first, then the rest. Whole (indexer, assigner): a merged revision naming a newer indexer gives a module graph
|
||||
revision that is the previous one with only the indexer's entry replaced, and no other want moves; the new indexer is wanted and granted, starts,
|
||||
and takes the revision in, with no build waiting on which indexer judged it. Whole (assigner): a module with no
|
||||
holder for its step is held by name, and the check of a change bringing it fails naming the missing holder. Unit
|
||||
@@ -298,7 +298,7 @@ running versions never check in their place, and a check fails, naming the part,
|
||||
`source.<branch>`, as a commit or a group lands there; the pipeline runs on each revision the indexer takes in, and
|
||||
the wants follow a revision whose `required` steps passed, on the branch each placement chose (ADR 0666 §6, §9).
|
||||
- §292 **From research 085's milestone, the wants follow the trunk's assignment graph.** A merge taken in makes a
|
||||
catalog graph revision and then an assignment graph revision; the assigner writes each want from that revision,
|
||||
module graph revision and then an assignment graph revision; the assigner writes each want from that revision,
|
||||
its rules unchanged (ADR 0656), and each acting part's new version acts first in its own step (ADR 0656; *Two
|
||||
graphs, one source of truth*, above).
|
||||
|
||||
@@ -309,7 +309,7 @@ running versions never check in their place, and a check fails, naming the part,
|
||||
sandbox, and a revision it refuses stays pending, as the bullets above have it, with the way back a revert; a pending
|
||||
revision holds only its own watched branch; a group's member reaches it by landing, and the group ends when the gate's
|
||||
group verb says every member has; `bridge_group_end_again` reads that verb; and the check's refusal below goes with the
|
||||
check (*Watched branches and the catalog graph per branch*, *Groups*).
|
||||
check (*Watched branches and the module graph per branch*, *Groups*).
|
||||
|
||||
## A backup before the apply: kept data on the bus
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ each step says*.
|
||||
|
||||
§309 **The seat `node-engine`**'s (§520) event `running.<node>.<module>` carries, from research 085's milestone, the module, its
|
||||
fingerprint and the digest of its build's manifest, so the node-engine of another node and the grants part decide a
|
||||
seat's pass from the catalog graph's entry of that build (ADR 0660 §2; *Who holds a seat is applied by one rule*). No verb is added.
|
||||
seat's pass from the module graph's entry of that build (ADR 0660 §2; *Who holds a seat is applied by one rule*). No verb is added.
|
||||
|
||||
§310 **The seat `git`.** The seat `git` (design 26, *The git seat*), of the Delivery domain, defined in
|
||||
`mesh-delivery-contracts`, holds no verb today, and the delivery parts and the gate reach the forge by naming the forge
|
||||
|
||||
@@ -43,7 +43,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
|
||||
### The runner and its steps
|
||||
|
||||
- §323 **A step's build seat is read from the artifact's language.** (§535) The catalog graph entry names each artifact's
|
||||
- §323 **A step's build seat is read from the artifact's language.** (§535) The module graph entry names each artifact's
|
||||
`language`, as its manifest's artifact entry says it and as the indexer's language map matches today; the runner
|
||||
reads it from the catalog half of its revision view and asks lint and the test steps of the build seat whose
|
||||
definition's acting rule `build` has `on` naming that language. With no such seat, or no holder of it, the pipeline
|
||||
@@ -190,7 +190,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
|
||||
### The catalog, the builder and the assigner
|
||||
|
||||
- §342 **A module not watched on a branch.** A watched branch's catalog graph takes each module not watched on that branch
|
||||
- §342 **A module not watched on a branch.** A watched branch's module graph takes each module not watched on that branch
|
||||
from the registration's first watched branch. `register` names a module's watched branches; with none named it takes
|
||||
the repository's default branch, read through the seat `git`. Why: a placement's default is the registration's first
|
||||
branch (ADR 0666 §6). How it is checked: whole (indexer), a `beta` revision holds a `main`-only module at `main`'s
|
||||
@@ -199,7 +199,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
`entry`, naming why, since the catalog keeps its revisions under `<branch>.<revision>` beside those two key forms.
|
||||
How it is checked: whole (indexer), each is refused.
|
||||
- §344 **The bus module plans a sent store from what the catalog already says.** (§533, §537) It plans `<module>_sent-objects` for a
|
||||
module of the new form whose catalog graph entry claims a seat whose definition has a verb or an event, or declares
|
||||
module of the new form whose module graph entry claims a seat whose definition has a verb or an event, or declares
|
||||
an event of its own, read from the catalog half of its revision view and the seat list; the indexer's event carries
|
||||
no field `sends`. When a seat's definition gains its first verb or event later, the bus module plans the store for
|
||||
its holders on the seat list's change. Why: no manifest field (*Any size*), and the catalog half is every part's view
|
||||
@@ -220,7 +220,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
- §348 **The builder reads the catalog through its seat.** The builder reads the registrations' watched branches through
|
||||
`mesh-catalog`'s `registrations` and `registration-changed`, the released versions it numbers from through
|
||||
`versions` and `version-released`, keeping no list of versions of its own, and a build seat's holder from the seat list; the
|
||||
manifests, the packages, each package's name in its ecosystem (the Go module path, the npm name, which the catalog
|
||||
manifests, the packages, each package's name in its ecosystem (the Go module path, the npm name, which the module
|
||||
graph entry's packages carry) and a run's candidate from the catalog half of its revision view, never the indexer's
|
||||
state. With no holder of a build seat, a build ends `could not run`, naming the seat, and is asked again on the seat
|
||||
list's change. Why: ADR 0596 §2. How it is checked: the builder's account holds no grant to the indexer's state.
|
||||
@@ -302,7 +302,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
- §364 **The node-engine claims its seat.** (§508, §527) The node-engine's manifest claims the node seat `node-engine` (ADR 0563), and
|
||||
the indexer and the node-engine's own guard read its holder from the seat list, keeping no module name. How it is
|
||||
checked: the code review reads that neither fixes a module name (§7).
|
||||
- §365 **The condition keeper finds its sources in the catalog.** (§527, §532) The catalog graph entry carries the events each
|
||||
- §365 **The condition keeper finds its sources in the catalog.** (§527, §532) The module graph entry carries the events each
|
||||
manifest declares in its `streams`; the keeper takes a first view of the catalog half, and its sources are the
|
||||
modules whose entry declares the finding events of §383, the node-engine among them, its holder read from the seat
|
||||
list. It joins the readers of *Every other reader of which modules exist*, reading every watched branch's newest
|
||||
@@ -408,7 +408,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
and the wait are the design's choice, round 2 of the review by architectural domain, 2026-11-10. How it is checked: test 103.
|
||||
- §374 **A release records, per edge, the part it was built against or delivered after.** (§558) One version per module
|
||||
stays (§52), and an edge is judged by the digest of the part it points to. The catalog records on each released
|
||||
version (§349), in its key of `versions`, one entry per catalog-graph edge of the module's artifacts (the six kinds
|
||||
version (§349), in its key of `versions`, one entry per module-graph edge of the module's artifacts (the six kinds
|
||||
of *Dependencies between artifacts*), a lockfile per released version. An entry names the kind, whether the edge
|
||||
makes the dependent stale or only orders it (§378), the manifest word it came from, the part it points to, and what
|
||||
the edge depended on:
|
||||
@@ -431,7 +431,7 @@ record it follows from, and replaces the builder's own choice where one was made
|
||||
A build of a watched branch other than the registration's first releases no version (§371): its entries are kept in
|
||||
the indexer's old `state` section `build-edges`, one key per module and watched branch holding the newest build's
|
||||
entries, keyed by its fingerprint, replaced by the next build and deleted when `registration-changed` says the
|
||||
branch is no longer watched, and they compare by the part's digest alike. The declared edge stays in the catalog
|
||||
branch is no longer watched, and they compare by the part's digest alike. The declared edge stays in the module
|
||||
graph; an entry is the release's or the build's fact, written once. Why: the operator, 2026-11-10 about 22:30 to 23:00 CET and 22:10 CET (issue 1961), and
|
||||
the lead's review of these lines. Each entry is about 0.1 KiB, about ten a version, so `versions` stays within its
|
||||
64 MiB (an estimate). How it is checked: test 104.
|
||||
|
||||
@@ -102,7 +102,7 @@ record says so in its Why. Round 3 of the review by architectural domain (2026-1
|
||||
hearing an event that many modules say; the keeper's `*.finding-written`, `*.finding-cleared` and
|
||||
`*.findings-stated` are the first. The manifest validator takes `*` only as the whole emitter, and only before an
|
||||
event that a seat's definition or a contract in mesh-sdk defines, with its fields (for the finding events, the seat `mesh-conditions`' definition, §439); it refuses `*.>` and `*` in part of an emitter's name, and a `*` entry before any other event keeps its meaning on main (§474). The grants part,
|
||||
from the catalog graph as it derives every grant (§59, §442), makes on each declaring module's stream one durable consumer
|
||||
from the module graph as it derives every grant (§59, §442), makes on each declaring module's stream one durable consumer
|
||||
for each process of the consumer that hears it, named as A-397 names a process's durable (`<machine>_<module>` for
|
||||
its program, `<machine>_<module>_tools` for its tool runner, `<machine>_<module>_<process>` for another; corrected in
|
||||
place by design 47 H §763, where one per module stood), with its grants to read and acknowledge it and
|
||||
|
||||
@@ -133,7 +133,7 @@ line says so.*
|
||||
operator, are refused by the bus; a failed restore says `restored` with `failed` and its error.
|
||||
- §406 **A catch-up names its tool and arguments.** (§516, §555) A restore point records the catch-up tool and its arguments whole
|
||||
(§299), and the fingerprint of the newer build it was taken before; the grants part derives the grant of that tool to
|
||||
`holder:node-engine@same-node` from the catalog graph's entry of that recorded fingerprint (§443). Why: the design's
|
||||
`holder:node-engine@same-node` from the module graph's entry of that recorded fingerprint (§443). Why: the design's
|
||||
choice (Q-H7). How it is checked: whole (node-engine), a restore runs its recorded catch-up, granted from the
|
||||
recorded build's entry.
|
||||
- §407 **The object store package.** mesh-sdk's object store package is `go/stateobjects`; it also takes a foundation
|
||||
@@ -208,7 +208,7 @@ line says so.*
|
||||
### Readers, branches and the node-engine
|
||||
|
||||
- §421 **The node-engine reads the entry its want names.** (§526, §532) The node-engine joins §196's readers: it reads, from the
|
||||
catalog half, the catalog graph's entry of the fingerprint its want names (§443), never a manifest and never by
|
||||
catalog half, the module graph's entry of the fingerprint its want names (§443), never a manifest and never by
|
||||
branch, so a want needs no field `branch`, and the parts by digest from its want (§379); its reads of the indexer's
|
||||
and builder's states go. When the catalog half no longer holds that entry, the node-engine holds the want and its
|
||||
have says the phase `entry-missing`, naming the fingerprint. The tool runner follows every watched branch's newest
|
||||
@@ -267,7 +267,7 @@ line says so.*
|
||||
`merges`. Why: the design's choice (C13, C14, D9, D11). How it is checked: whole (gate), each verb served or not as
|
||||
named; whole (knowledge base), the overview shows a group's end from `group-ended`.
|
||||
- §432 **The edges a `needs` names.** An artifact's `needs` names artifact references `<module>:<artifact>` of the
|
||||
catalog graph's edges (§95, §121). Why: the design's choice (C21). How it is checked: unit (manifest validator).
|
||||
module graph's edges (§95, §121). Why: the design's choice (C21). How it is checked: unit (manifest validator).
|
||||
- §433 **The bus module reads the catalog half.** (§532, §538) The bus module's `consumes` and its call of `indexer_bus_state` are
|
||||
replaced by its view of the catalog half (§344). Why: ADR 0596 §2 (C22). How it is checked: its manifest.
|
||||
- §434 **Findings name their owner and whom they wait on, and the keeper reads by events.** (§541) A finding of §33, §8 and
|
||||
@@ -318,9 +318,9 @@ line says so.*
|
||||
never refused). This amends §401. Why: lead-47's ruling, 2026-11-11, on D15 and Q12. How it is checked: whole (grants
|
||||
part, runner), a change widening a grant names it in `widens` from `grants-for`, and with the grants part stopped
|
||||
`widens` says `could not run`.
|
||||
- §442 **Only the indexer reads a manifest.** The indexer alone reads the manifests, to build the catalog graph, whose
|
||||
- §442 **Only the indexer reads a manifest.** The indexer alone reads the manifests, to build the module graph, whose
|
||||
entry carries the validated manifest whole (§443); every other part (the grants part, the condition keeper, the
|
||||
assigner, the runner, the tool runner, the node-engine, the checks and the reviews) reads the catalog graph's entry
|
||||
assigner, the runner, the tool runner, the node-engine, the checks and the reviews) reads the module graph's entry
|
||||
of the build concerned from the catalog half (§196, §421). Today's readers move: in mesh-catalog, `brother`,
|
||||
`distribution`, the forge module's package registry and `mesh-build-go` read the entry they need by `mesh-catalog`'s
|
||||
`entry` or `revision`; in `mesh-host`, the node-engine reads the entry its want names (§421). The one exception is
|
||||
@@ -329,11 +329,11 @@ line says so.*
|
||||
its inputs and the composition check. Why: the operator, 2026-11-11 about 03:05 CET at the terminal: "only the
|
||||
indexer uses the manifest to build the module catalog". How it is checked: test 61, extended to the node-engine and
|
||||
the grants part: whole cases whose accounts hold no read of a manifest; the grants part's table test derives each
|
||||
grant from a catalog graph fixture with no manifest.
|
||||
grant from a module graph fixture with no manifest.
|
||||
|
||||
### From the review of step 0b (2026-11-11)
|
||||
|
||||
- §443 **The catalog graph's entry carries the manifest, and is kept while a build names it.** (§506) Each catalog graph
|
||||
- §443 **The module graph's entry carries the manifest, and is kept while a build names it.** (§506) Each module graph
|
||||
entry carries the validated manifest whole beside the fields §174 names, kept as an object of the indexer's old
|
||||
`objects` section by its digest (§179), so no size limit applies to it. The indexer keeps an entry while a kept
|
||||
revision lists it, or a want (heard by `mesh-wants`' `wanted`) or a running build (heard by the node-engine seat's
|
||||
@@ -343,7 +343,7 @@ line says so.*
|
||||
whole (indexer), an entry no revision lists stays readable by `entry` while a want names its fingerprint, and goes
|
||||
after the want moves on.
|
||||
- §444 **The grants part derives each module's grants from the build placed.** The grants part derives each module's
|
||||
grants from the catalog graph's entry of the build its want names (heard by `wanted`), never from a branch's newest
|
||||
grants from the module graph's entry of the build its want names (heard by `wanted`), never from a branch's newest
|
||||
revision, so a change on a branch no placement names grants nothing. This amends §59 and §386. Why: §442; a grant
|
||||
follows what runs. How it is checked: the grants part's table test, a widening on a branch no placement names
|
||||
grants nothing, and the same widening once wanted is granted.
|
||||
|
||||
@@ -235,7 +235,7 @@ flowchart LR
|
||||
- §746 **One take-in is one pipeline.** (ADR 0682 §6; the operator, 2026-11-20 01:10 CET; ADR 0666 §1, §7, §9 read per
|
||||
source revision) On a `take-in.taken` with entries the runner starts exactly one pipeline, keyed `<branch>.<source>`
|
||||
by compare-and-set on its absence, whose movers are the event's entries. It asks each mover's pipeline steps in the
|
||||
catalog graph's build order (a mover's build waits for the `package-published` of each mover it has a "published
|
||||
module graph's build order (a mover's build waits for the `package-published` of each mover it has a "published
|
||||
before it builds" edge to, toolchain edges first), and computes the movers' delivery order in ADR 0666 §14's order as
|
||||
tiers (acting parts first, providers before their consumers; movers no edge orders share a tier). The pipeline passes
|
||||
when every mover's `required` steps passed, a `required` step ending `nothing to run` counting as passed (ADR 0682 §8; H-A-3), and
|
||||
|
||||
@@ -270,7 +270,7 @@ Where two preparers disagreed, the chosen one is named.
|
||||
marker goes: by the tool's name, the forms `<module>_first_views` and `<module>_first_view_again` that mesh-sdk's views
|
||||
already serve; no environment marker and no tool runner change. P7 (what exists over a new side channel).
|
||||
- **H-A-70 (contracts-indexer-bridge developer, 02:40)** `acts` stays everywhere as a declaration: it is what the
|
||||
catalog graph's kind-5 edge ("B has acted for A") is built from, and H-A-51 orders the pipeline's tiers by that edge.
|
||||
module graph's kind-5 edge ("B has acted for A") is built from, and H-A-51 orders the pipeline's tiers by that edge.
|
||||
So the `acts` entries of the seats mesh-catalog (take-in, validate), mesh-wants (place) and the build seats stay, as do
|
||||
`ActingRule` and `CatalogEntry.acts`; what goes is the hold and its wait: `bound` on the build seats' `acts` and every
|
||||
reader that waits or holds on an acting part (the builder's bound reader and its re-asks, the assigner's acting holds,
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
---
|
||||
layer: to-be
|
||||
design: 50
|
||||
milestone: resolver-fallback
|
||||
updated: 2026-11-24
|
||||
code: [mesh-catalog modules/systemd-resolved]
|
||||
decisions:
|
||||
- "ADR 0688"
|
||||
- "ADR 0247"
|
||||
- "ADR 0687"
|
||||
---
|
||||
|
||||
# Design 50, milestone resolver-fallback — while the mesh's resolvers are silent, a network's own servers answer
|
||||
|
||||
**What it builds.** On a machine where a module holds the node seat `node-resolver`, the resolver's guard gives the
|
||||
default route for names back to every link a network manager gave servers while none of the mesh's resolvers answers,
|
||||
and takes it again once one does, so a network's sign-in page loads before the private network's tunnel is up (ADR
|
||||
0688). The shape is the main file's [§3](../50-split-dns-on-a-machine-with-a-vpn-client.md#3-the-verbs-on-the-mesh-and-on-the-machine).
|
||||
This part holds every line the milestone built, cited as "design 50 resolver-fallback §n".
|
||||
|
||||
**Where.** One repository: mesh-catalog's `systemd-resolved`, version 0.2 (pull requests 704 and 752), under issue
|
||||
1981. It was decided by the operator on 2026-11-19, built before ADR 0688 wrote it down, and delivered to the laptop
|
||||
on 2026-11-24; this part records it as built. Design 08's milestone sign-in-page §7 adds the guard's third duty,
|
||||
`uplink-names`, in the same round.
|
||||
|
||||
## Lines
|
||||
|
||||
1. **The guard asks the mesh's resolvers itself, every round** (ADR 0688 §1). In each round the guard asks each of
|
||||
the mesh's resolvers, all at once, a name under the mesh's domain, straight over the network and not through the
|
||||
machine's own resolver, each within the config value `answer-within` (seconds, default 1), which the module places
|
||||
as `/etc/node-resolver/answer-within`, not trusted. A resolver that answers anything, a name not found included,
|
||||
answers; only silence does not.
|
||||
2. **A round** (ADR 0688 §2) comes every 5 s, or after `answer-within` when that is longer, since the guard waits for
|
||||
its question before the next round. A value above 5 s, raised for a slow link, makes every round that long.
|
||||
3. **While one answers, only the mesh's resolvers are a default route for names** (ADR 0688 §3, changing ADR 0247
|
||||
§16; ADR 0247 §9, §13). Each round the guard takes the default route for names from every link a network manager
|
||||
gave one, keeping that link's own domains.
|
||||
4. **While none answers, those links are a default route again** (ADR 0688 §1, §2, changing ADR 0247 §9 and §13).
|
||||
The guard gives the default route for names back to every link a network manager gave servers, and a network
|
||||
joined meanwhile keeps the one it was given; it never gives it to a link the verb `route` routed (a VPN's). Once one
|
||||
of the mesh's resolvers answers, those links lose it within one round. Which links to give back and take is read
|
||||
from resolved each round, never kept by the guard, so it holds after the guard restarts. The machine's own
|
||||
resolver keeps no public fallback servers of its own: the servers that answer meanwhile are the network's.
|
||||
5. **Both turns are said once each on the guard's journal** (ADR 0688, *Consequences*): "none of the mesh's resolvers
|
||||
answers; a network's own servers answer every name until one does" and "one of the mesh's resolvers answers
|
||||
again". The node's network check still says the mesh's names do not resolve while they are silent.
|
||||
6. **Its tests** (ADR 0688, *How it is checked*), unit, in the module's tools: the network's servers answer while the
|
||||
mesh's resolvers are silent, a routed link is left alone and a guard started afresh behind a sign-in page gives the
|
||||
links back (issue 1981's AC1); a network joined while the mesh is silent keeps its default route (AC2); an answer,
|
||||
a name not found included, answers and silence within `answer-within` does not (AC3); while the mesh answers, only
|
||||
its resolvers are a default route.
|
||||
7. **The live case** (issue 1981's AC4): on the laptop, on a network with a sign-in page, the guard's journal shows
|
||||
both turns of §5. It held on 2026-11-24 (the turn at 15:14:49 and back at 15:16:58, local time).
|
||||
@@ -7,10 +7,8 @@ code:
|
||||
- mesh-catalog modules/systemd-resolved (the resolver, its guard and its verbs)
|
||||
- mesh-catalog modules/forticlient (the VPN client's adapter)
|
||||
- mesh-host internal/compose/resolution, internal/network (the names check of the file, milestone resolver-wait)
|
||||
updated: 2026-11-24
|
||||
updated: 2026-11-12
|
||||
decisions:
|
||||
- "ADR 0688"
|
||||
- "ADR 0687"
|
||||
- "ADR 0247"
|
||||
- "ADR 0223"
|
||||
- "ADR 0241"
|
||||
@@ -50,7 +48,7 @@ another. A *routing domain* is a domain whose names a resolver sends to one link
|
||||
|
||||
| part | where | does |
|
||||
|---|---|---|
|
||||
| the seat `node-resolver` | the controller's set | a node seat, its verbs `routes`, `route`, `unroute` and, from ADR 0687 §2, `uplink-names`, required of every holder |
|
||||
| the seat `node-resolver` | the controller's set | a node seat, its verbs `routes`, `route`, `unroute`, required of every holder |
|
||||
| the stepping back | the controller's composition | where a module holds `node-resolver` and renders `/etc/resolv.conf`, the uplink holder's rendering of it is left out |
|
||||
| `systemd-resolved` | the catalog | holds the seat, provides `split-dns` at the machine's reach, writes the file and resolved's drop-in, runs the guard |
|
||||
| the guard | `systemd-resolved`'s process, as root | keeps the file the module's, keeps an outside write, serves the verbs on the machine's socket |
|
||||
@@ -96,18 +94,8 @@ serve the machine's modules, so what a VPN pushed never crosses the bus. On the
|
||||
answers the write standing now, and `route` can also `take` it.
|
||||
|
||||
The routes are resolved's own per-link state, which resolved forgets when the link goes. The module keeps
|
||||
no table beside it. **While one of the mesh's resolvers answers, a link with servers of its own is no default
|
||||
route for names**: the guard takes it from every link a network manager gave one, each round, keeping the link's
|
||||
own domains. **While none answers, a network's own servers answer every name** (ADR 0688, changing ADR 0247 §9, §13
|
||||
and §16): the guard gives that route back to those links, never to a link `route` routed, so a network's sign-in
|
||||
page loads before the private network's tunnel is up. Both are the guard's, written in the milestone part
|
||||
[resolver-fallback](50-milestones/resolver-fallback.md); the guard's third duty, `uplink-names`, follows.
|
||||
|
||||
**`uplink-names`** (ADR 0687 §2, changing ADR 0247 §10 and §16) gives the link that carries the default route a few
|
||||
host names to answer through its own servers, beside its own domains: the network manager's connectivity check's
|
||||
host, so the check resolves through the network it tests. It names no link and no servers, is served on the mesh
|
||||
only, and the guard applies the names every round to whichever link carries the default route then. Its lines are
|
||||
design 08's milestone part [sign-in-page](08-milestones/sign-in-page.md), §2 and §5 to §10.
|
||||
no table beside it. A link with servers of its own is never a default route for names: the guard says so
|
||||
to resolved every 5 s, whoever gave the link its servers. Its routing domains stay its own.
|
||||
|
||||
## 4. An outside write
|
||||
|
||||
@@ -144,8 +132,6 @@ resolver's hold, and is therefore raised. A VPN that tells resolved its link's D
|
||||
- The client's search domains route full names. They do not complete short ones.
|
||||
- A name no mesh resolver answers takes the file's total wait to fail on that machine: 6 s, about 4 s longer
|
||||
than before (ADR 0678).
|
||||
- While the mesh's resolvers are silent, the network's servers answer every name, a mesh name too, normally with
|
||||
"not found" (ADR 0688). A link slower than `answer-within` is taken for silent; the value is raised for it.
|
||||
- resolved down is no names on that machine. Its `unit` health, and the node-engine's names check against
|
||||
the address the file lists, say so.
|
||||
- resolved should take no servers from the resolver file, because its own are configured. The live test
|
||||
@@ -159,8 +145,6 @@ resolver's hold, and is therefore raised. A VPN that tells resolved its link's D
|
||||
| the own resolver module's manifest test: its file names one server, the machine's private address, with §2's options | ADR 0247 §6, ADR 0678 §1 |
|
||||
| the node-engine's test that composes the catalog's own resolver on a machine reads the options from the catalog's template, not a literal, and its names check bounds each ask by the file's `timeout:` | ADR 0678 §1 |
|
||||
| the test over every uplink's resolver file: both mesh resolvers, `timeout:1 attempts:2` | ADR 0678 §2, design 08 §2 |
|
||||
| the module's unit tests of the fallback: the network's servers answer while the mesh's resolvers are silent; a network joined meanwhile keeps its default route; an answer, a name not found included, answers and silence does not; while the mesh answers only its resolvers are a default route (resolver-fallback §6) | ADR 0688 |
|
||||
| live, on the laptop: the guard's journal shows both turns on a network with a sign-in page (resolver-fallback §7) | ADR 0688 |
|
||||
| live, on a machine holding `node-resolver`: at the next silence of its first mesh resolver no Go build step there fails on `i/o timeout` (milestone resolver-wait §5); a timed lookup waits for a read of resolved's own server switches (§4) | ADR 0678 §1 |
|
||||
| each phase's *Done when* below | ADR 0247 |
|
||||
|
||||
@@ -172,8 +156,6 @@ resolver's hold, and is therefore raised. A VPN that tells resolved its link's D
|
||||
| B — the resolver | mesh-catalog `systemd-resolved` | the module, its guard and verbs | its tests pass; assigned to every machine that runs the VPN client's module, each one's file names its own address, `routes` answers |
|
||||
| C — the adapter | mesh-catalog `forticlient` | `split-dns` required; the adapter | its tests pass; on the laptop, connected, a company name and a mesh name both resolve and no rewrite stays raised |
|
||||
| resolver-wait | mesh-catalog `systemd-resolved`, `mesh-host` | design 50 §2's options (ADR 0678), under issue 1748; its part is [`50-milestones/resolver-wait.md`](50-milestones/resolver-wait.md) | its tests pass; *How it is checked*'s live row holds |
|
||||
| resolver-fallback | mesh-catalog `systemd-resolved` | the network's own servers answer while the mesh's resolvers are silent (ADR 0688), under issue 1981, built as the module's version 0.2; its part is [`50-milestones/resolver-fallback.md`](50-milestones/resolver-fallback.md) | delivered to the laptop 2026-11-24; *How it is checked*'s live row held that day |
|
||||
| sign-in-page (design 08's) | mesh-networking, mesh-catalog `systemd-resolved` | `uplink-names` and the guard's new duty (ADR 0687 §2), under issue 960; its part is [`08-milestones/sign-in-page.md`](08-milestones/sign-in-page.md) | its tests pass; design 08's acceptance test 1 holds |
|
||||
|
||||
## As built
|
||||
|
||||
|
||||
Reference in New Issue
Block a user