The node-engine applies a want by the bus revision of its key; run is information (design 47 H2 §813 (1), H-A-504 third to fifth addendum) #253

Merged
mesh-tools merged 2 commits from fix/want-order-by-revision into main 2026-11-23 01:46:04 +00:00
Member

Design 47 H2 §813 (1), lead answers H-A-504 third, fourth and fifth addendum (hq design/47-H1-answers-59, pull request #797). Requires mesh-contracts #21 (the have's want-revision, seat form 5).

Node-engine: the run and branch compares before an apply are gone; a want whose key revision is older than the one applied is refused once and said; an equal revision goes on to the checks that already stop a needless apply (Reconcile, the edge, a recomposition still apply); the have keeps want-revision on every write, carried into every have written over an apply (sessionHaves.Read and ReadAt through one haveOf). Live: the node-engine on the control-node refused the indexer's want "run 288 … applied it from run 323, which is not older" until the hand drop.

Review: two rounds, mesh-code-reviewer; each row fails without its change; vet both levels, suites, internal/link and cmd/mesh-host integration pass.

Reviewed-by: mesh-code-reviewer@shanks at 4adc35d5ce

Design 47 H2 §813 (1), lead answers H-A-504 third, fourth and fifth addendum (hq design/47-H1-answers-59, pull request #797). Requires mesh-contracts #21 (the have's want-revision, seat form 5). Node-engine: the run and branch compares before an apply are gone; a want whose key revision is older than the one applied is refused once and said; an equal revision goes on to the checks that already stop a needless apply (Reconcile, the edge, a recomposition still apply); the have keeps want-revision on every write, carried into every have written over an apply (sessionHaves.Read and ReadAt through one haveOf). Live: the node-engine on the control-node refused the indexer's want "run 288 … applied it from run 323, which is not older" until the hand drop. Review: two rounds, mesh-code-reviewer; each row fails without its change; vet both levels, suites, internal/link and cmd/mesh-host integration pass. Reviewed-by: mesh-code-reviewer@shanks at 4adc35d5ce63a5e74bd50863f3b161a2b48fa7e2
mesh-tools added 2 commits 2026-11-23 01:15:25 +00:00
The engine refused a want whose run was not newer than the run it applied,
so wants written with a revision number as their run held every later
want back ("the want of mesh-delivery-indexer carries run 288, and the
engine applied it from run 323"). The bus orders the writes of one key:
the engine now keeps the want revision it applied in the have (beside the
run, the seat's form 5) and refuses only an older revision; the same
revision goes on to the checks that already stop a needless apply, so
Reconcile and a recomposition still apply. The run is information.

Builds: design 47 H2 §813 (1); H-A-504 third addendum, H-A-504 fourth addendum, H-A-504 fifth addendum
Review round 1: sessionHaves.Read gave no run, pipeline or want revision,
so on the live engine every have written over an apply (held, failed,
waiting, not composed) dropped the want revision, and the next want
counted as nothing applied. Read now maps the have value the same way as
ReadAt, through one function.

Builds: design 47 H2 §813 (1); H-A-504 fourth addendum
mesh-tools merged commit 20d11e03b9 into main 2026-11-23 01:46:04 +00:00
mesh-tools deleted branch fix/want-order-by-revision 2026-11-23 01:46:05 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_133_d82d741c",
"sequence": 57597,
"bytes": 820,
"of-bytes": 65536,
"record": {
"milestone": "main.133",
"branch": "main",
"source": 133,
"call": "f2a90eb1e1107831",
"heads": {
"novox/mesh-contracts@21": "c7c68755f25e3012f6ed6ec8f7468b379f6cb4c7",
"novox/mesh-host@253": "20d11e03b99229afdfb1bfcbc96c3865d6dc1000"
},
"opened": "2026-11-23T01:46:05.367709576Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-contracts@21",
"novox/mesh-host@253"
],
"commits": [
"c7c68755f25e3012f6ed6ec8f7468b379f6cb4c7",
"20d11e03b99229afdfb1bfcbc96c3865d6dc1000"
],
"source": "133",
"call": "f2a90eb1e1107831",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-23T01:46:05.342Z"
},
"ended": {
"at": "2026-11-23T01:51:21.702692487Z",
"why": "failed: every mover is moved by the newer main.403"
},
"movers": 112,
"merge-called": "2026-11-23T01:46:05.342Z",
"phases": {
"ended": "2026-11-23T01:51:21.667899042Z",
"taken": "2026-11-23T01:50:37.407708878Z"
}
},
"movers-per-outcome": {
"taken-in": 35
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_133_d82d741c", "sequence": 57597, "bytes": 820, "of-bytes": 65536, "record": { "milestone": "main.133", "branch": "main", "source": 133, "call": "f2a90eb1e1107831", "heads": { "novox/mesh-contracts@21": "c7c68755f25e3012f6ed6ec8f7468b379f6cb4c7", "novox/mesh-host@253": "20d11e03b99229afdfb1bfcbc96c3865d6dc1000" }, "opened": "2026-11-23T01:46:05.367709576Z", "form": 3, "trace": { "pulls": [ "novox/mesh-contracts@21", "novox/mesh-host@253" ], "commits": [ "c7c68755f25e3012f6ed6ec8f7468b379f6cb4c7", "20d11e03b99229afdfb1bfcbc96c3865d6dc1000" ], "source": "133", "call": "f2a90eb1e1107831", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-23T01:46:05.342Z" }, "ended": { "at": "2026-11-23T01:51:21.702692487Z", "why": "failed: every mover is moved by the newer main.403" }, "movers": 112, "merge-called": "2026-11-23T01:46:05.342Z", "phases": { "ended": "2026-11-23T01:51:21.667899042Z", "taken": "2026-11-23T01:50:37.407708878Z" } }, "movers-per-outcome": { "taken-in": 35 } } ] } <!-- mesh-act:view.record/main_133_d82d741c.novox/mesh-host#253@1795398681720160035.c2c84a05 -->
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-host#253