Merge branch 'design/47-H2-answers-60' into design/47-H2-answers-61

This commit is contained in:
2026-11-24 21:30:46 +01:00
@@ -562,3 +562,40 @@ where the design and the code disagree; the lead's answers follow, each against
where a package path's Go module requires a module of its own repository at the zero version, resolved only through
that path's module file, and its listing names that module's imports; live, the next pipeline whose movers hold
mesh-delivery-contracts passes its build. Principles 3 and 7.
- **H-A-635 (a slow pass of the assigner says which phase it is in, 01:08)** 24 Nov, issue 1984; answers the stall met
2026-11-23 23:53:48 UTC: the assigner on one machine logged "the pass took" (H-A-259) every 20 s, then nothing for six
minutes at near-zero CPU while every validate and composition step of a 70-mover pipeline waited; a read of its locks
found no cycle, and no tool takes a stuck process's stacks, so where it stood is not known. The pass names the phase it
is in as each starts (the assignments seat, the kept graph, the wants, the pass said, the puts, the node wants, the
backups and reverts), in the passer's own memory; a pass still running after the assigner setting
`pass-stall-seconds` (10 to 600, default 60) says once in the journal "the pass started at <time> is in <phase> for
<duration>", and again at each further bound until it ends; the end line stays as H-A-259 has it (principle 3: a part
that waits says where; principle 11: the bound is a setting; principle 7: a journal line in the passer, no new key or
event, since no other part acts on it). How it is checked: a unit row where a phase blocks past a short bound and the
journal line names that phase, and none is said for a pass that ends within it. Principles 3, 7 and 11.
- **H-A-636 (a ledger's state and index buckets take the ledger's cap, 01:31)** 24 Nov; answers the condition "Kept data is
filling up" of the delivery gate's records (open since 2026-11-23 10:20 CET): the gate's ledger asks `max-mib` 1024,
which sizes its history and its snapshot, while the bus module plans the ledger's state bucket and each index bucket
with no option (mesh-catalog modules/nats internal/keeper/plan.go, the ledger case, `stateSettings(options{})`), so
each is the state default of 64 MiB whatever the module asks; the gate's state bucket is full since 2026-11-23 11:48
UTC, its operations kept in the history and the state behind (ADR 0597 §6). The ledger's state bucket and its index
buckets take the ledger's own `max-mib`, as its history and snapshot do, through the existing `stateSettings` cap;
no other option of the ledger reaches them (principle 11: no cap fixed in code; principle 7: the entry's one existing
option, no new one). A raised cap reaches a held bucket through the keeper's existing path for larger settings, in
place, and the state catches up by replay (ADR 0597 §5). In the bus module (mesh-catalog). How it is checked: a row of
the keeper's plan tests (a ledger with `max-mib` 1024 plans its state and index buckets at 1 GiB, one with none at the
default); live, `mesh-broker.show` of the gate's records names its state bucket at 1 GiB and the condition clears.
Principles 7 and 11.
- **H-A-637 (the pipeline runner's test-run test waits on what it causes, never on a clock across a restart, 01:59)** 24 Nov,
issue 1984; answers the failure of main.512 (mesh-delivery-pipeline's integration step on a loaded build node, "1 failed:
TestTestRunsAreAskedOncePerLevelAndMoveEveryReader", which the same commit passed in main.511): the test writes the
setting test-step-bound "2s", restarts the runner inside the test while that clock runs, and needs the restarted
runner to hear its first step-progress before the clock ends; under load it did not (testruns_integration_test.go:411,
60 s); two more waits of the same test fail under load (:357, the ask read once; :519, cause not known). The test
restarts the runner under a bound longer than the restart (the setting rewritten to the short bound between the stop
and the start), its start waits for the new runner's own take-in line, the ask is waited for as every other wait is,
a wait whose run has ended stops at once naming it, and :519's cause is read before it is changed (principle 3: a
check fails only for the change it checks, never for the machine's load; principle 7: the test's own waits, no new
seam). Test-only: no behaviour of the runner changes. How it is checked: the test passes 10 of 10 runs pinned to one
core under three busy loops, and fails at once when the runner's real behaviour it checks is taken out. Principles 3
and 7.