From 95cf2052d2b9f5021255ff2fa719c2782705fe3f Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 25 Nov 2026 14:03:21 +0100 Subject: [PATCH] Design 47 H2: H-A-685 to H-A-703, the review by architectural domain of H-A-634 to H-A-684 The one review round of 0cae7532..27e5c0d9 found lines that were wrong or left their builder a choice: a gate ledger whose new operations would be refused until a recreate, lifetimes written before the bus allows them, a snapshot store that drops its oldest silently, indexes nothing keeps, a history cap that fills at the measured rate, an event hub that lets waiting events be given again, and token files whose pass could never match. Each is now an amendment of the answer it corrects, within the record it follows, in a fifth answers file since the fourth is at its bound; design 25 and the glossary say the snapshot store refuses when full, and the glossary gains the event hub. --- 00-META/glossary.md | 15 +- 03-DESIGN/01-to-be/25-the-bus-on-nats.md | 9 +- .../47-delivery-from-commit-to-delivered.md | 4 + .../47-milestones/H2-lead-answers-4.md | 6 +- .../47-milestones/H2-lead-answers-5.md | 463 ++++++++++++++++++ 5 files changed, 488 insertions(+), 9 deletions(-) create mode 100644 03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md diff --git a/00-META/glossary.md b/00-META/glossary.md index 1e6e0e6d..d4def88c 100644 --- a/00-META/glossary.md +++ b/00-META/glossary.md @@ -318,6 +318,11 @@ controller and the store; for module assignment, by the seat `mesh-module-assign again on the callee's event saying its answer changed (§4). mesh-sdk carries its form (§7). A call not marked is made once and its fault said. *Not:* ~~retried call~~ (hq) +- **event hub** — the runtime's one pull of a module's durables, on the shared events stream and on each kept seat + event's stream it handles, which hands each message to the handler whose subject pattern takes it, under the key the + module gives that pattern: one key's events one at a time in the order heard, different keys' side by side; every + message it holds is said in progress to the bus until its handler ends (mesh-sdk; design 47 H2, H-A-281, H-A-683, + H-A-695). Never bare **hub**, which is a node's role for the private network (see [Homonyms](#homonyms)). - **waiting call** — a module's call of a marked verb that the verb's holder keeps whole, with the caller the bus proved and its ask, until the operator's answer: on the Approve the holder runs it once, and it says the call's end (ran, declined, expired or refused) on its seat's event `gated-ended` to that caller alone (ADR 0676 §2, §3). The @@ -1131,10 +1136,10 @@ becomes a message). **Decided by** ADR 0227, 0231, 0240, 0252, 0283, 0564, 0668. in order) and a state derived from that history by each operation's **ledger effect** (one of a fixed set: set fields, set an entry of a map, append to a list, remove), through the tool runner's `apply` (ADR 0597). - **snapshot** of a ledger's state — the latest state of one instance, on a subject of its own in the ledger's - **snapshot store** (a stream of the ledger beside its history, one message per instance), from which a rebuild - starts. It never expires, save in a ledger whose own configuration gives its instances an end: an ended instance's - snapshot carries the lifetime of its state key and goes with it, and a rebuild leaves none of an instance past that - lifetime (ADR 0597 §8, ADR 0690 §2). Distinct from the stream snapshot; a ledger's snapshot store is never bare where + **snapshot store** (a stream of the ledger beside its history, one message per instance, refusing when full as the + history does; design 47 H2, H-A-687), from which a rebuild starts. It never expires, save in a ledger whose own + configuration gives its instances an end: an ended instance's snapshot carries the lifetime of its state key and goes + with it, and a rebuild leaves none of an instance past that lifetime (ADR 0597 §8, ADR 0690 §2). Distinct from the stream snapshot; a ledger's snapshot store is never bare where it could be read as where the bus keeps its stream snapshots. ## Connectivity — how nodes and modules reach one another @@ -1520,6 +1525,8 @@ renaming one sense, the old sense moves to a *Not:* line and becomes mechanical. | snapshot | the latest state of one ledger instance, from which a rebuild starts | **snapshot** of a ledger's state | Data | | | the bus's own backup of each stream | **stream snapshot** | Data | | | a read-only point in time of one ZFS dataset, inside its pool | **ZFS snapshot** | Data | +| hub | a node that relays for nodes that cannot reach each other directly; the one sense "hub" keeps bare | **hub** | Connectivity | +| | the runtime's one pull of a module's durables, handing each event to its handler by key | **event hub** | Core | | template | a storage type with a configuration, asked for in `requires` | **template** of bus state | Data | | | a file with placeholders a provisioner fills | **template file** | Config | | option | a setting of a template a module may change | **option** of a template | Data | diff --git a/03-DESIGN/01-to-be/25-the-bus-on-nats.md b/03-DESIGN/01-to-be/25-the-bus-on-nats.md index b646c286..5b3bc5ec 100644 --- a/03-DESIGN/01-to-be/25-the-bus-on-nats.md +++ b/03-DESIGN/01-to-be/25-the-bus-on-nats.md @@ -75,7 +75,12 @@ buckets take the ledger's own cap, its option `max-mib`, as its history and snap lifetime of its state key and goes with it. § 12.1's ledger row and § 12.7 say so. The part of milestone bus-state, whose lines are built, keeps its §19 as written ("never expiring"), which now holds for a ledger whose instances never end and for an instance that has not ended. Both are built in design 47's milestone H, by its H2 lead answers H-A-636 -(the cap) and H-A-634 (the end of an instance and its snapshot's lifetime). +(the cap) and H-A-634 (the end of an instance and its snapshot's lifetime). The review by architectural domain of +those answers adds, the same day (H-A-685 to H-A-690): a ledger's snapshot store refuses when full, as the template's +"as log" fixes, and the fill condition judges it as the part `snapshot`; a ledger's binding names `ended-days` only +once the bus holds its objects with lifetimes, and the bus module says a changed binding again with `created`; and +the watcher of the bus-state part's §21 keeps an index through the call `reindex` named for one instance, so the tool +runner alone writes index keys, each with its instance's lifetime. ## 1. What the bus is for @@ -704,7 +709,7 @@ manifest that gives it: | work queue | stream | removed once taken; refuses when full; one taker; no grant | deliveries 1 to 10; duplicate detection up to its age; cap; age | | log | stream | refuses when full; never rewritten; an entry at most 256 KiB; one subject per key | cap 1 to 8192 MiB (1024); age 1 to 3650 days (none) | | objects | object store | refuses when full; kept for good | cap 1 to 8192 MiB, required; a grant | -| ledger | ledger | as log, plus its type and a snapshot per instance; its state and index buckets as state, but at the ledger's cap (`max-mib`), as its history and snapshot store are, with no other option setting their cap, and the fill condition judging them against it (ADR 0690 §1); a snapshot never expires, save where the ledger's own configuration gives its instances an end (design 47 H2, H-A-634): an ended instance's snapshot then carries the lifetime of its state key and goes with it (ADR 0690 §2) | cap; keeping days only in a ledger's own configuration | +| ledger | ledger | as log, plus its type and a snapshot per instance; its state and index buckets as state, but at the ledger's cap (`max-mib`), as its history and snapshot store are, with no other option setting their cap, and the fill condition judging them against it (ADR 0690 §1); its snapshot store as log, refusing when full and judged by the fill condition as the part `snapshot` (design 47 H2, H-A-687); a snapshot never expires, save where the ledger's own configuration gives its instances an end (design 47 H2, H-A-634): an ended instance's snapshot then carries the lifetime of its state key and goes with it (ADR 0690 §2) | cap; keeping days only in a ledger's own configuration | | (none: a bare stream) | stream | the module's own subjects; within the mesh's bounds | its own configuration, which must give "when full" (refuse or drop the oldest), a cap of 1 to 8192 MiB and an age of 1 to 3650 days or none, and may give a grant; the manifest validator refuses one missing any of the three | The template log is the **module log** of ADR 0297. The mesh, never the module, names the bus objects and their diff --git a/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md b/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md index dd5f74b6..3aa8dc9f 100644 --- a/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md +++ b/03-DESIGN/01-to-be/47-delivery-from-commit-to-delivered.md @@ -5,6 +5,10 @@ code: [mesh-controller, mesh-catalog modules/mesh-delivery-gate, mesh-catalog mo updated: 2026-11-25 decisions: - "ADR 0690" + - "ADR 0686" + - "ADR 0674" + - "ADR 0436" + - "ADR 0259" - "ADR 0685" - "ADR 0684" - "ADR 0640" diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-4.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-4.md index 5a55f07a..cdb63505 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-4.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-4.md @@ -23,9 +23,9 @@ decisions: --- # Design 47, milestone H2: lead answers, continued a third time -This file continues [H2-lead-answers-3.md](H2-lead-answers-3.md) from H-A-634 on, since that file reached its 60 KB -bound with H-A-633: every later answer is written here. Each line names the record, the operator's answer or the -principle that settles it. +This file continues [H2-lead-answers-3.md](H2-lead-answers-3.md) from H-A-634 to H-A-684, since that file reached its +60 KB bound with H-A-633; [H2-lead-answers-5.md](H2-lead-answers-5.md) continues it, and its H-A-685 to H-A-703 amend +answers here. Each line names the record, the operator's answer or the principle that settles it. ## The operator's answers, continued (2026-11-24 from 01:06 CET) diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md new file mode 100644 index 00000000..31ae86d5 --- /dev/null +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md @@ -0,0 +1,463 @@ +--- +layer: to-be +status: in-progress +design: 47 +milestone: H +updated: 2026-11-25 +decisions: + - "ADR 0690" + - "ADR 0597" + - "ADR 0595" + - "ADR 0686" + - "ADR 0682" + - "ADR 0674" + - "ADR 0668" + - "ADR 0666" + - "ADR 0656" + - "ADR 0614" + - "ADR 0550" + - "ADR 0436" + - "ADR 0259" +--- +# Design 47, milestone H2: lead answers, continued a fourth time + +This file continues [H2-lead-answers-4.md](H2-lead-answers-4.md) from H-A-685 on, since that file reached its 60 KB +bound with H-A-684: every later answer is written here. Each line names the record, the operator's answer or the +principle that settles it. + +## The review by architectural domain of H-A-634 to H-A-684 (2026-11-25 from 13:30 CET) + +The four reviewers by architectural domain read hq 0cae7532..27e5c0d9 in one round, the only one (playbook 02, +*Answering a design question*, item 3). Each of their findings that makes a line wrong or leaves its builder a choice +is written below as an amendment of the answer it corrects, a choice within what the record it follows decides +(playbook 02, item 1); where a clause of an earlier answer is rewritten, that clause reads as the amendment has it. +Each rests on a reading of the same mains as H-A-639 (mesh-delivery 3b1f03ce, mesh-catalog 17e1bfb6, mesh-sdk +bb11615, the node-engine d27af83, mesh-contracts 52e5224) and of mesh-tools 393449e. + +- **H-A-685 (a ledger's binding names `ended-days` only once its held objects allow lifetimes; a changed binding is + said again; the tool runner reads it at each call, 25 Nov)** Amends H-A-634 (1) and (3), and rewrites H-A-679. + Where met: the keeper says an entry's binding with `created` once, and again only for an object made later or after + a `recreate` (mesh-catalog `modules/nats/internal/keeper/keeper.go`, `ensureMade`); the grants part writes the + binding it hears whole into the membership (mesh-delivery `modules/mesh-grants/internal/grants/bindings.go`); the + tool runner opens a ledger at each call from its binding and checks each operation against the binding's types + (mesh-tools `node-tools/internal/runtime/ledgers.go`, `ledger`); and the seat `mesh-broker`'s `Binding` carries no + `ended-days` (mesh-contracts `go/seats/meshbroker`). So after H2's delivery the gate's `end` on its movers and acts + and `forget` on `held` would be refused until a `recreate`, and nothing said when the tool runner may write a + lifetime. ADR 0595 §1 and §7 carry the binding on the bus module's events into the membership through the grants + part; what the binding names and when it is said again are the design's. + (1) **The binding names `ended-days` only once the held objects allow lifetimes.** The keeper writes a ledger's + `ended-days` into its binding when the ledger's own configuration gives it and the bus holds the ledger's state + bucket and each index bucket with a lifetime per key and its snapshot store with a lifetime per message, as made or + as changed by `recreate` (H-A-686); while any of them allows none, the binding names none. The seat `mesh-broker`'s + `Binding` gains `ended-days` (a whole number of days, absent while none), and mesh-sdk's `membership.BusBinding` the + same field; `list`, `show` and `orphans` answer the binding as the keeper last said it. + (2) **A changed binding is said again.** The keeper keeps, for each entry, the binding it last said; when the + binding it would say differs from it (a type gaining an operation or an index, `ended-days` named or no longer + named), it says `created` again with the new binding, as it says it again today for an object made later (G §58), + with no `recreate`; `recreated` carries the binding after a `recreate`, as today. So the gate's new operations + reach its membership once the bus module has taken in the gate's new manifest, before the gate's new build runs + (H-A-692 (1)). + (3) **The grants part copies it.** The grants part reads the binding into mesh-sdk's `BusBinding` and compares + bindings whole, so `ended-days` reaches the membership once the grants part is built with mesh-sdk's change + (§818); a `created` heard again whose binding differs rewrites the membership on every machine the module is + assigned, as `recreated` does. + (4) **The tool runner writes a lifetime exactly while the binding names `ended-days`.** It reads the binding at + each ledger call it opens, as it reads the types, so a binding rewritten after `created` or `recreated` reaches + the next write with no restart. It keeps `ended-at` in every state it writes, from the types' `ends-with`, whether + or not the binding names `ended-days`, and gives a lifetime to a state, a snapshot and an index key only while it + does. A ledger whose types name `ends-with` and whose binding names no `ended-days` is written with no lifetime, + said once per ledger and process in the tool runner's journal ("the ledger's types name an end and its binding no + `ended-days`: written with no lifetime"): this is the gate's case from H2's delivery to its `recreate` (H-A-692), + and H-A-679 reads so. A write the bus refuses for its lifetime (the object allows none, as after a change of it by + hand) is written again with none and said once per ledger and process; its operation is never lost, and the bus + module's `drifted` names the object, since it holds less than is asked. + How it is checked: rows of the keeper's plan tests: a ledger with `ended-days` whose held objects allow no lifetime + is said with no `ended-days`, and once they allow them with it; a held entry whose type gained an operation says + `created` again with it, and one whose binding is the same says nothing; a row of the grants part's bindings tests: + a `created` heard again with one operation or `ended-days` more rewrites the membership; rows of the tool runner's + ledger unit tests: a binding whose types name `ends-with` and which names no `ended-days` writes no lifetime, keeps + `ended-at` and says it once; the same ledger's binding rewritten with `ended-days` gives the next write its + lifetime with no restart; a write refused for its lifetime is written again with none and said once; a case of the + tool runner's ledger integration test (`node-tools/internal/runtime/ledger_integration_test.go`) on the real bus: a + ledger made with no lifetimes, changed in place to allow them and its binding said again, gives its next write a + lifetime. ADR 0595 §1, §7; ADR 0597 §1; ADR 0690 §2; principles 1, 3 and 7. +- **H-A-686 (`recreate` changes an object in place or stops, and never empties one it planned to keep; the ask names + what goes; a held lifetime matches an ask with none, 25 Nov)** Amends H-A-634 (3)'s `recreate`. ADR 0595 §5 gives + `recreate` the rebuild of an entry from its data where the storage type allows it, on the operator's warrant after + a stream snapshot; which object is changed how, what the ask names and what a refusal does are the design's. + (1) **A held lifetime matches an ask with none.** The keeper's comparison takes a held bucket that allows a + lifetime per key, or a held stream that allows a lifetime per message, as matching an asked one that allows none: + allowing a lifetime is no setting a write must use, and the bus refuses to turn it off in place. So a ledger's + manifest returned to one without `ended-days` (the gate's return to a build before H2 among them) raises no + `drifted` and needs no `recreate`; the binding then names no `ended-days` (H-A-685 (1)), and a key written with a + lifetime still goes at its end. Fate: H-A-634 (3)'s object "a lifetime per key or per message turned off", made + again empty, goes; the one kind of object made again empty is one whose retention changes, which the bus refuses to + change in place. + (2) **A refused change in place stops the `recreate`.** When the bus refuses an object's change in place after the + warrant, the `recreate` stops there: it makes no object it planned to change in place again empty, changes no + object after it, answers the bus's refusal naming the object, and says no `recreated`; the objects it changed before + keep their change and their data, `drifted` stays raised naming what still differs, and the warrant is spent (a + warrant acts once), so another `recreate` needs another ask. + (3) **The ask names what goes.** The ask `nats_recreate` raises names, per object, whether it is changed in place or + made again empty, its held and asked settings, the messages, bytes and oldest message's time it holds (read when the + ask is raised), and what the change removes: for a shorter age, the messages older than it (none while the oldest + is younger); for a smaller cap, the oldest messages beyond it and the bytes over it; for an object made again empty, + every message. The tool's answer and `recreated` name, per object, the messages and bytes it held before and after. + (4) **No `recreate` while the bus module runs a build before H2.** That build reads a held lifetime per key as a + drift and makes every object of a recreated entry again empty (H-A-634 (3)'s fate), so a drift it raises for the + gate's `records` is left raised, and no `recreate` of it is asked until the bus module runs its H2 build again; the + asker reads the bus module's running version before each ask (H-A-692 (2)). + How it is checked: rows of the keeper's `recreate` tests: a held lifetime per key or per message with an ask of + none raises no drift; with a stub bus refusing one object's change in place, the `recreate` stops, empties nothing, + says no `recreated` and `drifted` stays; the ask names, for a shorter age, the messages older than it, and for a + smaller cap the bytes over it; a case of the bus module's whole integration test (`TestTheBusModuleRunsWhole`, + `cmd/nats-tools/keeper_integration_test.go`) on the real bus: a stream holding messages, recreated with a shorter + age, a lifetime per message turned on and its refusal when full, keeps the messages younger than the age and takes a + lifetime on its next write, and a bucket recreated with a lifetime per key turned on keeps its keys. ADR 0595 §5, + §6; ADR 0259 §6; principles 3 and 7. +- **H-A-687 (a ledger's snapshot store refuses when full and is judged as the part `snapshot`; the fill's fields; the + seat's form, 25 Nov)** Amends H-A-634 (8) and (9). Where met: the keeper plans a ledger's snapshot store to drop its + oldest when full (mesh-catalog `modules/nats/internal/keeper/plan.go`, the ledger case), and the fill pass reads only + an object that refuses when full (`fill.go`), so a full snapshot store would remove the oldest snapshot silently, + the only base of a rebuild of an idle open instance once its operations have aged out: against ADR 0597 §8 and ADR + 0690 §2, by which a snapshot goes only with its key, and against design 25 § 12.1's ledger row ("as log": a kept + ledger refuses when full, ADR 0595 §3). The milestone's prepare found it as its item 14. + (1) **The snapshot store refuses when full.** The bus module plans a ledger's snapshot store to refuse when full + (one message per instance, at the ledger's cap), as the template ledger fixes, so the fill pass judges it as it + judges the history, the state and the index buckets, as the part `snapshot` ((3)). + (2) **A refused snapshot loses no operation.** An `apply` whose snapshot write the store refuses for room answers as + ADR 0597 §6 answers for a full state: the operation is taken, with its sequence, and its snapshot is behind because + the snapshot store is full; `lag` counts it behind, and the repair `snapshot` writes it once room is made. A + `rebuild` or a repair `snapshot` whose write is refused so answers it for that instance and goes on with the next. + (3) **The fill names its object.** H-A-634 (9)'s `object` and `part` go in the seat `mesh-broker`'s `Fill`, beside + its `bytes`, `cap` and `count`: `full` and `full-cleared` carry `fill` for the object judged, whose `bytes`, `cap` + and `count` are that object's; `part` is `history`, `state`, `index ` or `snapshot` for a ledger, and absent + for an entry of one object. `show`'s `fill` keeps the entry's sum and gains `objects`, one `Fill` per object. + (4) **The seat's form rises once.** The seat `mesh-broker`'s form rises from 1 to 2 for (3)'s fields and the + binding's `ended-days` (H-A-685 (1)), as §780 asks for a field added; its contract is generated again and its + importers rebuild with it. + (5) **The held stores drift.** Each ledger's held snapshot store then differs from what is asked (three on the mains + read: the gate's `records`, the knowledge base's `records` and zfs's `snapshots`), raising `drifted`; only + `recreate` on the operator's warrant applies it (ADR 0595 §5), changed in place with its snapshots kept (H-A-686), + asked as H-A-692 (2) says. H-A-634 (8)'s "when, as the bus module plans it, it drops its oldest" reads "when it + refuses". + How it is checked: a row of the keeper's plan tests: a ledger's snapshot store is planned to refuse when full, and + a held one that drops its oldest drifts; a row of the fill pass unit tests: a ledger whose snapshot store holds 75% + of its cap says `full` with a `fill` naming its object and the part `snapshot`, and `show` answers each object; + rows of the tool runner's ledger unit tests: an `apply` whose snapshot write is refused for room answers taken with + its snapshot behind, and the repair `snapshot` catches it up; a case of the ledger's integration test on the real + bus, at a small cap: a full snapshot store refuses, `apply` answers taken with its snapshot behind and the history + holds the operation; live, after H-A-692: `mesh-broker.show` of each of the three ledgers names its snapshot store + refusing when full. ADR 0595 §3, §5, §6; ADR 0597 §6, §8; ADR 0690 §2; principles 3 and 7. +- **H-A-688 (the gate's `records` ask `max-mib` 3072, 25 Nov)** Rewrites H-A-680 and amends H-A-634 (2), (8) and its + live check, which still counted 1 GiB. At (8)'s rate (98 records a day, 226 KiB of history each) 90 days of history + hold about 1,947 MiB: 95% of 2048, so the fill condition would be raised from about the 71st day, and a burst like + H1's clean state (840 records, about 185 MiB) refused; at 3072 they hold 63%, the burst takes them to 69%, under the + raise mark of 75% (2,304 MiB), which they reach only above about 116 records a day. The gate's `records` asks + `max-mib` 3072 (principle 11: the cap in the manifest); by ADR 0690 §1 its state, both index buckets and its + snapshot store are planned at 3 GiB too. Each held object of the entry also differs in a setting that does not only + grow (its history's shorter age, a lifetime turned on), and the keeper applies alone only a difference that only + grows, so the raise reaches them in place with H-A-692 (2)'s `recreate`, within the keeper's room check of the bus + account's storage limit (G §547). (8) reads: the state, at 3 GiB, holds 30 days of ended records below about 1,200 + records a day and stays under the raise mark below about 900; at the case's rate 30 days need about 250 MiB, 8% of + it, and at G §155's 20 a day about 51 MiB. The history, at 3 GiB, holds 90 days below about 154 records a day. The + snapshot store, each snapshot going with its key and refusing when full (H-A-687), holds 30 days of ended records + and the open ones: at the case's rate about 350 MiB, under the raise mark below about 650 records a day. H-A-634's + live check reads: `mesh-broker.show` of the gate's `records` names its history, its state and both index buckets, + and its snapshot store, each at 3,221,225,472 bytes. How it is checked: a row of the gate's manifest test + (`manifest_test.go`): `records` asks `max-mib` 3072; the live check above. ADR 0690 §1; ADR 0595 §3; principles 3 + and 11. +- **H-A-689 (`lag` reads an instance's end from its history; `get`'s `expires` is the lifetime the bus holds, 25 + Nov)** Amends H-A-634 (4). Where met: `lag` counts behind every instance whose state or snapshot is behind its + history (mesh-tools `node-tools/internal/ledger/repair.go`, `Lag`), so an instance whose key and snapshot went by + their lifetime would be counted behind, and H-A-634 (4) turned that round for every instance with neither, a lost + state of an open instance among them; and every `expires` was the tool runner's own sum, never what the bus holds. + (1) **An instance with no key and no snapshot is not behind only past its lifetime.** `lag` derives from an + instance's history whether it has ended and when: its end is the `at` of the last operation that gave its + `ends-with` field a value, with no later operation emptying it. An instance with no state key and no snapshot counts + as not behind only when that end lies more than `ended-days` before now; an open instance, and one ended within + `ended-days`, whose key or snapshot is gone counts behind (a lost state), as `lag` counts it today. The index's + condition (H-A-690 (3)) reads `lag` so. + (2) **`expires` is read from the bus.** `get` answers an ended instance's `expires` from the key's last write as the + bus holds it: its time and the lifetime its `Nats-TTL` header carries; `watch`, whose changes carry no header, + answers it as `ended-at` plus `ended-days`. So `gate_records_expiring` and `gate_records`, which read by `get`, name + the lifetime the bus holds. + How it is checked: rows of the tool runner's ledger unit tests: an open instance whose key was deleted is behind; an + instance ended past `ended-days` whose key and snapshot are gone is not; one ended within `ended-days` whose key was + deleted is behind; `get`'s `expires` is the write's time plus its lifetime, and `watch`'s `ended-at` plus + `ended-days`; a case of the ledger's integration test on the real bus: an ended instance's `get` answers the + `expires` its write gave it. Live, after H-A-692: `gate_records_expiring` names one ended record's `expires`, read + from the bus, 30 days after its end. ADR 0597 §4, §10; ADR 0690 §2; principle 3. +- **H-A-690 (the gate keeps its indexes by a watcher; a failed end is a finding, finished at the record's next event, + 25 Nov)** Amends H-A-634 (1), (2), (7) and (10). Where met: only the tool runner's repair `reindex` writes index + keys (mesh-tools `node-tools/internal/ledger/repair.go`, `Reindex`), and no watcher keeps the gate's indexes, so they + held no key in H-A-634's case while the gate reads a record's movers and acts through them (mesh-catalog + `modules/mesh-delivery-gate`, `movers.go`, `owedended.go`); a mover or an act written after (10) would be missing + from them, its end never followed, and an open record's mover left ageing by a failed reopening never found. ADR + 0597 §4 keeps an index by a watcher in the owning module's process, rebuildable from the history, raising a + condition when it lags (design 25 bus-state §21); how it writes is the design's. + (1) **The call `reindex` names an instance.** mesh-sdk's `ReindexRequest` gains `instance` (optional): `reindex` + naming one writes that instance's entries in the index with its lifetime (H-A-634 (1)) and deletes the entries the + index holds for it that it no longer should, touching no other key; one naming an instance whose lifetime has ended + writes none and deletes its entries. So the tool runner stays the one writer of index keys and of their lifetime. + (2) **The gate's watcher.** The gate's process watches its ledger's `mover/>` and `act/>` (ADR 0597 §10's `watch`) + and, for each change it hands after the current states, calls `reindex` of `movers` or `acts` naming that instance; + a key gone by its lifetime needs no call, since its index keys carry the same lifetime. At its start, before it + follows the changes, it asks `lag` and calls `reindex` of each index `lag` names behind, whole, said in the journal + with the count written; the gate's start pass of `gate_records_follow_ends` (H-A-634 (2)) begins only once that is + done. A call that fails is said in the journal and made again at that instance's next change. + (3) **The index's condition.** The gate writes its finding `index-behind` (id the index) when a call of (2) fails or + `lag` still names the index behind after its whole `reindex`, naming the instances and the error, and clears it at + the next `lag` that names the index not behind (at the gate's next start, or after `ledger_reindex` by hand). The + kind joins the gate's writer's kinds. + (4) **A failed end is a finding, and finished at the record's next event.** A write of H-A-634 (2) that fails (an + end, or its emptying at a reopening) is said in the journal and written as the gate's finding `record-end-unwritten` + (id the record, naming the instance and the error); the gate finishes it at the next event of that record it + applies, by the pass of `gate_records_follow_ends` for that record alone, and at its next start by that pass over + every record; the finding clears when the pass writes it. The kind joins the gate's writer's kinds. + How it is checked: rows of the tool runner's ledger unit tests: `reindex` naming an instance writes its entries with + its lifetime, deletes its entries no longer held and leaves every other key; one naming an instance past its + lifetime writes none; rows of the gate's record unit tests in `record_test.go`: a mover's change handed by the watch + makes one `reindex` naming it; at a start with `lag` naming `movers` behind, one whole `reindex` of it before the + start pass; a failed call is said, raises `index-behind` and is made again at the instance's next change; a failed + end raises `record-end-unwritten`, and the record's next event writes it and clears the finding; the gate's whole + test's case of G §160 as H-A-634 has it ("an ended record's movers and acts take its end, and an open record's take + none") finds the movers and acts through the indexes; live, after H-A-692: `ledger_lag` of the gate's `records` + names no index behind. ADR 0597 §4, §10; ADR 0656 §7; principles 1, 3 and 7. +- **H-A-691 (`held` keeps `hold` and `drop` declared, 25 Nov)** Amends H-A-634 (5). The tool runner's replay refuses an + operation its type does not declare (mesh-tools `node-tools/internal/ledger/ledger.go`, `fold` and `operationOf`), + and H-A-692 (3)'s `ledger_rebuild` replays `held/2026-11`'s `hold` and `drop`, which the history keeps up to 90 + days. So the type `held` keeps `hold` and `drop` declared beside `forget`, each described "kept for the replay of + operations written before H2; applied by no part", and the gate applies neither (it writes no month list, H-A-634 + (5)). They leave the gate's manifest in its first change made 90 days or more after H2's delivery, when its history + holds none of them. How it is checked: a row of the gate's manifest test: `held` declares `hold`, `drop` and + `forget`; a row of the gate's record unit tests: no path of the gate applies `hold` or `drop`; H-A-692 (3)'s + `ledger_rebuild` answers no instance refused. ADR 0597 §1, §5; principles 3 and 7. +- **H-A-692 (the order after H2's delivery, 25 Nov)** Rewrites H-A-634 (10). + (1) **The modules' order.** H2's modules move in the module graph's order (ADR 0682 §8: acting parts first, + providers before their consumers): the bus module, the grants part and the tool runner before the gate, whose bus + state requires the bus module's `bus-state` (design 25 bus-state §2), so the gate's binding with its new operations + reaches its membership (H-A-685 (2)) before its new build applies `end` or `forget`; the delivery plan names that + edge. + (2) **The warrants.** Then the lead of H2's delivery asks one `recreate` per drifted entry through the bus module's + tool `nats_recreate` (with `why`), each said to the operator before it is raised and acted on the operator's warrant + after its stream snapshot (ADR 0595 §5; ADR 0259 §6), once `drifted` names the entry and the bus module runs its H2 + build (H-A-686 (4)): the gate's `records` (its history's age of 90 days, its state and index buckets' lifetime per + key, its snapshot store's lifetime per message and its refusal when full, and every cap of 3 GiB (H-A-688), each in + place); the knowledge base's `records` and zfs's `snapshots` (each its snapshot store's + refusal when full, in place, H-A-687 (5)); and mesh-build-go's `steps` (its cap of 64 MiB, H-A-694). Each ask names + what it removes (H-A-686 (3)). + (3) **The hand acts.** Then, once the gate's `recreate` has acted and its binding names `ended-days` (H-A-685 (1)), + by hand, each a hand act: `ledger_rebuild` of the gate's whole ledger, so every instance held before H-A-634, and + its snapshot, gets its lifetime and no snapshot of one past it stays (H-A-634 (1), (4)); then `ledger_reindex` of + `movers` and `acts`, so their keys take those lifetimes. The indexes' first keeping and the movers' and acts' ends + are the gate's own at its start (H-A-690 (2); H-A-634 (2)); `gate_records_follow_ends` is called by hand only where + `record-end-unwritten` names a record. The 840 records ended at H1's clean state then go on 2026-12-20. + How it is checked: H2's delivery plan orders the bus module before the gate; `operator-channel.asks` holds the four + asks, each naming its objects and what goes; live: `mesh-broker.show` names no drift for the four entries, and the + hand-act log of the seat `mesh-hand-acts` holds the rebuild and the two reindexes. ADR 0595 §5; ADR 0682 §8; ADR + 0259 §6; principles 3 and 4. +- **H-A-693 (the grants part composes the ledger account's purge of its snapshot store, and none of its history, 25 + Nov)** Rewrites H-A-681 and amends H-A-634 (1)'s "on the module's ledger connection, which holds that purge's + grant". Where met: the grants part composes a ledger account's publishes on its ledgers' history and snapshot + subjects alone (mesh-delivery `modules/mesh-grants/internal/buscompose/ledger.go`, `LedgerPublishGrants`), so no + purge grant is composed to keep or to remove; the commit that would grant the purge of both streams (f80ef614, "A + ledger account may purge its own ledger's two streams") is on no branch of the forge; and the tool runner's purge of + one snapshot works today only because every account may publish on every subject (ADR 0682 §10). The grants part + composes, beside those publishes, the purge request of each of its ledgers' snapshot store, + `$JS.API.STREAM.PURGE.__snapshot`, its answer on the account's own inbox, and no purge of a + history: so the tool runner's `Snapshots.Purge` (H-A-634 (1), (6)) holds a grant of its own in the composition, + and the purge of a history (`History.Purge`, which goes with G §587's removal) has none; f80ef614 is not taken. How + it is checked: a row of the grants part's `buscompose` unit tests: a ledger account's composition names the purge + of each of its ledgers' snapshot store and of no history; live: `nats_user_can` of the gate's ledger account on its + snapshot store's purge request answers allowed (by ADR 0682 §10's every subject as long as that holds, so the unit + row is what checks the composition). ADR 0597 §9; ADR 0682 §10; principles 3 and 7. +- **H-A-694 (mesh-build-go's `steps` goes to 64 MiB by `recreate` on the operator's warrant, whatever its fill, 25 + Nov)** Rewrites H-A-678's handling of a held state entry. ADR 0690 §1 keeps a state entry at the state template's + bound, at most 64 MiB, so the manifest validator refuses a state's `max-mib` above 64 (H-A-678). Of the 40 state + entries in the new form on the mains read 2026-11-25 (mesh-catalog 17e1bfb6, mesh-delivery 3b1f03ce, mesh-tools + 393449e, the node-engine d27af83), 29 give no cap (64 MiB), nine give 8, one 16 and one, mesh-build-go's `steps`, + 128: no other asks more than 64. H2 sets `steps`' `max-mib` to 64 in mesh-build-go's manifest. A smaller cap does + not only grow, so the bus module raises `drifted` for the held bucket at 128 MiB, and only `recreate` on the + operator's warrant applies it (ADR 0595 §5), whatever its fill: the lead of H2's delivery asks it through + `nats_recreate` (H-A-692 (2)), its ask naming the bucket's keys, bytes and oldest write read when it is raised and + what a cap of 64 MiB removes (the oldest beyond it, none while it holds less; H-A-686 (3)); until the warrant the + bucket stays at 128 MiB with `drifted` raised. H-A-678's "set to 64 in its manifest when its fill is under 64 MiB, + and the operator is asked first when it is above" reads so. How it is checked: rows of the manifest validator's unit + tests: a state's `max-mib` 65 refused, 64 taken; the step `validate` of H2's pipeline takes mesh-build-go's + manifest; live, after H-A-692: `mesh-broker.show` of mesh-build-go's `steps` names its bucket at 67,108,864 bytes + and no drift. ADR 0595 §3, §5; ADR 0690 §1; principles 3 and 11. +- **H-A-695 (the event hub holds every message it took said in progress, within a bound; a delivery again is + dropped; kept seat events go through it; its settings are read undeclared at their defaults, 25 Nov)** Amends + H-A-683 (1). Where met: a module's durable on the shared events stream has an ack wait of 30 seconds and five + deliveries, and no bound of its own on unacknowledged messages, so the bus server's default holds (mesh-delivery + `modules/mesh-grants/internal/buscompose/derived.go`); H-A-281 says in progress only for the message being handled + (mesh-sdk `go/process/module.go`, `keptInProgress`); and a setting is read from what the node-engine composes of + the module's config values, none composed being its default (mesh-sdk `go/settings.go`). Under H-A-683 (1) as + written, a message waiting behind a handling of 10 m 41 s would have been said in progress only when a handling + ended: given again every 30 seconds, handled up to five times and given up to the dead letters after about two and + a half minutes; and an in-progress for every waiting message at every end would be hundreds of publishes a second at + H-A-514's backlog of 246. + (1) **Every message the event hub holds is said in progress, on H-A-281's tick.** The event hub holds each message it + took until its handler ends, the one being handled and each one waiting under its key, and says in progress for + every one at every third of its durable's ack wait (read once at the bind, as H-A-281 has it), from one ticker per + durable; so no held message reaches its ack wait, whatever the handlings before it take. H-A-683 (1)'s "each time a + handling ends" goes. + (2) **It holds at most `events-waiting` messages.** A setting each module may set, read by the runtime (1 to 1000, + default 100): the event hub pulls no more while it holds that many, so the rest wait on the bus, kept by the durable + and not yet given; it says once in its journal when it reaches the bound, naming the key that holds most, and once + when it falls below. The bound stays within the bus server's own default of 1000 unacknowledged messages per + durable, past which the bus would give nothing more and the event hub would not know why; 100 messages said in + progress every ten seconds are ten publishes a second. + (3) **A delivery again of a held message is dropped.** A message the bus gives again whose stream sequence the + event hub holds is handed to no handler, neither acknowledged nor refused, and said once in the journal; the copy + held keeps its place under its key and is said in progress as before. + (4) **Kept seat events go through it.** A kept seat event's message, pulled on the module's durable on that event's + stream (`StartKept`), is handed by its key as an event of the shared stream is, held and said in progress on its own + durable's ack wait, and counted in the same `events-waiting`. + (5) **Where its settings are declared.** `events-at-once`, `events-waiting`, `slow-event` and `event-overrun` are + read by the runtime under those names (mesh-sdk's settings reader): a module that declares none is read at the + defaults, and one that needs another value declares the setting among its manifest's config values (§781) and sets + it through the seat `mesh-config`, as any setting. The builder's declaration of `slow-event` (default 100 ms) stays, + read by the runtime under the same name; no other manifest changes for them. + How it is checked: rows of mesh-sdk's `event_hub_test.go`: with one key's handler blocked past five ack waits on a + fake clock, its waiting event and another key's are each said in progress at every third and each handled once, + none given up; a delivery again of a held sequence reaches no handler; holding `events-waiting` messages the event + hub pulls none more and says it once; a kept seat event is handed by its key; a setting not composed reads its + default; a case of mesh-sdk's `TestTheHubBindsALateConsumerAndSaysItIsLive` on the embedded bus, its durable's ack + wait shortened: with one key's handling blocked past the ack wait no message is given again (the durable's + redelivered count stays 0) and another key's events are handled; a case of the builder's whole test + (`cmd/mesh-delivery-builder/integration_test.go`): while one node's `manifest-reads-changed` waits on an ask that + never answers, another node's `running` is handled, and the dead letters hold no message of the builder's durable. + ADR 0686 §1; ADR 0682 §11; principles 1, 3, 7 and 11. +- **H-A-696 (the builder's retake waits for its start sweep, 25 Nov)** Amends H-A-683 (2). Where met: the builder's + start sweep (`Sweep`) runs once the catalog half's first views are in, after the event hub has bound the module's + durable (mesh-delivery `cmd/mesh-delivery-builder/main.go`: `hub.Start` at the start, `Sweep` in the catalog half's + `ready`), so a `running` or `manifest-reads-changed` heard in between would find the set of keys faulted in + transport empty and retake nothing; the node-engines' `running` of H2's own delivery arrives then. An event's retake + waits for the sweep: a `running` or `manifest-reads-changed` heard before the start sweep has filled the set waits + under its node's key until it has, then retakes the keys of the set whose seat or node it names; the sweep's end is + said in the journal with the count of keys it put in the set, and a sweep that fails ends the builder's start as + today (its error ends the process). How it is checked: rows of the builder's unit tests: a `running` heard before + the sweep's end retakes, once the sweep ends, the keys its node names; one heard after, with the set empty, makes no + call. ADR 0682 §11; principles 3 and 7. +- **H-A-697 (`event-overrun`: cleared at the start, owned by every writer, naming every key past the bound, 25 Nov)** + Amends H-A-683 (3). Where met: the process reader clears `event-unhandled` at its start (H-A-169; mesh-sdk + `go/views/process_reader.go`); every writer owns, beside its module's kinds, the kinds of a views reader, `ViewKinds` + (`go/views/writer.go`), which name neither `event-unhandled` nor `event-overrun`, so a module whose writer keeps its + own kind list (the indexer's `index.FindingKinds`, the grants part's `grants.FindingKinds`, the gate's) refuses + both, said once (H-A-242 (3)). + (1) **Cleared at the process's start.** The process reader clears `event-overrun` at its start, as it clears + `event-unhandled`, since no handling of the new process runs yet. + (2) **Every writer owns it.** `ViewKinds` gains `event-unhandled` and `event-overrun`, so every writer, with its + module's own kind list or none, writes both, and no module's list changes (H-A-242 (2)'s test of each module's own + kinds stays). + (3) **It names every key past the bound.** Its summary names each handling past `event-overrun`, the one that began + first first, each with its subject, its key and since when, at most five and then how many more; it is written again + at each handling that passes the bound or ends, and cleared once none is past it. + (4) **What reads it.** The finding is the read of what the event hub's handlings hold back, since no tool reads a + process's memory (principle 1); what waits on the bus is read by the bus module's `nats_consumer` (a durable's + unacknowledged messages and its oldest) and, for the builder, by `builder_health` (H-A-435). + H-A-683's live check reads: through H2's delivery the builder's journal holds no line of a handling past + `event-overrun` (a line written whatever its writer takes), and the builder raises no `event-overrun`. How it is + checked: rows of mesh-sdk's views unit tests: a writer given its own kinds writes `event-unhandled` and + `event-overrun`; the summary names three keys past the bound, the oldest first; a case of mesh-sdk's + `TestAReaderHearsAnOwnersChangesAsOrdinaryEvents` on the embedded bus: a handling past a short `event-overrun` + raises the finding through a held writer given its own kinds, naming its key and since when, and the process + started again clears it. ADR 0686 §1; principles 3, 4 and 7. +- **H-A-698 (a want whose entry the assigner has not read is held, said and asked again; the seat `mesh-catalog`'s + package moves, 25 Nov)** Amends H-A-682 (1) and (2). Where met: H-A-682 (2) asks the seat `mesh-catalog`'s `entry` + for a want at an older fingerprint and says nothing of an ask that fails, finds no entry or is not answered, as when + the indexer stalled (H-A-635); a pass that waited on it would hold back every want. + (1) **The ask is the assigner's entry ask, beside the pass.** The want pass never waits on it: it starts the + assigner's existing ask of a catalog entry (asked again on each catalog revision and when its link to the bus opens + again, at most the setting `entry-asks` times, then the finding `entry-unanswered`; H-A-60), and the answer wakes a + pass as a catalog revision does. An answer that no such entry is held writes the finding `entry-not-found` for the + fingerprint (G §614). + (2) **Until it is read the want is held, and says why.** A want whose entry's needs are not read yet is written + held: `hold` true and `words` `awaits-entry:` followed by the fingerprint; `assigner_why` names the ask, how often it + was asked and its last failure. The pass after the answer compares the needs as H-A-682 (2) has it; §772's + `awaits-hand-placement` is still read first. + (3) **The seat's package moves.** H-A-682 (1)'s change of the description of `needs` moves the digest of the seat + `mesh-catalog`'s contract package, so its importers rebuild in H2, as H-A-677 says of the seat `node-engine`'s. + How it is checked: rows of the assigner's `wants_test.go`: a want at an older fingerprint whose entry ask fails is + written held with `awaits-entry:`, and the pass does not wait; the answer wakes a pass that writes it by + its needs; an entry not found raises `entry-not-found`; an ask failing past `entry-asks` raises `entry-unanswered` + and the want stays held. ADR 0614 §4; ADR 0668; ADR 0682 §11; principles 3 and 7. +- **H-A-699 (the token files' pass runs at every start while a file remains, reads the forge's token lists first, and + a failed revocation is a finding, 25 Nov)** Amends H-A-642. Where met: gitea's token source (mesh-catalog + `modules/gitea/token.ts`) at a first mint keeps the new token through the vault's own-put, then deletes at the forge + the tokens of the account's old fixed name (`doMint`), and mints only when the vault holds no token; the retirement + of the admin's old token keeps a retry file and is tried again at the next start (`retireAdmin`). So a pass inside + the first mint's drop would list the forge's tokens after it had deleted those the files hold, match none, and never + run again. + (1) **At every start while a file remains.** The pass runs at each start of the bundle's process while any of the + token files remains (`token`, `packages-token`, their `.scopes`, and a `.tmp` of any of them), once this start's + token is held (minted and kept, or read from the vault: H-A-602's order), and not inside `doMint`. + (2) **The lists first.** It reads the token lists at the forge, of each account the bundle mints for and of the + admin, once, before this start deletes any token there: at a first mint, between the own-put and `doMint`'s drop of + the old fixed name, which comes after it. + (3) **The pairs.** A pair is a token file and its `.scopes`, matched to a listed token by the file's token's last + eight characters and the scopes its `.scopes` names. A `.tmp` is a write the earlier build did not finish: a token + `.tmp` is matched as its file is, by its own last eight characters, with its pair's scopes (its `.scopes`, else its + `.scopes.tmp`), and goes with its pair; one holding no whole token (gitea's form, forty hexadecimal characters) is + deleted with no revocation, since it names no token at the forge, said in the journal. A matched pair is revoked at + the forge (deleted by its id), then deleted; a pair with no match is kept and said (H-A-642). + (4) **A failed revocation is a finding.** A revocation the forge refuses (any answer but deleted or not found) keeps + its pair and writes gitea's finding `token-file-unrevoked` in its findings state (id the file, naming the forge's + answer), tried again at the next start by (1); a pair kept for no match writes the same finding, naming that; the + finding clears when its pair is deleted. + How it is checked: rows of gitea's `test/token.test.ts`: at a first mint the lists are read before the drop of the + old fixed name, and both pairs match and go; with the vault holding a token, a start with a file left runs the pass; + a `.tmp` with a whole token goes with its pair, and one with a cut token is deleted unrevoked; a refused revocation + keeps the pair and writes the finding, and the next start's success clears it. ADR 0550 §1; principles 3, 4 and 12. +- **H-A-700 (the publishes' two durables per holder, by name; H-A-483's addenda; a return to the earlier build, 25 + Nov)** Amends H-A-652. Where met: the builder's pull deletes a holder's `publishes--live` and `-again` at + every pull, then makes its one `publishes-`, filtered on `.publish..>` (H-A-483's second + addendum; mesh-delivery `cmd/mesh-delivery-builder/publishitem.go`, `pull`), and its learn refuses a holder whose + name ends in `-live` or `-again` (the third addendum). + (1) **The two durables.** Per holder, on the work queue `publishes`: `publishes--live`, filtered on + `.publish..live.>`, with four in flight (§793), and `publishes--again`, filtered on + `.publish..again.>`, with one (H-A-620 (2)); each with the ack wait `publish-pause-max` and ten + deliveries (H-A-653), as the one durable has them. + (2) **Who deletes the one, and when.** At each holder's pull the builder deletes `publishes-` before it makes + the two, since its filter overlaps both and a work queue refuses overlapping filters; not found is ignored and a + removal said; its unacknowledged items stay on the queue and reach the two. + (3) **H-A-483's addenda.** The second addendum's deletion of `-live` and `-again` at each pull goes, since those are + the two durables now made; the third addendum's refusal of a holder whose name ends in `-live` or `-again` stays, + since such a holder's one durable of an earlier build would be another holder's durable now. + (4) **A return to the earlier build.** A return of the builder to a build before H2 (the placement's one value, ADR + 0682 §8) needs no hand act: that build's pull deletes `publishes--live` and `-again` before it makes its one + (H-A-483's second addendum, as built), and the items stay on the queue. Where its journal says a removal failed, the + person removes both with the bus module's `nats_consumer_remove` (with `why`). + How it is checked: cases of the builder's publishes integration test + (`TestThePublishQueueLosesNoItemAndNeverSendsADroppedItem`): with `publishes-` standing and an item + unacknowledged on it, a pull removes it, makes the two, and the item is sent; four `live` sends run at once while a + second `again` send waits; a pull with the two standing changes nothing. ADR 0674 §3; ADR 0682 §8; principles 1, 3 + and 7. +- **H-A-701 (a failed owner pass leaves the units stopped, 25 Nov)** Amends H-A-641. When the owner pass fails on an + entry (the node-engine cannot give it its declared owner), the apply ends failed, naming the path and the error as a + failed apply is said, and the module's units stay stopped: a unit started on a directory partly given to another + account would run or write as the wrong one (principle 3). The next apply runs the pass again from the start + (H-A-550's rules take an entry already given as given) and starts the units once it completes; the pass back of + H-A-602 follows the same rule, and the tool runner is never stopped. How it is checked: rows of the node-engine's + unit tests (`internal/apply/contents_owner_test.go`): a pass failing on one entry leaves the units stopped and the + apply failed naming the entry; the next apply's pass completes and starts them; the tool runner is not stopped. + Principles 2 and 3. +- **H-A-702 (`assigner_validate` is a hand act with `why`; a run on request builds until cancelled, 25 Nov)** Amends + H-A-684 (1) and (2). The tool writes the state `composition-runs` and starts a manifest validator's build, so it is + a hand act: it takes `why` (required) and is recorded in the hand-act log of the seat `mesh-hand-acts`, as + `gate_record_end` is (G §159), naming the pipeline, the run joined or started and the caller; a call that starts + nothing (a pipeline unknown, a candidate not held, a run already ended) records none. H-A-684 (1)'s "so it is no + hand-act" goes. A run on request (the seat `mesh-pipeline-runner`'s `run`) takes only its members, and its steps run + past `validate` until it ends or is cancelled: so a judgement before a merge costs the run's builds unless the person + cancels it (`cancel`) once `assigner_validate` has answered; this tool stops no run after `validate`. How it is + checked: rows of the assigner's `validatestep_test.go`: a call with no `why` is refused; a call that starts a run + records one hand act naming it, and one on an ended run records none. ADR 0666 §18, §25; principles 3 and 4. +- **H-A-703 (the check rows of H-A-653, H-A-654 and H-A-662, 25 Nov)** Each answer gains its row, none a new + top-level test function. H-A-653: a row of the builder's publish unit tests: an item at its tenth delivery is + terminated and `version-unreleased` "given up after 10 deliveries" raised, and the queue's dead letters hold none of + it. H-A-654: a case of the builder's publishes integration test: the consumer deleted under a running dispatch and + made again, the dispatch binds again on the created advisory and sends the next item, and a pull error never ends + it. H-A-662: a row of the builder's build unit tests: `MarkUnstored`'s first true for a done trunk key starts + `BuildAgain` once, and a second true for the same reservation starts none. ADR 0436 §6; principle 3.