Design 47 H2b, H2c, H2d: answer the four reviews' round-3 findings and write H-A-811 to H-A-813, so each release's part is buildable whole within 60 KB

H2c's second file becomes release H2d (H-A-812), with its own opening, row,
modules and acceptance test 123. H2b gains §872 (the take-in names a set-aside
word's need), the keeper's kept-stream durables (§836 5.), ids that name the
write and removals kept before they are said (§832), the three StartUntilBound
callers and the hooks that replace live (§836). H2c's §858 5. writes the
operator's answer on a higher form; H2d's §867 lets a cancel end any node's
act. H2b's history moves to H-deliver's background to keep the part within
its bound.
This commit is contained in:
2026-11-27 01:15:00 +01:00
parent c05f8e62da
commit 6efff96810
7 changed files with 696 additions and 545 deletions
+4 -2
View File
@@ -1156,8 +1156,10 @@ becomes a message). **Decided by** ADR 0227, 0231, 0240, 0252, 0283, 0564, 0668.
it writes that data; a declaration naming none is form 0 (design 47 G §295). Of a seat value: a number the seat's
definition names for a value its verbs answer or its events carry, raised when the value's layout changes. A reader
declares the form it decodes, `reads-form`, on its `consumes` or `invokes` entry; a writer that raises it is
delivered after those readers, and `validate` refuses a raise while a reader declares a lower form or none, so no
reader refuses a form at its decode (ADR 0666 §14; design 47 H §858). Not a **form-only version** of a record.
delivered after those readers, and `validate` refuses a raise while a reader declares a lower form or none. A value
carries its form in its message's header `x-form`, and a reader that meets one above its own refuses it loudly,
raising `form-unread`, as a reader on a machine that was away does until its new build runs (ADR 0666 §14; design 47
H §858; H-A-811). Not a **form-only version** of a record.
## Connectivity — how nodes and modules reach one another
@@ -2080,8 +2080,9 @@ ADR 0667's checks, of milestone G itself:
once; a later pipeline carrying a mover at the version an earlier pipeline never wrote writes its want; a mover
with no version takes the version released at its fingerprint, whichever pipeline released it; an event the bus
refuses once is said once after, in its order, and a restart says again what the kept state implies under the
same ids, a `tier-late` refused before a restart being said before the `running`; and rows of the gate's record
unit tests and the indexer's: a `tier-late` after its `running` changes nothing. The
same ids, a `tier-late` refused before a restart being said before the `running`, and a removal refused before
a restart said from its mark; and rows of the gate's record unit tests and the indexer's: a `tier-late` after its
`running` changes nothing, and so does a `wanted` at a lower `want-revision`. The
node-engine's whole test: the bus module's and the backup holder's changed wants apply first, then by `rank`, its
own last. Live, after H2b's delivery: `assigner_written` holds no tier progress whose tier runs on every present
placing machine, and the first pipeline after it found `tier-late` has the next tier's wants written once that
@@ -2121,26 +2122,34 @@ ADR 0667's checks, of milestone G itself:
121. **A program hears every event it registers, from the newest on** (design 47 H §836 to §838). Unit rows of mesh-sdk's
event hub: a handler of a kept seat event hears it after `Start` alone; a pattern no stream carries raises
`events-unheard`, and the grants part's `durables-composed` after its durable is composed binds it and clears the
finding, the module's membership unchanged. The
teller's whole test: a widening `pipeline-ended` gives one message. The delivery view's whole test: a
finding, the module's membership unchanged. The bus module's whole test: a `source-moved` said on its kept stream
reaches the keeper. The teller's whole test: a widening `pipeline-ended` gives one message. The delivery view's whole test: a
`step-ended` refreshes its pipelines page. The grants part's unit test: a module whose processes all run once or on
a schedule gets no program durable. Live, after H2b's delivery: the first widening pipeline after the removal of
§837 gives the operator one widening message, and none comes for an older one; the pipelines page follows the
runner's next `step-ended`; and `durable-orphaned` names no durable of a module whose processes all run once or on a
schedule.
122. **A bundle moves with no tool runner restart, a whole-ledger repair is an act, and a recreate that empties
nothing asks nothing** (design 47 H §844, §867, §869, §870; ADR 0692). The tool runner's whole test: calls made
all through a bundle's reload are each answered, a module's file changed under it reloads that module alone, and a
new bundle that fails leaves the old one serving and raises `bundle-unloaded`; the node-engine's whole test: the
swap to a runner build that reads files and its revert each have every fixture tool answering within 30 seconds
of the new runner's start; the tool runner's whole test of a ledger of 3000 instances: a rebuild answers
`accepted` within a second, says its progress and its `repair-ended` names the counts, and a second one answers
`busy`; the indexer's: the gate's `consumes` of `repair-ended` gives the edge from the tool runner; the bus
module's whole test: a recreate whose settings keep everything raises no ask and says `recreated`, and one that
would empty something asks, naming what goes. Live, after H2c's delivery: a bundle's move on the operator's
desktop leaves the mesh MCP server answering throughout (the lead reports the move and the node-engine's journal showing no runner restart); the gate's next
start says its `lag` act's `repair-ended` in its journal before its start pass; and the next recreate of drifted
settings that keeps every message shows its act in the hand-act log and no ask in `operator-channel.asks`.
122. **A bundle moves with no tool runner restart, and a reader refuses a form above its own** (design 47 H §844,
§858, §870, §872; H-A-811). The tool runner's whole test: started from its per-module files, every fixture tool
answers within 30 seconds; calls made all through a bundle's reload are each answered, a module's file changed
under it reloads that module alone, a new bundle that fails leaves the old one serving and raises
`bundle-unloaded`, and `tools_bundle_reload` loads it again once its cause is gone; the node-engine's whole test:
for a runner build that reads files it composes the per-module files and an environment without them, for an older
build the environment, again on a revert, and a bundle's move rewrites one file and no unit; the indexer's: the
runner's entry with `tool-files`, taken in by H2b's indexer, carries its need; mesh-sdk's units: an event and an
answer whose `x-form` is above the reader's are refused and raise `form-unread`. Live, after H2c's delivery: a
bundle's move on the operator's desktop leaves the mesh MCP server answering throughout (the lead reports the move
and the node-engine's journal showing no runner restart); and a reader on a machine back from away says
`form-unread` until its new build runs, where a raise met one.
123. **A whole-ledger repair is an act, and a recreate that empties nothing asks nothing** (design 47 H §867, §869,
§870; ADR 0692). The tool runner's whole test of a ledger of 3000 instances: a rebuild answers `accepted` within a
second, says its progress and its `repair-ended` names the counts, a second one answers `busy`, and a cancel asked
of another node's runner ends it `cancelled`; the indexer's: the gate's `consumes` of `repair-ended` gives the edge
from the tool runner; the bus module's whole test: a recreate whose settings keep everything raises no ask and says
`recreated`, one that would empty something asks, naming what goes, and a `restored` with `outcome` `done` clears
`recreate-lost` while a `failed` one keeps it. Live, after H2d's delivery: the gate's next start says its `lag`
act's `repair-ended` in its journal before its start pass; and the next recreate of drifted settings that keeps
every message shows its act in the hand-act log and no ask in `operator-channel.asks`.
## What retires
@@ -2241,7 +2250,7 @@ release reports the controller's code lines against research 063's baseline (acc
| 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) |
| 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); and, in H2b, a delivery that goes on once its tier found `tier-late` runs, no ask about a wait on an outside cause for a module that runs its wanted build, and a program that hears every event it registers (ADR 0691; design 47 H §824 to §838, §870, §871); and, in H2c, every other line earlier answers queued for H2b (ADR 0692, ADR 0693; design 47 H §839 to §869) | 110 to 122 | mesh-delivery, mesh-catalog, `mesh-host`, mesh-tools, mesh-sdk, mesh-contracts, hq | opened by each release's prepare |
| 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); and, in H2b, a delivery that goes on once its tier found `tier-late` runs, no ask about a wait on an outside cause for a module that runs its wanted build, and a program that hears every event it registers (ADR 0691; design 47 H §824 to §838, §870 to §872); and, in H2c, every other line earlier answers queued for H2b but H2d's (ADR 0693; design 47 H §839 to §859); and, in H2d, the pin changes, a whole-ledger repair as an act, `mesh_wait`'s time and a recreate that empties nothing (ADR 0692, ADR 0693; design 47 H §860 to §869) | 110 to 123 | 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
earlier row says so in words (the operator, 2026-10-26). Milestone M1 makes each row a record of the issue tracker
@@ -23,8 +23,8 @@ plan's section 4, and A-434 as a line. The wake-up rule (item 9) is one rule for
main file, *Every delivery part wakes on its inputs alone*; §762 here says which part moves onto it where. The
lines release H2b builds in the assigner, §824 to §835, are in H2b's own part,
[H2b-the-assigner-and-the-kept-events](H2b-the-assigner-and-the-kept-events.md), with §836 to §838 (H-A-804), so that
H2b's builders read one file whole; release H2c's lines are in [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md) and
[H2c-2-pins-repairs-and-recreates](H2c-2-pins-repairs-and-recreates.md).
H2b's builders read one file whole; release H2c's lines are in [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md),
and release H2d's in [H2d-pins-repairs-and-recreates](H2d-pins-repairs-and-recreates.md) (H-A-812).
### The want rule
@@ -53,7 +53,7 @@ before any code is written.
**Milestone H's part.** This file opens the part; its design lines (section 4's items as lines, numbered after G's
§733 and cited as "design 47 H §n") are in these files, each read whole, a release after H2 reading its own part
alone (H2b's one file, H2c's two):
alone (one file each for H2b, H2c and H2d):
- [H-1-the-merge-call-and-the-take-in](H-1-the-merge-call-and-the-take-in.md): the merge call, the gate's source
revision and record, the forge bridge's one message and the watchdog, the take-in, the step `validate`, one pipeline
@@ -65,12 +65,13 @@ alone (H2b's one file, H2c's two):
- [H2b-the-assigner-and-the-kept-events](H2b-the-assigner-and-the-kept-events.md): release H2b's part, read whole: a
delivery that goes on after `tier-late`, the wait on an outside cause of a module that runs its wanted build, the
assigner's owed events, its put and the version it pairs with a build (§824 to §835), the kept seat events and the
program durables (§836 to §838), and two lines H2c needs before its take-in (§870, §871).
- [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md): release H2c's first file: every other line an earlier answer
queued for H2b, and the lines of the lead's answers to its questions (§839 to §859).
- [H2c-2-pins-repairs-and-recreates](H2c-2-pins-repairs-and-recreates.md): H2c's second file: the pin specification's
program durables, the keeper's included (§836 to §838), and three lines H2c and H2d need before their take-in
(§870 to §872).
- [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md): release H2c's part: the lines an earlier answer queued for H2b
other than H2b's and H2d's, and the lines of the lead's answers to its questions (§839 to §859).
- [H2d-pins-repairs-and-recreates](H2d-pins-repairs-and-recreates.md): release H2d's part: the pin specification's
owed changes, a whole-ledger repair as an act, `mesh_wait`'s time and a recreate that empties nothing (§860 to
§869).
§869; H-A-812).
- [H-findings-of-the-live-runs](H-findings-of-the-live-runs.md): the findings of the live runs, a row each with its
milestone (this plan's section 10 until 2026-11-26, H-A-802).
- [H-3-corrections-and-what-retires](H-3-corrections-and-what-retires.md): the contradictions corrected in place, what
@@ -456,8 +457,9 @@ own pipeline), in this order, the next starting when the previous one's delivery
| H0 | the design says the one model whole (section 4) | hq, the knowledge base | the four reviewers by architectural domain approve the batch; the operator's four answers are in |
| H1 | the one chain works with no hand act (section 5) | `mesh-delivery`, `mesh-catalog`, `mesh-host`, `mesh-tools`, `mesh-sdk`, `mesh-contracts` | the two proofs of step 7 |
| H2 | the builder, the build modules and the registries follow the latest lines (section 3.4; versions, publish again, the floor, a step with nothing to run, a module with no registration) | mesh-delivery, mesh-catalog | a version is skipped by nothing; every registered module has a pipeline with steps |
| H2b | the assigner (the holder of the seat `mesh-wants`) goes on with a delivery whose tier ended `tier-late` once that tier runs, writes the want of a mover a later pipeline carries at the version its earlier pipeline never wrote, asks nothing about a wait on an outside cause for a module that runs its wanted build, writes each event before it says it and owes and says again every event the bus refused, puts the newest passed version, takes a fingerprint by 12 digits and pairs a version with the mover's own build (H §824 to §835; ADR 0691; H-A-775, H-A-777, H-A-801); and note 70's two faults fixed as kinds (H §836 to §838): a program's event hub hears every pattern it registers, woken by the grants part's `durables-composed` (mesh-sdk, every module with a program rebuilding once; the grants part), the never-bound durables go once, and a run-once or scheduled module has no program durable (the grants part) (H-A-776, H-A-804); and two lines H2c needs before its take-in: the edge "B runs a version that serves A" from a word or an event new at the revision (the indexer, H §870) and an unknown word set aside in every entry form (mesh-sdk's manifest decoder, H §871, H-A-810) ([H2b-the-assigner-and-the-kept-events](H2b-the-assigner-and-the-kept-events.md)); merged after H-A-808's fix of the indexer's take-in read | mesh-delivery (the assigner, the runner, the grants part, the indexer, the builder, the delivery view, the watchman), mesh-sdk, mesh-catalog (the gate `mesh-delivery-gate`, for §832 5.), mesh-contracts (the seat `mesh-grants`' event `durables-composed`), mesh-delivery-contracts (the seat `mesh-wants`' description) | a delivery whose tier ended `tier-late` goes on once that tier runs; `operator-channel.asks` holds no ask of a wait on an outside cause for a module that runs its wanted build; the teller says a widening after a pipeline and the delivery view's pipelines page follows the runner's events; `durable-orphaned` names no gitea durable |
| H2c | every other line an earlier answer queued for H2b (H-A-776, H-A-804; [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md) and [H2c-2-pins-repairs-and-recreates](H2c-2-pins-repairs-and-recreates.md), H §839 to §869): TypeScript mesh packages are edges at take-in (the indexer, `mesh-build-node`), a secret's change is judged by its digest (the node-engine), the forge module prunes (mesh-sdk's TypeScript package, gitea), the packet filter's whole test (`nftables`), the tool runner's purge row and its bundle served before the old one stops, from a file per module (`mesh-tools`, `mesh-host`), `node-files`' digest and attributes (`mesh-files`), the bus module's tools answer a refusal (`nats`), the hub's findings off its loop and a value or an answer over the bus's limit kept as an object (mesh-sdk), the integration count by tag (`mesh-build-go`), two new problems of `validate` (the manifest validator), `runner_reconcile` and `runner_keys` (the runner), two pull loops through the SDK (the watchman, the grants part), the indexer's recompute at a rules change, the decoder's table test, and a failed plan said once (the builder); a build withdrawn for a newer fingerprint ends `superseded` (ADR 0693 §3; the builder, the runner), `bridge_owed` reads one pull request's acts (the forge bridge), a reader declares the form of the seat value it reads, its writer is delivered after it and `validate` refuses a raise a reader would meet unordered (the indexer, the manifest validator, the contracts modules' seat definitions), the race detector where a manifest asks it (the indexer, the runner, `mesh-build-go`), the pin specification's seven owed changes, a go.mod's tidiness among them (the indexer, the runner, `mesh-build-go`), a whole-ledger repair as an act, one per ledger, its end written before it is said, with the gate's start pass waiting on its end (`mesh-tools`, mesh-sdk; the gate), `mesh_wait`'s `at` (`mesh-tools`), and a recreate that empties nothing asks nothing and one that finds a loss keeps its snapshot (ADR 0692; `nats`) | mesh-delivery (the indexer, the manifest validator, the runner, the builder, the grants part, the watchman, the forge bridge), mesh-sdk (Go and TypeScript), mesh-catalog (`mesh-build-go`, `mesh-build-node`, `nats`, `mesh-files`, `nftables`, gitea, the gate `mesh-delivery-gate` for §867), mesh-contracts (the seat `mesh-broker`'s event `recreate-failed`), the contracts modules (seat values' `form`), `mesh-tools`, `mesh-host` | a bundle's move restarts no tool runner; the gate's next start says its `lag` act's end before its start pass; a recreate that empties nothing raises no ask |
| H2b | the assigner (the holder of the seat `mesh-wants`) goes on with a delivery whose tier ended `tier-late` once that tier runs, writes the want of a mover a later pipeline carries at the version its earlier pipeline never wrote, asks nothing about a wait on an outside cause for a module that runs its wanted build, writes each event before it says it, its removals included, and owes and says again every event the bus refused under an id that names the write, puts the newest passed version, takes a fingerprint by 12 digits and pairs a version with the mover's own build (H §824 to §835; ADR 0691; H-A-775, H-A-777, H-A-801); note 70's two faults fixed as kinds (H §836 to §838): a program's event hub, and the bus module's keeper, hear every pattern they register, woken by the grants part's `durables-composed` (mesh-sdk, every module with a program rebuilding once; the grants part; the keeper), the never-bound durables go once, and a run-once or scheduled module has no program durable (the grants part) (H-A-776, H-A-804); and three lines H2c and H2d need before their take-in: the edge "B runs a version that serves A" from a word or an event new at the revision (the indexer, H §870), an unknown word set aside in every entry form (mesh-sdk's manifest decoder, H §871, H-A-810) and the need of each word the take-in set aside (the indexer, H §872, H-A-813) ([H2b-the-assigner-and-the-kept-events](H2b-the-assigner-and-the-kept-events.md)); merged after H-A-808's fix of the indexer's take-in read (see *H2b's background* below) | mesh-delivery (the assigner, the runner, the grants part, the indexer, the builder, the delivery view, the watchman), mesh-sdk, mesh-catalog (the gate `mesh-delivery-gate` for §832 5., the bus module `nats`'s keeper and `mesh-recovery` for §836), mesh-contracts (the seat `mesh-grants`' event `durables-composed`), mesh-delivery-contracts (the seat `mesh-wants`' description and `wanted`'s `want-revision`) | a delivery whose tier ended `tier-late` goes on once that tier runs; `operator-channel.asks` holds no ask of a wait on an outside cause for a module that runs its wanted build; the teller says a widening after a pipeline and the delivery view's pipelines page follows the runner's events; `durable-orphaned` names no gitea durable |
| H2c | the lines an earlier answer queued for H2b other than H2b's and H2d's (H-A-776, H-A-804, H-A-812; [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md), H §839 to §859): TypeScript mesh packages are edges at take-in (the indexer, `mesh-build-node`), a secret's change is judged by its digest (the node-engine), the forge module prunes (mesh-sdk's TypeScript package, gitea), the packet filter's whole test (`nftables`), the tool runner's purge row and its bundle served before the old one stops, from a file per module, with the tools that read and reload one module's bundle (`mesh-tools`, `mesh-host`), `node-files`' digest and attributes (`mesh-files`), the bus module's tools answer a refusal (`nats`), the hub's findings off its loop and a value or an answer over the bus's limit kept as an object (mesh-sdk), the integration count by tag (`mesh-build-go`), two new problems of `validate` (the manifest validator), `runner_reconcile` and `runner_keys` (the runner), two pull loops through the SDK (the watchman, the grants part), the indexer's recompute at a rules change, the decoder's table test, and a failed plan said once (the builder); a build withdrawn for a newer fingerprint ends `superseded` (ADR 0693 §3; the builder, the runner), `bridge_owed` reads one pull request's acts (the forge bridge), a reader declares the form of the seat value it reads, its writer is delivered after it, `validate` refuses a raise a reader would meet unordered, and a value carries its form in `x-form` and a reader refuses a higher one loudly (H-A-811; the indexer, the manifest validator, mesh-sdk, the contracts modules' seat definitions and generator), and the race detector where a manifest asks it (the indexer, the runner, `mesh-build-go`) | mesh-delivery (the indexer, the manifest validator, the runner, the builder, the grants part, the watchman, the forge bridge), mesh-sdk (Go and TypeScript), mesh-catalog (`mesh-build-go`, `mesh-build-node`, `nats`, `mesh-files`, `nftables`, gitea), the contracts modules (seat values' `form`), `mesh-tools`, `mesh-host` | a bundle's move restarts no tool runner; a reader back from away says `form-unread` until its new build runs |
| H2d | the lines of H2c's second file, a release of their own (H-A-812; [H2d-pins-repairs-and-recreates](H2d-pins-repairs-and-recreates.md), H §860 to §869): the pin specification's seven owed changes, a go.mod's tidiness among them (the indexer, the runner, `mesh-build-go`), a whole-ledger repair as an act, one per ledger, its end written before it is said, cancelled from any node, with the gate's start pass waiting on its end (`mesh-tools`, mesh-sdk; the gate), `mesh_wait`'s `at` (`mesh-tools`), and a recreate that empties nothing asks nothing, one that finds a loss keeps its snapshot, and `recreate-failed` is heard by the grants part (ADR 0692; `nats`, the grants part) | mesh-delivery (the indexer, the runner, the grants part), mesh-sdk, mesh-catalog (`mesh-build-go`, `nats`, the gate `mesh-delivery-gate` for §867), mesh-contracts (the seat `mesh-broker`'s event `recreate-failed`), `mesh-tools` | the gate's next start says its `lag` act's end before its start pass; a recreate that empties nothing raises no ask |
| H3 | the gate and the forge module carry only the one model; groups by the operator's answer; the forge module without its merge-check machinery | mesh-catalog, mesh-delivery | a group of two repositories delivers as one; every delivery record ends |
| H4 | every delivery part wakes on its inputs alone and is steered by its tools (sections 3.6, 7): the shared wake-up shape (mesh-config's full pass per event and its reads through module tools, the indexer's re-read after every verdict, the node-engine's retry clocks, the build modules' idle pull), the view and the watchman without reads of another part's state, the SDK's generic state tools with the fill against a cap, the missing tools per module, rates on the bus | `mesh-sdk`, `mesh-delivery`, `mesh-catalog`, `mesh-host` | the bus's slow consumers and behind counts at 0 for an hour; every module's tools pass the principle-4 table |
| H4b | the grants part says what it holds as events and reads nothing of another part's bus state (ADR 0596) | `mesh-delivery` | the grants part's own `filling` and `room` and no bucket watch in its code |
@@ -467,6 +469,50 @@ Milestone H1 is large for one release (six repositories); it is not cut (how-wor
at the prepare, one developer per repository on the larger model for the indexer and the gate (their parts meet at
`take-in.taken` and the source revision), the smaller model for the rest.
### H2b's background
Why H2b's lines were written, and the fix merged before it, moved here from H2b's part on 2026-11-27 so that the part
stays within 60 KB; nothing here is a line, and H2b's builders need none of it.
- **The fix merged before H2b.** H-A-808's small fix (playbook 08), on mesh-delivery main as #372: the running
indexer's take-in read set aside only an unknown top-level word and refused a nested one (`judge/rules.go`,
`withoutUnknownWords`), so a manifest with a new word inside a process or an artifact got no fingerprint and nothing
of its revision delivered (H-A-465 had fixed the top level only). The fix sets aside and names an unknown word at
any depth, as at the top, and the take-in says, once per module and fingerprint it takes in, one journal line naming
the module, its fingerprint and each word it set aside with its path: no finding, since a word set aside is the
normal state while a newer manifest form reaches an older indexer (H-A-809). It gives the word no need: the
indexer's `ModuleNeeds` names only a word its own model knows, which H2b's §872 changes (H-A-813). Its edge is the
indexer's own: the indexer takes in with the build it runs (ADR 0682 §4), so the fix runs on the indexer's machine
before the take-in of a revision whose manifests carry a nested new word, and H-A-808 has it delivered before H2b's
merge call. H2b's own lines add no manifest word; H2c's add `tool-files` in a process (§844), `race` in a Go
artifact (§859) and `reads-form` on an entry (§858, which §871 also needs). How it is checked: unit (the manifest
validator): a nested unknown word still gets a fingerprint and is named; unit (the index): a take-in of a manifest
with a nested unknown word says one line naming it.
- **After `tier-late` (§824 to §826).** The operator, 2026-11-26 about 21:16 CET, said yes to the lead's question:
replace the rule that a tier said `tier-late` stays ended (H-A-627 (3)), so that the assigner writes the next tier
once that tier runs, and a pipeline that carries a mover at an unchanged build writes that mover's want. Under the
old rule a `tier-late` end left every later tier unwritten for good. A later pipeline carrying the same build wrote
nothing either, because the assigner keeps a mover's end only for a newer version. So only `assigner_put`, one
placement at a time, recovered such a mover (issue 1984, notes 66 to 69). ADR 0682 §8 decides that a later mover's
want is written once the movers before it run, and that the end of a step's bound fails the pipeline and says so. It
decides nothing about a later tier once the tier past its bound runs. That case is the design's own, and the
operator answered it (H-A-775 places it in H2b). §826's case: one build of the watchman was released at one source
revision; its want was written for the pipeline of that source only, while two pipelines of the next source,
carrying the same fingerprint, each held their tier with nothing to end the hold.
- **The wait on an outside cause (§827 to §831).** ADR 0691 (accepted 2026-11-26) changes ADR 0677 §2 for a module
that runs its wanted build: no ask stands about it, and its wait costs nothing past its bound. It narrows G §706's
*The bound and the ask*. Issue 1984 note 68 found four faults in how the assigner keeps these waits, read in
mesh-delivery at its main of 2026-11-26. §828's case: on 2026-11-26, past an unanswered ask's bound, every pass armed
a wake for a time already past, and the assigner ran 59 passes back to back, each about 22 s, on the machine that
runs it, from about 20:35 to 20:56 CET.
- **The put and the version (§833, §835).** On 2026-11-26 `newest` would have put a never-passed 0.1.26 of one module,
and for six others a rebuild of the commit their pipeline checked. Three modules' kept ends paired the fingerprint
their pipeline checked with the version that a later rebuild of the same commit published, so their want would run
a build the pipeline never checked.
- **The kept seat events (§836, §837).** The teller has heard no `pipeline-ended` since 2026-11-13, and the view none
of its ten kept events. The teller's durable on `pipeline-ended` held 1241 pipeline ends since 2026-11-13, beside its
ends of `registration-changed` and `source-moved`; the view's ten durables held, among others, 44364 `step-ended`.
## 7. The guards, so it does not rot again
- **An integration test per module that starts it whole** against a real bus and store (ADR 0548), run in the one
@@ -20,131 +20,95 @@ decisions:
# 47, release H2b: the assigner after `tier-late`, the wait on an outside cause, its owed events, and the kept seat events
H2b is one release after H2 (H-A-775, H-A-776), split from H2c by the operator's answer of 2026-11-27 00:08 CET
(H-A-804) so that each release's part stays within playbook 02's 60 KB. It carries three things:
(H-A-804) so that each release's part stays within playbook 02's 60 KB. It carries the assigner's change (the holder
of the seat `mesh-wants`, `mesh-delivery-assigner`: §824 to §835, from the operator's yes of 2026-11-26 about 21:16
CET, ADR 0691, H-A-777, H-A-801 and issue 1984 notes 68 and 69); note 70's two faults, each fixed as a kind (§836 to
§838); and three lines releases H2c and H2d need before their take-in (§870 to §872, H-A-810, H-A-813). Every other
line queued for H2b is H2c's ([H2c-the-lines-h2-left](H2c-the-lines-h2-left.md)) or H2d's
([H2d-pins-repairs-and-recreates](H2d-pins-repairs-and-recreates.md)), delivered after H2b in that order. This file
is H2b's whole part, read alone; its lines are cited as "design 47 H §n", and §824 to §835 amend §750 and §751 of
[H-2](H-2-wants-builds-reads-and-tools.md). Why its lines were written, and the fix merged before it, are in
[H-deliver](H-deliver-the-delivery-system.md)'s *H2b's background*.
- **the assigner's change** (the holder of the seat `mesh-wants`, `mesh-delivery-assigner`): a delivery whose tier
passed `tier-bound` goes on once that tier runs, from the operator's yes of 2026-11-26 about 21:16 CET; the wait on
an outside cause of a module that runs its wanted build, from ADR 0691 and issue 1984 note 68; the assigner's owed
events (H-A-777, H-A-801); its put and the version it pairs with a build (note 69). These are §824 to §835;
- **the two faults of issue 1984 note 70, each fixed as a kind:** a program's event hub hears every pattern it
registers, and a module whose processes all run once or on a schedule has no program durable (§836 to §838);
- **two lines H2c needs before its take-in:** the indexer's edge from a word or an event new at the revision (§870),
and mesh-sdk's decoder setting an unknown word aside in every entry form (§871, H-A-810).
Every other line queued for H2b is release H2c's ([H2c-the-lines-h2-left](H2c-the-lines-h2-left.md),
[H2c-2-pins-repairs-and-recreates](H2c-2-pins-repairs-and-recreates.md)), delivered after H2b. This file is H2b's
whole part, read alone; its lines are cited as "design 47 H §n", and §824 to §835 amend §750 and §751 of
[H-2](H-2-wants-builds-reads-and-tools.md).
**Its modules** (principle 10): in mesh-delivery, the assigner; the runner (§835; its event hub call, §836); the
grants part (§836 2., §838); the indexer (its event hub call; §870); the builder (its event hub call); the delivery
view and the watchman (§832 5.); in mesh-sdk, the event hub (§836) and the manifest decoder (§871); in mesh-catalog,
the gate `mesh-delivery-gate` (§832 5.); in mesh-contracts, the seat `mesh-grants`' definition (§836 2.); in
mesh-delivery-contracts, the seat `mesh-wants`' description (§824 5.). Every module with a program rebuilds once for
§836, the build and delivery system's work (design-it-as-it-should-be).
## Before H2b's merge: an unknown word at any depth is set aside
Not a line of H2b: H-A-808's small fix (playbook 08) on mesh-delivery main. The running indexer's take-in read sets
aside only an unknown top-level word and refuses a nested one (`judge/rules.go`, `withoutUnknownWords`), so a manifest
with a new word inside a process or an artifact gets no fingerprint and nothing of its revision delivers (H-A-465
fixed the top level only). The fix sets aside and names an unknown word at any depth,
as at the top, and `ModuleNeeds` names its need `word:<path>` on the entry (H-A-682 (1)), so ADR 0614 §4's hold keeps
a want of that entry off a machine whose node-engine does not state the word. The take-in says, once per module and
fingerprint it takes in, one journal line naming the module, its fingerprint and each word it set aside with its path;
it is no finding, since a word set aside is the normal state while a newer manifest form reaches an older indexer
(H-A-809). Its edge is the indexer's own: the indexer takes in with the build it runs (ADR 0682 §4), so the fix runs
on the indexer's machine before the take-in of a revision whose manifests carry a nested new word. H2b's own lines
add no manifest word; H2c's add `tool-files` in a process (§844), `race` in a Go artifact (§859) and `reads-form` on
an entry (§858, which §871 also needs). H-A-808 has the fix delivered before H2b's merge call. How it
is checked: unit (the manifest validator): a nested unknown word still gets a fingerprint and is named, with its need;
unit (the index): a take-in of a manifest with a nested unknown word says one line naming it.
**Its modules** (principle 10): in mesh-delivery, the assigner; the runner (§835, §836); the grants part (§836 2.,
5., §838); the indexer (§836, §870, §872); the builder (§836); the delivery view (§832 5., §836) and the watchman (§832
5.); in mesh-sdk, the event hub (§836) and the manifest decoder (§871); in mesh-catalog, the gate
`mesh-delivery-gate` (§832 5.), the bus module `nats` (its keeper, §836 5.) and the recovery module `mesh-recovery`
(§836); in mesh-contracts, the seat `mesh-grants`' definition (§836 2.); in mesh-delivery-contracts, the seat
`mesh-wants`' definition (§824 5., §832 3.). Every module with a program rebuilds once for §836, the build and delivery
system's work (design-it-as-it-should-be).
## After `tier-late`: the delivery goes on
The operator, 2026-11-26 about 21:16 CET, said yes to the lead's question: replace the rule that a tier said `tier-late`
stays ended (H-A-627 (3)), so that the assigner writes the next tier once that tier runs, and a pipeline that carries a
mover at an unchanged build writes that mover's want. Under the old rule a `tier-late` end left every later tier
unwritten for good. A later pipeline carrying the same build wrote nothing either, because the assigner keeps a
mover's end only for a newer version. So only `assigner_put`, one placement at a time, recovered such a mover (issue
1984, notes 66 to 69). ADR 0682 §8 decides that a later mover's want is written once the movers before it run, and
that the end of a step's bound fails the pipeline and says so. It decides nothing about a later tier once the tier past
its bound runs. That case is the design's own, and the operator answered it (H-A-775 places it in H2b).
- §824 **A delivery whose tier passed `tier-bound` goes on once that tier runs.** (ADR 0682 §8, §9; H-A-56, H-A-75,
H-A-627, H-A-722, H-A-775, H-A-801; the operator, 2026-11-26 about 21:16 CET; principles 3, 4 and 7) This line replaces §751's
"the assigner writes no later tier" and H-A-627 (3)'s "a tier already said `tier-late` stays ended". It also amends
H-A-75 (1)'s "said once per pipeline". The assigner (the holder of the seat `mesh-wants`) judges each pipeline's tier
progress at every pass. The progress is the key `pipeline.<pipeline>` of its state `written` (H-A-56, H-A-627 (2)),
and it is judged in this order:
H-A-627, H-A-722, H-A-775, H-A-801; the operator, 2026-11-26 about 21:16 CET; principles 3, 4 and 7) This line
replaces §751's "the assigner writes no later tier" and H-A-627 (3)'s "a tier already said `tier-late` stays ended",
and amends H-A-75 (1)'s "said once per pipeline". The assigner (the holder of the seat `mesh-wants`) judges each
pipeline's tier progress, the key `pipeline.<pipeline>` of its state `written` (H-A-56, H-A-627 (2)), at every
pass, in this order:
1. **Running is read first.** A tier runs when every one of its movers runs at its fingerprint on every present
placing machine. This is §751's count, by the node-engine seat's `running`. A mover placed nowhere counts as run,
and so does a mover whose kept end names another fingerprint, since a later pipeline moved it on. A mover whose
kept end names its own fingerprint from another pipeline (§825, §826) is counted by its `running` like any other,
so the order inside this pipeline holds (ADR 0682 §9). When the tier runs, the assigner writes the next tier's
wants, and the next tier's progress starts with `since` and `clock-from` at that pass and no `paused-from`
(H-A-627 (2)), so its bound is counted afresh. After the last tier it says `pipeline-wanted` with `outcome`
`running`, its message id `pipeline-wanted.<pipeline>.<outcome>` as on main, so the two outcomes of one pipeline
never share an id, and deletes the key only once the bus has taken that event; a refused say is owed and said again by
§832, and the pass its say wakes deletes the key (today the key goes first and a refused say is lost). Both happen whether or not the tier was found past its
bound.
placing machine (§751's count, by the node-engine seat's `running`). A mover placed nowhere counts as run, and so
does one whose kept end names another fingerprint, since a later pipeline moved it on; one whose kept end names
its own fingerprint from another pipeline (§825, §826) is counted by its `running`, so the order inside this
pipeline holds (ADR 0682 §9). When the tier runs, the assigner writes the next tier's wants, whose progress starts
with `since` and `clock-from` at that pass and no `paused-from` (H-A-627 (2)), its bound counted afresh. After the
last tier it says `pipeline-wanted` with `outcome` `running`, its message id `pipeline-wanted.<pipeline>.<outcome>`
as on main, so the two outcomes never share an id, and deletes the key only once the bus has taken that event; a
refused say is owed and said again by §832, and the pass its say wakes deletes the key (today the key goes first
and a refused say is lost). Both happen whether or not the tier was found past its bound.
2. **Lateness is read only for a tier that does not run, and is written before it is said.** Such a tier is late
with no `paused-from` and the pass's time at or past `clock-from` plus `tier-bound`, as H-A-627 (2) has it. The
first time any tier of a pipeline is found late, the assigner does four things, in this order. It writes the
progress field `tier-late-at`, the pass's time in `since`'s form, by compare-and-set on the key. It raises the
finding `tier-late`. It says `pipeline-wanted` with `outcome` `tier-late`, on which the gate ends its record
`failed` (§738). Once the bus has taken that event, it writes `tier-late-said`, the time the bus took it, in the
same form; a refused say is owed and said again by §832, and the pass its say wakes writes the field. So a
progress key with `tier-late-at` and no `tier-late-said` holds a `tier-late` still to be said, whatever the
process remembers, and §832 4. says it at a start before any `running` of that pipeline (principle 3). Both
fields are carried into every later tier's progress and deleted with the key. When a later tier is found late
while `tier-late-at` stands, the assigner raises the finding again for that tier and says no second
`pipeline-wanted`. So `pipeline-wanted` is said at most twice for one pipeline: `tier-late` at most once, then
`running` once, when its last tier runs, never before the `tier-late` (§832 1.). A progress key the earlier
rule left standing holds neither field; it counts as said when the findings bucket holds a `tier-late` of its
pipeline: H2b's first pass writes both fields from that finding's time and says no `tier-late` again (read from
the bucket, H-A-722). That rule never reads a key that holds `tier-late-at`, so a `tier-late` the H2b assigner
raised and could not say is said again, never counted as said.
3. **The finding.** `tier-late` keeps its scope `delivery` and its id, the pipeline. Its summary names the tier and the
movers and machines not running. A mover with no version is named in §826's words. Its explanation drops "The
assigner writes no later tier of this pipeline; the delivery ends here." In its place it says: "The delivery
record ends failed. The assigner writes the next tier once this tier runs on every present placing machine." The
finding is written when a tier is found late and the findings bucket holds no `tier-late` of the pipeline naming
that tier. It is cleared at the pass that finds that tier running, or the pipeline no longer followed, which is
its progress key gone (7.; H-A-56, H-A-722). Both are read from the bucket, never from what the process remembers
it said.
4. **No pause after the bound.** A tier already found late writes no `paused-from`: the end of its bound was said, so
an ask that comes after it pauses nothing. Before the bound, H-A-627 (1) and (2) stand as written.
5. **The other parts are unchanged.** The gate keeps the record it ended `failed` on `tier-late` (§738, H-A-89 (4)).
It applies each later `running` to that record as H-A-585 has it. The later `pipeline-wanted` with `outcome`
`running` finds no open record there and changes nothing. The indexer frees nothing on `tier-late`, and it frees
on the later `running` as H-A-173 and H-A-174 say. Beyond the assigner, only the seat `mesh-wants`' definition
changes here (mesh-delivery-contracts): its description of `pipeline-wanted` says "said at most twice, `tier-late`
then `running`" where it says "said once" today. What its consumers keep when an event comes again is §832's.
with no `paused-from` and the pass's time at or past `clock-from` plus `tier-bound` (H-A-627 (2)). The first time
any tier of a pipeline is found late, the assigner, in this order, writes the progress field `tier-late-at` (the
pass's time in `since`'s form) by compare-and-set on the key, raises the finding `tier-late`, and says
`pipeline-wanted` with `outcome` `tier-late`, on which the gate ends its record `failed` (§738). Once the bus has
taken it, it writes `tier-late-said`, the time the bus took it, in the same form; a refused say is owed and said
again by §832, and the pass its say wakes writes the field. So a key with `tier-late-at` and no `tier-late-said`
holds a `tier-late` still to be said, whatever the process remembers, and §832 4. says it at a start before any
`running` of that pipeline (principle 3). Both fields go into every later tier's progress and are deleted with
the key. A later tier found late while `tier-late-at` stands raises the finding again for that tier and says no
second `pipeline-wanted`: it is said at most twice for one pipeline, `tier-late` at most once, then `running` once
when its last tier runs, never before the `tier-late` (§832 1.). A key the earlier rule left standing holds
neither field and counts as said when the findings bucket holds a `tier-late` of its pipeline: H2b's first pass
writes both fields from that finding's time and says no `tier-late` again (H-A-722). That rule never reads a key
that holds `tier-late-at`, so a `tier-late` the H2b assigner raised and could not say is said again.
3. **The finding.** `tier-late` keeps its scope `delivery` and its id, the pipeline. Its summary names the tier and
the movers and machines not running, a mover with no version in §826's words. Its explanation drops "The assigner
writes no later tier of this pipeline; the delivery ends here." and says instead: "The delivery record ends
failed. The assigner writes the next tier once this tier runs on every present placing machine." It is written
when a tier is found late and the findings bucket holds no `tier-late` of the pipeline naming that tier, and
cleared at the pass that finds that tier running or its progress key gone (7.; H-A-56, H-A-722), both read from
the bucket, never from what the process remembers it said.
4. **No pause after the bound.** A tier already found late writes no `paused-from`: its bound's end was said, so a
later ask pauses nothing. Before the bound, H-A-627 (1) and (2) stand.
5. **The other parts are unchanged.** The gate keeps the record it ended `failed` on `tier-late` (§738, H-A-89 (4))
and applies each later `running` to it as H-A-585 has it; the later `pipeline-wanted` `running` finds no open
record and changes nothing. The indexer frees nothing on `tier-late`, and frees on the later `running` (H-A-173,
H-A-174). Beyond the assigner, only the seat `mesh-wants`' definition changes here (mesh-delivery-contracts): its
description of `pipeline-wanted` says "said at most twice, `tier-late` then `running`" where it says "said once".
What its consumers keep when an event comes again is §832's.
6. **Read and steered.** `assigner_written` answers `tier-late-at` and `tier-late-said` with the progress, and its
description names both fields. The want's why `held-by-tier` (H-A-507) also says whether the tier its want waits on was found late. A tier
goes on by itself, on the `running` that completes it (H-A-256: the pass runs on the node-engine seat's
`running`). `assigner_put` stays the hand act for one placement.
7. **Who deletes the progress.** The assigner deletes the key `pipeline.<pipeline>` once its last tier runs (1.).
A key whose tier never runs (a version that never comes, §826 3.) stands, said by `tier-late`, until a later
description names both. The want's why `held-by-tier` (H-A-507) also says whether the tier it waits on was found
late. A tier goes on by itself, on the `running` that completes it (H-A-256). `assigner_put` stays the hand act
for one placement.
7. **Who deletes the progress.** The assigner deletes the key `pipeline.<pipeline>` once its last tier runs (1.). A
key whose tier never runs (a version that never comes, §826 3.) stands, said by `tier-late`, until a later
pipeline carries its movers (§825, §826 2.) or a person drops it: `assigner_progress_drop` (a pipeline and a
`why`, written in the hand-act log) deletes the key and clears its `tier-late`, and says no `pipeline-wanted`,
since the gate's record ended `failed` at `tier-late` (principle 4).
`why`, in the hand-act log) deletes the key, clears its `tier-late` and says no `pipeline-wanted`, the gate's
record having ended `failed` at `tier-late` (principle 4).
What exists today, and its fate: in the assigner's pass (`passer.tiers`), the branch that finds a tier late no longer
comes before the branch that writes the next tier. `passer.tierLate` no longer keeps the progress standing so that no
later tier is written. `passer.notRunning` skips a mover whose kept end names another pipeline; it skips only one
whose kept end names another fingerprint. The process's memory of what it said (`said`) no longer decides whether a finding or an event
was said once. Built in H2b (assigner). How it is checked: rows of the table of
comes before the one that writes the next tier; `passer.tierLate` no longer keeps the progress standing so that no
later tier is written; `passer.notRunning`, which skips a mover whose kept end names another pipeline, skips only
one whose kept end names another fingerprint; and the process's memory of what it said (`said`) no longer decides
whether a finding or an event was said. Built in H2b (assigner). How it is checked: rows of the table of
`TestAPipelinesWantsAreWrittenTierByTier` (assigner, in mesh-delivery), never a new top-level test function:
- a provider that runs at minute 45 under a 30-minute `tier-bound` raises `tier-late` and says `pipeline-wanted`
with `outcome` `tier-late` at minute 30; its consumer's want is written at minute 45; `pipeline-wanted` with
`outcome` `running` is said once the consumer runs;
- a second tier found late raises the finding naming that tier and says no second `pipeline-wanted`;
- a restart of the assigner between the two keeps `tier-late-at` and `tier-late-said`;
- a `tier-late` the bus refuses, then a restart, then the tier runs: the start pass says `tier-late` and then
`running`, under their ids, and a row of the gate's record unit tests given the two in that order ends the record
`failed`;
- a `tier-late` the bus refuses, then a restart, then the tier runs: the start pass says `tier-late`, then `running`,
under their ids, and a row of the gate's record unit tests given the two in that order ends the record `failed`;
- a progress key left by the earlier rule, with a `tier-late` in the bucket and neither field, says no second
`tier-late`;
- `assigner_progress_drop` deletes a key whose version never comes and clears its `tier-late`;
@@ -153,11 +117,11 @@ its bound runs. That case is the design's own, and the operator answered it (H-A
- §825 **A pipeline that carries a mover at the version its kept end names writes that mover's want, when the earlier
pipeline has not.** (ADR 0682 §8, §9; ADR 0684 §3; H-A-594 (3), H-A-643, H-A-775; the operator, 2026-11-26 about
21:16 CET, "a pipeline carrying a stranded mover at an unchanged build writes that mover's want"; principles 3 and 7)
This line amends §750's compare-and-set (G §352), under which the same version again writes nothing. The case it
answers: a later pipeline, started at the head by a take-in or by the runner's `start` (H-A-594 (3), H-A-643), passes
carrying movers at the same fingerprint and version as an earlier passed pipeline. If the earlier pipeline's tier
progress never reached their tier, the later pipeline wrote no want for them, and only `assigner_put` placed them.
The rule, on a passed `pipeline-ended`, for each mover with a version:
This line amends §750's compare-and-set (G §352), under which the same version again writes nothing: a later
pipeline, started at the head by a take-in or by the runner's `start` (H-A-594 (3), H-A-643), that passes carrying
movers at the same fingerprint and version as an earlier passed pipeline whose progress never reached their tier
wrote no want for them, and only `assigner_put` placed them. On a passed `pipeline-ended`, for each mover with a
version:
1. a version newer than the module's kept end is kept as today;
2. the same version is kept again, naming this pipeline's `pipeline`, `source`, `seq` and the mover's `rank` here,
when the kept end's pipeline still has a tier progress whose `tier` is below the kept end's `rank`. That means its
@@ -165,88 +129,80 @@ its bound runs. That case is the design's own, and the operator answered it (H-A
this pipeline's tier progress at its tier, and its want is written as §751 orders, naming this pipeline and rank;
3. in every other case (the earlier pipeline wrote the want, or its progress is gone), nothing is written, as today.
The earlier pipeline's progress then counts that mover by its `running` at that fingerprint (§824 1.), once the
later pipeline has written its want. The end is kept again by compare-and-set on the end it replaces. The journal says the module, the version, the pipeline the
end was kept from and the pipeline it now follows. `assigner_written` reads it (the end's `pipeline`), and so does
`assigner_why` (`passed-pipeline`, naming this pipeline). What exists today, and its fate: `pipelineEnds.take` keeps
The earlier pipeline's progress then counts that mover by its `running` at that fingerprint (§824 1.) once the later
one has written its want. The end is kept again by compare-and-set on the end it replaces; the journal names the
module, the version, the pipeline the end was kept from and the one it now follows; `assigner_written` reads it
(the end's `pipeline`), and so does `assigner_why` (`passed-pipeline`). What exists today, and its fate: `pipelineEnds.take` keeps
an end only for a newer version; that compare changes as above. Built in H2b (assigner). How it is checked: rows of
`TestAPipelinesWantsAreWrittenTierByTier`:
- a pipeline that carries a mover at the version a `tier-late` pipeline holds at its tier 2 writes that mover's want
in its own tier, and the earlier progress goes on once that mover runs;
- a pipeline that carries a mover whose want the earlier pipeline already wrote writes nothing;
- a pipeline carrying a mover at the version a `tier-late` pipeline holds at its tier 2 writes that mover's want in
its own tier, and the earlier progress goes on once that mover runs;
- one carrying a mover whose want the earlier pipeline already wrote writes nothing;
- live, after H2b's delivery, the runner's `start` for such a module ends with its want written on every placing
machine (acceptance test 113).
- §826 **A mover with no version holds its tier until a version of its fingerprint is released, in whichever
pipeline.** (H-A-270, H-A-273, H-A-277, H-A-490, H-A-773; ADR 0682 §8, §9; principles 3, 4 and 7) This line amends
H-A-277 (1). It answers two cases the design left open: a version that never arrives, and a version released at
another source than the pipeline's. The case: one build of the watchman was released at one source revision. Its
want was written for the pipeline of that source only, while two pipelines of the next source, carrying the same
fingerprint, each held their tier with nothing to end the hold.
1. **The version is read from the fingerprint.** The assigner hears every `version-released`, and each one wakes its
pass; the releases heard while a pass runs are judged together at the next one, never one pass per release (the
main file's *Every delivery part wakes on its inputs alone*, ADR 0682 §11). At that pass, for each mover that its tier progress marks `no-version`, the assigner looks up the version
released of that module's build at the mover's fingerprint, matched by its build's parts as H-A-490 matches it. The lookup
reads only what the assigner hears (the builds' ends and the releases) and makes no call. When a version is found,
whichever pipeline or source released it, the mover's end is kept as a passed mover's is (§750, §825), naming this
pipeline, and its `no-version` mark goes. The runner's `pipeline-ended` said again (H-A-270) stays the other way
the version arrives.
another source than the pipeline's.
1. **The version is read from the fingerprint.** The assigner hears every `version-released`, each waking its pass,
the releases heard while a pass runs judged together at the next (the main file's *Every delivery part wakes on
its inputs alone*, ADR 0682 §11). At that pass, for each mover its tier progress marks `no-version`, it looks up
the version released of that module's build at the mover's fingerprint, matched by its build's parts (H-A-490),
from what it hears (the builds' ends and the releases) with no call. When one is found, whichever pipeline or
source released it, the mover's end is kept as a passed mover's is (§750, §825), naming this pipeline, and its
`no-version` mark goes. The runner's `pipeline-ended` said again (H-A-270) stays the other way it arrives.
2. **A move is read before the hold.** A mover marked `no-version` whose kept end names another fingerprint counts
as run, since a later pipeline moved it on, as a versioned mover does (§824 1.). One whose kept end names its own
fingerprint takes that end's version by 1. and is counted by its `running`.
3. **A version that never arrives holds its tier.** The order of ADR 0682 §8 and §9 is never cut for it, and no
timer and no drop of the mover is added. Past `tier-bound` the tier is found late (§824). The finding names the
mover "<module>: no version released at <fingerprint>", beside the builder's finding `version-unreleased` where
the builder reserved a version (H-A-773). The tier goes on by 1. once the version is released (the builder's
`builder_publish_again` releases a published version whose release was lost, H-A-773), or by 2. once a later
pipeline carries the module (§825).
3. **A version that never arrives holds its tier.** ADR 0682 §8 and §9's order is never cut for it, and no timer and
no drop of the mover is added. Past `tier-bound` the tier is found late (§824), the finding naming the mover
"<module>: no version released at <fingerprint>", beside the builder's `version-unreleased` where it reserved a
version (H-A-773). The tier goes on by 1. once the version is released (`builder_publish_again` releases a
published version whose release was lost, H-A-773), or by 2. once a later pipeline carries the module (§825).
What exists today, and its fate: `passer.notRunning` counts a `no-version` mover as not running before it reads
whether a later pipeline moved it on. `startTiers` marks a mover versioned only from a `pipeline-ended` that names its
version. Both change as above. Built in H2b (assigner). How it is checked: rows of `TestALateMoverHoldsItsTier`
(assigner, in mesh-delivery):
- a mover with no version, whose fingerprint's version is released under another source, is taken at the next pass,
- a mover with no version, whose fingerprint's version is released under another source, is taken at the next pass
and its tier goes on;
- a `no-version` mover that a later pipeline moved on to another fingerprint counts as run;
- a mover whose version never comes holds its tier, is named in `tier-late` with its fingerprint, and its consumers'
- a `no-version` mover a later pipeline moved on to another fingerprint counts as run;
- a mover whose version never comes holds its tier, named in `tier-late` with its fingerprint, and its consumers'
wants are not written.
## The wait on an outside cause, for a module that runs its wanted build
ADR 0691 (accepted 2026-11-26) changes ADR 0677 §2 for a module that runs its wanted build: no ask stands about it, and
its wait costs nothing past its bound. It narrows G §706's *The bound and the ask*. Issue 1984 note 68 found four faults
in how the assigner keeps these waits today, read in mesh-delivery at its main of 2026-11-26. §828 to §831 write a
line for each fault where G §706 is silent.
ADR 0691 narrows G §706's ask (§827, §828); §828 to §831 each answer one of the four faults issue 1984 note 68 found
where G §706 is silent.
- §827 **A wait on an outside cause asks the operator only while its module does not run its wanted build.** (ADR 0691
§1; ADR 0677 §1, §2; G §700, §706, §717; H-A-55, H-A-627 (1); principles 3 and 7) A module runs its wanted build on M
by §751's count: the node-engine seat's last `running` for that module on M names the wait's fingerprint, which is
the want's, and does not say it stopped, whatever its health says. Every judging of the wait (G §706's *Judged again*)
reads it, and then:
by §751's count: the node-engine seat's last `running` for it on M names the wait's fingerprint (the want's) and
does not say it stopped, whatever its health says. Every judging of the wait (G §706's *Judged again*) reads it:
1. **Raised only while it does not run.** The ask (`about` `<node>.<module>.<fingerprint>`, its key
`outside.<node>.<module>.<fingerprint>` in the seat `mesh-wants`' state `asks`, G §717) is raised past
`outside-wait-minutes` from `clock-from` only while the module does not run its wanted build on M.
2. **Withdrawn when it comes to run.** When a judging finds the module running it while its ask stands, the assigner
first reads the ask's answer as G §700 and G §706 read it. An ask already answered ends the wait by its answer.
An unanswered one is withdrawn: the assigner deletes its key in `asks` (the teller withdraws the offer, as for
every deleted key of `asks`), and writes the wait's `ask` empty. The wait stands with its finding, and no
`wait-ended` is said, since the wait has not ended.
3. **Raised again at once when it stops running.** When a judging finds the module no longer running it past the
bound, the ask is raised at once. The bound is counted from the wait's first `clock-from` (ADR 0677 §2).
first reads the ask's answer (G §700, §706): an answered ask ends the wait by its answer; an unanswered one is
withdrawn, its key in `asks` deleted (the teller withdraws the offer, as for every deleted key of `asks`) and the
wait's `ask` written empty. The wait stands with its finding, and no `wait-ended` is said.
3. **Raised again at once when it stops running** past the bound, counted from the wait's first `clock-from` (ADR
0677 §2).
4. **The wait itself is unchanged.** It keeps `wait-held`, the finding `delivery-waits-outside` and every end of G
§706's *How it ends*: `healthy`, `cleared`, `own-failure`, `go-on` and `failed` (these two only by an answer or by
`assigner_release`), and `replaced`.
A module that does not run its wanted build keeps G §706's ask with both of ADR 0677 §2's answers, and its standing
ask still pauses its tier's count (H-A-627 (1)). G §706's "Past `outside-wait-minutes` from `clock-from`, the
assigner asks the operator" reads with 1. The journal says each withdrawal and each raise, naming the module, M, the
fingerprint and why. What exists today, and its fate: the ask that `outsideReview` makes past the bound (its
A module that does not run its wanted build keeps G §706's ask with both of ADR 0677 §2's answers, its standing ask
still pausing its tier's count (H-A-627 (1)); G §706's "Past `outside-wait-minutes` from `clock-from`, the assigner
asks the operator" reads with 1. The journal says each withdrawal and raise, naming the module, M, the fingerprint
and why. What exists today, and its fate: the ask that `outsideReview` makes past the bound (its
decision's `Ask`) and the raise in `outsideApply` read no `running`; both take this rule. Built in H2b (assigner).
How it is checked: rows of the table of `TestTheWaitOnAnOutsideCause` (assigner, in mesh-delivery), ADR 0691's rows
1 to 4 and 6 to 8:
- a module running its wanted build past the bound, with a cause open or on `conditions-unread`, keeps its finding
and has no ask;
- when the cause clears and its check passes, or the check still fails with no cause open, it ends as G §706 has
it, and no ask is raised;
- when the cause clears and its check passes, or the check still fails with no cause open, it ends as G §706 has it,
with no ask;
- a module not running its wanted build is asked at the bound;
- a standing ask is withdrawn when the module comes to run it;
- an ask is raised at once when the module stops running it past the bound;
@@ -254,109 +210,98 @@ line for each fault where G §706 is silent.
the node-engine reports running at its wanted build (acceptance test 120).
- §828 **The bound of a wait on an outside cause is a deadline only while it is still to come.** (ADR 0691 §2; ADR 0682
§11 and the main file's *Every delivery part wakes on its inputs alone*; G §706; issue 1984 note 68 (c); principle 1)
The assigner arms a wait's bound (`clock-from` plus `outside-wait-minutes`) on its one deadline timer only while two
things hold: that time is still to come, and the module does not run its wanted build on M (§827). At the bound the
ask is raised once, and nothing more is armed for that wait. For a module that runs its wanted build, nothing is
armed past the bound. A settle's end (`settle-ends`) is armed only while it is still to come. Past its bound, a wait
is judged again only on an input of G §706's *Judged again*, never on a timer. Those inputs are:
- a `condition-raised`, `condition-changed` or `condition-cleared` whose subject's `machine` is M or whose `also`
lists M, or the clearing of its cause's key;
- a `running` of that module on M, or a change of its have there;
- the kept call of `conditions` answered (ADR 0691's row 2);
- the teller's `ask-ended` for its ask, with the answer read from the router's record (G §700);
- a release by hand (`assigner_release`);
- the assigner's start.
The assigner arms a wait's bound (`clock-from` plus `outside-wait-minutes`) on its one deadline timer only while
that time is still to come and the module does not run its wanted build on M (§827). At the bound the ask is raised
once and nothing more is armed for that wait; for a module that runs its wanted build, nothing is armed past it. A
settle's end (`settle-ends`) is armed only while still to come. Past its bound, a wait is judged again only on an
input of G §706's *Judged again*, never on a timer: a `condition-raised`, `condition-changed` or `condition-cleared`
whose subject's `machine` is M or whose `also` lists M, or the clearing of its cause's key; a `running` of that
module on M, or a change of its have there; the kept call of `conditions` answered (ADR 0691's row 2); the teller's
`ask-ended` for its ask, the answer read from the router's record (G §700); `assigner_release`; the assigner's start.
The case: on 2026-11-26, past an unanswered ask's bound, every pass armed a wake for a time already past. The
assigner then ran 59 passes back to back, each about 22 s, on the machine that runs it, from about 20:35 to 20:56
CET. What exists today, and its fate: `outsideApply` arms the bound with `wakeAt` at every pass for every standing
What exists today, and its fate: `outsideApply` arms the bound with `wakeAt` at every pass for every standing
wait; it arms it only as above. Built in H2b (assigner). How it is checked: rows of `TestTheWaitOnAnOutsideCause`:
- ADR 0691's row 5: a module running past the bound, with nothing changed, is not judged again; a condition raised on
M, or a changed have, makes the assigner judge it again;
- a module not running past the bound arms nothing once its ask is raised, and the ask's lapse heard on `ask-ended`
raises it again;
- ADR 0691's row 5: a module running past the bound, nothing changed, is not judged again; a condition raised on M,
or a changed have, judges it again;
- a module not running past the bound arms nothing once its ask is raised, and its lapse heard on `ask-ended` raises
it again;
- the request counter mesh-sdk ships (the main file's rule) counts no pass while nothing changes.
- §829 **One read of a machine's conditions serves every wait judged on that machine in one pass.** (G §706 *When it is
judged* and *When the keeper does not answer*; ADR 0677 §1; ADR 0668 §1; issue 1984 note 68 (b); principles 1 and 3)
G §706 reads M's conditions "at each judging" and does not say how the judgings of one pass share a read. Today the
first module judged on M takes the answer, and the next finds none. That module then waits on `conditions-unread`, a
cause that no `condition-cleared` ever ends. So:
1. **One answer serves the whole pass.** The answer of M's read is kept in the process for the whole pass that first
takes it, and every wait or failing check judged on M in that pass is judged by it. A later pass's judging reads
again, but at a settle's end (4.). This is how G §706's "read at each judging, never kept as a copy from the
events" reads. What is kept, per machine and in the process alone: the newest answer of M's read and the time it
was received, replaced by each new answer, and the time of the last `condition-raised`, `condition-changed` or
`condition-cleared` naming M heard after it. Nothing of it is kept on the bus, so after a restart there is none,
and a settle's end then starts a read (4.).
2. **One read at a time.** While a read of M is in flight, no second read is started. Every module judged on M then
waits on `conditions-unread`. The answer, when it comes, marks every wait on M to be judged again at the next pass,
not only the module whose judging started the read.
first module judged on M takes the answer, and the next finds none and waits on `conditions-unread`, a cause no
`condition-cleared` ever ends. So:
1. **One answer serves the whole pass.** M's answer is kept in the process for the whole pass that first takes it,
and every wait or failing check judged on M in that pass is judged by it; a later pass reads again, but at a
settle's end (4.). So G §706's "read at each judging, never kept as a copy from the events" reads. Kept per
machine, in the process alone: the newest answer and when it was received, replaced by each new one, and the time
of the last `condition-raised`, `condition-changed` or `condition-cleared` naming M heard after it. Nothing of it
is on the bus, so after a restart a settle's end starts a read (4.).
2. **One read at a time.** While a read of M is in flight no second one starts, and every module judged on M waits on
`conditions-unread`. The answer marks every wait on M to be judged again at the next pass, not only the one whose
judging started the read.
3. **A decided record reads nothing.** A decided record (§830) starts no read and takes no answer.
4. **A settle's end uses the newest answer.** At a settle's end (G §706: "past it with still none, the failure is the
delivery's"), the judgement is made by the newest answer for M kept by 1., when it was received after the failing
check and no `condition-raised`, `condition-changed` or `condition-cleared` naming M was heard after it. Otherwise
a read is started, and the move waits on `conditions-unread` meanwhile, as G §706 has it.
delivery's"), the newest answer kept by 1. judges, when it was received after the failing check and no
`condition-raised`, `condition-changed` or `condition-cleared` naming M came after it; otherwise a read starts and
the move waits on `conditions-unread` meanwhile (G §706).
5. **A failed read is said and asked again on an input.** A read the bus does not answer is waited out by the kept
call itself (ADR 0668 §1). A read answered with a failure or a refusal is said in the journal; M's waits stand on
call itself (ADR 0668 §1). One answered with a failure or a refusal is said in the journal; M's waits stand on
`conditions-unread`, and the next pass that judges a wait on M (on an input of G §706's *Judged again*) starts a
new read, never a timer, nor a paced read: that would change ADR 0691 §2 (H-A-803). The finding
`delivery-waits-outside` of such a wait names its way through in its words: `assigner_release` with `rejudge`.
new read, never on a timer nor paced, which would change ADR 0691 §2 (H-A-803). Such a wait's finding
`delivery-waits-outside` names its way through: `assigner_release` with `rejudge`.
What exists today, and its fate: `outsideActs.take` deletes M's answer at the first module judged ("one answer is
one judging"); `outsideReview` deletes M's mark to judge again for each module; a decided record calls `take`. All
three change as above. Built in H2b (assigner). How it is checked: rows of `TestTheWaitOnAnOutsideCause`:
- two failing modules on one machine judged in one pass, one of them a decided wait (the case of 2026-11-26), both
read one answer;
- a settle with no cause open ends `own-failure` by the answer read during it, never on `conditions-unread`;
- a read in flight, once answered, judges every wait on M;
- a settle's end after a restart starts a read, and one with a newer answer kept and no condition since uses it.
one judging"), `outsideReview` deletes M's mark to judge again for each module, and a decided record calls `take`;
all three change as above. Built in H2b (assigner). How it is checked: rows of `TestTheWaitOnAnOutsideCause`:
- two failing modules on one machine judged in one pass, one a decided wait, read one answer;
- a settle with no cause open ends `own-failure` by the answer read in it, never on `conditions-unread`;
- a read in flight, answered, judges every wait on M;
- a settle's end after a restart starts a read; one with a newer answer kept and no condition since uses it.
- §830 **A wait's state is said from its record, and a decided record lives until its fingerprint runs healthy or is
replaced.** (G §706 *How it ends* and *Its tools*; issue 1984 note 68 (a); principles 3 and 4) G §706 has
`assigner_waits` answer each wait's state without naming the states, and it says nothing of a record once its wait
`assigner_waits` answer each wait's state without naming the states, and says nothing of a record once its wait
ended.
1. **The state is derived, never kept.** `assigner_waits` derives `state` from the record at the read: `settling` (a
settle, with `settle-ends`), `waiting` (standing, no ask), `asked` (standing, with its ask's id), `ending:<how>` (an
end not yet said, §831) or `decided:<how>` (ended `go-on`, `failed` or `own-failure` at that fingerprint). The
record's kept field `state` goes. For a decided record, `on` and `since` are answered as the wait's last values,
beside `decided`.
end not yet said, §831) or `decided:<how>` (ended `go-on`, `failed` or `own-failure` at that fingerprint); the
kept field `state` goes. A decided record answers `on` and `since` as the wait's last values, beside `decided`.
2. **The decided record.** A wait that ended `go-on`, `failed` or `own-failure` keeps its record in the state `waits`
(key `<node>.<module>.<fingerprint>`) with `decided`, so that a check that goes on failing at that fingerprint on M
is not held again as a new wait. The assigner deletes the record at the pass that finds one of three things: the
module healthy at that fingerprint on M; a want of the module on M naming another fingerprint (`replaced`, not
said a second time, since the end was said); or the module no longer placed on M. `assigner_release` takes only an
undecided wait, as today; a decided record is dropped by hand with `assigner_wait_drop` (its key and a `why`,
written in the hand-act log), so the next failing check at that fingerprint on M is held as a new wait
(principle 4). Under §827, a decided record raises no ask and no finding.
(key `<node>.<module>.<fingerprint>`) with `decided`, so a check that goes on failing at that fingerprint on M is
not held again as a new wait. The assigner deletes it at the pass that finds the module healthy at that
fingerprint on M, a want of it on M naming another fingerprint (`replaced`, not said again, since the end was
said), or the module no longer placed on M. `assigner_release` takes only an undecided wait, as today; a decided
record is dropped by hand with `assigner_wait_drop` (its key and a `why`, in the hand-act log), so the next
failing check there is held as a new wait (principle 4). Under §827, a decided record raises no ask and no
finding.
What exists today, and its fate: `outside.Judge` sets `Decided` and never `State`, and `assigner_waits` (`doWaits`)
prints the kept `State`; both change as above. Built in H2b (assigner). How it is checked: rows of
`TestTheToolsReadAndReleaseAnOutsideWait` (assigner, in mesh-delivery):
- after a Go on, `assigner_waits` answers `decided:go-on`, and after `own-failure`, `decided:own-failure`;
- a settle answers `settling`, and a standing wait `waiting`, then `asked` past its bound;
- `assigner_waits` answers `decided:go-on` after a Go on, `decided:own-failure` after `own-failure`, `settling` for a
settle, and `waiting` for a standing wait, then `asked` past its bound;
- a decided record is deleted when the module runs healthy at that fingerprint, and when a want names another
fingerprint, with no second `wait-ended`;
- `assigner_wait_drop` deletes a decided record, and the next failing check is held as a new wait.
- §831 **A wait is decided only once its end was said.** (G §706 *How it ends*; issue 1984 note 68 (d); principle 3)
A wait's end, `wait-ended` with its `how`, is written before it is said, and said before anything of the wait goes.
The assigner first writes the record's field `ending` (the `how`) by compare-and-set, and then says `wait-ended`.
Only once the bus has taken it does the assigner do the rest: delete the ask's key and the finding
`delivery-waits-outside`, then write the record decided (for `go-on`, `failed` and `own-failure`, with `ending`
gone) or delete it (for `healthy`, `cleared` and `replaced`). While the say fails, the record keeps `ending`, and its
ask and finding stand. The failure is said in the journal, naming the module, M and the `how`. The end is owed and
said again by §832, and the pass its say wakes does the rest. A record with `ending` is not judged again and makes no
A wait's end, `wait-ended` with its `how`, is written before it is said, and said before anything of the wait goes:
the assigner writes the record's field `ending` (the `how`) by compare-and-set, then says `wait-ended`, and only once
the bus has taken it deletes the ask's key and the finding `delivery-waits-outside`, then writes the record decided
(`go-on`, `failed`, `own-failure`, with `ending` gone) or deletes it (`healthy`, `cleared`, `replaced`). While the
say fails, the record keeps `ending` and its ask and finding stand; the journal names the module, M and the `how`;
the end is owed and said again by §832, and the pass its say wakes does the rest. A record with `ending` is not judged again and makes no
`wait-held` (§832 4.), so a restart after the bus took the end and before the record's write says the end again,
never the wait (principle 3); `assigner_release` takes no record with `ending`, and an end the bus will never take
is dropped by `assigner_owed_drop`, which does the rest (§832 6.). The end's message id is
`<node>.<module>.<fingerprint>.ended.<how>.<clock-from>`, `clock-from` in `wait-held`'s id form, so the bus keeps
one message of an end said twice; it replaces today's id, which carries the time of each try. What exists today,
and its fate: `outsideApply` writes the decided record even when `outsideEnd` returned because `wait-ended` was not
said, so the end is never said and the ask and the finding stay; it writes the record only as above. Built in H2b
`<node>.<module>.<fingerprint>.ended.<how>.<clock-from>` (§832 3.), so the bus keeps one message of an end said
twice, where today's id carries the time of each try. What exists today, and its fate: `outsideApply` writes the
decided record even when `outsideEnd` returned because `wait-ended` was not said, so the end is never said and the
ask and the finding stay; it writes the record only as above. Built in H2b
(assigner). How it is checked: rows of `TestTheWaitOnAnOutsideCause`:
- with the say of `wait-ended` refused once, the record stays `ending:go-on` with its ask and finding;
- once §832 says the end, the pass it wakes removes the ask and the finding and writes `decided:go-on`, and the end is
on the bus once;
- a restart between the two keeps `ending`, and its start pass says `wait-ended` again under its id and no
`wait-held`;
- once §832 says the end, the pass it wakes removes the ask and the finding and writes `decided:go-on`, the end on
the bus once;
- a restart between the two keeps `ending`, and its start pass says `wait-ended` again under its id, no `wait-held`;
- a restart after the bus took `wait-ended` and before the record's write says the end again, then removes the ask
and the finding and writes `decided:go-on`.
@@ -365,195 +310,226 @@ line for each fault where G §706 is silent.
- §832 **An event the bus refuses is owed in order and said again, never dropped.** (H-A-777, H-A-801; principles 3, 4
and 11) This is one rule for every event the assigner says on the seat `mesh-wants`: `wanted`, `pipeline-wanted`,
`wait-held` and `wait-ended`.
1. **Owed in memory, in order.** When the bus refuses an event, or does not acknowledge it within the publish's own
bound, the assigner keeps it in its memory, never on the bus that refused it: the event, its subject, its body,
its message id, `first-owed`, `tries` and `next`. Events of one wait (its key `<node>.<module>.<fingerprint>` and
`clock-from`), of one pipeline (`pipeline.<pipeline>`) and of one want (`<node>.<module>`) are owed in the order
they were made: a later one is owed behind an earlier owed one and said only after it, so an owed `wait-held`
is never said after its `wait-ended`, nor a `tier-late` after its `running`.
1. **Owed in memory, in order.** An event the bus refuses, or does not acknowledge within the publish's own bound,
is kept in the assigner's memory, never on the bus that refused it: the event, its subject, body and message id,
`first-owed`, `tries` and `next`. Events of one wait (its key `<node>.<module>.<fingerprint>` and `clock-from`),
of one pipeline (`pipeline.<pipeline>`) and of one want (`<node>.<module>`) are owed in the order they were made,
a later one said only after an earlier owed one, so an owed `wait-held` is never said after its `wait-ended`, nor
a `tier-late` after its `running`.
2. **Said again, under the same id.** The assigner says the first owed event of each order again on its one deadline
timer at `next`, under its message id, fixed when it was first owed. The delay starts at `say-again-pace-first` (a
setting, a Go duration, default `2s`) and doubles at each try up to `say-again-pace-max` (default `1m`), in the
form of H-A-767's `view-reread-pace-first` and `view-reread-pace-max`. Once the bus takes it, the pass its say wakes
does what waited on it (§824, §831), and the next event of that order is said. The timer repeats the assigner's
timer at `next`, under the message id fixed when it was first owed, the delay starting at `say-again-pace-first`
(a setting, a Go duration, default `2s`) and doubling at each try up to `say-again-pace-max` (default `1m`), in
the form of H-A-767's `view-reread-pace-first` and `view-reread-pace-max`. Once the bus takes it, the pass its say
wakes does what waited on it (§824, §831), and the next of that order is said. The timer repeats the assigner's
own word and waits on no other part; ADR 0668 decides kept calls, not a refused publish, and this follows its
shape.
3. **The ids.** `pipeline-wanted.<pipeline>.<outcome>` (§824); `wait-held`'s `<node>.<module>.<fingerprint>.<on>.
<clock-from>` and `wait-ended`'s `<node>.<module>.<fingerprint>.ended.<how>.<clock-from>` (§831), `clock-from` in
RFC 3339 with nanoseconds, UTC; and `wanted`'s `wanted.<node>.<module>.<fingerprint>.<removed>.<revision>`, names
escaped as mesh-sdk's `keys.EscapeName` escapes them. `wanted`'s id loses the time of its say that it carries on
main, so that 4. says it again under the same id; its body's `at` stays.
3. **The ids name the write, never only its values.** `pipeline-wanted.<pipeline>.<outcome>` (§824); `wait-ended`'s
`<node>.<module>.<fingerprint>.ended.<how>.<clock-from>` (§831); `wait-held`'s
`<node>.<module>.<fingerprint>.held.<held-said>.<clock-from>`, `held-said` a count in the wait's record raised by
one in the compare-and-set that writes the record a new `wait-held` comes from, so an `on` back at an earlier
cause makes a new id; and `wanted`'s `wanted.<node>.<module>.<fingerprint>.<removed>.<want-revision>`, where
`want-revision`, a new field of `wanted`'s body in the seat `mesh-wants`' definition (mesh-delivery-contracts), is
the revision of the want's key in the state `wants` that the event says (for a removal, of the write it removes).
The body's `revision`, the assignment graph revision, moves with neither a put nor a passed pipeline, so a put of
F1, F0 and F1 again had one id twice; the new field is one no reader must know, so the seat's form stays.
`clock-from` is RFC 3339 with nanoseconds, UTC; names are escaped by mesh-sdk's `keys.EscapeName`. `wanted`'s id
loses the say's time it carries on main, so that 4. says it again under the same id; its body's `at` stays.
4. **A start says again what its kept state implies.** What was owed in memory is gone after a restart, so the
assigner's start pass says again, under the same ids and in each order's order, every event its kept state
implies: `pipeline-wanted` `tier-late` for a progress key with `tier-late-at` and no `tier-late-said` (§824 2.),
then `pipeline-wanted` `running` for one whose last tier runs (§824 1.); `wait-ended` for a record with `ending`
(§831); `wait-held` for every standing wait, which is a record with neither `ending` nor `decided`; and `wanted`
for every want written.
(§831); `wait-held` for every standing wait (neither `ending` nor `decided`) under its `held-said`; and per node
and module, the removal its mark holds, then `wanted` for the want written. **A removal is written before it is
said:** since it deletes the want's key, the assigner first writes the key `removal.<node>.<module>` of its own
state `written` (never `wants`, which the node-engines read), holding the fingerprint and the `want-revision` of
the write it removes, then deletes the want's key by compare-and-set on that revision, then says the removal, and
deletes the mark once the bus has taken it (or at `assigner_owed_drop`, 6.). A mark holds the newest removal of
its node and module, the one a consumer needs. At a start, a mark whose want's key still holds that revision has
the key deleted first.
5. **The window, and what a consumer keeps.** The bus drops a repeat of a message id within its stream's duplicate
window, 2 minutes (`duplicate_window`, the stream's default), and the pacing of 2. and the start of 4. go past it.
So each consumer of these events keeps the newest by id and order: a repeat of an id it applied writes what it
holds already; a `pipeline-wanted` `tier-late` of a pipeline whose `running` it applied changes nothing; and a
`wanted` at a `revision` below the one it holds for that node and module changes nothing. The assigner never says
a wait's `wait-held` after its `wait-ended` (1., 4.; §831), so a consumer of the wait events needs no rule beyond
the repeat. The consumers, as the manifests' `consumes` name them on main: the gate (`mesh-delivery-gate`, in
So each consumer keeps the newest by id and order: a repeat of an id it applied writes what it holds already; a `pipeline-wanted` `tier-late` of a pipeline whose `running` it applied changes nothing; and a
`wanted` at a `want-revision` below the one it holds for that node and module changes nothing. The assigner never
says a wait's `wait-held` after its `wait-ended` (1., 4.; §831), so a consumer of the wait events needs no rule
beyond the repeat. The consumers, as the manifests' `consumes` name them on main: the gate (`mesh-delivery-gate`, in
mesh-catalog) and the indexer hear `wanted` and `pipeline-wanted` (§738, H-A-89; §749, H-A-173); the delivery view
and the watchman hear `wait-held` and `wait-ended`. The teller hears none of the four. The prepare lists any other
consumer the manifests name at its read of main, and each takes this rule.
consumer the manifests name at its read of main, and each takes this rule. At the H2b assigner's first start the
consumers' earlier builds may get each `wanted` and `wait-held` once more under the new ids: the prepare reads on
main what each does with a body it applied already, and lists one that changes something as a disagreement for
the lead before develop (playbook 07, step 0b).
6. **Said when it stays owed, and steered by hand.** An event owed for `event-unsaid-after` (a setting, a Go
duration, default `5m`) is the assigner's finding `event-unsaid` (scope `delivery`), naming the event and since
when. Its id is the message id with each fingerprint as its key part (its 64 hex digits without `src2:`, G §670)
and each time as its Unix time in nanoseconds, made a key as every finding id of the assigner is, by the seat
`mesh-conditions`' key form (`assign.KeyID`), which writes a character a key may not hold as `_`, such as the `:`
of `on`'s `unreachable:<machine>`. It is cleared when
the event is said, and at every pass that finds its event no longer owed (after a restart, an event the start pass
did not owe again), read from the bucket (H-A-722). A pass makes no event whose id is owed already: the owed one
stands, so an order holds each id once. Three tools read and steer it (principle 4):
when. Its id is the message id with each fingerprint as its 64 hex digits without `src2:` (G §670) and each time
as Unix nanoseconds, made a key by the seat `mesh-conditions`' key form (`assign.KeyID`, a character a key may not
hold written `_`), as every finding id of the assigner is. It is cleared when the event is said, and at every
pass that finds it no longer owed (after a restart, one the start pass did not owe again), read from the bucket
(H-A-722). A pass makes no event whose id is owed already, so an order holds each id once. Three tools read and
steer it (principle 4):
- `assigner_owed` answers every owed event with its id, `first-owed`, `tries` and `next`;
- `assigner_owed_say` (an id) says the first owed event of that id's order now, its delay set back to
`say-again-pace-first`;
- `assigner_owed_drop` (an id and a `why`, written in the hand-act log) drops an event the bus will never take,
with every event owed behind it in its order. For each it does what the bus taking it would have done: for a
`pipeline-wanted` `tier-late`, it writes `tier-late-said`; for a `pipeline-wanted` `running`, it deletes the
progress key (§824 1., 2.); for a `wait-ended`, it does the rest of the wait's end (§831); a `wait-held` and a `wanted` leave nothing waiting. It
then clears the event's `event-unsaid`.
- `assigner_owed_drop` (an id and a `why`, in the hand-act log) drops an event the bus will never take, with every
event owed behind it in its order, doing for each what the bus taking it would have done: `tier-late` writes
`tier-late-said`, `running` deletes the progress key (§824 1., 2.), `wait-ended` does the rest of the wait's
end (§831), a removal deletes its mark (4.), and a `wait-held` or any other `wanted` leaves nothing waiting;
then it clears the event's `event-unsaid`.
What exists today, and its fate: `sayPipelineWanted`, `outsideApply` and `outsideEnd` write a journal line on a
refused say and drop it, or say it again only at a pass that something else wakes; each now owes it. Built in H2b
(the assigner; for 5., the gate, the indexer, the delivery view and the watchman). How it is checked:
- rows of the tables of `TestAPipelinesWantsAreWrittenTierByTier` and `TestTheWaitOnAnOutsideCause` (assigner, in
mesh-delivery), with a bus that refuses one publish and then takes it: the event is said once, under one message
id; a `wait-ended` made while its `wait-held` is owed is said after it; past `event-unsaid-after` `event-unsaid`
is written, and cleared once the event is said, or at the first pass after a restart that no longer owes it;
mesh-delivery), with a bus that refuses one publish and then takes it: the event is said once, under one id; a
`wait-ended` made while its `wait-held` is owed is said after it; past `event-unsaid-after` `event-unsaid` is
written, and cleared once the event is said or at the first pass after a restart that no longer owes it;
`assigner_owed_say` says an owed event at once; `assigner_owed_drop` of an owed `wait-ended` drops it and its
order, writes the record decided and removes its ask and finding; a restart says again each event the kept state
implies, under the same ids; a pass that would make an id already owed makes nothing;
order, writes the record decided and removes its ask and finding, of an owed `tier-late` writes `tier-late-said`,
and of an owed `running` deletes the progress key; a restart says again what the kept state implies, under the
same ids; a pass that would make an id already owed makes nothing; puts of F1, F0 and F1 say three `wanted` under
three ids, and an `on` going from A to B and back to A three `wait-held`; a removal refused, then a restart: the
start pass says it from its mark, and the last message on the want's subject is the removal;
- rows of the gate's record unit tests and of the indexer's tests of the wants it hears: a `tier-late` after its
`running` changes nothing, and a repeated id writes nothing new (acceptance test 113);
`running` changes nothing, a `wanted` at a lower `want-revision` changes nothing, and a repeated id, and a repeat
of an applied body under a new id, write nothing new (acceptance test 113);
- rows of the delivery view's and the watchman's tests of the waits they hear: a repeated `wait-held` and a repeated
`wait-ended` write nothing new.
`wait-ended`, under their id or a new one, write nothing new.
- §833 **`assigner_put`'s `newest` is the newest version whose pipeline passed.** (ADR 0682 §8; §750; issue 1984
note 69 (3); principles 3 and 4) With `version` `newest`, `assigner_put` puts the version that the module's kept end
names in the assigner's own state `written` (§750: the newest released version whose pipeline passed), with that
end's fingerprint. It never asks the indexer for the trunk's fingerprint. A module with no kept end is refused:
"no version of <module> passed a pipeline: name a fingerprint, or read assigner_written". The tool's description
says so. The case: on 2026-11-26 `newest` would have put a never-passed 0.1.26 of one module, and for six others a
rebuild of the commit their pipeline checked. What exists today, and its fate: `putTools.version` reads the
indexer's modules view for `newest`; it reads `written`. Built in H2b (assigner). How it is checked: a row of the
note 69 (3); principles 3 and 4) With `version` `newest`, `assigner_put` puts the version the module's kept end
names in the assigner's state `written` (§750: the newest released version whose pipeline passed), with that end's
fingerprint, and never asks the indexer for the trunk's. A module with no kept end is refused: "no version of
<module> passed a pipeline: name a fingerprint, or read assigner_written", as the tool's description says. What
exists today, and its fate: `putTools.version` reads the indexer's modules view for `newest`; it reads `written`. Built in H2b (assigner). How it is checked: a row of the
put tool's tests: with a kept end at 0.1.22 and a newer trunk build at 0.1.26 that passed no pipeline, `newest`
puts 0.1.22; a module with no kept end is refused with those words.
- §834 **`assigner_put` takes a fingerprint by its first 12 hex digits.** (issue 1984 note 69 (3); principle 4) The
description already promises this: "a fingerprint (src2: and 64 hex digits), or at least its first 12 hex digits".
A `version` of `src2:` followed by 12 to 63 hex digits is resolved to the one whole fingerprint of that module, among
the done builds the assigner hears (the builder's build ends, §750's world), that starts with those digits. No
match, or more than one, is refused, naming each match by its first 12 digits and its version. The whole
fingerprint is put, and the answer names it. Other tools show a fingerprint by those 12 digits, so the hand act
takes what the tools show (principle 4). What exists today, and its fate: `putTools.version` refuses all but the
description promises it: "a fingerprint (src2: and 64 hex digits), or at least its first 12 hex digits". A
`version` of `src2:` and 12 to 63 hex digits resolves to the one whole fingerprint of that module, among the done
builds the assigner hears (the builder's build ends, §750's world), that starts with them; none or more than one is
refused, naming each match by its first 12 digits and its version. The whole fingerprint is put and named in the
answer, so the hand act takes what the other tools show (principle 4). What exists today, and its fate: `putTools.version` refuses all but the
whole form, against its own description. Built in H2b (assigner). How it is checked: a row of the put tool's tests:
a 12-digit prefix puts the whole fingerprint; a prefix two builds share is refused, naming both.
- §835 **A mover's version is the one released from its own build.** (H-A-490; ADR 0682 §8; issue 1984 note 69 (3);
principle 3) A version is paired with a mover's fingerprint only when the release's parts (`version-released`'s
digests per artifact) are what that fingerprint's build made (its `build.ended`), matched as H-A-490 matches them.
The case: three modules' kept ends paired the fingerprint their pipeline checked with the version that a later
rebuild of the same commit published, so their want would run a build the pipeline never checked.
1. **The runner** (the holder of `mesh-pipeline-runner`, `mesh-delivery-pipeline`): on a `version-released`, it
writes the version onto a mover of a pipeline of that source only when the release's parts are what the mover's
own build step made at its fingerprint. A release of the same source and module at another fingerprint is no
version of that mover. The runner writes nothing on it, says so in its journal (module, version, the two
version of that mover: the runner writes nothing, says so in its journal (module, version, the two
fingerprints), and the mover keeps no version. What exists today, and its fate: `Hearer.Released` matches by
source and module alone.
2. **The assigner**: when it takes a passed mover's end (§750, §825, §826), it checks the version against the
release it heard of that fingerprint's build (`releasedOf`). A version of another build is not kept: the mover is
kept `no-version`, and §826 then finds its own version by its fingerprint. The journal names both.
release it heard of that fingerprint's build (`releasedOf`); one of another build is not kept, the mover kept
`no-version` for §826 to find its own version by its fingerprint, and the journal names both.
Built in H2b (the runner and the assigner, both in mesh-delivery). How it is checked: a row of the runner's
released tests: a release of a rebuild at the same source writes no version onto the earlier mover. A row of
`TestAPipelinesWantsAreWrittenTierByTier`: an end naming a rebuild's version is kept `no-version`, and then takes
released tests, a release of a rebuild at the same source writes no version onto the earlier mover; a row of
`TestAPipelinesWantsAreWrittenTierByTier`, an end naming a rebuild's version is kept `no-version` and then takes
the version released at its own fingerprint.
## The kept seat events, and a program durable no program reads
- §836 **A program's event hub hears every pattern it registers, or says each one it cannot.** (H-A-776, H-A-800;
issue 1984 note 70 (3); ADR 0635 §5; ADR 0682 §8, §11; A-397; principles 1 and 3) In mesh-sdk's event hub
(`process.EventHub`), today `Start` binds only the module's durable on EVENTS. A kept seat event
(`SEAT_<seat>_<event>`) is heard only if the program also calls `StartKept`, and nothing says when it does not; and
`StartUntilBound` tries again on a fixed 5-second timer. The teller and the delivery view are two instances of this
kind. The teller has heard no `pipeline-ended` since 2026-11-13, so the operator gets no widening message (G §335).
The view has heard none of its ten kept events, so its pipelines page is never refreshed by the runner's events
(H-A-467). So:
1. **One start binds everything it can.** `Start` binds the module's durable `<node>_<module>` on EVENTS, and the
module's durable on every kept seat event's stream that carries a registered pattern. `StartKept` goes, its work
folded into `Start`, and `StartUntilBound` goes with its 5-second timer.
issue 1984 note 70 (3); ADR 0635 §5; ADR 0682 §8, §10, §11; ADR 0363 §5; ADR 0686 §1; A-397; principles 1 and 3) In
mesh-sdk's event hub (`process.EventHub`), `Start` binds only the module's durable on EVENTS today; a kept seat
event (`SEAT_<seat>_<event>`) is heard only if the program also calls `StartKept`, and nothing says when it does
not; `StartUntilBound` tries again on a fixed 5-second timer. The teller (no widening message, G §335) and the
delivery view (its pipelines page never refreshed by the runner's events, H-A-467) are two instances; the bus
module's keeper is a third (5.). So:
1. **One start binds everything it can.** `Start` binds the module's durable `<node>_<module>` on EVENTS and on
every kept seat event's stream that carries a registered pattern; `StartKept` is folded into it, and
`StartUntilBound` goes with its timer. A new hook, `OnAllHeard(f)`, registered before `Start`, is told each time
the hub comes to hear every registered pattern (at `Start`, or at the bind of 2. that completes them), where a
part does what waits on its events being live, as `live` did (A-186). `OnBound` stays, told at each durable's
bind with the time the bus made it (today only EVENTS'), so a first view of a value a kept stream carries is
asked again when its durable is bound late (`views.Follower.ConsumerMade`).
2. **A stream not bound is bound when the grants part says it composed the module's durables, never on a timer.**
For each stream `Start` could not bind, the hub binds it again when the grants part says that it composed a
durable of this module: the new event `durables-composed` of the seat `mesh-grants`, on
`mesh.seat.mesh-grants.event.durables-composed.<node>.<module>`. The grants part says it once per module and pass,
after the last durable of that pass is made, for a pass in which it created a durable of that module on any
stream or added filters to one; both are said today only by its module event `asserted`, naming `consumer` and
`stream`. Its body names `node`, `module`, `at` and `durables`, each with its `stream` and `name`, so a hub that
hears it finds every durable it names made. The seat's definition (mesh-contracts,
`identity-and-access/seats/mesh-grants/seat.json`, and its generated contract `meshgrants`) declares the event
with that subject and body form and no `keep`: it is a wake, kept on no `SEAT_` stream of its own. The hub hears
it on a plain subscription to its own node's and module's subject, made before its first bind, so a durable
composed while a bind fails is heard; a wake missed is made good by the next one or by the program's next start.
It is the input `Start`'s comment already names (ADR 0682 §11). The seat is not among mesh-sdk's bootstrapped
definitions (`seatlist/bootstrap/`) and need not be: the hub's subscription reads no definition, and the grants
part says the event as the seat's holder, as it says the seat's `wait-held`. The grants part's module event
`membership-changed` stays as it is and wakes no hub: the grants part says it before it composes the durables of
the same pass, and a durable composed while a module's membership stays the same changes no membership. So
`durables-composed` replaces it as the wake H-A-800 names (principle 3). In H2b's own pipeline the grants part's
build runs before every program's: it holds the seat `mesh-grants`, which acts on the step `grant`, and §746 puts
acting parts first, so no H2b hub waits on a grants part that does not say the event.
3. **Every handler before the start.** A pattern registered after `Start` is refused with an error that names it.
Today the hub's comment says "register every handler, then Start once"; the refusal makes that a rule.
4. **What is not heard is said.** A registered pattern for which no stream is bound is said. The causes are: no
stream of the bus carries the pattern, the grants part composed no durable for the module there, or the bus
refuses the bind. The hub says it in a journal line naming the pattern, the stream and why. It also calls a new
hook, `OnUnheard(pattern, stream, why)`, which the process reader wires to its findings writer as H-A-90 wires
`OnUnhandled`. The writer raises the finding `events-unheard` (scope `module`, id `<module>.<node>`), naming each
pattern not heard, and clears it at the bind of 2. that hears them all. So no program holds a pattern it never
hears without it being said.
The hub binds each stream `Start` could not bind again on the seat `mesh-grants`' new event `durables-composed`,
on `mesh.seat.mesh-grants.event.durables-composed.<node>.<module>`. The grants part says it once per module and
pass, after the pass's last durable, for a pass that created a durable of that module on any stream or added
filters to one (both said today only by its module event `asserted`, naming `consumer` and `stream`). Its body
names `node`, `module`, `at` and `durables`, each with its `stream` and `name`. The seat's definition
(mesh-contracts, `identity-and-access/seats/mesh-grants/seat.json`, and its generated contract `meshgrants`)
declares it with that subject and body and no `keep`: a wake, on no `SEAT_` stream. The hub hears it on a plain
subscription to its own node's and module's subject, made before its first bind so that a durable composed while
a bind fails is heard; a wake missed is made good by the next or by the program's next start. No manifest's
`consumes` names it, and none needs to: a `consumes` entry asks the grants part for a durable (ADR 0363 §5), and
this is a plain subscription of the shared runtime (ADR 0686 §1), which every account may make (ADR 0682 §10),
and the input `Start`'s comment names (ADR 0682 §11). It reads no definition, so the seat need not be among
mesh-sdk's bootstrapped ones (`seatlist/bootstrap/`). The grants part's module event `membership-changed` stays
and wakes no hub: it is said before the pass composes its durables, and a durable composed while a membership
stays the same changes none (principle 3). A bind the bus refuses while the durable
stands gets no `durables-composed`: the hub binds again each stream not bound at the bus connection's reconnect,
an input of its own, and `events-unheard`'s words (4.) name the way through, the seat `node-service-manager`'s
`restart` of the module's unit. In H2b's own pipeline the grants part runs before every program: it holds the
seat `mesh-grants`, which acts on the step `grant`, and §746 puts acting parts first, so no H2b hub waits on a
grants part that does not say the event.
3. **Every handler before the start.** A pattern registered after `Start` is refused with an error that names it,
making the hub's comment ("register every handler, then Start once") a rule.
4. **What is not heard is said.** A registered pattern no bound stream carries (no stream carries it, the grants
part composed no durable there, or the bus refuses the bind) is a journal line naming the pattern, the stream and
why. A new hook, `OnUnheard(unheard)`, is told the patterns not heard with each stream and why whenever that list
changes, `Start` included, and an empty list once every pattern is heard, as `OnOverrun` is told.
The process reader wires it to its findings writer as H-A-90 wires `OnUnhandled`: the writer raises
`events-unheard` (scope `module`, id `<module>.<node>`), naming each pattern not heard, and clears it on an empty
list, read from the bucket (H-A-722), so a restarted program whose `Start` binds everything clears the finding an
earlier process raised.
5. **The bus module's keeper hears its kept seat events too.** The keeper (the bus module's process `nats-keeper`,
`nats` in mesh-catalog; ADR 0626 §1) uses no event hub: it hears its module's `consumes` through one durable on
EVENTS, `<node>_nats_<process>`, which the grants part composes (`keeperConsumer`) and its `hearer` binds. So it
never hears a consumed event kept on its own stream: `source-moved` lives on `SEAT_mesh-delivery_source-moved`,
where round 3's review read 177 of them in the durable `<node>_nats`, none delivered. The grants part
composes for the bus module's process, as for every other process (`processConsumer`, one heard durable per kept
stream, G A-340), a durable on each kept seat event's stream that carries a `consumes` of its module, named as
its durable on EVENTS. The keeper's `hearer` binds each with its one handler, says each it cannot as 4. says (its
journal, and `events-unheard` in its own `findings` state), and binds it again on its module's
`durables-composed` and at a reconnect (2.). `<node>_nats` is read by no program: §837 1.'s removal takes it, and
no pass makes it again, since `<node>_<module>` is composed only for a module with a program (§838) and the bus
module's one process has a `bus` of its own.
What exists today, and its fate: the teller's program calls `Start` alone, and the view's calls `StartUntilBound`
alone; both hear their kept events through this change, with no code change of their own. The assigner, the
builder, the indexer (its `hubStarter`) and the runner call `StartKept` today; each calls `Start` alone in H2b, its
`StartKept` call removed, since a module built against the new mesh-sdk does not compile with it (ADR 0573 §4).
Built in H2b (mesh-sdk, every module with a program rebuilding; the grants part and the seat `mesh-grants`'
definition in mesh-contracts, for 2.'s event; the assigner, the builder, the indexer and the runner, for their
calls). How it is checked:
- unit (mesh-sdk, the event hub): a handler of a kept seat event hears it after `Start` alone; a pattern that no
stream carries raises `events-unheard`, and the `durables-composed` said after its durable is composed binds it
and clears the finding, the module's membership unchanged; a durable composed while `Start`'s bind of it fails is
bound on the `durables-composed` that follows; no timer is armed; a `Handle` after `Start` is refused;
What exists today, and its fate: three programs call `StartUntilBound` on main, the runner and the recovery module
(`mesh-recovery`, in mesh-catalog) with their seat list's `EventsLive` as `live` and the delivery view with none;
each calls `Start` alone in H2b, the two registering `EventsLive` through `OnAllHeard`. The assigner, the builder,
the indexer (its `hubStarter`) and the runner drop their `StartKept` call; built against the new mesh-sdk, neither
call compiles (ADR 0573 §4). The teller calls `Start` alone and changes nothing. Built in H2b (mesh-sdk, every module with a program rebuilding; the grants part and the seat
`mesh-grants`' definition in mesh-contracts, for 2. and 5.; those six programs, for their calls; the keeper, for
5.). How it is checked:
- unit (mesh-sdk, the event hub): a handler of a kept seat event hears it after `Start` alone; a pattern no stream
carries raises `events-unheard`, and the `durables-composed` said after its durable is composed binds it, clears
the finding and tells `OnAllHeard` once, the membership unchanged; a durable composed while `Start`'s bind of it
fails is bound on the next `durables-composed`; a `Start` that binds every pattern clears an `events-unheard` an
earlier process raised; no timer is armed; a `Handle` after `Start` is refused;
- integration (mesh-sdk, ADR 0445 §2): the real-bus subtests of `TestTheHubBindsALateConsumerAndSaysItIsLive`,
which call `StartKept` and `StartUntilBound` on main, become its rows of `Start` binding a kept stream and of a
late durable bound on `durables-composed`, with no new test function;
- unit (the grants part): a pass that creates a durable of a module, or adds filters to one, says one
`durables-composed` for that module after it, naming each, whether its membership changed or not; a pass that
creates none says none;
`durables-composed` for it after, naming each, whether its membership changed or not, and a pass that creates
none says none; the bus module's process gets a durable on each kept stream its module consumes;
- a row of the bus module's whole test: a `source-moved` said on its kept stream reaches the keeper's handler, and
with that durable not yet composed the keeper says it unheard and binds it on the `durables-composed` that
follows;
- a row of the teller's whole test: a `pipeline-ended` carrying `widens` gives one message (G §335);
- a row of the delivery view's whole test: a `step-ended` refreshes the pipelines page (H-A-467).
- §837 **The backlog of a program durable never bound goes once, before its first bind.** (H-A-58; design 47 H §765;
H-A-472 twelfth addendum; ADR 0595 §4; principle 3) The grants part (the holder of the seat `mesh-grants`) composed
the teller's and the view's program durables on their kept streams, and no program ever bound them. The teller's
durable on `pipeline-ended` holds 1241 pipeline ends since 2026-11-13, beside its ends of `registration-changed` and
`source-moved`. The view's ten durables hold, among others, 44364 `step-ended`. Bound as they stand, they would
hand the teller every pipeline end since then, so the operator would get a burst of old widening messages: one per
module, branch and commit not said (G §335). H-A-58 and §765 settle it: a durable that a new program binds for the
first time starts at the newest message of its stream.
the teller's and the view's program durables on their kept streams, and no program ever bound them; bound as they
stand, they would hand the teller every pipeline end since 2026-11-13, a burst of old widening messages, one per
module, branch and commit not said (G §335). H-A-58 and §765 settle it: a durable a new program binds for the first
time starts at the newest message of its stream.
1. **The lead removes them once.** Before H2b's merge call, the lead removes every program durable `<node>_<module>`
on a `SEAT_` stream that has never delivered a message (its delivered stream sequence is 0) and has no pull
waiting on it (no program binds it now; a durable a running program binds on an empty stream is left). These
are the teller's three and the view's ten, and any other that the prepare lists from the bus module's consumer
read. The runner's durable on `SEAT_node-engine_running` looked the same on 2026-11-26, but was not read. The
removal uses the bus module's `nats_consumer_remove`, which removes a durable nobody ever read, whatever its
twin (H-A-472 twelfth addendum). Each removal carries a `why` that names this line and is written in the hand-act
log.
2. **The grants part makes them again from now.** At its next pass it composes each one again as it composes every
program durable, from the stream's end (the grants part's `create.go`, read by the review of round 1), whatever
the stream keeps per subject; a program that needs the current values of a stream kept last per subject (such
as `wanted`) takes them by its first view (mesh-sdk's `views`, ADR 0686 §1), never from a durable's backlog.
Each durable then holds only what is said from the removal on (H2b's own pipeline ends among them). The old
programs never bind these durables, so the time before the new ones run loses nothing.
3. **What the operator sees.** No widening message about a pipeline older than the removal. Those ends stay
readable on their streams for as long as the streams keep them.
waiting on it (no program binds it now; a durable a running program binds on an empty stream is left): the
teller's three, the view's ten, the bus module's `<node>_nats` (§836 5.) and any other the prepare lists from the
bus module's consumer read (the runner's on `SEAT_node-engine_running` looked the same on 2026-11-26, unread).
It uses the bus module's `nats_consumer_remove`, which removes a durable nobody ever read whatever its twin,
each removal with a `why` naming this line, in the hand-act log.
2. **The grants part makes them again from now.** At its next pass it composes each again as every program durable,
from the stream's end (its `create.go`), whatever the stream keeps per subject; a program that needs the current
values of a stream kept last per subject (such as `wanted`) takes them by its first view (mesh-sdk's `views`, ADR
0686 §1), never from a backlog. Each then holds only what is said from the removal on (H2b's own pipeline ends
among them); the old programs never bind them, so nothing is lost before the new ones run.
3. **What the operator sees.** No widening message about a pipeline older than the removal; those ends stay
readable on their streams as long as the streams keep them.
How it is checked:
- the lead quotes the bus module's consumer read before and after the removal;
@@ -562,24 +538,22 @@ line for each fault where G §706 is silent.
- §838 **A module whose only processes run once or on a schedule has no program durable.** (H-A-776; issue 1984 note
70 (4); H-A-472 second addendum; ADR 0635 §5; principle 7) The grants part composes `<node>_<module>` (its
`HasProgram`) only for a module that has an account of its own and a `process` resource without a `bus` of its own
that runs for the module's whole life. A process marked `run-once: true`, or one that carries a `schedule`, runs to
its end and never pulls a durable, so it counts for nothing here. What exists today, and its fate: `hasOwnProcess`
(the grants part, `internal/grants`) counts every `process` without a `bus`. gitea is the instance known: its two
run-once steps (`agent-teams` and `repositories`) make it count, so each pass made its three plain durables again
after every removal. Those durables are on EVENTS, `SEAT_git_branch-moved` and
`SEAT_mesh-pipeline-runner_step-ended`. The prepare lists, from the catalog's manifests, every module whose
processes all run once or on a schedule, and the plain durables each one holds. Once the grants part's H2b build
runs, the lead removes those durables once with `nats_consumer_remove` (H-A-472), each with a `why` naming this
line, and no pass makes them again. Built in H2b (the grants part, mesh-delivery). How it is checked:
that runs for the module's whole life: a process marked `run-once: true`, or carrying a `schedule`, runs to its end
and never pulls a durable, so it counts for nothing here. What exists today, and its fate: `hasOwnProcess` (the
grants part, `internal/grants`) counts every `process` without a `bus`; gitea is the instance known, its two
run-once steps (`agent-teams`, `repositories`) making each pass compose its three plain durables (on EVENTS,
`SEAT_git_branch-moved` and `SEAT_mesh-pipeline-runner_step-ended`) again after every removal. The prepare lists,
from the catalog's manifests, every module whose processes all run once or on a schedule, and the plain durables
each holds; once the grants part's H2b build runs, the lead removes them once with `nats_consumer_remove` (H-A-472),
each with a `why` naming this line, and no pass makes them again. Built in H2b (the grants part, mesh-delivery). How it is checked:
- unit (the grants part's records): a manifest whose processes are all run-once or scheduled declares no program,
and one with a long-running process without a `bus` declares one;
- live: after the removal, `durable-orphaned` names no durable of a module the prepare listed.
## What H2c and H2d need of the indexer and of mesh-sdk's decoder
## What H2c needs of the indexer and of mesh-sdk's decoder
Two lines H2c's own manifests and order need, built here because a revision is taken in by the indexer that runs at
its take-in (ADR 0682 §4; H-A-810).
Three lines the manifests and order of H2c and H2d need, built here because a revision is taken in by the indexer that
runs at its take-in (ADR 0682 §4; H-A-810, H-A-813).
- §870 **The indexer derives the edge "B runs a version that serves A" from a word and from an event new at the
revision.** (G §47, §49; ADR 0666 §14; ADR 0614 §2, §3, §4; ADR 0682 §4; H-A-682 (1), H-A-799 (2), H-A-810;
@@ -600,25 +574,43 @@ its take-in (ADR 0682 §4; H-A-810).
The runner computes the tiers from them as from every edge (§746), and `indexer_read_graph` answers each with its
kind and the word or event it comes from. What exists today, and its fate: the catalog graph's edges of kind 6 come
from `invokes` and `calls` (`catalog_edges.go`); these two derivations join them. Built in H2b (the indexer), as
H-A-810 builds §871: H2c needs the edge (the node-engine before the tool runner, §844 4.; the tool runner before
the gate, §867 7.), and a revision is taken in by the indexer that runs at its take-in (ADR 0682 §4), so built in
H2c it would order none of H2c's own movers (design-it-as-it-should-be: a gap is built before the change that
needs it). How it is checked: unit (the indexer's graph): a mover whose entry needs a word no base entry names gets
the edge from the node-engine mover, and one whose word a base entry names gets none; a consumer of an event its
emitter newly `emits` gets the edge from it, and one its emitter already emitted gets none; a cycle of a word edge
and an event edge is one tier.
H-A-810 builds §871: H2c needs the edge (the node-engine before the tool runner, §844 4.) and H2d too (the tool
runner before the gate, §867 7.), and built in either it would order none of its own movers, a revision being taken
in by the indexer that runs at its take-in (ADR 0682 §4; design-it-as-it-should-be). How it is checked: unit (the
indexer's graph): a mover whose entry needs a word no base entry names gets the edge from the node-engine mover,
and one whose word a base entry names gets none; a consumer of an event its emitter newly `emits` gets the edge
from it, and one its emitter already emitted gets none; a cycle of a word edge and an event edge is one tier.
- §871 **mesh-sdk's manifest decoder sets an unknown word aside in every entry form.** (H-A-810; H-A-465, H-A-808;
ADR 0682 §4; principle 3) The decoder of mesh-sdk's manifest model (`catalogue`) sets aside an unknown word of a Go
artifact and of a process and names it in the manifest's `SetAside()`, but refuses one in the long forms of an
`invokes` and a `requires` entry and in a `consumes` entry, which it decodes before it prunes (`manifest.go`, the
decode of those entries, and `optional_requirements.go`). It sets aside and names an unknown word in each of the
three forms as in the others, and the manifest then reads as it would without the word. The need: H2c's
`reads-form` sits on `consumes` and `invokes` entries (§858), and H2c is taken in by the indexer that runs H2b's
build (ADR 0682 §4). What exists today, and its fate: those three decodes refuse the word; they take the pruning.
Built in H2b (mesh-sdk, which every module with a program rebuilds for in H2b, §836). How it is checked: unit
(mesh-sdk's manifest model): an unknown word in each of the three forms is set aside and named, and the manifest reads
the same as without it.
`invokes` and a `requires` entry and in a `consumes` entry, which it decodes before it prunes (`manifest.go`,
`optional_requirements.go`). It sets aside and names one in each of the three forms too, and the manifest reads as
it would without the word: H2c's `reads-form` sits on `consumes` and `invokes` entries (§858), and H2c is taken in
by the indexer that runs H2b's build (ADR 0682 §4). What exists today, and its fate: those three decodes refuse the
word; they take the pruning. Built in H2b (mesh-sdk, which every module with a program
rebuilds for in H2b, §836). How it is checked: unit (mesh-sdk's manifest model): an unknown word in each of the
three forms is set aside and named, and the manifest reads the same as without it.
- §872 **The take-in names the need of each word it set aside.** (H-A-813; H-A-808, H-A-809; H-A-682 (1), (2);
H-A-569 (2), H-A-605 (4); ADR 0614 §4; ADR 0682 §4; principles 3 and 4) H-A-808's fix (mesh-delivery main, #372)
has the take-in set aside an unknown word at any depth and say it, but the entry gets no need for it: `ModuleNeeds`
(`judge/needs.go`, unchanged by #372) names a word only where the indexer's own model (`catalogue.ManifestReads()`)
names its path, and skips a key it does not know. So a word newer than the indexer that takes it in, as H2c's are
(`tool-files`, §844; `reads-form`, §858; `race`, §859), gets no need: ADR 0614 §4's hold holds nothing and §870 1.
writes no edge. So, at a take-in, for each word its read set aside (`SetAside()`), the indexer adds to the entry's
needs `word:<path>`, the path `SetAside()` names in the form `catalogue.ManifestReads()` gives one: no list index
(an entry of a list is read as the list) and no key of a map of the module's own names (a setting's, a
requirement's). So `build.artifacts[0].race` is `word:build.artifacts.race`, and a process's `tool-files` is
`word:resources.tool-files`. The assigner then holds a want of that entry on a machine whose node-engine does not
state the word (H-A-682 (2)), and §870 1. derives its edge. The rule raises `NeedsRules` to 2, the version of the
need rules each catalog revision carries (H-A-569 (2), H-A-605 (4)), so the first take-in after it derives every
unmoved entry's needs again. What exists today, and its fate: `ModuleNeeds` reads the manifest as above; it takes
the words set aside too. Built in H2b (the indexer), delivered before the manifests that carry such words (H2c on).
How it is checked:
- unit (the manifest validator): an entry with a set-aside nested word carries its need `word:<path>`, in that form,
and an entry whose every word the model knows carries the needs it carries today;
- a row of the assigner's hold tests: an entry with such a need is held on a machine whose node-engine's words lack
it, and its want is written on one whose words hold it.
## Questions this file leaves open
None. §870 is placed here by H-A-810's rule, a gap H2c needs built before it.
None. §870 to §872 are here by H-A-810's and H-A-813's rule, gaps H2c and H2d need built before them.
@@ -12,7 +12,7 @@ decisions:
- "ADR 0668"
- "ADR 0666"
- "ADR 0614"
- "ADR 0597"
- "ADR 0608"
- "ADR 0596"
- "ADR 0595"
- "ADR 0593"
@@ -25,21 +25,20 @@ decisions:
H2c is a release of its own after H2b (H-A-804, the operator's answer of 2026-11-27 00:08 CET). It carries every line
an earlier answer queued for H2b (H-A-776) other than the assigner's change and the two faults of issue 1984 note 70,
which are H2b's ([H2b-the-assigner-and-the-kept-events](H2b-the-assigner-and-the-kept-events.md), §824 to §838).
which are H2b's ([H2b-the-assigner-and-the-kept-events](H2b-the-assigner-and-the-kept-events.md), §824 to §838), and
other than §860 to §869, which are release H2d's
([H2d-pins-repairs-and-recreates](H2d-pins-repairs-and-recreates.md); H-A-812, 2026-11-27 00:45 CET, so that each
release's part is one file within playbook 02's 60 KB). This file is H2c's whole part, read alone, and its lines are
cited as "design 47 H §n".
This file and its second, [H2c-2-pins-repairs-and-recreates](H2c-2-pins-repairs-and-recreates.md) (§860 to §869),
hold H2c's lines, in two files so that each stays within playbook 02's 60 KB. H2c's builders read both whole, and
their lines are cited as "design 47 H §n".
**Its modules** (principle 10): in mesh-delivery, the indexer (§839, §852, §858, §859, §860, §862 to §864), the
manifest validator (§849, §858), the runner (§850, §853, §856, §860, §861), the builder (§855, §856), the grants part
and the watchman (§851), the forge bridge (§857), and each module whose daemon decodes its tools' asks (§854); in
mesh-sdk, its Go runtime (§847, §850; the manifest model, for §844's and §859's words; the `buscalls` forms of §867)
and its TypeScript package (§841); in mesh-catalog, `mesh-build-go` (§848, §859, §865, §866), `mesh-build-node`
(§839), `nats` (§846, §869), `mesh-files` (§845), `nftables` (§842), gitea (§841) and the gate `mesh-delivery-gate`
(§867 7.); `mesh-tools`, the tool runner (§843, §844, §867, §868); `mesh-host`, the node-engine (§840, §844, §845);
the contracts modules' seat definitions (§858); the seat `mesh-broker`'s definition in mesh-contracts (§869 2.); and
the manifests of the delivery repository (§859). §870 and §871, which H2c's order and manifests need, are H2b's.
**Its modules** (principle 10): in mesh-delivery, the indexer (§839, §852, §858, §859), the manifest validator (§849,
§858), the runner (§850, §853, §856), the builder (§855, §856), the grants part and the watchman (§851), the forge
bridge (§857), and each module whose daemon decodes its tools' asks (§854); in mesh-sdk, its Go runtime (§847, §850,
§858 5.; the manifest model, for §844's and §859's words) and its TypeScript package (§841); in mesh-catalog,
`mesh-build-go` (§848, §859), `mesh-build-node` (§839), `nats` (§846), `mesh-files` (§845), `nftables` (§842) and
gitea (§841); `mesh-tools`, the tool runner (§843, §844); `mesh-host`, the node-engine (§840, §844, §845); the
contracts modules' seat definitions and their generator (§858); and the manifests of the delivery repository (§859).
§870, §871 and §872, which H2c's order and manifests need, are H2b's.
The queue it carries:
@@ -52,17 +51,19 @@ The queue it carries:
(third addendum), H-A-456, H-A-464 with its addendum, H-A-465, H-A-466 and H-A-472 (second addendum), H2c's since
H-A-804.
- **The lead's answers to this file's questions,** H-A-778 to H-A-788 (round 2), H-A-791 to H-A-794 (round 3) and
H-A-795 to H-A-808 in [H2-lead-answers-6](H2-lead-answers-6.md), and two lines met on 2026-11-26, H-A-789 and
H-A-790.
- **The four reviews by architectural domain of rounds 1 and 2** (2026-11-26), with the lead's answers H-A-795 to
H-A-808 where a finding needed one; every other finding is answered in the line it concerns, citing what settles it.
- **Two records accepted on 2026-11-26:** ADR 0692 (a recreate that empties nothing asks nothing, §869) and ADR 0693
(a moved mover leaves its pipeline, running or waiting, §856, §860 and H §746, §748).
H-A-795 to H-A-813 in [H2-lead-answers-6](H2-lead-answers-6.md), the operator's answer H-A-811 among them (§858);
those that shape §860 to §869 (H-A-782, H-A-789, H-A-790, H-A-792, H-A-794 (2), (3), H-A-795, H-A-805, H-A-813's
cancel) are H2d's.
- **The four reviews by architectural domain of rounds 1 to 3** (2026-11-26 and 27), with the lead's answers H-A-795
to H-A-813 where a finding needed one; every other finding is answered in the line it concerns, citing what settles
it.
- **A record accepted on 2026-11-26:** ADR 0693 (a moved mover leaves its pipeline, running or waiting, §856 here,
§860 in H2d, and H §746, §748).
A queued item that needs no line is named in *What needs no line*, with the record or line that settles it, and an item
whose shape no record settles is in *Questions this file leaves open*.
**How these files count a row.** A row is cited by its number in the count of
**How this file counts a row.** A row is cited by its number in the count of
[H-findings-of-the-live-runs](H-findings-of-the-live-runs.md) (section 10 of the plan until H-A-802 moved it), with its
first words beside it in quotation marks. That count starts at the first row of its second table, the one the lead
added at 18:40 CET on 2026-11-20: row 1 is "Validate's base was read as the source number minus one". The sixteen rows
@@ -143,7 +144,7 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
- §844 **The tool runner serves a module's new tools bundle before it stops the old one, and learns of the move from
that module's own file.** (rows 41 ("A bundle reload of the tool runner") and 102 ("A restart of a node's tool
runner"); H-A-158, H-A-160, H-A-786, H-A-796; design 37 §3; G §590; principles 2, 3 and 7)
runner"); H-A-158, H-A-160, H-A-786, H-A-796, H-A-813; design 37 §3; G §590; principles 2, 3, 4 and 7)
1. **Make before break.** When it loads one module's new tools bundle, the tool runner (`mesh-tools`) starts the new
bundle and subscribes its subjects, then stops the old bundle's subscriptions that the new one no longer names,
and only then stops the old bundle. This is make before break, as H-A-160 has it for a re-serve. A subject both
@@ -178,8 +179,9 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
environment for one that does not. `tool-files` is a new word of a process resource, true or false, default
false: it enters mesh-sdk's manifest model (`catalogue`, which the node-engine and the manifest validator are
built with) and the manifest validator's schema. The hold is ADR 0614 §4's, as H-A-682 and H-A-808 have it,
with no tool-runner code in the assigner: the manifest validator's `ModuleNeeds` names the word's need
`word:<path>` on the runner's entry (H-A-682 (1)); the H2c node-engine, built with the model that holds the
with no tool-runner code in the assigner: H2c is taken in by the indexer that runs H2b's build (ADR 0682 §4),
whose model lacks the word, so its take-in sets the word aside and names its need `word:resources.tool-files` on
the runner's entry (§872, built in H2b, H-A-813); the H2c node-engine, built with the model that holds the
word, states it in the seat `node-engine`'s event `manifest-reads-changed` as every word it reads (G §590;
ADR 0614 §4); and the assigner holds the runner's want on a machine whose node-engine's words lack it (H-A-682
(2)).
@@ -188,6 +190,13 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
tool runner's, which acts on none; and §870 1., built in H2b, gives the edge "B runs a version that serves A"
from the node-engine to a mover whose word is new at the revision (G §47). On a machine between the two
applies, the old runner runs under the new engine with its environment as today.
5. **What it serves is read, and a load is asked again by hand.** Two tools of the tool runner read and steer 1.
and 2. (principle 4). `tools_bundles` answers, for each module whose file it reads, the version the module's
bundle entry names and since when it serves it, and, while that module's `bundle-unloaded` stands, the version
and the error of the load that failed. `tools_bundle_reload` (a module and a `why`, written in the hand-act log,
the seat `mesh-hand-acts`) loads that module's bundle again from its file by 1. and 2., as the watch does at the
file's change, and answers how the load ended; a module with no file is refused, naming it. So a load that
failed for a passing cause is asked again without a file change or a runner restart.
What exists today, and its fate: the node-engine rewrites `MESH_TOOL_MODULES` and `MESH_TOOL_ENV` in the runner's
unit environment at every bundle's move, so any bundle's move restarts the whole runner and, on the operator's
@@ -195,16 +204,21 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
the unit. The runner subscribes to no `running` event of the seat `node-engine` (read on mesh-tools main,
H-A-786), and none is added. Built in H2c (the tool runner; the node-engine; mesh-sdk's manifest model and the
manifest validator's schema, for 4.'s word; §870's edge is H2b's). How it is checked:
- whole (tool runner): calls made all through a bundle's reload are each answered; a subject both bundles name is
answered by the new bundle after the switch, and a call the old bundle took before it is answered by the old one;
a module's file changed under a running runner reloads that module alone, and every other module's verb answers
throughout; a new bundle that fails to subscribe leaves the old one serving and raises `bundle-unloaded`, cleared
by a good load;
- whole (node-engine): the swap from an older runner build to one with `tool-files`, and its revert: the runner's own
restart is the one stop, and every fixture module's tool answers within 30 seconds of the new runner's start (a
fixture of a few bundles; the runner's restart is the only one the swap makes); unit (node-engine): a bundle's
move rewrites that module's file and not the runner's unit;
- unit (the manifest validator): the runner's entry with `tool-files` names its need `word:<path>`;
- whole (tool runner): started from the files of 3. for a fixture of a few bundles, every fixture module's tool
answers within 30 seconds of its start; calls made all through a bundle's reload are each answered; a subject
both bundles name is answered by the new bundle after the switch, and a call the old bundle took before it is
answered by the old one; a module's file changed under a running runner reloads that module alone, and every
other module's verb answers throughout; a new bundle that fails to subscribe leaves the old one serving and raises
`bundle-unloaded`, cleared by a good load; `tools_bundles` answers each module's version and since when, and the
failed load while `bundle-unloaded` stands; `tools_bundle_reload` of a module whose load failed loads it once the
cause is gone and clears the finding, and writes its hand act;
- whole (node-engine), which composes and starts no unit (it applies compositions into a test directory): for a
runner build whose manifest's process carries `tool-files: true` it composes each module's file of 3. and a unit
environment without `MESH_TOOL_MODULES` and `MESH_TOOL_ENV`; for an older build, that environment and no files;
on a revert to the older build, the environment again and no files; on one bundle's move, that module's file
rewritten and the runner's unit unchanged (H-A-796's swap itself is proven live, below and in acceptance test
122);
- the need of 4.'s word at H2c's take-in is §872's row, in the indexer (H2b);
- live: on the first H2c machine, the mesh MCP server answers again within 2 minutes of the runner's move (row
102's silence for one load; the time read from the node-engine's journal and the lead's first answer after it),
and a later bundle's move on the operator's desktop leaves it answering throughout (acceptance test 122).
@@ -223,10 +237,11 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
person sees the refusal, not a timeout. Built in H2c (`nats`, in mesh-catalog). How it is checked: unit: a refused
creation answers its refusal within one try.
- §847 **The event hub writes no finding inside its event loop.** (row 57 ("Met again: the SDK's finding write");
H-A-90; principles 1, 3 and 11) The finding for an unhandled event (H-A-90), and §836's `events-unheard`, are handed
to the findings writer off the hub's event loop: the loop never waits on the bus for a finding. The hand-off keeps
only the newest raise or clear per finding key, so it holds at most one entry per key and is never full: a raise
followed by a clear of the same key before the writer takes it is written as the clear alone. Built in H2c
H-A-90; principles 1, 3 and 11) The finding for an unhandled event (H-A-90), §836's `events-unheard` and §858 5.'s
`form-unread` are handed to the findings writer off the hub's event loop: the loop never waits on the bus for a
finding. The hand-off keeps only the newest raise or clear per finding key, so it holds at most one entry per key
and is never full: a raise followed by a clear of the same key before the writer takes it is written as the clear
alone. Built in H2c
(mesh-sdk). How it is checked: unit (event hub): with the findings writer blocked, the loop goes on handling events,
and a hundred raises of one key are written as one.
- §848 **A level's test count is the tests that run only under its tag.** (row 58 ("Met again: the build node counts
@@ -285,7 +300,10 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
no catalog revision is kept and no gate is asked. It says each repository in its journal, and then records its own
fingerprint. It runs before the indexer binds its take-in consumer, so a `source-moved` heard meanwhile waits on the
bus and is taken after it, and the journal says the recompute's start, its end and how long it took. The tool stays
the hand form of this act. Built in H2c (the indexer). How it is checked: whole
the hand form of this act. The prepare measures, on main's registered repositories, how long the recompute takes
and whether the seat `mesh-catalog`'s verbs answer from the kept state within their bounds while it runs, and lists
both; a verb that does not answer meanwhile is a disagreement the lead answers before develop (playbook 07, step
0b). Built in H2c (the indexer). How it is checked: whole
(indexer): a start under another build of the indexer recomputes every repository once, and a second start under
the same build recomputes none.
- §853 **The runner's state keys are listed by prefix, a page at a time.** (row 93 ("The joined pipeline runner
@@ -345,8 +363,9 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
reads the stream as above. Built in H2c (the forge bridge, mesh-delivery). How it is checked: unit (the bridge's
tools): a call by pull request lists no key of `performed` and answers only that pull request's acts.
- §858 **A reader declares the form of the seat value it reads, and a writer that raises it is delivered after its
readers.** (row 78 ("A package artifact's steps lacked"); H-A-780, H-A-791, H-A-793, H-A-798; ADR 0666 §14, §16; ADR
0686 §2, §5; ADR 0596 §2; G §59; ADR 0682 §8, §9; principles 3, 7 and 9; design-it-as-it-should-be) A value one
readers.** (row 78 ("A package artifact's steps lacked"); H-A-780, H-A-791, H-A-793, H-A-798, H-A-811; the operator,
2026-11-27 00:39 CET; ADR 0666 §14, §16; ADR 0686 §1, §2, §5; ADR 0608 §1; ADR 0596 §2; G §59; ADR 0682 §8, §9;
principles 3, 7 and 9; design-it-as-it-should-be) A value one
module reads of another is a seat's value, and its form is the seat contract's (ADR 0686 §2, ADR 0596 §2): never the
holder's own kept data, whose `form` (G §295) stays the holder's for its backup and restore.
1. **The form is the contract's.** A seat's definition, in its contracts module (ADR 0608 §1), names a `form` for
@@ -369,18 +388,41 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
N while any of them declares a lower form or none, the manifest validator of the step `validate` (`mesh-judge`,
§849) refuses the raise, naming each such reader with the form it reads (H-A-793, H-A-798). So the first raise of
a value carries its readers, each declaring N, which makes them movers of the same pipeline.
5. **A value carries its form, and a reader refuses a higher one, loudly (H-A-811, the operator's answer of
2026-11-27 00:39 CET; it amends H-A-791).** The writer says the form it wrote in the message's header `x-form`, a
whole number, beside the headers mesh-sdk's say already writes (`x-event-id`, `x-source`, `x-node`): on every
event that carries a seat value and every answer of a verb that answers one, through mesh-sdk's say and answer
(ADR 0686 §1), from the form the generated contract it is built with names for that value. The contracts
modules' generator writes each value's form beside its message type from the definition's `form` (1.; ADR 0608
§1, ADR 0686 §2); a value of form 0 carries no header. The choice of a header over a field of the value: the
form is no part of the value's layout, which stays the contract's, so no layout changes to carry it, a reader
built before the header decodes the body as before, and one header serves an event, an answer and an answer sent
as an object's name (§850 2.) alike. A reader's runtime (mesh-sdk's event hub for an event, its call for an
answer) compares the header with the form its own generated contract names for the value, before any handler
or caller sees it; that is the form its `reads-form` declares, since a raise is a contracts change whose publish
rebuilds every reader (1.) and 4. has each declare N in the same revision. A higher form is refused: an event is
handed to no handler and left unacknowledged, so the bus delivers it again as it does a handler's failure and
the reader's new build, which binds the same durable, takes it (past the durable's most deliveries it goes to the
dead letters, as every given-up event does); an answer fails its call, naming the value and both forms. Each
refusal is a journal line naming the value, the form met and the form read, and raises the reader's finding
`form-unread` (scope `module`, id `<module>.<node>`), naming each value with both forms, through the process's
findings writer as `events-unheard` is (§836 4., §847). The process's start clears it, read from the bucket, so
it clears once the new build runs and stands again at the next refusal. A form at or below the reader's is
decoded as today. The edge of 3. still orders the readers on every present placing machine before the writer
writes the new form; nothing waits for a machine that is away (§751; a node being unreachable is normal), and
its reader refuses the raised form loudly until its new build applies (principle 3).
No reader refuses a form at its decode, and no value carries its form (H-A-791). On every present placing machine
the readers run the new form before the writer writes it (3.). A reader on a machine that is away when its tier
runs is not waited for (§751), so its old build may read the raised form once it is back and before its new build
applies: how that reader is kept from it is this file's question 1, and no line is written for it. What exists today,
and its fate: no reader and no seat value names a form; row 78's one case was avoided by H-A-202, which kept the
entry's form; every reader today names none, so the first raise of each value declares its readers in the same
What exists today, and its fate: no reader and no seat value names a form, and no message carries `x-form`; row
78's one case was avoided by H-A-202, which kept the entry's form; every reader today names none, so the first raise of each value declares its readers in the same
change. Built in H2c (the indexer; the manifest validator; the contracts modules' seat definitions gain `form`; the
runner and the assigner order by the edge as by every edge). How it is checked: whole (indexer): a writer whose new
revision raises a seat value's form gets the edge after each reader that declares it; unit (the manifest
validator): a raise with a reader at a lower form, and one with a reader that declares none, are each refused,
naming that reader and its form.
runner and the assigner order by the edge as by every edge; mesh-sdk's say, answer, event hub and call, and the
contracts modules' generator, for 5.). How it is checked: whole (indexer): a writer whose new revision raises a
seat value's form gets the edge after each reader that declares it; unit (the manifest validator): a raise with a
reader at a lower form, and one with a reader that declares none, are each refused, naming that reader and its
form; unit (mesh-sdk's event hub and call): an event and an answer whose `x-form` is above the reader's are
refused, named and raise `form-unread`, the event left unacknowledged; one at or below it is handed on; a value of
form 0 carries no header, and the next start clears the finding; live: a reader back from away raises
`form-unread` until its update applies.
- §859 **The race detector runs per module, on its unit level, where its manifest asks it.** (row 93 ("The joined
pipeline runner (`mesh-delivery-pipeline`) crashed"); H-A-783; ADR 0548; ADR 0445 §3; ADR 0391 §2; ADR 0686 §5;
principles 10 and 11) A Go artifact of a module's manifest carries `race`, true or false, default false; the field
@@ -449,14 +491,10 @@ counts stay within the test budget; each runs within ADR 0445 §3's sixty second
## Questions this file leaves open
1. **A reader of a raised form on a machine away (§858).** ADR 0666 §14 has a format a running reader cannot read
preceded by its reader, and ADR 0682 §8 writes a later mover's want once the movers before it report `running`
on their machines; §751 does not wait for a machine away, so a reader there runs its old build when it is back,
before its new build applies, and may read the raised form (H-A-791 has no reader refuse it). No record says
which of these gives way. The choices: (a) a tier that a kind-4 edge of §858 orders waits for its readers on
every placing machine, a machine away included, said by `tier-late` naming that machine and gone on by §824 once
it runs; (b) a reader refuses a form above the one it declares, which reverses H-A-791 and needs the value to carry
its form, and still does not cover a raise that a reader's old build was never written to refuse; (c) the gap is
kept, said in the design. The writer's recommendation: (a), the only one that keeps ADR 0666 §14 for every
machine; its cost is that the writer of a value a laptop's module reads (the want, which every node-engine reads)
is delivered only once that laptop is back, and the operator sees `tier-late` meanwhile.
1. **ADR 0694 waits for the operator's Approve (§850 1.).** The record that a state writer deletes the object its own
write left no value naming, proposed on the operator's answer of 2026-11-27 00:08 CET (H-A-806), changes ADR 0666
§16 and is not yet in force. Until it is accepted, §850 1. writes no line for the object a replace leaves, and G
§57 stands as written. Once it is, its clauses 1 to 4 become a line of §850 1. in the same release.
The question of a reader on a machine that is away, this file's question 1 until now, is closed: the operator
answered it on 2026-11-27 at 00:39 CET (H-A-811), written as §858 5.
@@ -2,7 +2,7 @@
layer: to-be
status: in-progress
design: 47
milestone: H2c
milestone: H2d
updated: 2026-11-27
decisions:
- "ADR 0693"
@@ -14,18 +14,37 @@ decisions:
- "ADR 0672"
- "ADR 0666"
- "ADR 0626"
- "ADR 0614"
- "ADR 0597"
- "ADR 0445"
- "ADR 0595"
- "ADR 0259"
---
# 47, release H2c, second file: the pin changes, the ledger's repairs, `mesh_wait`'s time and the recreate
# 47, release H2d: the pin changes, the ledger's repairs, `mesh_wait`'s time and the recreate
The second file of release H2c's lines. The first, [H2c-the-lines-h2-left](H2c-the-lines-h2-left.md), says what H2c
carries and which modules it touches, how a row of [the findings of the live runs](H-findings-of-the-live-runs.md) is
counted and cited, what a "whole" row is, what needs no line and which questions are open. H2c's builders read both
whole, and their lines are cited as "design 47 H §n". This file is its own so that each file stays within playbook
02's 60 KB for a part an agent reads whole (H-A-804).
H2d is a release of its own after H2c (H-A-812, 2026-11-27 00:45 CET). Its lines were H2c's second file; the lead split
them off by the rule of the operator's answer of 00:08 (H-A-804), so that each release's part is one file within
playbook 02's 60 KB. This file is H2d's whole part, read alone, and its lines are cited as "design 47 H §n". It
carries the pin specification's seven owed changes (§860 to §866), a whole-ledger repair as an act and `mesh_wait`'s
time (§867, §868), and a recreate that empties nothing (§869, ADR 0692). Two lines H2b builds serve its order and its
events: §870's edge "B runs a version that serves A" (the tool runner before the gate, §867 7.) and the keeper's
durables on kept seat event streams (§836 5.), on which §869 2. hears `restored`.
**Its modules** (principle 10): in mesh-delivery, the indexer (§860, §862 to §864), the runner (§860, §861) and the
grants part (§869 2.); in mesh-sdk, its Go runtime (the `buscalls` forms of §867); in mesh-catalog, `mesh-build-go`
(§865, §866), `nats` (§869) and the gate `mesh-delivery-gate` (§867 7.); `mesh-tools`, the tool runner (§867, §868);
and the seat `mesh-broker`'s definition in mesh-contracts (§869 2.).
**How this file counts a row.** A row is cited by its number in the count of
[H-findings-of-the-live-runs](H-findings-of-the-live-runs.md), with its first words beside it in quotation marks. That
count starts at the first row of its second table, the one the lead added at 18:40 CET on 2026-11-20 (row 1 is
"Validate's base was read as the source number minus one"); the sixteen rows of its first table are not counted, so
row n is the (n + 16)th row of its tables, their header rows not counted. For each line drawn from a row, H2d's
prepare reads whether H2, H2b, H2c or a later fix already built it (playbook 07, step 0b); a line already built is
marked built in the prepare's table and adds no code.
**A "whole" row** of a line is a row of that module's existing whole test, never a new test function, so the module's
counts stay within the test budget; each runs within ADR 0445 §3's sixty seconds for the integration level.
## The pin specification's seven owed changes (rows 82 and 89, H-A-782)
@@ -46,7 +65,7 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
revision, its build first (H-A-283, H-A-284). The newer revision's own pipeline carries only the movers no open
pipeline of that source revision holds, and none is started when that leaves no mover. H-A-211's "on every watched
branch" is moot: the module graph names no branch (ADR 0684 §1). What exists today, and its fate: ADR 0693's read of
mesh-delivery main finds the runner's side built; the prepare reads main for the indexer's. Built in H2c (the
mesh-delivery main finds the runner's side built; the prepare reads main for the indexer's. Built in H2d (the
indexer; the runner where the prepare finds it unbuilt). How it is checked: whole (indexer): a package's release
keeps one revision with the same source, whose re-pinned importer is a mover; the runner's rows of ADR 0693 §5's
check (acceptance test 112): with the open pipeline running and with it waiting, the mover stays with its new
@@ -60,7 +79,7 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
revision the pipeline keeps for its fingerprint (H-A-284 (2)), has a version, it asks the step with those pins
(H-A-203). A same-source re-pin that moves the mover's fingerprint ends its steps `superseded` and places them again,
the build first (H-A-284 (1)). A held step still waiting when the build's `package-wait-minutes` passes ends as S28
has it. Built in H2c (the runner). How it is checked: whole (runner): a mover whose build passed while its unit step
has it. Built in H2d (the runner). How it is checked: whole (runner): a mover whose build passed while its unit step
waited for a publish has its unit step asked with the published pin, and the pipeline ends.
- §862 **A failed re-pin on the registry's published event is not acknowledged, so it is heard again, and one never
made is said.** (S15; H-A-167, H-A-773 (4); principles 3 and 4) The indexer acknowledges the package registry seat's
@@ -72,7 +91,7 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
way through, `indexer_take_in_again` of the importer's repository, which computes its entries with the newest pins
(S11); the finding clears when a re-pin of that path at that version or later is kept for the module. What exists
today, and its fate: `heardVersion`'s path for the registry's `published` acknowledges after a failed `Recompute`,
so that re-pin is lost until the next publish; it no longer does. Built in H2c (the indexer). How it is checked:
so that re-pin is lost until the next publish; it no longer does. Built in H2d (the indexer). How it is checked:
unit (indexer): a re-pin that fails once is not acknowledged, and its redelivery re-pins; one that fails at the
last delivery raises `repin-failed`, and a later re-pin clears it.
- §863 **The indexer refuses a run on request's candidate whose entry has an empty pin, by its own check.** (S8, L10;
@@ -83,14 +102,14 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
version (S8) and its build waits for the publish (S27). What exists today, and its fate: `checkCandidateModule` runs
the delivery SDK's `PackageVersions.Check`, which accepts only a commit or a semantic version in any entry it is
given; the indexer judges the empty version itself, and that check goes with the delivery SDK (ADR 0686 §4). Built
in H2c (the indexer). How it is checked: unit (indexer): a candidate with an empty pin is refused, naming the path;
in H2d (the indexer). How it is checked: unit (indexer): a candidate with an empty pin is refused, naming the path;
a delivering entry with an empty pin is kept.
- §864 **The indexer answers one entry's pins and paths at a revision.** (S16; H-A-204; principle 4) The indexer's
tool `indexer_entry_pins` takes `module` and `revision` (default the newest kept) and answers that module's entry at
that revision: its fingerprint, its `packages` (each path with its version, empty for none yet) and its `paths`,
without the whole revision. A revision not kept, or a module not in it, is refused, naming it. What exists today,
and its fate: the seat `mesh-catalog`'s verb `entry` answers one whole entry by fingerprint, not at a revision, and
stays. Built in H2c (the indexer). How it is checked: unit (indexer tools): an entry is answered at a kept revision
stays. Built in H2d (the indexer). How it is checked: unit (indexer tools): an entry is answered at a kept revision
below the newest; a revision not kept is refused.
- §865 **A same-repository requirement is built from the tree at any version, and "same repository" is the module's
registered repository.** (S3, S31, L8; H-A-198, H-A-202, H-A-782 (6); principles 7 and 11) The Go build module
@@ -100,7 +119,7 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
the repository the ask's fetch names, which is the module's registered repository (ADR 0666 §2), never a written
owner name. What exists today, and its fate: `takeZeroRequirements` and `ownZeroPackageDirs` take only a
requirement at the zero version from the tree and decide by a literal owner prefix (L8), and one at a real version
is fetched through the Go seat while the fingerprint takes the tree (S18); both change as above. Built in H2c
is fetched through the Go seat while the fingerprint takes the tree (S18); both change as above. Built in H2d
(`mesh-build-go`, in mesh-catalog). How it is checked: unit (Go build module): a same-repository requirement at a
real version is built from the tree; a repository under another owner name is the same repository when the fetch
names it.
@@ -115,8 +134,8 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
sandbox does not judge it. So every transitive requirement of another repository is listed in the go.mod (`//
indirect` where it is one), and the indexer pins what the go.mod files list (S1, S2), reading no pinned package's
own go.mod. What exists today, and its fate: the indexer follows only same-repository go.mod files (S2's gap), and
stays so; the prepare lists every go.mod on main that is not tidy in this sense, and H2c tidies each in the same
release (design-it-as-it-should-be). Built in H2c (`mesh-build-go`, in mesh-catalog). How it is checked: unit (Go
stays so; the prepare lists every go.mod on main that is not tidy in this sense, and H2d tidies each in the same
release (design-it-as-it-should-be). Built in H2d (`mesh-build-go`, in mesh-catalog). How it is checked: unit (Go
build module): a unit step whose go.mod lacks a mesh package path `go mod tidy` would add ends `failed` naming it,
and runs no test; one where `go mod tidy` would change only a version, or only a path outside the mesh, runs its
tests; a tidy one runs its tests.
@@ -124,9 +143,9 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
## Two of the tool runner's answers, met on 2026-11-26
- §867 **A repair of a whole ledger is an act: it answers at once, says its progress and its end, and reads the
history once.** (issue 1984 note 71; H-A-789, H-A-792, H-A-794 (3), H-A-799; ADR 0597 §5, §8, §10; ADR 0666 §14; G §554; §870;
principles 3, 4, 10 and 11) The tool runner (`node-tools`) serves each module's ledger repairs (ADR 0597 §10), as
the tools `ledger_rebuild`, `ledger_snapshot`, `ledger_reindex` and `ledger_lag` and as the module's own ledger
history once.** (issue 1984 note 71; H-A-789, H-A-792, H-A-794 (3), H-A-799, H-A-813; ADR 0597 §5, §8, §10; ADR 0666
§14; G §554; §870; principles 3, 4, 10 and 11) The tool runner (`node-tools`) serves each module's ledger repairs
(ADR 0597 §10), as the tools `ledger_rebuild`, `ledger_snapshot`, `ledger_reindex` and `ledger_lag` and as the module's own ledger
calls (mesh-sdk's `buscalls`, under the module's own account). Over a whole ledger each reads the whole history to
list the instances, then makes about four bus round trips per instance, with no progress line, no end and no `why`:
`ledger_lag` timed out at the gate's start at 21:39 and 21:41 CET on 2026-11-26, and H-A-692 (3)'s rebuild of the
@@ -139,7 +158,12 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
(template `state`, `max-mib` 8, as H-A-411 (2) gives a state that names no cap) by compare-and-set on the key's
absence: the key `<module>.<ledger>`, the value the act's id, its node, the repair, its `why` where it has one,
who called and when. A key that is there answers `busy`, naming its act, so two nodes' runners never repair one
ledger at once. The key is deleted once the act's end is said (4.).
ledger at once. The key is deleted once the act's end is said (4., 5.). The act's id is
`<node>.<module>.<ledger>.<accepted>`, `<accepted>` the time the runner accepted it in Unix nanoseconds, each name
escaped as mesh-sdk's `keys.EscapeName` escapes them, as §832 3. forms the assigner's ids: one form, key-safe,
that serves as the message id of its `repair-ended` (4.), as a value in its key, and, made a key by the seat
`mesh-conditions`' key form, as the id of the findings that name it (4., 7.). The choice: the node and the time
make it unique across runners and repeats without a counter kept anywhere.
2. **It reads the history once, within a bound, and never sets a state back.** The act reads the ledger's history
once, in order, and folds each operation into its instance, instead of one read per instance. It opens with one
ordered read of the keys the repair writes (each instance's state, snapshot or index key) and the revision each
@@ -151,25 +175,36 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
ends the act `failed` (4.), naming the ledger and the bound, and the repair named per instance stays the way
through (H-A-794 (3)).
3. **It says its progress.** It writes a journal line every `repair-progress-every` instances (a setting of the tool
runner, a whole number from 1, default 1000), naming the act, the ledger and the instances done.
runner, a whole number from 1, default 1000), naming the act, the ledger and the instances done. At each such
line it reads its act's key, so a cancel (5.) stops it within one step of progress rather than at the end of a
fold over the whole ledger.
4. **It says its end, written first and owed until the bus takes it.** It ends with the tool runner's event
`repair-ended`, on `mesh.mod.node-tools.event.repair-ended.<node>.<module>`, its message id the act's id, declared
in the tool runner's manifest's `emits`. It names `act`, the ledger, the repair, `outcome` (`done`, `failed` with
its error, `stopped` or `cancelled`) and the instances written, skipped and refused; for `ledger_lag`, the
instances whose state is behind and each index behind. The runner first writes the outcome and the counts into
the act's key, then says the event, and deletes the key once the bus has taken it. An end the bus refuses is owed
and said again as §832 owes the assigner's events: kept in the runner's memory, said again on its one timer at
instances whose state is behind and each index behind. The runner first writes the outcome, `ended-by` (its own
node) and the counts into the act's key, then says the event, and deletes the key once the bus has taken it. An
end the bus refuses is owed and said again as §832 owes the assigner's events: kept in the runner's memory, said again on its one timer at
`say-again-pace-first` doubling to `say-again-pace-max` (settings of the tool runner, `2s` and `1m`), under the
same id. Owed past `event-unsaid-after` (a setting of the tool runner, `5m`), it is the runner's finding
`event-unsaid` (scope `module`, id the act's id), cleared when the end is said. A person and a watcher hear it
with `mesh_wait`; a caller told `busy` asks again on the `repair-ended` of the act it was named.
5. **A start says its node's ends, and a cancel ends one by hand.** At its start, the tool runner reads every key of
`repair-acts` whose value names its own node. An act whose key holds an outcome ended before the stop, and its
`repair-ended` is said again with that outcome under the act's id (4.); an act with none was running, and it ends
`stopped` and is said so, and its caller asks again (G §554). A key whose value names another node is that node's
runner's, and stays. `ledger_repair_cancel` (an act's id and a `why`, written in the hand-act log) ends one
running act on its node as `cancelled`, so no restart is needed to stop one. `ledger_repairs` reads the state
`repair-acts`: each act, running or ended and not yet said, with its node and outcome.
5. **A start says its node's ends, and a cancel ends any node's act (H-A-813).** `ledger_repair_cancel` (an act's
id and a `why`, written in the hand-act log), asked of any node's tool runner, ends that act whichever node runs
it, so an act whose node is away, removed or no longer runs the module never holds its ledger `busy` (principle
4). It reads the key `<module>.<ledger>` the id names; a key that is gone, names another act or holds an outcome
is refused, naming what it found. Otherwise it writes the outcome `cancelled` and `ended-by`, its own node, into
the key by compare-and-set on the revision it read, says `repair-ended` with `outcome` `cancelled` under the act's
id and no counts (only the act's runner knows them), owed as 4. owes an end, and deletes the key once the bus has
taken it. The act's own runner writes the key by
compare-and-set on the revision it last wrote, and reads it at each progress line (3.): when it finds the key
gone or holding an outcome it did not write, at its end write, at a progress line or as the act starts, it stops
the act and says nothing more. At its start, the tool runner reads every key of `repair-acts` whose value names
its own node, as the act's node or as `ended-by`. A key whose outcome this runner wrote (`ended-by` its node)
ended before the stop, and its `repair-ended` is said again under the act's id (4.); an act of its own node with
no outcome was running: it ends `stopped` and is said so, and its caller asks again (G §554). Every other key is
another runner's, and stays. `ledger_repairs` reads the state `repair-acts`: each act, running or ended and not
yet said, with its node, its outcome and `ended-by`.
6. **A repair asked by a person takes a why; a module's own does not.** Every repair asked through the tools by a
person or a session, but `ledger_lag`, takes a `why`, written in the hand-act log (the seat `mesh-hand-acts`)
before it runs; one without is refused. A module's own repair of its own ledger, through its own ledger calls
@@ -187,37 +222,43 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
`repair-ended` of the act it names (G §554). The gate arms no timer to end the wait: past `repair-wait-after` (a
setting of the gate, a Go duration, default `5m`) without the end it waits for, it raises its finding
`repair-unended` (scope `module`, id the act's id), naming the act, the ledger and since when, cleared when that
act's `repair-ended` is heard (H-A-799 (3)). The tool runner's H2c build is delivered before the gate's: the
gate's `consumes` of `repair-ended`, which the tool runner's H2c manifest newly `emits`, gives §870 2.'s edge "B
runs a version that serves A" (ADR 0666 §14; H-A-799 (2)), built in H2b so that it orders H2c's own pipeline, and
no gate waits on a runner that never says the end.
act's `repair-ended` is heard (H-A-799 (3)). The gate applies a `repair-ended` only when its `act` is one it
waits on at that start: a repeat of an end it applied, said again past the bus's duplicate window (4.), and the
end of an act it did not ask (a person's) change nothing. The tool runner's H2d build is delivered before the
gate's: the gate's `consumes` of `repair-ended`, which the tool runner's H2d manifest newly `emits`, gives §870
2.'s edge "B runs a version that serves A" (ADR 0666 §14; H-A-799 (2)), built in H2b so that it orders H2d's own
pipeline, and no gate waits on a runner that never says the end.
What exists today, and its fate: `Ledger.Rebuild` and `Ledger.Lag` (mesh-tools) read the whole history to list the
instances, then make about four round trips per instance; they take items 1 to 6. The gate's start calls `lag` and
`reindex` and waits on their answers; its `lag` timed out at 21:39 and 21:41. It takes item 7. Built in H2c (the
`reindex` and waits on their answers; its `lag` timed out at 21:39 and 21:41. It takes item 7. Built in H2d (the
tool runner; mesh-sdk's `buscalls` forms; the gate, in mesh-catalog, for 7. alone). How it is checked:
- rows of the tool runner's whole test, within ADR 0445 §3's sixty seconds for the level: a rebuild of a ledger of
3000 instances, with `repair-progress-every` at 1000, answers within a second, says three progress lines, and its
`repair-ended` names the counts; a second rebuild while one runs answers `busy`, asked of the same node's runner
and of another's; an instance the live module writes during the fold keeps the live write and is counted skipped;
a restart while an act runs ends it `stopped`, a restart after an act's end was written and before the bus took it
says that end again, never `stopped`, and another node's act stays; `ledger_repair_cancel` ends one `cancelled`; a
fold past `repair-memory-mib` ends `failed`, naming the bound; a `repair-ended` the bus refuses once is said once
after, and one refused past `event-unsaid-after` raises `event-unsaid`, cleared when it is said;
says that end again, never `stopped`, and another node's act stays; `ledger_repair_cancel` asked of the act's own
runner, and asked of another node's runner, each end it `cancelled`, said once, and the act's runner stops at its
next progress line and says no second end; a cancel of an act that ended (its key gone or holding an outcome) is
refused; a restart of the cancelling runner after its write and before the bus took the end says that end again;
a fold past `repair-memory-mib` ends `failed`, naming the bound; a `repair-ended` the bus refuses once is said once after, and
one refused past `event-unsaid-after` raises `event-unsaid`, cleared when it is said;
- unit (tool runner): a repair asked through the tools without a `why` is refused, and one through the module's own
calls needs none and writes no hand act;
- rows of the gate's record unit tests: at a start with `lag` naming `movers` behind, the start pass begins only
after the `repair-ended` of `movers`' `reindex`; an `error` answer, an answer in an earlier form, and an act ended
`cancelled` each raise `index-behind`, and the pass begins; a `stopped` act is asked again; past
`repair-wait-after`, `repair-unended` is raised and the end clears it;
`repair-wait-after`, `repair-unended` is raised and the end clears it; a `repair-ended` of an act the gate does not
wait on, and a repeat of one it applied, change nothing;
- unit (indexer): the gate's `consumes` of `repair-ended` gives §870 2.'s edge from the tool runner (acceptance test
122).
123).
- §868 **Every `mesh_wait` answer carries the time it answered.** (H-A-790; principles 3 and 4) The mesh MCP server's
`mesh_wait` (the tool runner's loopback mode) answers, heard or timed out, with `at` beside `waited`: the time it
answered, in UTC, in RFC 3339 form with seconds. So an agent with no shell reads the time from the answer. The
case: on 2026-11-26 two watchers on the gate's ledger rebuild stopped early, each saying it had no clock and no tool
answered a time. What exists today, and its fate: `mesh_wait` answers only `waited`; meanwhile the mesh-watcher's
agent definition counts its bound in waited time. Built in H2c (the tool runner's mesh MCP server). How it is
agent definition counts its bound in waited time. Built in H2d (the tool runner's mesh MCP server). How it is
checked: unit (the mesh MCP server): a timed-out wait's answer carries `at` within a second of the clock.
## A recreate that empties nothing (ADR 0692)
@@ -242,49 +283,72 @@ pin, as in the specification. Each is checked by its row in its owner's tests, t
recreate ends `failed` before anything is removed, naming the object that moves, and nothing is lost. It then
recreates and checks that every object holds every message and key it held at that last read, so a write between
the snapshot and the removal is never lost unseen (principle 3). It writes the act in the hand-act log with its
`why` and what it found, and says `recreated` on the seat `mesh-broker` (ADR 0595 §6). A recreate that ends
`failed`, at the read or at the check, says the seat's new event `recreate-failed` instead, naming the kept data,
the act and why, so a watcher that waits on a recreate hears its end either way; the seat's definition
(mesh-contracts, `seats/mesh-broker/seat.json`) gains the event, and no field is added to or removed from a form
(§780). A check that finds a message or a key missing also writes the bus module's finding `recreate-lost`
(scope `module`, id `<module>.<kept data>`), which the condition keeper raises as a condition (G §383), naming the
module, the kept data, what is missing and the stream snapshot taken. Putting it back is a hand act through the
`why`, what it found and the stream snapshot it took, and says `recreated` on the seat `mesh-broker` (ADR 0595
§6). A recreate that ends `failed`, at the read or at the check, says the seat's new event `recreate-failed`
instead, so a watcher that waits on a recreate hears its end either way. Its body is the seat's `Said`, as
`recreated`'s is: the kept data (`module`, `local-name`, `bus-name`), `snapshot` (the stream snapshot the act
took), `before` (what each object held at the last read), `binding` only where an object was made again before
the check failed, and `why` (the object that moved, or what the check found missing). `Said` has no field for
the act, and none is added: the seat's definition (mesh-contracts, `seats/mesh-broker/seat.json`) gains the event
with that body, and no field is added to or removed from a form (§780). A watcher tells its recreate's end by
the kept data and the snapshot, which the act's line in the hand-act log names. A check that finds a message or
a key missing also writes the bus module's finding `recreate-lost` (scope `module`, id `<module>.<kept data>`),
which the condition keeper raises as a condition (G §383), naming the module, the kept data, what is missing and
the stream snapshot taken. Putting it back is a hand act through the
recovery module's hand tools, which read that snapshot through `snapshot-get` or, for a protected one, ask the
keeper's `snapshot-restore` (ADR 0672 §1, §4; ADR 0675 §2, §3); the keeper restores nothing by itself. The
recovery module is placed on no machine (H-A-787), so until it is, the keeper keeps the stream snapshot of a
recreate whose check found a loss and never expires it, and `recreate-lost` stays raised, its words naming that
snapshot and that the recovery module is not placed (H-A-805, the operator's answer of 2026-11-27 00:08 CET). The
finding clears when the recovery module's `restored` names that snapshot, which the bus module hears by a
`consumes` entry of its manifest for the seat `mesh-recovery`'s kept event `restored`, or by the bus module's new
tool `nats_recreate_lost_clear` (the kept data and a `why`, in the hand-act log), for a loss a person accepts
(principle 4); at either, the snapshot takes its normal lifetime again.
finding clears when the recovery module's `restored` names that snapshot with `outcome` `done`, or by the bus
module's new tool `nats_recreate_lost_clear` (the kept data and a `why`, in the hand-act log), for a loss a
person accepts (principle 4); at either, the snapshot takes its normal lifetime again. A `restored` with `outcome`
`failed` changes nothing: the loss stands, and so do the finding and the kept snapshot (principle 3). The keeper
hears `restored` by a `consumes` entry of the bus module's manifest for the seat `mesh-recovery`'s event
`restored`, a kept event on its own stream `SEAT_mesh-recovery_restored`, through the durable the grants part
composes for the keeper on that stream and the keeper binds (§836 5., built in H2b).
3. **One that would empty something, and every drop, asks, naming what goes (ADR 0692 §3).** The ask names the kept
data, per object what would be removed (how many messages and bytes, and the oldest and newest of them), and that
a stream snapshot is taken before anything is removed. Nothing acts before the answer, and the keeper verifies
the operator's warrant itself (ADR 0626 §4, ADR 0259 §6). A `drop` always asks. A recreate whose request names no
ask, and which the keeper finds would empty something, is refused, removes nothing and says why.
4. **The grants part hears both ends.** The grants part (the holder of `mesh-grants`, mesh-delivery) rewrites a kept
data's binding in the memberships on `recreated` (`internal/grants/bindings.go` on main). It also hears `recreate-failed`, by a
`consumes` entry of its manifest for the seat `mesh-broker`'s new event: one that carries `binding` (an object
made again before the check failed) is applied as a `recreated` is, so the memberships name the object the bus
now holds; one without changes nothing, since nothing was removed. So no consumer of a remade object is left
bound to the object it replaced (principle 3).
What exists today, and its fate: every `recreate` asks the operator's warrant (ADR 0595 §5 as it stood), so four
recreates that kept every message asked the operator on 2026-11-26; a recreate that empties nothing no longer asks.
Built in H2c (`nats`; the seat `mesh-broker`'s definition in mesh-contracts, for `recreate-failed`). How it is
checked (ADR 0692's checks, as rows of the bus module's whole test and the keeper's
unit tests):
Built in H2d (`nats`; the seat `mesh-broker`'s definition in mesh-contracts, for `recreate-failed`; the grants
part, for 4.). How it is checked (ADR 0692's checks, as rows of the bus module's whole test and the keeper's unit
tests, and the grants part's rows):
- whole: a recreate whose settings keep everything (a smaller cap still above what is held, a when-full changed, an
object made again that held nothing) raises no ask, reads no warrant, takes its stream snapshot first, says
`recreated`, and its act names who asked and what it would empty; one that lowers a cap below what is held raises
one ask naming the count and acts only on its warrant, its snapshot taken first; a `drop` raises one ask and
takes its snapshot first; a request naming no ask for a recreate that would empty something, one whose named ask
holds no warrant, one whose warrant is for another act or kept data, and a `drop` without a warrant are each
refused and remove nothing; a drifted entry nobody asks a recreate for stays, said by `drifted`;
refused and remove nothing; a drifted entry nobody asks a recreate for stays, said by `drifted`; with a loss
raised, a `restored` said on its kept stream with `outcome` `done` naming the snapshot reaches the keeper and
clears `recreate-lost`, and one with `outcome` `failed` keeps the finding and the snapshot;
- unit (keeper): what a recreate would empty, for a shorter age, a smaller cap below what is held, fewer past
values, an object made again over held messages (every message counted), the same object rebuilt from its data
(nothing counted) and one made again over none (nothing counted), a request's own claim never read; a check that
finds a message missing, and one that finds a key missing, each ends `failed`, says `recreate-failed`, raises
`recreate-lost` and restores nothing; a write by the owner between the snapshot and the removal is taken by the
finds a message missing, and one that finds a key missing, each ends `failed`, says `recreate-failed` with the
kept data, the snapshot, `why` and, for an object made again, `binding`, raises `recreate-lost` and restores
nothing; a write by the owner between the snapshot and the removal is taken by the
second snapshot, and an object that moves at both reads ends `failed` before anything is removed; the snapshot of
a loss is kept past its lifetime, `recreate-lost` names it and that the recovery module is not placed, and
`nats_recreate_lost_clear` clears the finding and gives the snapshot its lifetime back; no warrant is read for a
recreate that empties nothing, and one is read for a `drop` and for one that would empty something;
- unit (the grants part): a `recreate-failed` carrying `binding` rewrites the kept data's binding as a `recreated`
does, and one without changes no membership;
- live: the next drift of settings, recreated on a session's request, shows its act in the hand-act log naming that
session and what it would empty (nothing), `recreated` on the seat `mesh-broker`, and no ask of the bus module
among `operator-channel.asks`.
## Questions this file leaves open
None.