Every pipeline has a sequence and pipeline-ended carries it; the want's run is that sequence (design 47 H2 §813 (1), H-A-504) #341

Merged
mesh-tools merged 3 commits from fix/want-run-order into main 2026-11-22 22:44:15 +00:00
Member

Design 47 H2 §813 (1) and lead answers H-A-504, H-A-504 corrected, H-A-504 addendum, H-A-504 second addendum (hq design/47-H1-answers-59, pull request #797).

Contracts: pipeline-ended gains seq; the pipeline record's seq loses its pipelines-at-once clause; runner seat form 10. Runner: every pipeline it writes takes the next value of its counter, queued or placed at once; pipeline-ended carries it. Assigner: the want's run is the event's seq; runOf no longer parses the pipeline key; a pipeline-ended without seq is refused in the journal; a kept end without seq writes no want and says so once, naming end-again.

Known at delivery: wants written before this change carry the old key-segment run (a revision number such as "279" for mesh-build-node from main.279, or an again number); the runner's counter stands at about 272, so such a want is superseded once the counter passes its number, within a few pipelines; no hand act.

Review: one round, mesh-code-reviewer; each test fails without its change; integration packages of runner and assigner pass; importers of the runner's contract unaffected (plain json decode).

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

Design 47 H2 §813 (1) and lead answers H-A-504, H-A-504 corrected, H-A-504 addendum, H-A-504 second addendum (hq design/47-H1-answers-59, pull request #797). Contracts: pipeline-ended gains seq; the pipeline record's seq loses its pipelines-at-once clause; runner seat form 10. Runner: every pipeline it writes takes the next value of its counter, queued or placed at once; pipeline-ended carries it. Assigner: the want's run is the event's seq; runOf no longer parses the pipeline key; a pipeline-ended without seq is refused in the journal; a kept end without seq writes no want and says so once, naming end-again. Known at delivery: wants written before this change carry the old key-segment run (a revision number such as "279" for mesh-build-node from main.279, or an again number); the runner's counter stands at about 272, so such a want is superseded once the counter passes its number, within a few pipelines; no hand act. Review: one round, mesh-code-reviewer; each test fails without its change; integration packages of runner and assigner pass; importers of the runner's contract unaffected (plain json decode). Reviewed-by: mesh-code-reviewer@shanks at b6702196b88945a0d93d5034f8ce9b74e7097188
mesh-tools added 3 commits 2026-11-22 22:44:00 +00:00
The assigner had no sequence to write as a want's run: pipeline-ended said
no seq, so it took the key's last segment, an again run's number, and
refused node-tools 0.1.115 of main.320.again.1 under run "2" of an older
pipeline. pipeline-ended gains seq, the record's; the record's seq is now
said to be taken for every pipeline. The runner seat's form is 10; the
contract is regenerated, with a fixture of an again pipeline's end.

Builds: design 47 H2 §813 (1), H-A-504 corrected, H-A-504 addendum
The runner took queue.next only for a pipeline that waited, so most
pipelines kept seq 0 and the assigner had no order across pipelines for a
want's run. queueStart now takes the next sequence for every pipeline it
writes, queued or placed at once, and pipeline-ended carries the record's
seq.

Builds: design 47 H2 §813 (1), H-A-504 corrected, H-A-504 addendum
runOf took the pipeline key's last segment, an again run's number, so
node-tools 0.1.115 of main.320.again.1 (run "1") was refused on every
node under run "2" of main.265.again.2, an older pipeline. The assigner
now keeps the sequence pipeline-ended says in its end record and the want
rule writes it as the want's run; the compare-and-set and the
node-engine's compare stay as they are. A pipeline-ended without seq is
refused in the journal and keeps nothing; an end kept before this change,
without seq, writes no want and says so once, naming the runner's
end-again of its pipeline as the recovery.

Builds: design 47 H2 §813 (1), H-A-504 corrected, H-A-504 addendum, H-A-504 second addendum
mesh-tools merged commit 6a550f59f6 into main 2026-11-22 22:44:15 +00:00
mesh-tools deleted branch fix/want-run-order 2026-11-22 22:44:15 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_122_b70b8ad7",
"sequence": 50264,
"bytes": 689,
"of-bytes": 65536,
"record": {
"milestone": "main.122",
"branch": "main",
"source": 122,
"call": "1e4bb93f747f51af",
"heads": {
"novox/mesh-delivery@341": "6a550f59f60bbf4e85b42e0fba5ba84172bc8e9e"
},
"opened": "2026-11-22T22:44:16.016709784Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-delivery@341"
],
"commits": [
"6a550f59f60bbf4e85b42e0fba5ba84172bc8e9e"
],
"source": "122",
"call": "1e4bb93f747f51af",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-22T22:44:15.935Z"
},
"ended": {
"at": "2026-11-22T22:59:32.19866482Z",
"why": "failed: every mover is moved by the newer main.329"
},
"movers": 125,
"merge-called": "2026-11-22T22:44:15.935Z",
"phases": {
"ended": "2026-11-22T22:59:32.184835109Z",
"taken": "2026-11-22T22:58:54.853011733Z"
}
},
"movers-per-outcome": {
"taken-in": 29
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_122_b70b8ad7", "sequence": 50264, "bytes": 689, "of-bytes": 65536, "record": { "milestone": "main.122", "branch": "main", "source": 122, "call": "1e4bb93f747f51af", "heads": { "novox/mesh-delivery@341": "6a550f59f60bbf4e85b42e0fba5ba84172bc8e9e" }, "opened": "2026-11-22T22:44:16.016709784Z", "form": 3, "trace": { "pulls": [ "novox/mesh-delivery@341" ], "commits": [ "6a550f59f60bbf4e85b42e0fba5ba84172bc8e9e" ], "source": "122", "call": "1e4bb93f747f51af", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-22T22:44:15.935Z" }, "ended": { "at": "2026-11-22T22:59:32.19866482Z", "why": "failed: every mover is moved by the newer main.329" }, "movers": 125, "merge-called": "2026-11-22T22:44:15.935Z", "phases": { "ended": "2026-11-22T22:59:32.184835109Z", "taken": "2026-11-22T22:58:54.853011733Z" } }, "movers-per-outcome": { "taken-in": 29 } } ] } <!-- mesh-act:view.record/main_122_b70b8ad7.novox/mesh-delivery#341@1795388372206244557.c879696e -->
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#341