Design 47 H2: H-A-707 to H-A-710, the prepare's DQ-43 to DQ-46 as design lines

No principle settles these four, so each is written as a choice within the
records it follows: a build of a key holds one entry and its origin, and a
blank pin is the publisher's build in that revision (ADR 0573 §2, ADR 0666 §15);
a starting holder answers what it holds and says away for a view it waits on,
and a composition's reads wait within reads-bound (ADR 0664 §1, ADR 0668 §1,
ADR 0615 §4); show and stands answer within a bound, pipeline-started carries
what its readers read, and mesh_wait cuts a long body and hears every seat of
the seat list (ADR 0367, ADR 0670); no container is handed MESH_FINGERPRINT and
a difference of it alone asks nothing (ADR 0656 §1, ADR 0539 §14). The fifth
file reaches its 60 KB bound with H-A-707, so a sixth holds the rest.
This commit is contained in:
2026-11-25 15:08:33 +01:00
parent c5e9d2b2d9
commit a935ab9939
2 changed files with 221 additions and 0 deletions
@@ -6,6 +6,7 @@ milestone: H
updated: 2026-11-25
decisions:
- "ADR 0690"
- "ADR 0573"
- "ADR 0597"
- "ADR 0595"
- "ADR 0686"
@@ -501,3 +502,55 @@ bb11615, the node-engine d27af83, mesh-contracts 52e5224) and of mesh-tools 3934
it is checked: a row of the node-engine's tests (a unit on disk without `MESH_NODE` is written again with it at the
first pass, and not at the second); live, networkmanager's sign-in runs on shanks, ace and g14 after the node-engine's
delivery. A-342; principles 3 and 2.
## The prepare's design questions no principle settles: DQ-43 to DQ-46 (2026-11-25 from 14:50 CET)
The preparer's rows DQ-43 to DQ-46 (hq `.work/47-H2-corrections/milestone.md`) name four questions of scope item 13 and
issue 1984's notes that no principle settles; each is answered as a design line of the milestone, a choice within
what the records it names decide (playbook 02, *Answering a design question*, item 1), read at mesh-delivery 3b1f03ce,
mesh-sdk bb11615, mesh-tools 393449e, the node-engine d27af83 and mesh-catalog 17e1bfb6. H-A-707 is below; H-A-708 to
H-A-710 continue in [H2-lead-answers-6.md](H2-lead-answers-6.md), since this file reaches its 60 KB bound with it.
- **H-A-707 (DQ-43: a key's build holds one entry and its origin; a blank pin is the publisher's build in that
revision, or the pin a newer entry of the key names, 25 Nov)** Where met (issue 1984 note 30, read at mesh-delivery
7b1756e5): six builds of main.511 failed after 10 minutes, "<publisher> publishes no version of it at source revision
155 of main within 10m0s". mesh-config's fingerprint was the same at revisions 510 and 511, its contracts pins blank
at 510 and filled (v0.1.109) at 511; `Reconsider` (`internal/build/run.go`) started the key's build from its copy of
`known`, revision 510's entry, while `take` moved `origin[key]` to source 155, and `awaitPublished`
(`revisionwait.go`) filled the blank pin through `Reserver.VersionAt` (`internal/versions/reserve.go`), which matches
the publisher's reservation or release at that exact branch and source: every publisher had published at source
154, none at 155. The next build, from revision 511's entry, built at once. ADR 0573 §2 has a module built against
the latest published version of each package it uses and ADR 0666 §15 has it wait for its dependency's publish;
which entry a build reads and how a blank pin is matched are the design's (H-A-521, H-A-547 (3), H-A-551 and
H-A-165 placed them; this line amends them).
(1) **A build holds one entry and its origin.** The builder keeps, per build key, the newest entry heard and the
origin it came with (branch, source and catalog revision) as one value, written together at each `take` in place of
`origin` by key. A build the builder starts by itself (at a `take`, `Reconsider`, `NodesChanged` or a package's
publish) reads its key's newest value when it starts, whatever value woke it; a build a step asks (`buildEntry`,
`step.go`) holds the step's entry with the step's branch, source and revision. Its reservation, its pins and its
revision wait read the value it holds, never `origin` as it stands at that moment; `originOf` goes.
(2) **A newer entry's pin ends the wait.** While a build waits for a blank pin's version, each wake (a `take`, a
registry seat's `package-published`) reads its key's newest entry: when that entry, of the same fingerprint, names a
version for the package, that version is the pin and the wait ends, said once in the journal ("<module> at
<fingerprint>: <package> takes <version>, the pin of the entry of revision <r>, heard while the build from revision
<r0> waited"). The build keeps its own origin, since its reservation names it (H-A-218), and is neither ended nor
started again: a key claimed is not left to undo, and the same fingerprint builds the same source.
(3) **Else a blank pin is the version of the publisher's build that the build's revision names.** The builder finds
the module that publishes the package (`Members`) and its fingerprint in the catalog revision the build holds (in its
picture of that branch while the picture holds that revision, else in the revision read by number through the seat
`mesh-catalog`'s `revision`, kept once read, as the revision wait reads it, H-A-205), and fills the pin with the
version `Reserver.PublishedOf` answers for that module, artifact and fingerprint: the rule of the seat
`mesh-builds`' `published` (H-A-328), by which the assigner fills a blank pin (H-A-628 (2)), so the two parts keep
one rule. While neither (2) nor (3) gives a version the build waits, within `package-wait-minutes` (H-A-165), and past
it fails the key: "package <path> has no published version: <publisher> at <fingerprint> (revision <r>) is not
published within <bound>". Fate: `Reserver.VersionAt` and `versionAtOrigin` go, this fill being their one caller;
H-A-547 (3)'s and H-A-551's "the reservation of the module that publishes it at the source revision of the key's own
origin" reads "the publisher's build that the build's revision names"; the released record's source stays.
How it is checked: rows of the builder's unit tests (`internal/build`): a build woken by revision 510's value after a
`take` of revision 511 with the same fingerprint builds from revision 511's entry and origin; a build waiting on a
blank pin takes the version a newer entry of its key names, says the line once and writes no failure; a blank pin
whose publisher's fingerprint was published at another source is filled at once with that version; one never
published fails past the bound naming the publisher and its fingerprint. A case of the builder's whole test
(`cmd/mesh-delivery-builder/integration_test.go`): an entry taken in again at a later revision with the same
fingerprint while the earlier build waits builds once, with no key written failed. Live, after H2's delivery: no
build fails "publishes no version of it at source revision". ADR 0573 §2; ADR 0666 §15; principles 3 and 7.
@@ -0,0 +1,168 @@
---
layer: to-be
status: in-progress
design: 47
milestone: H
updated: 2026-11-25
decisions:
- "ADR 0664"
- "ADR 0668"
- "ADR 0615"
- "ADR 0682"
- "ADR 0670"
- "ADR 0367"
- "ADR 0656"
- "ADR 0539"
- "ADR 0377"
---
# Design 47, milestone H2: lead answers, continued a fifth time
This file continues [H2-lead-answers-5.md](H2-lead-answers-5.md) from H-A-708 on, since that file reached its 60 KB
bound with H-A-707: every later answer is written here. Each line names the record, the operator's answer or the
principle that settles it.
## The prepare's design questions no principle settles: DQ-43 to DQ-46, continued
H-A-708 to H-A-710 answer DQ-44 to DQ-46 as [H2-lead-answers-5.md](H2-lead-answers-5.md)'s section of the same name
says (H-A-707 answers DQ-43 there), read at the same mains.
- **H-A-708 (DQ-44: a starting holder answers what it holds and says `away` for a view it waits on; a composition's
reads wait within `reads-bound`, 25 Nov)** Where met (issue 1984 note 28): main.509's compositions of four movers
ended could-not-run at 23:42 on 2026-11-23, "the definition of the seat git is not read: mesh-catalog.seat-definitions
unanswered within its bound of 30s ... unanswered after 3m0.001s", asked at 23:39 while the indexer, holder of the
seat `mesh-catalog`, restarted at 23:35:31 and ran its start (its build log, its findings, its re-pins, a take-in, its
packages' publish at start) until the seat answered again at about 23:45; that the start held the answers is the
lead's reading, not proven. The composition run's reads (`cmd/mesh-delivery-assigner/compositionreads.go`,
`callRetry`) call again only while the fault's words match a list (`transient`), for a constant three minutes
(`readsBound`). Note 11's kind D (a build step's publish met by a tool runner's restart) is §799's, with H-A-603's
`again-delays`. The records settle the classes and the caller's duty: the transport faults are ADR 0664 §1's and
ADR 0668 §1's, `away` among them since their insights of 2026-11-21; a kept call is called again through each until it
is answered or its caller stops, and is the finding `call-unanswered` at five minutes (ADR 0668 §1, §3); an owner
answers its first-view verbs from what it holds as soon as it is connected (ADR 0615 §4). A holder that is starting
gets no class of its own, as one that is stopping got none (H-A-570): it is met as one of these.
(1) **A starting holder answers what it holds.** A verb or tool whose answer its holder reads from its own state
answers from the moment its process or bundle is connected: a start pass (a sweep, a take-in, a publish at start, a
log read whole) runs beside the answers and never holds one, as ADR 0615 §4 has it for the first-view verbs; the
holder says its start's phases in its journal and in its runtime's first-view tool (G §200).
(2) **What it waits on it answers `away`, at once.** A verb or tool whose answer needs a first view of another part
that its holder has not had yet (G §200) answers at once with the error kind `away` (§776), `part` naming that view
and `words` "not read yet since <time>", never holding the call to the caller's deadline: mesh-sdk's views
(`views.Follower`) and a bundle's first views answer a read made before their first view with that fault, and
`AnswerSeat`, stdio's serve and the tool runner's answer of a bundle's tool write it as §776 writes `away`. A holder
not yet connected is met by no responders.
(3) **A composition's and a validation's reads are kept calls within `reads-bound`.** Every read the assigner's
composition and validate runs make of the seats `mesh-catalog` (`revision`, `seat-definitions`, `entry`) and
`mesh-builds` (`published`) goes through §775's kept-call form, marked safe to repeat and paced as §775 says, bounded
by the assigner's setting `reads-bound` (1 to 9 minutes, default 8): it spans the six minutes the seat went unanswered
that night (23:39 to about 23:45) and stays under the runner's `ask-unanswered-bound` default of 10 minutes (§775,
§778), so the step ends with its own words. The form's journal line names the seat's holder and its machine as the
seat list names them (`seatlist.HolderOf`) and the last fault ("mesh-catalog.seat-definitions: its holder
mesh-delivery-indexer on <node> answered away: the catalog half of main not read yet since 23:35:40; 6 calls since
23:39:14"); `call-unanswered` is written at five minutes (ADR 0668 §3). Past the bound the step ends could-not-run
with every call's time and words (§775), and the runner's `rerun` asks it again. Fate: `readsBound`, `readsFirstWait`,
`readsMaxWait`, `callRetry` and `transient` go. The runner's widens read stays as A-472 has it (`widens-read-bound`: a
pipeline's end waits on no other part), its widening naming `away` where a holder said it.
Built in H2 in mesh-sdk, the tool runner and the assigner. How it is checked: rows of mesh-sdk's views unit tests: a
read before the first view answers `away` naming the view at once, and one after it answers; a row of mesh-sdk's
process unit tests: a seat verb that reads its own state answers while a stub start pass is blocked; rows of the
assigner's composition run unit tests: `seat-definitions` met by no responders for two minutes and then answered
composes; met by `away`, the journal line names the part; met past `reads-bound`, the step ends could-not-run naming
the holder, the last fault and the calls; a case of `TestTheCompositionStepComposesEachMachineThroughTheBuildSeat`:
the seat `mesh-catalog`'s holder stopped for 60 s while a composition reads, the step passes. Live, after H2's
delivery: the indexer started again while a pipeline composes leaves its composition steps passing. ADR 0664 §1;
ADR 0668 §1, §3; ADR 0615 §4; principles 3, 4 and 11.
- **H-A-709 (DQ-45: `show` names only its page's movers; `show` and `stands` answer within a bound; `pipeline-started`
carries what its readers read; `mesh_wait` cuts a long body and hears every seat of the seat list, 25 Nov)** Where met
(the watchers' reads of 2026-11-23; issue 595's notes of 2026-11-19 and 2026-11-23): the runner's `show`
(`internal/pipeline/read.go`, `Show`) answers the pipeline's record with every mover whole (each with its `published`,
`widens` and `tests`), whatever its filters, and pages only past §789's 768 KB, so `show` with `step` and `state` on a
pipeline of 70 movers answered over 220,000 characters, more than a session reads in one answer; `stands` takes no
filter and no bound; `pipeline-started` carries every mover whole (100,000 to 675,000 characters on a big pipeline,
again at each re-pin), as `pipeline-ended` does; and `mesh_wait` refuses `operator-channel.decided` ("operator-channel
is neither a seat nor a module of the catalog half"): its emitter check (mesh-tools
`node-tools/internal/console/wait.go`, `emitters`) reads mesh-sdk's `catalogue.Seats()`, which leaves out a seat its
holder declares (`SeatsFromDefinitions`), `operator-channel` among them, while the bus grants the tool runner that
subject (ADR 0670 §1). §789 and §811 (filters applied while reading; 768 KB with `capped`, `total` and the cursor of
§779) and ADR 0367 §1, §4 and ADR 0670 §2 (`mesh_wait` waits on any event of a seat or a module, and an event only
wakes a session) place these tools; their bounds and forms are the design's (principle 4).
(1) **`show` names only its page's movers.** The answer's `pipeline` carries in `movers` only the movers its page
holds: with `mover`, that mover; with `step` or `state`, the movers whose steps the page holds; with neither, none,
the page's mover rows (H-A-376) naming each. It carries `mover-count` and `step-count` (H-A-191) and no `unlogged`, as
`list` answers a record; `runner_show` answers the same.
(2) **`show` and `stands` answer within a bound.** Both take `bound`, the most bytes the answer holds (4,096 to
786,432; default the runner's setting `answer-bound`, 32,768, read by its process and its tools program, §781), and
answer `capped`, `total` and `next` (§779, §811); `stands` also takes `pipeline` and `module`, applied while reading,
its waits in the order of their `since`. A module that reads either whole pages through `next` (the watchman's
(`mesh-delivery-watchman`) seeding read of `stands`, the delivery view's and mesh-issues' reads of `show`). The seat
`mesh-pipeline-runner`'s form rises by one for these fields (§780), its contract is generated again and its importers
rebuild with it.
(3) **`pipeline-started` carries what its readers read.** Its `movers` are items of a definition of their own,
`StartedMover`: `module`, `commit`, `fingerprint`, `repository`, `tier` and `version`. The gate reads `module`,
`fingerprint` and `version` (mesh-catalog `modules/mesh-delivery-gate/cmd/mesh-delivery-gate/recordpipeline.go`,
`pipelineStarted`); the indexer reads none of them (it pins by `revision` and `kept`). `published`, `widens`, `tests`,
`unplaced`, `revision` and `over-budget` stay in the pipeline's record, read by `show`. A reader built before decodes
the new body, which only lacks fields (the gate refuses unknown fields, never missing ones), so no order edge is
needed; a mover takes about 250 bytes, so a pipeline of 100 movers says about 25 KB.
(4) **`mesh_wait` answers a long body cut.** The tool runner's setting `wait-body-bound` (1,024 to 786,432 bytes,
default 16,384), declared in its manifest beside `ask-bound`: a heard event whose body is larger is answered with the
body's top-level fields that are no list and no object, `cut` naming each field left out with its encoded size, and
`body-bytes`, the whole body's size; the filter is matched on the whole body first. An event only wakes a session
(ADR 0367 §4, ADR 0670 §5), which reads the state from the verb that owns it, so nothing it acts on is lost: thus
`pipeline-ended`, whose movers the assigner, the indexer and the gate read whole and which keeps them, is heard by a
session with its `pipeline`, `branch`, `source`, `revision` and `outcome`.
(5) **`mesh_wait` hears every seat of the seat list.** Its emitter check reads the definitions of the seat list the
tool runner holds (its `Definitions`, the seats their holders declare among them), each by the events its definition
declares, so `operator-channel.decided` (the definition's event `decided`, said per asker) is waited on; the read of
`catalogue.Seats()` goes. An ask's raising is an accept, which the tool runner never hears (ADR 0670 §1): a session
waits on the answer's `decided`, filtered by the ask's key.
Built in H2 in the runner, the seat's definition, the watchman, the delivery view, mesh-issues and the tool runner.
How it is checked: rows of the runner's read unit tests: `show` with `step` and `state` on a record of 129 movers
names only the page's movers and answers under 32 KB; `show` and `stands` past `bound` answer `capped` and a `next`
that reads the rest; `stands` by `pipeline` holds that pipeline's waits alone; a row of the watchman's seeding test
reads two pages; a row of the runner's start unit tests: `pipeline-started` of 100 movers carries `StartedMover`'s
fields alone, under 32 KB; rows of the tool runner's wait unit tests (`internal/console`): a heard body of 100 KB is
answered cut naming the fields left out, a filter on a field left out still matches, and `operator-channel.decided`
passes the emitter check with the bootstrapped seat list. Live, after H2's delivery: a watcher's `mesh_wait` on
`operator-channel.decided` wakes on the operator's answer to a knowledge-base ask (issue 595's live case), and `show`
of the next pipeline of more than 50 movers with `state` failed answers in one page. ADR 0367 §1, §4; ADR 0670 §1, §2,
§5; principles 3, 4 and 7.
- **H-A-710 (DQ-46: no container is handed `MESH_FINGERPRINT`, and a difference of that value alone recreates nothing
and asks nothing, 25 Nov)** Where met (issue 1984 note 33): on 2026-11-23 and 24 four modules of policy `record`
(plex, postgres, keycloak and nats) waited for the operator's yes for a move judged "it recreates" their container,
whose one difference was `env.MESH_FINGERPRINT` (nats's read with the seat `node-engine`'s `composition-diff`). The
node-engine writes the want's fingerprint into the env of every daemon and container it composes
(`internal/compositions/composed.go`, `withFingerprint`; G §205), so every new fingerprint of a module (a tools
bundle's change, mesh-sdk's rebuild of every module) changes its containers; its judgement of a move
(`internal/judge/judge.go`, `JudgeMove`; ADR 0377 §3 as ADR 0539 §14 has it) says it recreates, and the apply
recreates a container whose spec label differs (`internal/apply/apply.go`). ADR 0656 §1 has each process take its own
build from the fingerprint handed at its start, so an acting part knows which of its versions acts; G §205 has
mesh-sdk's runtime read it; the seat `node-engine`'s `process-builds` reads it from each running daemon and container
(`internal/processbuilds`). Of the 83 containers the manifests declare (mesh-catalog 17e1bfb6, mesh-media-catalog
c8c3318, mesh-networking 72d21c9), 75 run an outside image, seven an `upstream` copy and one (n8n's `server`) an
`image` built on an outside base: none runs mesh-sdk's runtime, so no container takes its build from the value, and no
acting part runs as a container. Which processes are handed it and how a move is judged are the design's.
(1) **A daemon is handed `MESH_FINGERPRINT`; a container is not.** `withFingerprint` writes the value into a daemon's
env alone; a container's composed env holds no `MESH_FINGERPRINT`, and one its manifest declares of that name is
dropped, the value being the node-engine's to say. G §205's "a service or a container alike" reads "a service". A
container that runs mesh-sdk's runtime would need the value; none is declared, so none is built for (principle 7).
(2) **A difference of the value alone is no change.** The judgement of a move compares two compositions' containers
with `MESH_FINGERPRINT` taken out of each env, on both sides, so a running composition that holds it and a new one
that does not are judged by everything else; and the apply takes as current a running container whose spec label
(`before.Spec`) equals the composed container's spec with `MESH_FINGERPRINT` set to the value the container's env
holds, as it takes a container labelled before the node-engine folded in what it reads, said once per container in the
journal ("<container> keeps MESH_FINGERPRINT <fingerprint>: a container is handed none, H-A-710"); its label is
written at its next recreate for another cause, which takes the value out. So H2's own delivery asks no yes for it,
and no later move does.
(3) **The readers say it.** `process-builds` answers a container with no `fingerprint` and with `unknown` "a container
is handed no MESH_FINGERPRINT: what it runs is read with composition-diff", whatever its env holds; `composition-diff`
names a container's `env.MESH_FINGERPRINT` difference "left from before H2, taken out at the container's next
recreate". The seat `node-engine`'s definition says both in its descriptions of `ProcessBuild`'s `fingerprint` and
`unknown`, which moves its contract package's digest, as H-A-677 already moves it in H2.
Built in H2 in the node-engine and the seat's definition. How it is checked: a row of the compositions unit tests: a
module's container composes no `MESH_FINGERPRINT` and its daemon does; rows of `JudgeMove`'s unit tests: two
compositions whose containers differ only by that value are judged unchanged, and with one more env difference
recreates; rows of the apply's unit tests: a running container labelled with that value is not recreated and is said
once, and a changed image recreates it; a row of `processbuilds`' tests: a container answers no fingerprint, with the
words. Live, after H2's delivery: the next pipeline that moves nats, postgres or keycloak with no change of its
container delivers it with no ask of theirs in `operator-channel.asks`. ADR 0656 §1; ADR 0539 §14; ADR 0377 §3;
principles 2, 3 and 7.