A read of the newest catalog revision reads the newest again when its revision is removed under it (A-487d) #252

Merged
mesh-tools merged 2 commits from fix/catalog-revision-read-race into main 2026-11-19 11:47:38 +00:00
Member

Live 2026-11-19 11:55 on novox: the indexer kept trunk revisions 487-493 seconds apart and its pin judge removed each previous one at once; the catalog half was reading trunk.488 when it was removed ("the entry of mesh-host ...: no such object"). Since ~11:52 the catalog's tools bundle has not answered mesh/state.

  • readNewestOf: a read of the newest revision whose list or an entry is removed under it names the newest again while it is newer than the one that failed; the same revision failing twice is the read's failure. No number, no setting (A-487d, hq 61bf1215, principle 7).
  • Used by the kept trunk's reads (start, on catalog-revision), TrunkView and BranchView; a read by number still fails loudly.
  • Tests: the newer-revision case (kept trunk, TrunkView) and the same-revision-twice case; each fails without its change; no sleep.

Quick fix vs thorough: the thorough shape covers every reader that names the newest; six readers in the indexer program (versions, seed steps, open asks, versions fill, versions edges, revision verb) follow in a next change under A-487d. Whether this also ends the bundle's mesh/state timeout is not proven.

Reviewed-by: mesh-code-reviewer@shanks at 33143527f2

https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy

Live 2026-11-19 11:55 on novox: the indexer kept trunk revisions 487-493 seconds apart and its pin judge removed each previous one at once; the catalog half was reading trunk.488 when it was removed ("the entry of mesh-host ...: no such object"). Since ~11:52 the catalog's tools bundle has not answered mesh/state. - `readNewestOf`: a read of the newest revision whose list or an entry is removed under it names the newest again while it is newer than the one that failed; the same revision failing twice is the read's failure. No number, no setting (A-487d, hq 61bf1215, principle 7). - Used by the kept trunk's reads (start, on catalog-revision), TrunkView and BranchView; a read by number still fails loudly. - Tests: the newer-revision case (kept trunk, TrunkView) and the same-revision-twice case; each fails without its change; no sleep. Quick fix vs thorough: the thorough shape covers every reader that names the newest; six readers in the indexer program (versions, seed steps, open asks, versions fill, versions edges, revision verb) follow in a next change under A-487d. Whether this also ends the bundle's mesh/state timeout is not proven. Reviewed-by: mesh-code-reviewer@shanks at 33143527f29bf904863e46dd0d14e3b2b786dab3 https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
mesh-tools added 2 commits 2026-11-19 11:47:31 +00:00
The pin judge removes a trunk revision, its list and its entries, as soon as a newer one is kept; take-ins keep one every few
seconds, so the read of the newest revision failed with no such object and the first view of the catalog half never came.

Builds: design 47 G A-487, A-487b
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
Replaces the five tries: progress bounds the loop, the same revision failing twice is the read's failure. One helper,
readNewestOf, serves the kept trunk's reads, TrunkView and BranchView; a read by number still fails loudly.

Builds: design 47 G A-487d (hq 61bf1215), A-487, A-487b
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
mesh-tools merged commit e952ab721b into main 2026-11-19 11:47:38 +00:00
mesh-tools deleted branch fix/catalog-revision-read-race 2026-11-19 11:47:38 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_1025_21947877/f1375bb929a9732a",
"sequence": 10180,
"bytes": 870,
"of-bytes": 262144,
"waits": "its difference is not known yet",
"record": {
"milestone": "main.1025",
"heads": {
"novox/mesh-delivery@252": "e952ab721b529103fb91712da43ded856f50fdbb"
},
"opened": "2026-11-19T11:48:13.322769021Z",
"form": 1,
"group": {
"group": "",
"members": [
"novox/mesh-delivery@252"
],
"pulls": [
{
"repository": "novox/mesh-delivery",
"number": 252,
"head": "e952ab721b529103fb91712da43ded856f50fdbb",
"state": "merged",
"commit": "e952ab721b529103fb91712da43ded856f50fdbb",
"base": "main"
}
]
},
"entries": {
"mesh-delivery-indexer|src2:077e9b59d00d3d51cce579f5a65117212fb968759e5afcabac128a07d411865f|": {
"key": "mesh-delivery-indexer|src2:077e9b59d00d3d51cce579f5a65117212fb968759e5afcabac128a07d411865f|",
"module": "mesh-delivery-indexer",
"fingerprint": "src2:077e9b59d00d3d51cce579f5a65117212fb968759e5afcabac128a07d411865f"
}
},
"outcomes": {
"|||take-in": {
"key": "|||take-in",
"module": "",
"step": "take-in",
"outcome": "taken-in",
"at": "2026-11-19T11:48:13.32205247Z"
}
}
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_1025_21947877/f1375bb929a9732a", "sequence": 10180, "bytes": 870, "of-bytes": 262144, "waits": "its difference is not known yet", "record": { "milestone": "main.1025", "heads": { "novox/mesh-delivery@252": "e952ab721b529103fb91712da43ded856f50fdbb" }, "opened": "2026-11-19T11:48:13.322769021Z", "form": 1, "group": { "group": "", "members": [ "novox/mesh-delivery@252" ], "pulls": [ { "repository": "novox/mesh-delivery", "number": 252, "head": "e952ab721b529103fb91712da43ded856f50fdbb", "state": "merged", "commit": "e952ab721b529103fb91712da43ded856f50fdbb", "base": "main" } ] }, "entries": { "mesh-delivery-indexer|src2:077e9b59d00d3d51cce579f5a65117212fb968759e5afcabac128a07d411865f|": { "key": "mesh-delivery-indexer|src2:077e9b59d00d3d51cce579f5a65117212fb968759e5afcabac128a07d411865f|", "module": "mesh-delivery-indexer", "fingerprint": "src2:077e9b59d00d3d51cce579f5a65117212fb968759e5afcabac128a07d411865f" } }, "outcomes": { "|||take-in": { "key": "|||take-in", "module": "", "step": "take-in", "outcome": "taken-in", "at": "2026-11-19T11:48:13.32205247Z" } } } } ] } <!-- mesh-act:view.record/main_1025_21947877/f1375bb929a9732a.novox/mesh-delivery#252@1795088899137538054.3af9f2ac -->
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#252