A cancel or an end drops every open ask of the pipeline; one key per ask, read instead of listing the pipelines (design 47 H2 H-A-506) #342

Merged
mesh-tools merged 5 commits from fix/cancel-drops-asks into main 2026-11-22 23:27:30 +00:00
Member

Design 47 H2, lead answers H-A-506, H-A-506 addendum, H-A-506 second addendum, H-A-506 corrected, with H-A-500 addendum (1) and H-A-238 (2) (hq design/47-H1-answers-59, pull request #797).

Runner (mesh-delivery-pipeline): a cancel and every end of a pipeline drop its open asks through each seat's drop (a step's own asks and every mesh-wants ask at once; a shared test run's ask by its last reader only), one journal line per drop or refusal, beside the cancel so a seat with no holder never holds it. Every ask the runner puts gets an ask key at the put (pipeline, mover, step, run); Taken, RunTaken and RunProgress read that one key and never list the pipelines; an event whose ask has no key is acknowledged with no read (one journal line per hundred). A test run's key goes with the run's end, every other key with the pipeline's end or when the step is asked again; a late take after the pipeline's end clears no finding.

Review: three rounds, mesh-code-reviewer; each change fails a test when taken out; go test -race, vet both levels and the cmd integration package pass.

Reviewed-by: mesh-code-reviewer@shanks at bf18ae74cb

Design 47 H2, lead answers H-A-506, H-A-506 addendum, H-A-506 second addendum, H-A-506 corrected, with H-A-500 addendum (1) and H-A-238 (2) (hq design/47-H1-answers-59, pull request #797). Runner (mesh-delivery-pipeline): a cancel and every end of a pipeline drop its open asks through each seat's drop (a step's own asks and every mesh-wants ask at once; a shared test run's ask by its last reader only), one journal line per drop or refusal, beside the cancel so a seat with no holder never holds it. Every ask the runner puts gets an ask key at the put (pipeline, mover, step, run); Taken, RunTaken and RunProgress read that one key and never list the pipelines; an event whose ask has no key is acknowledged with no read (one journal line per hundred). A test run's key goes with the run's end, every other key with the pipeline's end or when the step is asked again; a late take after the pipeline's end clears no finding. Review: three rounds, mesh-code-reviewer; each change fails a test when taken out; go test -race, vet both levels and the cmd integration package pass. Reviewed-by: mesh-code-reviewer@shanks at bf18ae74cbdbbe041fb44922c08b5937c9f3ae51
mesh-tools added 5 commits 2026-11-22 23:27:13 +00:00
A cancelled pipeline's asks stayed on the build seats' work queues and the
holders ran them in full: only the last reader's leave of a shared test run
dropped an ask. Now the cancel, and an end at a placing (holderless, a kept
revision gone), drop every ask still open through its seat's drop, a shared
test run's and a mesh-wants step's alike, and leave every test run read; one
journal line per drop or refusal, and a drop not answered fails nothing.

Builds: design 47 H2 H-A-506
An ask-taken or step-progress of an ask with no test-run key listed and read
every pipeline (about 3,850), 1 to 2 s per event on the runner's one consumer.
Now every ask the runner puts gets its ask key at the put, naming its
pipeline, mover, step and run: the test run's ask key of H-A-500 and the key
of every other ask are merged into this one form, `ask.<ask>` in test-runs
(a key written before holds its run alone and still reads). Taken, RunTaken
and RunProgress read that key and the one pipeline it names; an event whose
ask has no key is acknowledged at once, counted in H-A-500's one journal line
per hundred. The key goes with the pipeline's end or its run's end, so a late
ask-taken after the end clears no finding (H-A-506 second addendum).

The drops of an ended pipeline's asks are asked beside the end (the Hearer's
Aside): a seat with no holder answers a kept call only at its bound, which
held the cancel verb's answer past its caller's wait in the queue
integration test.

Builds: design 47 H2 H-A-506, H-A-506 addendum, H-A-506 second addendum
A cancel or an end leaves each shared test run its steps read, and the run's
ask is dropped only when the leaving pipeline was its last reader, never
while another open pipeline still reads it; its own asks of no shared run
and its mesh-wants asks are dropped at once. A step asked again (a rerun, a
declined step of no test run) deletes its earlier ask's key: one key per
ask, gone once the ask is no longer open.

Builds: design 47 H2 H-A-506 corrected, H-A-506 addendum
At a pipeline's end every ask key of its steps went, a shared test run's
among them, while another pipeline still read the run: that reader's
progress found no key and its steps ended could not run. A shared run's key
now goes only with the run's end (EndRun, leaveRun, unmarkAsks), and a late
ask-taken clears a finding only while its pipeline runs (second addendum).
A declined step asked again deletes its earlier ask's key whatever its run.
The last reader's drop of a run's ask is asked beside the leave, its one
journal line saying dropped, or refused or not answered. A re-pin's
holderless end is tested to drop the open asks of the movers it keeps.

Builds: design 47 H2 H-A-500 addendum (1), H-A-506 corrected, H-A-506 addendum, H-A-506 second addendum
The kept-key rule also kept a mesh-wants composition step's own ask key,
whose shared runs are mesh-wants' and no test run whose end deletes it, so
every ended pipeline left that key for good. A key is kept past the end only
for a test run's ask, the rule DropOpen uses.

Builds: design 47 H2 H-A-506 addendum, H-A-506 corrected
mesh-tools merged commit 55ab8a82d0 into main 2026-11-22 23:27:30 +00:00
mesh-tools deleted branch fix/cancel-drops-asks 2026-11-22 23:27:31 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_125_4a37c369",
"sequence": 50661,
"bytes": 488,
"of-bytes": 65536,
"waits": "its difference is not known yet",
"record": {
"milestone": "main.125",
"branch": "main",
"source": 125,
"call": "0bc0811c23946512",
"heads": {
"novox/mesh-delivery@342": "55ab8a82d00aad2da2544192a6a482c83dfa4236"
},
"opened": "2026-11-22T23:27:31.240977141Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-delivery@342"
],
"commits": [
"55ab8a82d00aad2da2544192a6a482c83dfa4236"
],
"source": "125",
"call": "0bc0811c23946512",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-22T23:27:31.198Z"
},
"movers": 5,
"merge-called": "2026-11-22T23:27:31.198Z"
},
"movers-per-outcome": {
"taken-in": 5
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_125_4a37c369", "sequence": 50661, "bytes": 488, "of-bytes": 65536, "waits": "its difference is not known yet", "record": { "milestone": "main.125", "branch": "main", "source": 125, "call": "0bc0811c23946512", "heads": { "novox/mesh-delivery@342": "55ab8a82d00aad2da2544192a6a482c83dfa4236" }, "opened": "2026-11-22T23:27:31.240977141Z", "form": 3, "trace": { "pulls": [ "novox/mesh-delivery@342" ], "commits": [ "55ab8a82d00aad2da2544192a6a482c83dfa4236" ], "source": "125", "call": "0bc0811c23946512", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-22T23:27:31.198Z" }, "movers": 5, "merge-called": "2026-11-22T23:27:31.198Z" }, "movers-per-outcome": { "taken-in": 5 } } ] } <!-- mesh-act:view.record/main_125_4a37c369.novox/mesh-delivery#342@1795390140811281456.55151273 -->
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#342