Design 47 H2: the fix pass after round 3 as H-A-620 to H-A-625

Round 3 left musts in three domains, and ADR 0686 was accepted meanwhile:
a stream form the bus does not have, one send at a time applied to live
publishes, a keeper that would read a manifest, a capability name kept in
mesh-sdk, and a group judged without the failed mover it carries. Each is
now a line under the record or principle that settles it, and the
conditional ADR 0686 branches are the design.
This commit is contained in:
2026-11-23 16:14:08 +01:00
parent fcfc101da4
commit aa768f550a
@@ -5,6 +5,8 @@ design: 47
milestone: H
updated: 2026-11-23
decisions:
- "ADR 0686"
- "ADR 0618"
- "ADR 0668"
- "ADR 0656"
- "ADR 0606"
@@ -151,9 +153,9 @@ it.
H-A-594 (2) to (5) and H-A-595, plus a live check after H2's delivery: every mover of main.457 whose own steps passed
is wanted on its placing machines, read through the seat `mesh-wants`. (4) gains the pass back of H-A-602. Principle
3.
- **H-A-605 (four notes of round 2, 16:10)** 23 Nov, round 2: (1) H-A-568: ADR 0686 §5, proposed and not in force, would
move mesh-sdk's manifest reads, `ManifestNeeds` included, to the indexer; if it is accepted before H-A-568 is built,
both moves land as one change of mesh-sdk. (2) H-A-572 (2): the runner clears a module's `pipeline-failed` (H §770)
- **H-A-605 (four notes of round 2, 16:10)** 23 Nov, round 2: (1) H-A-568: ADR 0686 §5, accepted at 16:04, moves
mesh-sdk's manifest reads, `ManifestNeeds` included, to the indexer, and both moves land as one change of mesh-sdk, as
H-A-622 writes it. (2) H-A-572 (2): the runner clears a module's `pipeline-failed` (H §770)
when its registrations view no longer names the module, as the indexer frees its failed record. (3) H-A-578 (5): the
stream that keeps `versions-filled` is dropped by the bus module's `nats_drop`, by warrant after its snapshot
(H-A-126), once the new builder runs, named among the hand acts after H2's delivery in its milestone plan. (4) H-A-569
@@ -310,17 +312,16 @@ Each line below amends the answer it corrects and names the record clause or pri
- **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.
pipeline (ADR 0682 §8, §9). (2) H-A-589 (4) and (5) and H-A-591 (4): ADR 0686, accepted at 16:04, dissolves
mesh-delivery-sdk (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, as H-A-624 writes it. (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
@@ -329,3 +330,69 @@ Each line below amends the answer it corrects and names the record clause or pri
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.
## The fix pass after round 3 (2026-11-23 from 16:30 CET)
The lead checks these lines against round 3's remaining findings; ADR 0686 was accepted at 16:04, so its lines are the
design now.
- **H-A-620 (the publish-again queue reads its own stream before a put; one `again` send in flight per holder, 16:30)**
23 Nov, the fix pass (seams, security, running), amends H-A-613 (1), (2) and (4): (1) No form of a manifest's stream
refuses a new message while one is held, so before it puts a version again the builder reads its own stream
`publishes` for that subject, `publish.<holder>.again.<module>.<version>`, by a read of the subject's last message; a
message held there means the version is queued or being sent, so it puts nothing. The message id of H-A-613 (1) stays,
so the same event heard again puts nothing either. No manifest form is added and nothing is applied to the live
stream. (2) ADR 0674 §3's one publish at a time is about the publish again alone: at most one `again` send is in
flight per holder, while `live` sends keep §793's four in flight (H-A-290 (3): one at a time made a release wait forty
minutes). (3) The kept-call pace of H-A-613 (4) is the call's own transport retry (ADR 0668 §1); a new publish again
of a version whose send ended on an answered failure still waits for ADR 0674 §2's next event. How it is checked:
whole (builder): two returns of one holder queue the version once; a second `again` send to a holder waits while one
runs, and four `live` sends run at once. ADR 0674 §2, §3; ADR 0668 §1; principles 1 and 3.
- **H-A-621 (`nats_consumer_narrow` asks the seat `mesh-catalog` what a module consumes, 16:31)** 23 Nov, the fix pass
(seams), amends H-A-615: by ADR 0686 §3 and §5 the bus module's keeper reads no manifest. The seat `mesh-catalog`
serves `entry`, whose catalog entry already carries what the indexer derives from a manifest (`invokes`, `serves`,
`streams`, `requires`), and serves no event that names what a module consumes. So the entry gains the field
`consumes`, the subjects the module's accepted manifest consumes, filled by the indexer beside `invokes`; the seat's
definition is regenerated and its form raised with H-A-580's and H-A-605 (4)'s raise. The tool asks
`mesh-catalog.entry` for the durable's module, judged by name as H-A-127 and H-A-128 have it, and refuses to remove a
subject the answer's `consumes` holds; the keeper's accepted set carries no `consumes` of its own. How it is checked:
unit (indexer): an entry's `consumes` equals its manifest's; the row of H-A-615: a subject the entry's `consumes`
holds is refused. ADR 0686 §3, §5; principles 1 and 9.
- **H-A-622 (the capability's name is a value of the seat `node-engine`'s contract; `ManifestNeeds` moves whole to the
indexer, 16:32)** 23 Nov, the fix pass (seams), amends H-A-568 and rewrites H-A-605 (1) now that ADR 0686 is accepted:
shared code is only the runtime and a seat's forms (ADR 0686 §1, §2), and mesh-sdk's manifest reads, `ManifestNeeds`
included, move to the indexer (§5). So the capability names a node-engine states, `directory-contents-owner` among
them, are values of the seat `node-engine`'s contract, the answer of its verb `manifest-reads` (ADR 0618 §3),
generated in the contracts module that holds that seat's definition (ADR 0686 §2) and read there by the node-engine,
which states them, the indexer, which names them as needs, and the assigner, which compares the two; mesh-sdk's
constant `ReadDirectoryContentsOwner` goes. `ManifestNeeds` moves whole into the indexer with mesh-sdk's other
manifest reads, and H-A-568's runs-as rule is one rule of its manifest validator there; H-A-568's removal of the line
from mesh-sdk is that move, one change of mesh-sdk with no copy and no alias left (§5). How it is checked: ADR 0686
§9's widened unit test of mesh-sdk refuses `ManifestNeeds` and the constant there; unit (indexer): H-A-568's rows.
ADR 0686 §1, §2, §5; ADR 0618 §3; principle 9.
- **H-A-623 (a placed group that holds the failed mover is judged with it, 16:33)** 23 Nov, the fix pass (seams), amends
H-A-609 (1): a failed mover leaves the movers a reopened end judges only when it is outside the group placed again; a
group `runner_unfinished_place` or `rerun` places with the failed mover in it, its failed step asked again as `rerun`
asks it (H-A-607 (3)), is judged with that mover, so its end passes only when that mover's step passes (H-A-414). How
it is checked: whole (runner): a group placed with its failed mover whose step fails again ends failed; one placed
without it ends on its own movers. ADR 0682 §8; principle 3.
- **H-A-624 (where the shared publish, the conformance cases and the reading of no responders go under ADR 0686,
16:34)** 23 Nov, the fix pass, rewrites H-A-618 (2) and amends H-A-570 (3), H-A-589 (4) and (5), H-A-591 (4) and
H-A-593 (2) to (4): mesh-delivery-sdk is dissolved (ADR 0686 §4). (1) The shared publish of H-A-589 (4) goes behind
the one module that serves the step runner, called through its verbs for each step (§4); which module that is no line
names yet. (2) The conformance cases of H-A-589 (5), H-A-591 (4) and H-A-593 (2) to (4) become fixtures of the seats'
definitions in their contracts modules (§2): the registry seats' cases in the definitions of the four registry seats,
the build seats' cases, `reproducible` among them, in those of `node-build-go`, `node-build-node` and
`node-build-image`; each holder's and build module's tests run the fixtures of every seat it fills, and mesh-catalog's
failure-kit check (H-A-591 (4)) reads that they do. (3) The one place that reads no responders, a passed deadline and
`away` as a transport fault (H-A-570 (3)) is the runtime's calling of a verb in mesh-sdk (ADR 0686 §1: calling and
answering a verb; ADR 0668 §7: mesh-sdk carries the kept-call form); a build step's ending of its run `again` on such
a fault (ADR 0664 §1), today `PublishFault` and `sdkstep.Passing`, goes with the step runner to the module of (1). How
it is checked: ADR 0686 §9's checks; the code review finds no package of mesh-delivery-sdk imported. ADR 0686 §1, §2,
§4; principle 9.
- **H-A-625 (four notes of the fix pass, 16:35)** 23 Nov: (1) H-A-611: while a wait on the revision view stands, the
watchman times the step from that wait's `clock-from` in place of the step's own start. (2) H-A-607 (2): the failed
mover's `pipeline-failed` (H §770) names the movers held behind it and `runner_unfinished_place` as the act that
places them. (3) H-A-613 (4) is read as H-A-620 (3) says. (4) H-A-619's live check: each key of `unfinished` ends
either deleted, its module wanted at its fingerprint or a newer one, or still tied to the failed mover it names.
Principles 3 and 4.