@serfab/cadre-core 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -290,7 +290,15 @@ function reportsPossiblyStoredWrite(links) {
|
|
|
290
290
|
*
|
|
291
291
|
* NOTE: `CoordinatorStaleLossError` (db-core; "nothing durably committed, safe to re-drive") is not
|
|
292
292
|
* claimed, so it falls to the text matchers; it escapes only after the coordinator's own retry budget
|
|
293
|
-
* ran out.
|
|
293
|
+
* ran out. Seen abandoning a control write on 2026-09-18 (`control-delete-while-alone-convergence`,
|
|
294
|
+
* under load): a node's own storage refused its own pend as a `stale conflict` for the ~14 s the
|
|
295
|
+
* coordinator spent re-driving, then gave up. Still not claimed here — the failing attempt already
|
|
296
|
+
* ran past {@link CONTROL_WRITE_RETRY_BUDGET_MS}, so a retry from this loop would never get to run,
|
|
297
|
+
* and the refusal came from the node's OWN storage disagreeing with its own revision view, which does
|
|
298
|
+
* not change while the node is alone; re-driving the same write body again would hit the same
|
|
299
|
+
* refusal. The cause (a commit torn by a sibling that stopped mid-commit, leaving the node with a
|
|
300
|
+
* revision view its own storage disputes) is `tickets/blocked/forked-control-collection-sync-livelocks.md`
|
|
301
|
+
* → "Second trigger".
|
|
294
302
|
*/
|
|
295
303
|
function isFinalTornWrite(link) {
|
|
296
304
|
return link instanceof TornActionError && link.final === true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-write-retry.js","sourceRoot":"","sources":["../src/control-write-retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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oB;IAC9B,QAAQ,EAAE,2BAA2B;IACrC,WAAW,EAAE,4BAA4B;CACzC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,iBAAiB,CAChC,OAAyB,EACzB,UAAoC,EAAE;IAEtC,OAAO,qBAAqB,CAAC,OAAO,EAAE;QACrC,QAAQ,EAAE,sBAAsB;QAChC,QAAQ,EAAE,6BAA6B;QACvC,QAAQ,EAAE,6BAA6B;QACvC,WAAW,EAAE,8BAA8B;QAC3C,4EAA4E;QAC5E,mDAAmD;QACnD,SAAS,EAAE,eAAe;KAC1B,EAAE,OAAO,CAAC,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serfab/cadre-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core library for Sereus cadre nodes - manages control networks and strand participation",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@libp2p/tcp": "^11.0.10",
|
|
74
74
|
"@libp2p/webrtc": "6.0.14",
|
|
75
75
|
"@libp2p/websockets": "^10.1.3",
|
|
76
|
-
"@optimystic/db-p2p-storage-fs": "^1.
|
|
76
|
+
"@optimystic/db-p2p-storage-fs": "^1.1.0",
|
|
77
77
|
"@types/debug": "^4.1.12",
|
|
78
78
|
"@types/node": "^25.0.10",
|
|
79
79
|
"@vitest/coverage-v8": "^4.0.17",
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"@libp2p/interface": "^3.1.0",
|
|
89
89
|
"@libp2p/peer-id": "^6.0.4",
|
|
90
90
|
"@multiformats/multiaddr": "^12.5.1",
|
|
91
|
-
"@optimystic/db-core": "^1.
|
|
92
|
-
"@optimystic/db-p2p": "^1.
|
|
93
|
-
"@optimystic/quereus-plugin-crypto": "^1.
|
|
94
|
-
"@optimystic/quereus-plugin-optimystic": "^1.
|
|
91
|
+
"@optimystic/db-core": "^1.1.0",
|
|
92
|
+
"@optimystic/db-p2p": "^1.1.0",
|
|
93
|
+
"@optimystic/quereus-plugin-crypto": "^1.1.0",
|
|
94
|
+
"@optimystic/quereus-plugin-optimystic": "^1.1.0",
|
|
95
95
|
"@quereus/quereus": "^4.19.4",
|
|
96
|
-
"@serfab/quereus-plugin-sereus": "^1.
|
|
96
|
+
"@serfab/quereus-plugin-sereus": "^1.1.0",
|
|
97
97
|
"debug": "^4.4.3",
|
|
98
98
|
"libp2p": "^3.1.3",
|
|
99
99
|
"uint8arrays": "^5.1.0"
|
|
@@ -307,7 +307,15 @@ function reportsPossiblyStoredWrite(links: readonly Error[]): boolean {
|
|
|
307
307
|
*
|
|
308
308
|
* NOTE: `CoordinatorStaleLossError` (db-core; "nothing durably committed, safe to re-drive") is not
|
|
309
309
|
* claimed, so it falls to the text matchers; it escapes only after the coordinator's own retry budget
|
|
310
|
-
* ran out.
|
|
310
|
+
* ran out. Seen abandoning a control write on 2026-09-18 (`control-delete-while-alone-convergence`,
|
|
311
|
+
* under load): a node's own storage refused its own pend as a `stale conflict` for the ~14 s the
|
|
312
|
+
* coordinator spent re-driving, then gave up. Still not claimed here — the failing attempt already
|
|
313
|
+
* ran past {@link CONTROL_WRITE_RETRY_BUDGET_MS}, so a retry from this loop would never get to run,
|
|
314
|
+
* and the refusal came from the node's OWN storage disagreeing with its own revision view, which does
|
|
315
|
+
* not change while the node is alone; re-driving the same write body again would hit the same
|
|
316
|
+
* refusal. The cause (a commit torn by a sibling that stopped mid-commit, leaving the node with a
|
|
317
|
+
* revision view its own storage disputes) is `tickets/blocked/forked-control-collection-sync-livelocks.md`
|
|
318
|
+
* → "Second trigger".
|
|
311
319
|
*/
|
|
312
320
|
function isFinalTornWrite(link: Error): boolean {
|
|
313
321
|
return link instanceof TornActionError && link.final === true;
|