Design 47 H2: lead answers name roles, not nodes (hq is public)

This commit is contained in:
2026-11-23 01:50:54 +01:00
parent c39a020c84
commit e430897c59
@@ -12,27 +12,27 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
with a Go bundle or package, loudly, so no build module can publish by digest alone again: that part is H2's
mesh-delivery developer's, after its Left list. fix-a-bug-met-twice, P-failure-loud.
- **H-A-374 (a directory's declared mode is applied to a directory that exists, 23:42)** Pipeline main.175 failed at
23:24 because the Node build module's integration tests, asked of the Go build seat on ace, could not see the Node
toolchain: ace's toolchain cache directory is 0700 on disk while the manifest's directory entry says 0711 (ADR 0533)
and the other build nodes have 0711; the node-engine's composition on ace says "unchanged, equal to the composition
the node runs". So the node-engine applies a directory entry's mode when it makes the directory and never when the
directory exists with another mode, and its judgement reads what it wrote, not the disk. Fix in the node-engine
(`mesh-host`, H2's E lines): applying a directory entry sets its owner and mode when they differ on disk, and the
composition's diff names a directory whose mode on disk differs. Test: a directory that exists with another mode is
set to the declared one at apply. Recovery tonight: the mode set through the files seat's chmod verb on ace with
this answer as its reason; the engine's next apply must leave it. P-mesh-owns-the-truth, P-failure-loud.
- **H-A-375 (a pipeline step a node cannot run moves to a node that can, 23:42)** The same failure showed a gap: the
Go build module answered the integration step's digest "left to a node with node-build-node: this node lacks it",
the step ended could not run, and the runner counted that as failed and ended the pipeline; nothing placed the step
on g14 or shanks, which have the need. ADR 0552 §2 and §4 decide this for check asks (a holder lacking a need
23:24 because the Node build module's integration tests, asked of the Go build seat on the home-server, could not see
the Node toolchain: the home-server's toolchain cache directory is 0700 on disk while the manifest's directory entry
says 0711 (ADR 0533) and the other build nodes have 0711; the node-engine's composition on the home-server says
"unchanged, equal to the composition the node runs". So the node-engine applies a directory entry's mode when it makes
the directory and never when the directory exists with another mode, and its judgement reads what it wrote, not the
disk. Fix in the node-engine (`mesh-host`, H2's E lines): applying a directory entry sets its owner and mode when they
differ on disk, and the composition's diff names a directory whose mode on disk differs. Test: a directory that exists
with another mode is set to the declared one at apply. Recovery tonight: the mode set through the files seat's chmod
verb on the home-server with this answer as its reason; the engine's next apply must leave it. P-mesh-owns-the-truth,
P-failure-loud.
- **H-A-375 (a pipeline step a node cannot run moves to a node that can, 23:42)** The same failure showed a gap: the Go
build module answered the integration step's digest "left to a node with node-build-node: this node lacks it", the
step ended could not run, and the runner counted that as failed and ended the pipeline; nothing placed the step on the
laptop or the workstation, which have the need. ADR 0552 §2 and §4 decide this for check asks (a holder lacking a need
declines; the asker places the unmet packages again on a node with the need) and no design line carried it to the
pipeline's step asks. Carry it: the runner's step ask names the packages' needs (read from the module's needs
marker, as the Go build module does for its digest); a build seat holder lacking a need declines the ask instead of
ending it could not run; the runner places a declined step again on a node that has the need, once per node at
most, and a step no node can run ends could not run naming the need and the nodes asked. Built by H2's
mesh-delivery developer (the runner's placing and the delivery SDK's step run) after its Left list, in H2's one
review; it is not a small fix. Until then a could-not-run step is rerun by hand (runner_rerun). P-NATS-native,
P-failure-loud, ADR 0552.
pipeline's step asks. Carry it: the runner's step ask names the packages' needs (read from the module's needs marker,
as the Go build module does for its digest); a build seat holder lacking a need declines the ask instead of ending it
could not run; the runner places a declined step again on a node that has the need, once per node at most, and a step
no node can run ends could not run naming the need and the nodes asked. Built by H2's mesh-delivery developer (the
runner's placing and the delivery SDK's step run) after its Left list, in H2's one review; it is not a small fix.
Until then a could-not-run step is rerun by hand (runner_rerun). P-NATS-native, P-failure-loud, ADR 0552.
- **H-A-376 (the runner's list answers a short form, 23:53)** The operator asked where to follow the pipelines; the
runner's list of main answers 2.3 MB, above what the bus carries, and show of one pipeline 127 KB, so the state can
only be read narrowed by module, mover and limit, and stands has no description. One question, one tool: list
@@ -134,16 +134,16 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
helper reads; built by the mesh-tools developer in H2 beside T1, tested in the runtime's state tests. P3, H-A-227.
- **H-A-387 (the artifact registry takes a publish whose reservation names no digest yet, 00:11)** Since H-A-373 the Go
build module publishes an archive with its reserved version during the build step, when the builder's reservation
still holds an empty digest for every artifact (the builder records digests only at the build's end); the
distribution module's holder (the seat oci-artifact-registry) accepts only an equal digest and says "for another
digest" of an empty one, so every archive-only publish since 00:05 was refused (twelve modules on three nodes, nftables
among them). A-490j decided this on 19 Nov for every holder: a publish is taken when the reserved artifact names that
digest or names none yet; commit ac2cd374 kept the strict check in the distribution holder against it. Fix in the
distribution module (mesh-catalog): holder.Reserved.Recorded takes an empty reserved digest as A-490j says, and its
refusal names the case it met ("reserved for digest X, not Y" or "no reservation of version V"), never "another
digest" for none. Test: a publish against a reservation with no digest yet is taken and marked; one against another
digest is refused naming both. The pack is reproducible (the same archive bytes at 0.1.0, 0.1.1 and the refused
publish). Recovery: rerun the build steps once the distribution module runs on novox. A-490j, P-failure-loud,
still holds an empty digest for every artifact (the builder records digests only at the build's end); the distribution
module's holder (the seat oci-artifact-registry) accepts only an equal digest and says "for another digest" of an
empty one, so every archive-only publish since 00:05 was refused (twelve modules on three nodes, nftables among them).
A-490j decided this on 19 Nov for every holder: a publish is taken when the reserved artifact names that digest or
names none yet; commit ac2cd374 kept the strict check in the distribution holder against it. Fix in the distribution
module (mesh-catalog): holder.Reserved.Recorded takes an empty reserved digest as A-490j says, and its refusal names
the case it met ("reserved for digest X, not Y" or "no reservation of version V"), never "another digest" for none.
Test: a publish against a reservation with no digest yet is taken and marked; one against another digest is refused
naming both. The pack is reproducible (the same archive bytes at 0.1.0, 0.1.1 and the refused publish). Recovery:
rerun the build steps once the distribution module runs on the control-node. A-490j, P-failure-loud,
fix-a-bug-met-twice (the same symptom met 19 Nov).
- **H-A-388 (the have carries the applied run; the declaration's version is its form, 00:13)** E4b, E7b. (1) The
node-engine's have value gains `run` (the composition run's sequence the module was applied from) in
@@ -564,12 +564,12 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
delivery and every apply into a new builder state `consumers` (8 MiB), and the tool reads that state; "read when the
health is asked" reads so (the bus is read at each event, no timer). The ledger's oldest-unacknowledged covers
delivered messages only, as the runner's does. P3.
- **H-A-437 (a cap is set above the live fill, 01:47)** H-A-411 (2). A state that names no cap gets `max-mib` 8 only when
its live fill allows it: before writing a cap, the developer reads the bucket's fill with the bus module's `show`
(the seat mesh-broker) on novox, and a state whose fill is above a quarter of 8 MiB gets the smallest power of two in
MiB above four times its fill (the indexer's candidates, manifests, packages and seat-definitions are the ones to
read); the cap chosen and the fill read are written in the commit. A cap below the live fill would refuse the owner's
next write (P-failure-loud: a cap is a guard, never a cause). P-failure-loud, ADR 0595 §3.
- **H-A-437 (a cap is set above the live fill, 01:47)** H-A-411 (2). A state that names no cap gets `max-mib` 8 only
when its live fill allows it: before writing a cap, the developer reads the bucket's fill with the bus module's `show`
(the seat mesh-broker) on the control-node, and a state whose fill is above a quarter of 8 MiB gets the smallest power
of two in MiB above four times its fill (the indexer's candidates, manifests, packages and seat-definitions are the
ones to read); the cap chosen and the fill read are written in the commit. A cap below the live fill would refuse the
owner's next write (P-failure-loud: a cap is a guard, never a cause). P-failure-loud, ADR 0595 §3.
- **H-A-438 (a source-only registration's module word, 01:49)** §815, R11. registration-changed's `module` for a
source-only registration is its key `source.<owner>.<name>`, as H-A-408 names it for step-ended; the indexer says it so
and the runner's follower keys its picture by it. One name for the registration everywhere, P3. The indexer's I6
@@ -1221,7 +1221,7 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
and indexer_pending shows it (tools read the module's state, not its memory; a chain is minutes long, an ask is cut
at 25 s). P-failure-loud, principle 4.
- **H-A-499 (a test's setup bound scales with the build node's load, 02:10)** 22 Nov 21:28 and 21:32: the assigner's
and the indexer's integration steps on shanks failed only because the integration level's setup took 38-40 s
and the indexer's integration steps on the workstation failed only because the integration level's setup took 38-40 s
against the SDK test harness's 30 s bound while the node ran many steps (the kind of H-A-488, met in a module's own
tests). So: the build modules (Go and Node) hand every test run the scale they already know from H-A-488 (the steps
in hand on the node) in the environment (`MESH_TEST_BOUND_SCALE`), and the SDK's test harness multiplies its setup
@@ -1229,8 +1229,8 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
two movers are started again at the same revision after the pipeline ends (H-A-479). P-failure-loud; test-budget.
- **H-A-499 WITHDRAWN (02:20)** The 30 s setup bound is the Go build module's own level judge, already scaled by the
steps in hand since H-A-488 (mesh-catalog #740); the failures of 21:28 and 21:32 ran on the OLD build module still on
shanks (#740 waits in main.308). Nothing to build; the SDK harness has no per-test bound. The lesson stands in
the save point: read which build runs on the node before answering a fault the merged fix already covers.
the workstation (#740 waits in main.308). Nothing to build; the SDK harness has no per-test bound. The lesson stands
in the save point: read which build runs on the node before answering a fault the merged fix already covers.
- **H-A-497 second addendum (a chain key a stop left is deleted at the start, 02:40)** A chain runs only inside one
indexer process, so a chain key found at the indexer's start was left by a stop; the start deletes every chain key
before its own take-in, so no ask answers "a chain runs" for a chain that does not. P-failure-loud.
@@ -1292,10 +1292,10 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
map-onto-how-the-mesh-is-built).
- **H-A-504 (the run order of §813 (1) holds within one pipeline only, 23:05)** 22 Nov 23:15: main.320.again.1 passed
and released the tool runner (`node-tools`) 0.1.115, and the assigner refused its want on every node: "the want of
`node-tools` on shanks is not written: its run "1" is lower than the run "2" written (§813 (1))"; the want written
came from main.265.again.2, an older source revision. §813 (1) reads: "*One writer per composition key, and the engine
applies only a newer write* (H-A-302 (1) to (3), H-A-303, H-A-306, H-A-338 (8), H-A-349 DQ-12; row 179): the
composition key is the holder of `mesh-wants`' state `compositions`, key `<group>.<heads>`; its write carries the
`node-tools` on the workstation is not written: its run "1" is lower than the run "2" written (§813 (1))"; the want
written came from main.265.again.2, an older source revision. §813 (1) reads: "*One writer per composition key, and
the engine applies only a newer write* (H-A-302 (1) to (3), H-A-303, H-A-306, H-A-338 (8), H-A-349 DQ-12; row 179):
the composition key is the holder of `mesh-wants`' state `compositions`, key `<group>.<heads>`; its write carries the
node-engine contract's existing field `run`, a string holding the composition run's pipeline sequence in decimal, so
no form is raised, and the holder writes by compare-and-set refusing a lower `run`; a run whose pipeline ended writes
nothing more; the node-engine applies a composition again only when a part it could read differs and its `run` is
@@ -1394,15 +1394,15 @@ The lead's one-line answers to the questions H2's develop and review raise (impl
builder, runner. Design as it should be: a superseded build is not a failure, and its word is the glossary's.
- **H-A-509 (a read of another owner's state skips a key it cannot read, and the assigner drops a retired module's
assignment, 00:14)** 23 Nov 00:11: mesh-config refused every set with "the seat mesh-module-assigner's assignments
cannot be read: the assignments is not read whole: the module key novox.mesh-delivery-checker does not read: unknown
value version: no version in the value, this reader reads 1"; the teller and the watchman say the same of other
assigner keys (backup.*, want.novox.mesh-controller). One stale key of a retired module, written before the value
carried a version, stops every reader of the whole state. So: the generated clients' read-whole of a state
(mesh-delivery-contracts, the SDK's state reader) skips a key whose value it cannot read, says so once per key in the
journal naming key and reason, and answers the rest; refusing the whole state is kept only for the owner's own read.
And the assigner gets the tool assigner_assignment_drop {module, node, why} (a hand act, logged) that deletes one
assignment key, for a module no manifest names any more; the clean state of the assigner drops such keys itself at its
pass, naming each. P-failure-loud without failure-contagion: one bad key is one finding, not a dead seat.
cannot be read: the assignments is not read whole: the module key `<control-node>.mesh-delivery-checker` does not
read: unknown value version: no version in the value, this reader reads 1"; the teller and the watchman say the same
of other assigner keys (backup.*, `want.<control-node>.mesh-controller`). One stale key of a retired module, written
before the value carried a version, stops every reader of the whole state. So: the generated clients' read-whole of a
state (mesh-delivery-contracts, the SDK's state reader) skips a key whose value it cannot read, says so once per key
in the journal naming key and reason, and answers the rest; refusing the whole state is kept only for the owner's own
read. And the assigner gets the tool assigner_assignment_drop {module, node, why} (a hand act, logged) that deletes
one assignment key, for a module no manifest names any more; the clean state of the assigner drops such keys itself at
its pass, naming each. P-failure-loud without failure-contagion: one bad key is one finding, not a dead seat.
- **H-A-509 addendum (the refusing read is AssignmentsOf in mesh-contracts, 00:18)** 23 Nov 00:18: the developer found
that the generated seat contracts have no read-whole; the refusing read is the hand-written AssignmentsOf in
mesh-contracts' meshmoduleassignerclient (ten callers in five repositories), while the teller and the watchman already