Builder: the publish dispatch sends live first at one processor; judge test row; done-key test bound (H-A-465, H-A-469, H-A-473) #329

Merged
mesh-tools merged 6 commits from fix/main-tests into main 2026-11-22 13:44:24 +00:00
Member

Design lines

hq branch design/47-H1-answers-59: lead answers H-A-465 (2e1a6688), H-A-469 (947dbb59), H-A-473 (f6b0a843); design 47 part H2 §793.

What changed

  • The builder's publish dispatch pulls the live consumer itself, then the again consumer; an again item waits for a live one in flight to the idle dispatch's waiting pull; every again fetch and gap read follows a live fetch, and with again items held it fetches live once more before the gap read, so live is sent first even at one processor (cmd/mesh-delivery-builder/publishitem.go and its test).
  • Judge test: the unknown top-level word is one no SDK knows.
  • Builder whole test: done builds under the level's set-up bound; a hang fails at its own bound.

Tests run

  • The dispatch case 10 of 10 at GOMAXPROCS 1, 2 and 4.
  • The cmd integration test; go vet (with -tags integration); the module suites.

Reviewed-by: mesh-code-reviewer@shanks at 7e103f3221 (four rounds; the fourth granted by the lead and said to the operator)
Pushed-by: lead-47@shanks

Group: mesh-delivery #329 + mesh-catalog #738 (one merge call)

## Design lines hq branch design/47-H1-answers-59: lead answers H-A-465 (2e1a6688), H-A-469 (947dbb59), H-A-473 (f6b0a843); design 47 part H2 §793. ## What changed - The builder's publish dispatch pulls the live consumer itself, then the again consumer; an again item waits for a live one in flight to the idle dispatch's waiting pull; every again fetch and gap read follows a live fetch, and with again items held it fetches live once more before the gap read, so live is sent first even at one processor (`cmd/mesh-delivery-builder/publishitem.go` and its test). - Judge test: the unknown top-level word is one no SDK knows. - Builder whole test: done builds under the level's set-up bound; a hang fails at its own bound. ## Tests run - The dispatch case 10 of 10 at GOMAXPROCS 1, 2 and 4. - The cmd integration test; `go vet` (with `-tags integration`); the module suites. Reviewed-by: mesh-code-reviewer@shanks at 7e103f3221206167d445a2b439d05fcadb7d0789 (four rounds; the fourth granted by the lead and said to the operator) Pushed-by: lead-47@shanks Group: mesh-delivery #329 + mesh-catalog #738 (one merge call)
mesh-tools added 6 commits 2026-11-22 13:44:02 +00:00
The row proving that the judgement's strict read refuses an unknown
top-level word used class, which the H2 SDK knows, so it failed at main.
It now uses a word no SDK knows and proves the same refusal.

Builds: design 47 H2 H-A-465, H-A-469
The dispatch read the live consumer's pending count against items the
pull's callback had not yet handed it, so at one processor an again item
was sent before a live one already delivered. It now fetches the live
consumer without waiting and pulls the again consumer only when that
returns nothing; an item is received when its fetch returns it.

Builds: design 47 H2 §793; H-A-473
The test ran the builder at a 1 s step bound throughout, so a loaded build
node could fail a build that must end done. Those builds now run under
testbus.SetupBound; the hung step's part starts the builder again at 1 s,
and the build again after it under the set-up bound.

Builds: design 47 H2 §793; H-A-473 (addendum)
The idle dispatch keeps a waiting pull on each consumer, the bus's only wake for an
item put or delivered again. A live item the waiting pull was given but the dispatch
had not yet received let an again item go first (review finding on 1f33a4c0,
publishitem.go:700, 761, 797). An again item taken while the live pull waits now runs
only once the live consumer's delivered sequence is no further than the live items
received; a gap holds it until the live item arrives and runs.

Builds: design 47 H2 §793, H-A-473 (third addendum)
On the turn after an again item ran, the dispatch fetched again and read the live gap
without fetching live first, so a live item the stream held but had not yet given to
the waiting live pull showed no gap and a later again item went first (review round 2
on b77b70a6, publishitem.go:791). The live consumer is now fetched without waiting on
every turn no live item is held. The test row adds that case and bounds its rounds by
the level's set-up share.

Builds: design 47 H2 §793, H-A-473 (third addendum)
A live item put after the turn's live fetch and before the again items were held
was not yet delivered at the gap read, so no gap showed and the later again item
went first (review round 3 on c37a7317, publishitem.go:792-809). With again items
held the dispatch now fetches live without waiting once more: what it returns runs
and the again items stay held; only an empty fetch leads to the gap read. The test's
idle-dispatch case is a subtest of its own, so it runs alone.

Builds: design 47 H2 §793, H-A-473 (third addendum)
mesh-tools merged commit b691428ffc into main 2026-11-22 13:44:24 +00:00
mesh-tools deleted branch fix/main-tests 2026-11-22 13:44:24 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-delivery#329