Design 47 H2: round 3 of the review as H-A-607 to H-A-619

ADR 0682 §6 lets the runner start a delivering pipeline by itself only on
a take-in or a publish, so the automatic reopen and the carry at start
go: carried movers ride a pipeline that already waits or runs, and the
hand tools reopen. The other findings of the last round pin what a
carried mover is read from, say who hears each new event, keep one
publish in flight per holder as a kept call, merge the two stopping
changes in one call, and correct a claim about who hears record-ended.
This commit is contained in:
2026-11-23 16:08:35 +01:00
parent 11dbae7c2b
commit fcfc101da4
@@ -5,6 +5,12 @@ design: 47
milestone: H
updated: 2026-11-23
decisions:
- "ADR 0668"
- "ADR 0656"
- "ADR 0606"
- "ADR 0605"
- "ADR 0578"
- "ADR 0283"
- "ADR 0684"
- "ADR 0682"
- "ADR 0674"
@@ -176,3 +182,150 @@ it.
queued version ends at once at such a refusal. How it is checked: whole (builder): a publish refused once stays
reserved and is not asked again until a registry holder's `running` is heard, then is asked once; the code review
finds no timer, pause or count of tries on the publish path. ADR 0674 §2 to §4; principles 1 and 3.
## Round 3 of the review by architectural domain of H-A-568 to H-A-606 (2026-11-23 from 16:13 CET)
The four reviewers by architectural domain did not approve round 2 at 11dbae7c; this is the last round (playbook 07).
Each line below amends the answer it corrects and names the record clause or principle that settles it.
- **H-A-607 (the runner starts no pipeline by itself to carry a mover; the carry rides a pipeline that waits or runs,
and the hand tools reopen, 16:13)** 23 Nov, the lead's answer to round 3, read against ADR 0682 whole; amends H-A-594
(3) and (5), H-A-581 and H-A-571. ADR 0682 §6: the runner starts a delivering pipeline on its own only on
`take-in.taken` and on `package-published` for a module with a "B published before A builds" edge, "never by a sweep,
a comparison at its start or a timer", and its verbs stay; §7: a running pipeline runs to its end. So: (1) **What
goes.** H-A-594 (3)'s reopen of a failed pipeline on another pipeline's `pipeline-ended`, its start of a pipeline
keyed by the head's revision when that revision has none, and H-A-594 (5)'s carry of every key at the runner's start
go. (2) **What the runner does by itself.** At a pipeline's end `failed`, `cancelled` or `could-not-run`, it adds each
closed group (H-A-594 (2)) to the head's pipeline when that pipeline waits or runs, which starts nothing (§786); every
other group waits in `unfinished` and is added to the pipeline the next `take-in.taken` starts, as §786 has it, each
mover whose fingerprint is still its entry's at that revision. (3) **What a person does.** The runner's verbs stay
(ADR 0682 §6): `start` (H-A-571, with its pipeline keyed by the head's revision when that revision has none), `rerun`
(G-24 §727, which reopens the failed pipeline), and `runner_unfinished_place`, which places one key's closed group, or
with `all` true every key whose pipeline neither waits nor runs, each group by (2) when the head's pipeline waits or
runs and otherwise by reopening the failed pipeline for that whole group under its own key and revision (ADR 0684 §3);
a failed step inside the group is asked again as `rerun` asks it. Each call is one hand act with its `why`, written
through mesh-hand-acts. (4) **Today's keys.** H2's milestone plan names the hand acts after the runner's delivery:
first `runner_unfinished_drop` of every key whose module a newer revision already delivered at another fingerprint
(H-A-555), such as `main.adwaita`, whose key names 7f986fd6 while the wants of its machines name bddccff9, then one
`runner_unfinished_place` with `all` true; `runner_unfinished` is read before and after. How it is checked: whole
(runner, with a stub build seat): a failed pipeline's group joins a running head pipeline; with none running, nothing
starts until the next `take-in.taken`, whose pipeline carries the group; `runner_unfinished_place` with `all` reopens
the failed pipeline for a group when the head's pipeline has ended; the runner's start carries nothing. ADR 0682 §6,
§7; ADR 0684 §3; principles 3 and 4.
- **H-A-608 (a mover not delivered pins the revision its entry comes from, and is read there, 16:14)** 23 Nov, round 3
(running), amends H-A-595 and H-A-594 (3): §749 frees a pipeline's pin at its `pipeline-ended`, so the keys left today
name revisions 455, 457 and 459 that the indexer no longer keeps (it keeps 439, 458 and 460 to 493). So: the indexer's
record `failed.<branch>.<module>` (H-A-566, H-A-595) is written for every mover a `pipeline-ended` names in
`unfinished`, as for one whose own step failed, both being movers not delivered; it pins the revision the mover's
entry comes from (its kept revision, H-A-285, else the pipeline's) and that revision's `base`, and is freed as H-A-566
and H-A-572 (2) say. A pipeline that carries or reopens a mover reads its entry at that kept revision, else at the
head's revision when the entry there has the same fingerprint (§786); a mover found at neither is dropped from
`unfinished` with one journal line naming its fingerprint and the revisions looked at, since a newer revision moved it
or its entry is gone. How it is checked: whole (indexer): a revision a mover named in `unfinished` comes from stays
after its pipeline's end, with its `base`; whole (runner): a mover whose kept revision is gone is read at the head's
revision at the same fingerprint, and one found at neither is dropped and said. ADR 0656 §2; principle 3.
- **H-A-609 (a reopened pipeline is judged over its carried group alone; the gate hears `mover-added`, 16:15)** 23 Nov,
round 3 (health, seams), amends H-A-594 (4) and H-A-597: (1) A pipeline reopened by `runner_unfinished_place` is
judged over the carried group alone: the failed mover and the movers tied to it leave the movers its reopened end
judges and stay in `unfinished` as before, so one failed mover beside one independent mover gives two ends, the second
passed for the independent one, and no third. A reopened pipeline is never reopened from its own reopened end; only a
person's `rerun` or `runner_unfinished_place` reopens it again. (2) The gate consumes `mover-added`, declared in its
manifest's `consumes`, and counts the mover in the record of the pipeline that carries it (G §144); a pipeline's
`pipeline-ended` with a higher end count reopens the gate's record of that pipeline, which ends again when the group's
movers run and says `record-ended` with `ends` one higher (H-A-597). (3) A take-in whose pipeline key is held adds its
entries (H-A-594 (1)) and says one `mover-added` per entry with `take-in` (the source revision) in place of `from` or
`caller`. How it is checked: whole (runner): one failed and one independent mover give two `pipeline-ended`, the
second passed for the independent mover, and no third; whole (gate): a `mover-added` counts the mover in the carrying
record, and a reopened pipeline's passed end reopens and ends that record with `ends` 2. ADR 0682 §8; ADR 0666 §9;
principle 3.
- **H-A-610 (a tie ends when the failed mover leaves the registrations, 16:16)** 23 Nov, round 3 (seams), amends H-A-594
(2): a mover's tie to a failed mover is read from its `unfinished` key's `pipeline` and that pipeline's edges between
its movers at its revision; it ends when the failed mover's module leaves the registrations (its record freed, H-A-572
(2)), and the movers tied to it are then carried as any closed group (H-A-607 (2)). How it is checked: whole (runner):
a tied mover is carried at the next take-in after the failed mover's module leaves the registrations. ADR 0666 §2;
principles 3 and 10.
- **H-A-611 (the watchman times the step held for the view by the wait it hears, 16:17)** 23 Nov, round 3 (health),
amends H-A-599: the watchman's manifest `consumes` the seat `mesh-pipeline-runner`'s `wait-held` and `wait-ended`, and
it times only a wait whose `on` is `revision view`, by that wait's `bound` from its `clock-from`, raising
`pipeline-stands` past it and clearing it at the wait's end; an `approval` step's wait owes no progress and is never
timed (ADR 0666 §24; ADR 0283). At its start it seeds its open waits from the runner's `stands` (G §75). How it is
checked: whole (watchman): a held wait with `on` `revision view` raises `pipeline-stands` after its bound, also after
a restart of the watchman; an `approval` wait held twice as long raises nothing. ADR 0666 §24; principle 3.
- **H-A-612 (a holder's `fingerprints` state is spoken for by the bus module's fill condition, 16:18)** 23 Nov, round 3
(health), amends H-A-589 (2): its unnamed finding past 80 % goes. The state is kept data with a cap that refuses a
write when full (H-A-589 (2), §812), and the bus module's fill condition speaks for a kept store as it does for the
gate's ledger (§809), so a second condition for one cause is a part with no need (principle 7). The refusal at the cap
stays as H-A-589 (2) says it. How it is checked: the code review finds no fill finding in the registry holders.
Principles 3 and 7.
- **H-A-613 (the publish again rides the work queue `publishes`, one send in flight per holder, as a kept call, 16:19)**
23 Nov, round 3 (seams, running), amends H-A-606: (1) The queue is the builder's work queue `publishes` (§793,
H-A-461), not the state `publish-queue`, which H-A-461 removed. An event of ADR 0674 §2 puts each version it publishes
again once, on `publish.<holder>.again.<module>.<version>` with the message id
`<holder>.again.<module>.<version>.<sequence>`, `<sequence>` the event's stream sequence, so the same event heard
again puts nothing. The stream keeps at most one message per subject and refuses a new one while one is held, so a
version queued or being sent is not queued again (ADR 0674 §3). (2) At most one send is in flight per holder over both
classes, `live` first (ADR 0674 §3: one publish at a time to each holder); §793's four sends in flight become one. (3)
The consumers' ack wait is G §369's publish bound, the builder's setting `publish-ack-minutes` (default 10), and the
builder marks a message in progress while its call waits, so it is given again only when the builder itself stopped;
the publish values of the builder's re-ask state go. (4) The publish and its publish again are §775's kept call,
marked safe to repeat since the holder takes a version once by its name and version (ADR 0668 §2): no responders, a
passed deadline and `away` are waited out at the kept-call pace (ADR 0668 §1), `call-unanswered` written after five
minutes (§3). Only an answered failure or a refusal ends the send: the version stays reserved with
`version-unreleased` naming the holder's words, and is published again only on ADR 0674 §2's next event or by
`builder_publish_again`. How it is checked: whole (builder): two events of one return queue a version once; a second
holder's version waits while one send to the first runs; a publish met by no responders is called again and passes
when the holder answers; a refused one waits for the next `running`. ADR 0674 §2, §3; ADR 0668 §1 to §3; principles 1
and 3.
- **H-A-614 (H-A-569's and H-A-570's pull requests merge in one call, so no build of the tool runner with `stopping` is
wanted, 16:20)** 23 Nov, round 3 (security), amends H-A-596, H-A-569 (1) and H-A-570 (6): H-A-569's call changes
mesh-sdk's `catalogue`, which the tool runner (`node-tools`) imports, so that call moves the tool runner as a code
dependent (ADR 0682 §4); were it merged before H-A-570's change, the tool runner would be built from mesh-tools at its
merge of #90 (e8f58540) or later, which answers `stopping`. So the pull requests of H-A-569 and H-A-570 (mesh-sdk,
mesh-tools, mesh-delivery, the node-engine's `mesh-host` and mesh-catalog) are merged in one call of `merge-pull`: one
take-in, one pipeline, their orders held by its tiers (ADR 0682 §6, §8). How it is checked: live, after H2's delivery:
no want of `node-tools` names the fingerprint of any build of mesh-tools from e8f58540 on that lacks H-A-570's change,
3b09a323 among them, read through the seat `mesh-wants`. ADR 0682 §4, §6; principle 3.
- **H-A-615 (`nats_consumer_narrow` refuses a subject the module still consumes, 16:21)** 23 Nov, round 3 (security),
amends H-A-600: the tool judges a durable's module as H-A-127 and H-A-128 do (its name `<node>_<module>` or a prefix
`<node>_<module>_`, against the keeper's accepted set), and refuses to remove a filter subject that the accepted
manifest of that module still consumes, naming the subject; the keeper's accepted set carries each module's `consumes`
beside the module, decoded from the same accepted manifest (ADR 0578 §3: a part decodes a manifest and takes its
verdict, never judging it). How it is checked: one row of the bus module's whole test: a call removing a subject the
module's accepted manifest consumes is refused and the consumer keeps it. ADR 0640 §3; principles 3 and 4.
- **H-A-616 (an artifact held with no kept fingerprint counts as held for F when its digest is F's, 16:22)** 23 Nov,
round 3 (security), amends H-A-589 (1) and H-A-590 (1): ADR 0606 §1 keeps a numbered fingerprint's number. So an
artifact a registry holds at V with no fingerprint kept counts as held for F, and F keeps V, when its digest equals
the digest F's reservation records for that artifact; it counts as held elsewhere only when the reservation records
another digest or none. The 17 versions of issue 1984 note 3 record none, so they are still withdrawn by H-A-590. How
it is checked: a row of H-A-593 (1)'s table: an artifact held at V with no fingerprint and the reserved digest keeps
V; one with another digest withdraws it. ADR 0606 §1; ADR 0605 §4; principle 3.
- **H-A-617 (who hears a second `record-ended`, and its form, 16:23)** 23 Nov, round 3 (health), amends H-A-597, whose
"so the self-check's probe and the status view hear the moved time as an event" is wrong: `record-ended` carries no
`delivery-time` (H-A-25) and only the watchman consumes it, and the self-check's probe reads `gate_times` (H-A-396),
so the probe reads a moved time at its next read. The second `record-ended` is the event of the record's new end; the
watchman takes a second end of a record it cleared already as nothing new. `ends` is a field of the seat
`mesh-delivery`'s event `record-ended`, its definition regenerated and its form raised by one. How it is checked: unit
(contracts): `ends` read on `record-ended`; whole (watchman): a second `record-ended` of a cleared record raises and
clears nothing. Principles 3 and 7.
- **H-A-618 (three notes of round 3, 16:24)** 23 Nov, round 3: (1) H-A-589 (6): the registry holders (distribution and
gitea, mesh-catalog), the seats' contracts (mesh-delivery-contracts), the conformance cases and the builder
(mesh-delivery) merge in one call of `merge-pull`, since the order between their modules exists only inside one
pipeline (ADR 0682 §8, §9). (2) H-A-589 (4) and (5) and H-A-591 (4): if ADR 0686, proposed and not in force, is
accepted, mesh-delivery-sdk is dissolved (its §4): the shared publish goes behind the one module that serves the step
runner, and the conformance cases become fixtures of the registry and build seats' definitions in their contracts
modules (its §2), run by each holder's and build module's tests; until then they stay where H-A-589 and H-A-591 put
them. (3) H-A-602: a token file holds only the token and its scopes, so gitea's TypeScript bundle finds the token at
the forge by listing the account's tokens through the forge's own interface and matching the last eight characters and
the scopes it holds; a token it cannot match is left with its file and said once in its journal. When a new gitea
build is faulty after the files are gone, a return to an earlier build that runs as gitea's own account (H-A-543's
change on) reads its tokens from the vault and recovers; a return to a build before it does not. With no such earlier
build, the fixed build is placed by hand (the instruction hot-deploys-allowed), since gitea holds the registry seats
its own publish would go through. Principles 3 and 4.
- **H-A-619 (the acceptance tests of round 3, by level, 16:25)** 23 Nov, round 3, amends H-A-604 (3): the runner's whole
test with a stub build seat covers H-A-594 (1), (2) and (4) as H-A-607 to H-A-610 amend them: a failed node-engine
ties its gitea, and gitea is carried once the node-engine passes; a group joins a running head pipeline; with none
running nothing starts until the next take-in; `runner_unfinished_place` with `all` reopens a failed pipeline for an
independent mover, which gives two ends, the second passed, and no third; a tie ends when the failed module leaves the
registrations; a mover whose kept revision is gone is read at the head's. The live check after H2's delivery stays:
after the hand act of H-A-607 (4), every mover of main.457 whose own steps passed is wanted on its placing machines.
Each is a step of the existing whole test, never a new top-level test function (the test budget). Principle 3.