@optimystic/db-core 1.18.0 → 1.20.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.
Files changed (229) hide show
  1. package/README.md +2 -1
  2. package/dist/src/blocks/helpers.d.ts +7 -0
  3. package/dist/src/blocks/helpers.d.ts.map +1 -1
  4. package/dist/src/blocks/helpers.js +7 -1
  5. package/dist/src/blocks/helpers.js.map +1 -1
  6. package/dist/src/btree/btree.d.ts +100 -4
  7. package/dist/src/btree/btree.d.ts.map +1 -1
  8. package/dist/src/btree/btree.js +252 -90
  9. package/dist/src/btree/btree.js.map +1 -1
  10. package/dist/src/btree/node-division.d.ts +37 -0
  11. package/dist/src/btree/node-division.d.ts.map +1 -0
  12. package/dist/src/btree/node-division.js +133 -0
  13. package/dist/src/btree/node-division.js.map +1 -0
  14. package/dist/src/chain/chain.d.ts +23 -0
  15. package/dist/src/chain/chain.d.ts.map +1 -1
  16. package/dist/src/chain/chain.js +43 -6
  17. package/dist/src/chain/chain.js.map +1 -1
  18. package/dist/src/cluster/structs.d.ts +41 -8
  19. package/dist/src/cluster/structs.d.ts.map +1 -1
  20. package/dist/src/cluster/structs.js +18 -7
  21. package/dist/src/cluster/structs.js.map +1 -1
  22. package/dist/src/collection/action.d.ts +29 -0
  23. package/dist/src/collection/action.d.ts.map +1 -1
  24. package/dist/src/collection/action.js +6 -0
  25. package/dist/src/collection/action.js.map +1 -1
  26. package/dist/src/collection/collection.d.ts +566 -120
  27. package/dist/src/collection/collection.d.ts.map +1 -1
  28. package/dist/src/collection/collection.js +1084 -495
  29. package/dist/src/collection/collection.js.map +1 -1
  30. package/dist/src/collection/head-commit.d.ts +110 -0
  31. package/dist/src/collection/head-commit.d.ts.map +1 -0
  32. package/dist/src/collection/head-commit.js +65 -0
  33. package/dist/src/collection/head-commit.js.map +1 -0
  34. package/dist/src/collection/index.d.ts +2 -0
  35. package/dist/src/collection/index.d.ts.map +1 -1
  36. package/dist/src/collection/index.js +2 -0
  37. package/dist/src/collection/index.js.map +1 -1
  38. package/dist/src/collection/segments.d.ts +77 -0
  39. package/dist/src/collection/segments.d.ts.map +1 -0
  40. package/dist/src/collection/segments.js +110 -0
  41. package/dist/src/collection/segments.js.map +1 -0
  42. package/dist/src/collection/struct.d.ts +176 -1
  43. package/dist/src/collection/struct.d.ts.map +1 -1
  44. package/dist/src/collection/struct.js +70 -0
  45. package/dist/src/collection/struct.js.map +1 -1
  46. package/dist/src/collection/write-attempts.d.ts +245 -0
  47. package/dist/src/collection/write-attempts.d.ts.map +1 -0
  48. package/dist/src/collection/write-attempts.js +439 -0
  49. package/dist/src/collection/write-attempts.js.map +1 -0
  50. package/dist/src/collections/tree/struct.d.ts +100 -17
  51. package/dist/src/collections/tree/struct.d.ts.map +1 -1
  52. package/dist/src/collections/tree/struct.js +38 -7
  53. package/dist/src/collections/tree/struct.js.map +1 -1
  54. package/dist/src/collections/tree/tree.d.ts +17 -5
  55. package/dist/src/collections/tree/tree.d.ts.map +1 -1
  56. package/dist/src/collections/tree/tree.js +117 -29
  57. package/dist/src/collections/tree/tree.js.map +1 -1
  58. package/dist/src/index.d.ts +2 -0
  59. package/dist/src/index.d.ts.map +1 -1
  60. package/dist/src/index.js +2 -0
  61. package/dist/src/index.js.map +1 -1
  62. package/dist/src/log/log.d.ts +5 -1
  63. package/dist/src/log/log.d.ts.map +1 -1
  64. package/dist/src/log/log.js +7 -1
  65. package/dist/src/log/log.js.map +1 -1
  66. package/dist/src/network/block-size.d.ts +67 -0
  67. package/dist/src/network/block-size.d.ts.map +1 -0
  68. package/dist/src/network/block-size.js +82 -0
  69. package/dist/src/network/block-size.js.map +1 -0
  70. package/dist/src/network/i-repo.d.ts +3 -0
  71. package/dist/src/network/i-repo.d.ts.map +1 -1
  72. package/dist/src/network/index.d.ts +5 -0
  73. package/dist/src/network/index.d.ts.map +1 -1
  74. package/dist/src/network/index.js +5 -0
  75. package/dist/src/network/index.js.map +1 -1
  76. package/dist/src/network/promise-shortfall-error.d.ts +40 -0
  77. package/dist/src/network/promise-shortfall-error.d.ts.map +1 -0
  78. package/dist/src/network/promise-shortfall-error.js +67 -0
  79. package/dist/src/network/promise-shortfall-error.js.map +1 -0
  80. package/dist/src/network/refuse-solo.d.ts +8 -0
  81. package/dist/src/network/refuse-solo.d.ts.map +1 -0
  82. package/dist/src/network/refuse-solo.js +8 -0
  83. package/dist/src/network/refuse-solo.js.map +1 -0
  84. package/dist/src/network/stale-failure.d.ts +20 -3
  85. package/dist/src/network/stale-failure.d.ts.map +1 -1
  86. package/dist/src/network/stale-failure.js +24 -3
  87. package/dist/src/network/stale-failure.js.map +1 -1
  88. package/dist/src/network/struct.d.ts +161 -13
  89. package/dist/src/network/struct.d.ts.map +1 -1
  90. package/dist/src/network/struct.js.map +1 -1
  91. package/dist/src/network/transaction-size.d.ts +59 -0
  92. package/dist/src/network/transaction-size.d.ts.map +1 -0
  93. package/dist/src/network/transaction-size.js +74 -0
  94. package/dist/src/network/transaction-size.js.map +1 -0
  95. package/dist/src/network/validity-rejected-error.d.ts +28 -0
  96. package/dist/src/network/validity-rejected-error.d.ts.map +1 -0
  97. package/dist/src/network/validity-rejected-error.js +51 -0
  98. package/dist/src/network/validity-rejected-error.js.map +1 -0
  99. package/dist/src/offline/entry.d.ts +72 -0
  100. package/dist/src/offline/entry.d.ts.map +1 -0
  101. package/dist/src/offline/entry.js +73 -0
  102. package/dist/src/offline/entry.js.map +1 -0
  103. package/dist/src/offline/index.d.ts +5 -0
  104. package/dist/src/offline/index.d.ts.map +1 -0
  105. package/dist/src/offline/index.js +5 -0
  106. package/dist/src/offline/index.js.map +1 -0
  107. package/dist/src/offline/journal.d.ts +61 -0
  108. package/dist/src/offline/journal.d.ts.map +1 -0
  109. package/dist/src/offline/journal.js +2 -0
  110. package/dist/src/offline/journal.js.map +1 -0
  111. package/dist/src/offline/queue.d.ts +484 -0
  112. package/dist/src/offline/queue.d.ts.map +1 -0
  113. package/dist/src/offline/queue.js +1236 -0
  114. package/dist/src/offline/queue.js.map +1 -0
  115. package/dist/src/offline/reachability.d.ts +25 -0
  116. package/dist/src/offline/reachability.d.ts.map +1 -0
  117. package/dist/src/offline/reachability.js +13 -0
  118. package/dist/src/offline/reachability.js.map +1 -0
  119. package/dist/src/offline/status.d.ts +148 -0
  120. package/dist/src/offline/status.d.ts.map +1 -0
  121. package/dist/src/offline/status.js +63 -0
  122. package/dist/src/offline/status.js.map +1 -0
  123. package/dist/src/offline/wake.d.ts +30 -0
  124. package/dist/src/offline/wake.d.ts.map +1 -0
  125. package/dist/src/offline/wake.js +68 -0
  126. package/dist/src/offline/wake.js.map +1 -0
  127. package/dist/src/reactivity/config.d.ts +8 -4
  128. package/dist/src/reactivity/config.d.ts.map +1 -1
  129. package/dist/src/reactivity/config.js +7 -3
  130. package/dist/src/reactivity/config.js.map +1 -1
  131. package/dist/src/reactivity/rotation.d.ts +9 -3
  132. package/dist/src/reactivity/rotation.d.ts.map +1 -1
  133. package/dist/src/reactivity/rotation.js +8 -2
  134. package/dist/src/reactivity/rotation.js.map +1 -1
  135. package/dist/src/testing/test-transactor.d.ts +31 -0
  136. package/dist/src/testing/test-transactor.d.ts.map +1 -1
  137. package/dist/src/testing/test-transactor.js +60 -0
  138. package/dist/src/testing/test-transactor.js.map +1 -1
  139. package/dist/src/transaction/commit-failure-class.d.ts +103 -0
  140. package/dist/src/transaction/commit-failure-class.d.ts.map +1 -0
  141. package/dist/src/transaction/commit-failure-class.js +96 -0
  142. package/dist/src/transaction/commit-failure-class.js.map +1 -0
  143. package/dist/src/transaction/coordinator.d.ts +224 -31
  144. package/dist/src/transaction/coordinator.d.ts.map +1 -1
  145. package/dist/src/transaction/coordinator.js +841 -362
  146. package/dist/src/transaction/coordinator.js.map +1 -1
  147. package/dist/src/transaction/entry-commit.d.ts +139 -0
  148. package/dist/src/transaction/entry-commit.d.ts.map +1 -0
  149. package/dist/src/transaction/entry-commit.js +199 -0
  150. package/dist/src/transaction/entry-commit.js.map +1 -0
  151. package/dist/src/transaction/index.d.ts +4 -1
  152. package/dist/src/transaction/index.d.ts.map +1 -1
  153. package/dist/src/transaction/index.js +1 -0
  154. package/dist/src/transaction/index.js.map +1 -1
  155. package/dist/src/transaction/transaction.d.ts +20 -0
  156. package/dist/src/transaction/transaction.d.ts.map +1 -1
  157. package/dist/src/transaction/validator.d.ts +7 -0
  158. package/dist/src/transaction/validator.d.ts.map +1 -1
  159. package/dist/src/transaction/validator.js +21 -12
  160. package/dist/src/transaction/validator.js.map +1 -1
  161. package/dist/src/transactor/change-notifier.d.ts +13 -4
  162. package/dist/src/transactor/change-notifier.d.ts.map +1 -1
  163. package/dist/src/transactor/change-notifier.js.map +1 -1
  164. package/dist/src/transactor/network-transactor.d.ts +58 -8
  165. package/dist/src/transactor/network-transactor.d.ts.map +1 -1
  166. package/dist/src/transactor/network-transactor.js +244 -50
  167. package/dist/src/transactor/network-transactor.js.map +1 -1
  168. package/dist/src/transactor/transactor-source.d.ts +22 -11
  169. package/dist/src/transactor/transactor-source.d.ts.map +1 -1
  170. package/dist/src/transactor/transactor-source.js +9 -13
  171. package/dist/src/transactor/transactor-source.js.map +1 -1
  172. package/dist/src/transactor/transactor.d.ts +14 -0
  173. package/dist/src/transactor/transactor.d.ts.map +1 -1
  174. package/dist/src/transform/digest.d.ts +20 -0
  175. package/dist/src/transform/digest.d.ts.map +1 -1
  176. package/dist/src/transform/digest.js +23 -3
  177. package/dist/src/transform/digest.js.map +1 -1
  178. package/dist/src/utility/visit-every.d.ts +14 -0
  179. package/dist/src/utility/visit-every.d.ts.map +1 -0
  180. package/dist/src/utility/visit-every.js +27 -0
  181. package/dist/src/utility/visit-every.js.map +1 -0
  182. package/package.json +1 -1
  183. package/src/blocks/helpers.ts +8 -1
  184. package/src/btree/btree.ts +266 -88
  185. package/src/btree/node-division.ts +155 -0
  186. package/src/chain/chain.ts +55 -6
  187. package/src/cluster/structs.ts +42 -7
  188. package/src/collection/action.ts +34 -0
  189. package/src/collection/collection.ts +1167 -540
  190. package/src/collection/head-commit.ts +148 -0
  191. package/src/collection/index.ts +2 -0
  192. package/src/collection/segments.ts +149 -0
  193. package/src/collection/struct.ts +201 -1
  194. package/src/collection/write-attempts.ts +506 -0
  195. package/src/collections/tree/struct.ts +97 -17
  196. package/src/collections/tree/tree.ts +129 -31
  197. package/src/index.ts +2 -0
  198. package/src/log/log.ts +7 -1
  199. package/src/network/block-size.ts +81 -0
  200. package/src/network/i-repo.ts +3 -0
  201. package/src/network/index.ts +5 -0
  202. package/src/network/promise-shortfall-error.ts +69 -0
  203. package/src/network/refuse-solo.ts +7 -0
  204. package/src/network/stale-failure.ts +27 -4
  205. package/src/network/struct.ts +169 -15
  206. package/src/network/transaction-size.ts +73 -0
  207. package/src/network/validity-rejected-error.ts +55 -0
  208. package/src/offline/entry.ts +127 -0
  209. package/src/offline/index.ts +4 -0
  210. package/src/offline/journal.ts +60 -0
  211. package/src/offline/queue.ts +1342 -0
  212. package/src/offline/reachability.ts +32 -0
  213. package/src/offline/status.ts +183 -0
  214. package/src/offline/wake.ts +67 -0
  215. package/src/reactivity/config.ts +8 -4
  216. package/src/reactivity/rotation.ts +9 -3
  217. package/src/testing/test-transactor.ts +65 -0
  218. package/src/transaction/commit-failure-class.ts +133 -0
  219. package/src/transaction/coordinator.ts +969 -393
  220. package/src/transaction/entry-commit.ts +285 -0
  221. package/src/transaction/index.ts +4 -0
  222. package/src/transaction/transaction.ts +21 -0
  223. package/src/transaction/validator.ts +22 -12
  224. package/src/transactor/change-notifier.ts +13 -4
  225. package/src/transactor/network-transactor.ts +252 -55
  226. package/src/transactor/transactor-source.ts +29 -13
  227. package/src/transactor/transactor.ts +16 -0
  228. package/src/transform/digest.ts +36 -3
  229. package/src/utility/visit-every.ts +25 -0
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../../src/log/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,KA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,EAAE,CAAC,CAAC;YACpE,CAAC;QACF,CAAC;QACD,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED;;;;;oGAKgG;IAChG,MAAM,CAAC,eAAe,CAAU,KAAyB,EAAE,cAA8B;QACxF,OAAO;YACN,gBAAgB,EAAE,kBAAkB;YACpC,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,CAAC;YAClG,iBAAiB,EAAE,CAAC,EAAY,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,EAAE,EAAE,CAAC,EAAE,CAAC;YAClG,QAAQ,EAAE,KAAK,EAAE,OAA0B,EAAE,OAAsC,EAAE,EAAE;gBACtF,IAAI,OAAO,EAAE,CAAC;oBACb,gFAAgF;oBAChF,8EAA8E;oBAC9E,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;oBACzG,OAAO,CAAC,SAAS,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;gBAClE,CAAC;YACF,CAAC;SACsC,CAAC;IAE1C,CAAC;CACD"}
@@ -0,0 +1,67 @@
1
+ import type { BlockId } from "../blocks/structs.js";
2
+ /**
3
+ * The most bytes one block may encode to, measured by `jsonEncodedBytes` (the UTF-8 length of its
4
+ * `JSON.stringify`): 7.5 MiB, the same as {@link MAX_TRANSACTION_BYTES}.
5
+ *
6
+ * Every path that copies a whole block to another machine sends it in one message under db-p2p's
7
+ * `MAX_BLOCK_MESSAGE_BYTES` frame cap — a replication push, a sync archive answer, a remote `get` reply —
8
+ * so a block larger than one frame can never be replicated, repaired or read remotely. Two things pin the
9
+ * value:
10
+ *
11
+ * - **It fits the frame with its wrapping.** A block at this size, plus what it travels in (a `get`
12
+ * reply entry's state, an archive revision entry, a push's metadata and commit proof), fits the
13
+ * 8 MiB frame inside the same envelope reserve a transaction gets (`TRANSACTION_ENVELOPE_RESERVE_BYTES`).
14
+ * - **No single transaction can exceed it on its own.** A block holding one entry or child is never
15
+ * larger than the transaction that wrote it, since that entry is inside the transaction's pend (as the
16
+ * new block's insert, or as the update operation that appends it), and the pend is held to
17
+ * {@link MAX_TRANSACTION_BYTES}.
18
+ *
19
+ * Structures that hold many entries per block (the log, tree nodes) keep each block that holds more than
20
+ * one entry near {@link BLOCK_TARGET_BYTES}, far under this limit; this is the bound itself.
21
+ */
22
+ export declare const MAX_BLOCK_BYTES: number;
23
+ /**
24
+ * The size past which a block holding more than one entry starts a new block: 1 MiB, by the same
25
+ * `jsonEncodedBytes` measure as {@link MAX_BLOCK_BYTES}. The log rolls over to a new tail block at it
26
+ * (`ChainInitOptions.blockTargetBytes`); an entry larger than it sits alone in its own block.
27
+ *
28
+ * Why 1 MiB:
29
+ *
30
+ * - One block's copy stays far under the 8 MiB frame, so a remote `get` reply carrying a few blocks
31
+ * still fits one message in the ordinary case, and a single replication push stays short on a slow
32
+ * relayed link.
33
+ * - It is 32 entries of 32 KiB, so a log of ordinary small entries keeps rolling over by count
34
+ * (`EntriesPerBlock`) exactly as it did before the size rule.
35
+ *
36
+ * The cost: a structure of large entries spreads over more blocks, so walking it reads more blocks.
37
+ */
38
+ export declare const BLOCK_TARGET_BYTES: number;
39
+ /**
40
+ * A write that would leave a block larger than {@link MAX_BLOCK_BYTES}: once committed, the block could
41
+ * never be copied to another machine in one message. Raised by the writer before anything is sent
42
+ * ({@link oversizedBlock}), so nothing was reserved and nothing needs cancelling. Not a `StaleFailure`
43
+ * and never retried — the same write leaves the same block on every attempt. The structures that hold
44
+ * many entries per block split by size (the log rolls over, a tree node divides), so this names a block
45
+ * that outgrew the limit some other way; the change has to be written in a form that does not.
46
+ */
47
+ export declare class BlockTooLargeError extends Error {
48
+ readonly blockId: BlockId;
49
+ /** What the block's post-write content encodes to, by `jsonEncodedBytes`. */
50
+ readonly bytes: number;
51
+ /** The limit it exceeded: {@link MAX_BLOCK_BYTES}. */
52
+ readonly limit: number;
53
+ constructor(blockId: BlockId,
54
+ /** What the block's post-write content encodes to, by `jsonEncodedBytes`. */
55
+ bytes: number,
56
+ /** The limit it exceeded: {@link MAX_BLOCK_BYTES}. */
57
+ limit?: number);
58
+ }
59
+ /**
60
+ * The refusal for the first block in `bytes` — per block, what a write would leave its content encoding
61
+ * to — that is over {@link MAX_BLOCK_BYTES}, or `undefined` when every one fits. The one rule both write
62
+ * paths apply before anything is sent. It judges only the blocks it is given: a writer measures what it
63
+ * can materialize locally (`describeTouchedBlocks`), which leaves out a deleted block and an updated
64
+ * block whose base it cannot materialize.
65
+ */
66
+ export declare function oversizedBlock(bytes: Readonly<Record<BlockId, number>>): BlockTooLargeError | undefined;
67
+ //# sourceMappingURL=block-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-size.d.ts","sourceRoot":"","sources":["../../../src/network/block-size.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,QAAwB,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,QAAc,CAAC;AAE9C;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAE3C,QAAQ,CAAC,OAAO,EAAE,OAAO;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM;IACtB,sDAAsD;IACtD,QAAQ,CAAC,KAAK,EAAE,MAAM;gBAJb,OAAO,EAAE,OAAO;IACzB,6EAA6E;IACpE,KAAK,EAAE,MAAM;IACtB,sDAAsD;IAC7C,KAAK,GAAE,MAAwB;CAKzC;AAED;;;;;;GAMG;AAMH,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,kBAAkB,GAAG,SAAS,CAKvG"}
@@ -0,0 +1,82 @@
1
+ import { MAX_TRANSACTION_BYTES } from "./transaction-size.js";
2
+ /**
3
+ * The most bytes one block may encode to, measured by `jsonEncodedBytes` (the UTF-8 length of its
4
+ * `JSON.stringify`): 7.5 MiB, the same as {@link MAX_TRANSACTION_BYTES}.
5
+ *
6
+ * Every path that copies a whole block to another machine sends it in one message under db-p2p's
7
+ * `MAX_BLOCK_MESSAGE_BYTES` frame cap — a replication push, a sync archive answer, a remote `get` reply —
8
+ * so a block larger than one frame can never be replicated, repaired or read remotely. Two things pin the
9
+ * value:
10
+ *
11
+ * - **It fits the frame with its wrapping.** A block at this size, plus what it travels in (a `get`
12
+ * reply entry's state, an archive revision entry, a push's metadata and commit proof), fits the
13
+ * 8 MiB frame inside the same envelope reserve a transaction gets (`TRANSACTION_ENVELOPE_RESERVE_BYTES`).
14
+ * - **No single transaction can exceed it on its own.** A block holding one entry or child is never
15
+ * larger than the transaction that wrote it, since that entry is inside the transaction's pend (as the
16
+ * new block's insert, or as the update operation that appends it), and the pend is held to
17
+ * {@link MAX_TRANSACTION_BYTES}.
18
+ *
19
+ * Structures that hold many entries per block (the log, tree nodes) keep each block that holds more than
20
+ * one entry near {@link BLOCK_TARGET_BYTES}, far under this limit; this is the bound itself.
21
+ */
22
+ export const MAX_BLOCK_BYTES = MAX_TRANSACTION_BYTES;
23
+ /**
24
+ * The size past which a block holding more than one entry starts a new block: 1 MiB, by the same
25
+ * `jsonEncodedBytes` measure as {@link MAX_BLOCK_BYTES}. The log rolls over to a new tail block at it
26
+ * (`ChainInitOptions.blockTargetBytes`); an entry larger than it sits alone in its own block.
27
+ *
28
+ * Why 1 MiB:
29
+ *
30
+ * - One block's copy stays far under the 8 MiB frame, so a remote `get` reply carrying a few blocks
31
+ * still fits one message in the ordinary case, and a single replication push stays short on a slow
32
+ * relayed link.
33
+ * - It is 32 entries of 32 KiB, so a log of ordinary small entries keeps rolling over by count
34
+ * (`EntriesPerBlock`) exactly as it did before the size rule.
35
+ *
36
+ * The cost: a structure of large entries spreads over more blocks, so walking it reads more blocks.
37
+ */
38
+ export const BLOCK_TARGET_BYTES = 1024 * 1024;
39
+ /**
40
+ * A write that would leave a block larger than {@link MAX_BLOCK_BYTES}: once committed, the block could
41
+ * never be copied to another machine in one message. Raised by the writer before anything is sent
42
+ * ({@link oversizedBlock}), so nothing was reserved and nothing needs cancelling. Not a `StaleFailure`
43
+ * and never retried — the same write leaves the same block on every attempt. The structures that hold
44
+ * many entries per block split by size (the log rolls over, a tree node divides), so this names a block
45
+ * that outgrew the limit some other way; the change has to be written in a form that does not.
46
+ */
47
+ export class BlockTooLargeError extends Error {
48
+ blockId;
49
+ bytes;
50
+ limit;
51
+ constructor(blockId,
52
+ /** What the block's post-write content encodes to, by `jsonEncodedBytes`. */
53
+ bytes,
54
+ /** The limit it exceeded: {@link MAX_BLOCK_BYTES}. */
55
+ limit = MAX_BLOCK_BYTES) {
56
+ super(`block ${blockId} would encode to ${bytes} bytes once written, over the per-block limit MAX_BLOCK_BYTES (${limit} bytes); a block that large could never be copied to another machine`);
57
+ this.blockId = blockId;
58
+ this.bytes = bytes;
59
+ this.limit = limit;
60
+ this.name = 'BlockTooLargeError';
61
+ }
62
+ }
63
+ /**
64
+ * The refusal for the first block in `bytes` — per block, what a write would leave its content encoding
65
+ * to — that is over {@link MAX_BLOCK_BYTES}, or `undefined` when every one fits. The one rule both write
66
+ * paths apply before anything is sent. It judges only the blocks it is given: a writer measures what it
67
+ * can materialize locally (`describeTouchedBlocks`), which leaves out a deleted block and an updated
68
+ * block whose base it cannot materialize.
69
+ */
70
+ // NOTE: accepted tradeoff (no backwards compatibility yet, AGENTS.md) — a block a build without the split
71
+ // rules already grew past the limit refuses every write that leaves it over, including ones that do not
72
+ // grow it: a log tail's roll-over (which rewrites its `nextId`) wedges every later write to that
73
+ // collection, and a delete from an oversized leaf is refused. If a deployment must keep writing over such
74
+ // data, refuse only a block that grows past its base's size here, rather than every block over the limit.
75
+ export function oversizedBlock(bytes) {
76
+ for (const [blockId, size] of Object.entries(bytes)) {
77
+ if (size > MAX_BLOCK_BYTES)
78
+ return new BlockTooLargeError(blockId, size);
79
+ }
80
+ return undefined;
81
+ }
82
+ //# sourceMappingURL=block-size.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-size.js","sourceRoot":"","sources":["../../../src/network/block-size.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAElC;IAEA;IAEA;IALV,YACU,OAAgB;IACzB,6EAA6E;IACpE,KAAa;IACtB,sDAAsD;IAC7C,QAAgB,eAAe;QAExC,KAAK,CAAC,SAAS,OAAO,oBAAoB,KAAK,kEAAkE,KAAK,sEAAsE,CAAC,CAAC;QANrL,YAAO,GAAP,OAAO,CAAS;QAEhB,UAAK,GAAL,KAAK,CAAQ;QAEb,UAAK,GAAL,KAAK,CAA0B;QAGxC,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IAClC,CAAC;CACD;AAED;;;;;;GAMG;AACH,0GAA0G;AAC1G,wGAAwG;AACxG,iGAAiG;AACjG,0GAA0G;AAC1G,0GAA0G;AAC1G,MAAM,UAAU,cAAc,CAAC,KAAwC;IACtE,KAAK,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACrD,IAAI,IAAI,GAAG,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC"}
@@ -52,6 +52,9 @@ export type RepoCommitRequest = {
52
52
  * block falls back to corroboration).
53
53
  */
54
54
  blockDigests?: BlockContentDigests;
55
+ /** {@link CommitRequest.refuseSolo}: present on every per-coordinator commit of a write that asked
56
+ * not to be committed alone, and omitted otherwise. */
57
+ refuseSolo?: true;
55
58
  };
56
59
  export type IRepo = {
57
60
  get(blockGets: BlockGets, options?: MessageOptions): Promise<GetBlockResults>;
@@ -1 +1 @@
1
- {"version":3,"file":"i-repo.d.ts","sourceRoot":"","sources":["../../../src/network/i-repo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE3J,MAAM,MAAM,cAAc,GAAG;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAC;IACjC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;;OAQG;IAIH,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IACnB,GAAG,CAAC,S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,GAAG;IAC/B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;;OAQG;IAIH,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC;2DACuD;IACvD,UAAU,CAAC,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IACnB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9E,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACpF;;;;;;;;;OASG;IACH,QAAQ,CAAC,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3F,2FAA2F;IAC3F,UAAU,CAAC,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACrG,CAAA"}
@@ -1,12 +1,17 @@
1
1
  export * from "./i-key-network.js";
2
2
  export * from "./i-peer-network.js";
3
+ export * from "./block-size.js";
3
4
  export * from "./durability.js";
4
5
  export * from "./i-repo.js";
5
6
  export * from "./lineage.js";
7
+ export * from "./promise-shortfall-error.js";
8
+ export * from "./refuse-solo.js";
6
9
  export * from "./repo-protocol.js";
7
10
  export * from "./routing-key.js";
8
11
  export * from "./stale-failure.js";
9
12
  export * from "./struct.js";
10
13
  export * from "./transaction-expired-error.js";
14
+ export * from "./transaction-size.js";
11
15
  export * from "./types.js";
16
+ export * from "./validity-rejected-error.js";
12
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/network/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/network/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC"}
@@ -1,12 +1,17 @@
1
1
  export * from "./i-key-network.js";
2
2
  export * from "./i-peer-network.js";
3
+ export * from "./block-size.js";
3
4
  export * from "./durability.js";
4
5
  export * from "./i-repo.js";
5
6
  export * from "./lineage.js";
7
+ export * from "./promise-shortfall-error.js";
8
+ export * from "./refuse-solo.js";
6
9
  export * from "./repo-protocol.js";
7
10
  export * from "./routing-key.js";
8
11
  export * from "./stale-failure.js";
9
12
  export * from "./struct.js";
10
13
  export * from "./transaction-expired-error.js";
14
+ export * from "./transaction-size.js";
11
15
  export * from "./types.js";
16
+ export * from "./validity-rejected-error.js";
12
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/network/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/network/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { PromiseShortfall, ShortfallFailure, SoloRefusalReason } from "./struct.js";
2
+ /**
3
+ * A pend the cohort could not accept because too few of its members answered the promise round: the
4
+ * approvals fell short of the bar with no member refusing the write as a lost race or a held block,
5
+ * and too few rejecting it for a rejection. Nobody judged the write; the cohort was not all there.
6
+ * Not retryable by a write path — every coordinator of the cohort meets the same silent members, so a
7
+ * re-read and re-pend fails the same way until they answer again. Nothing was saved: the members that
8
+ * approved release their reservation when the writer cancels.
9
+ *
10
+ * ONE class for every place it is raised, as `TransactionExpiredError` is. The cluster coordinator
11
+ * (db-p2p `ClusterCoordinator`) raises it; the coordinating repo returns its facts as a
12
+ * {@link ShortfallFailure} ({@link toFailure}), which is what lets a remote writer receive them at
13
+ * all; and each write path (`Collection.sync`, `TransactionCoordinator.commit`) raises it again from
14
+ * that refusal.
15
+ *
16
+ * The message is the sentence the coordinator has always thrown, byte for byte: a downstream
17
+ * repository matches it to retry a silent cohort (backlog
18
+ * `debt-a-downstream-repo-classifies-retries-by-parsing-our-error-text`). Test for this class, or for
19
+ * the refusal with `isShortfallFailure`, rather than for the text.
20
+ */
21
+ export declare class PromiseShortfallError extends Error {
22
+ /** Approve votes the round received. */
23
+ readonly approvals: number;
24
+ /** Reject votes the round received — fewer than would make the round a rejection. */
25
+ readonly rejections: number;
26
+ /** How many members the cohort the round ran on has. */
27
+ readonly peerCount: number;
28
+ /** The approvals the round needed. */
29
+ readonly needed: number;
30
+ /** Peer-id strings of the cohort members that cast no promise vote at all. */
31
+ readonly silentPeers: readonly string[];
32
+ /** Why a lone coordinator refused to write alone, when that is what this shortfall is
33
+ * ({@link PromiseShortfall.soloRefused}); absent when a consensus round fell short. */
34
+ readonly soloRefused?: SoloRefusalReason;
35
+ constructor(shortfall: PromiseShortfall);
36
+ /** The refusal a coordinating repo returns for this error, so it crosses the repo protocol as an
37
+ * answer rather than as a reset stream. */
38
+ toFailure(): ShortfallFailure;
39
+ }
40
+ //# sourceMappingURL=promise-shortfall-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promise-shortfall-error.d.ts","sourceRoot":"","sources":["../../../src/network/promise-shortfall-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEzF;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC/C,wCAAwC;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,qFAAqF;IACrF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,wDAAwD;IACxD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,8EAA8E;IAC9E,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC;2FACuF;IACvF,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAC;gBAE7B,SAAS,EAAE,gBAAgB;IAevC;gDAC4C;IAC5C,SAAS,IAAI,gBAAgB;CAe7B"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * A pend the cohort could not accept because too few of its members answered the promise round: the
3
+ * approvals fell short of the bar with no member refusing the write as a lost race or a held block,
4
+ * and too few rejecting it for a rejection. Nobody judged the write; the cohort was not all there.
5
+ * Not retryable by a write path — every coordinator of the cohort meets the same silent members, so a
6
+ * re-read and re-pend fails the same way until they answer again. Nothing was saved: the members that
7
+ * approved release their reservation when the writer cancels.
8
+ *
9
+ * ONE class for every place it is raised, as `TransactionExpiredError` is. The cluster coordinator
10
+ * (db-p2p `ClusterCoordinator`) raises it; the coordinating repo returns its facts as a
11
+ * {@link ShortfallFailure} ({@link toFailure}), which is what lets a remote writer receive them at
12
+ * all; and each write path (`Collection.sync`, `TransactionCoordinator.commit`) raises it again from
13
+ * that refusal.
14
+ *
15
+ * The message is the sentence the coordinator has always thrown, byte for byte: a downstream
16
+ * repository matches it to retry a silent cohort (backlog
17
+ * `debt-a-downstream-repo-classifies-retries-by-parsing-our-error-text`). Test for this class, or for
18
+ * the refusal with `isShortfallFailure`, rather than for the text.
19
+ */
20
+ export class PromiseShortfallError extends Error {
21
+ /** Approve votes the round received. */
22
+ approvals;
23
+ /** Reject votes the round received — fewer than would make the round a rejection. */
24
+ rejections;
25
+ /** How many members the cohort the round ran on has. */
26
+ peerCount;
27
+ /** The approvals the round needed. */
28
+ needed;
29
+ /** Peer-id strings of the cohort members that cast no promise vote at all. */
30
+ silentPeers;
31
+ /** Why a lone coordinator refused to write alone, when that is what this shortfall is
32
+ * ({@link PromiseShortfall.soloRefused}); absent when a consensus round fell short. */
33
+ soloRefused;
34
+ constructor(shortfall) {
35
+ // NOTE: `shortfall` off the wire is trusted as shaped (`isShortfallFailure` checks only presence),
36
+ // so a malformed coordinator answer throws a TypeError here (no `silentPeers` array) instead of
37
+ // this error. Either still ends the write; if hostile coordinators become a concern, validate the
38
+ // shape where the refusal is received, as for `TransactionExpiredError`.
39
+ super(`Failed to get super-majority: ${shortfall.approvals}/${shortfall.peerCount} approvals (needed ${shortfall.needed}, ${shortfall.rejections} rejections)`);
40
+ this.name = 'PromiseShortfallError';
41
+ this.approvals = shortfall.approvals;
42
+ this.rejections = shortfall.rejections;
43
+ this.peerCount = shortfall.peerCount;
44
+ this.needed = shortfall.needed;
45
+ this.silentPeers = [...shortfall.silentPeers];
46
+ if (shortfall.soloRefused !== undefined)
47
+ this.soloRefused = shortfall.soloRefused;
48
+ }
49
+ /** The refusal a coordinating repo returns for this error, so it crosses the repo protocol as an
50
+ * answer rather than as a reset stream. */
51
+ toFailure() {
52
+ return {
53
+ success: false,
54
+ conflict: false,
55
+ reason: this.message,
56
+ shortfall: {
57
+ approvals: this.approvals,
58
+ rejections: this.rejections,
59
+ peerCount: this.peerCount,
60
+ needed: this.needed,
61
+ silentPeers: [...this.silentPeers],
62
+ ...(this.soloRefused === undefined ? {} : { soloRefused: this.soloRefused }),
63
+ },
64
+ };
65
+ }
66
+ }
67
+ //# sourceMappingURL=promise-shortfall-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prom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AAE,IAAI,CAAC,SAAS;gBACzB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBAClC,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;aAC5E;SACD,CAAC;IACH,CAAC;CACD"}
@@ -0,0 +1,8 @@
1
+ /** Wraps `PendRequest.refuseSolo` and `CommitRequest.refuseSolo` so the field spreads onto a request
2
+ * only when the write refuses to be committed alone. A write that does not is omitted rather than
3
+ * sent as `false`: the request is hashed verbatim into every cohort signature preimage, so it must
4
+ * serialize exactly as it did before the field existed. Every producer of the field goes through here. */
5
+ export declare function refuseSoloField(refuse: boolean | undefined): {
6
+ refuseSolo?: true;
7
+ };
8
+ //# sourceMappingURL=refuse-solo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refuse-solo.d.ts","sourceRoot":"","sources":["../../../src/network/refuse-solo.ts"],"names":[],"mappings":"AAAA;;;0GAG0G;AAC1G,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG;IAAE,UAAU,CAAC,EAAE,IAAI,CAAA;CAAE,CAElF"}
@@ -0,0 +1,8 @@
1
+ /** Wraps `PendRequest.refuseSolo` and `CommitRequest.refuseSolo` so the field spreads onto a request
2
+ * only when the write refuses to be committed alone. A write that does not is omitted rather than
3
+ * sent as `false`: the request is hashed verbatim into every cohort signature preimage, so it must
4
+ * serialize exactly as it did before the field existed. Every producer of the field goes through here. */
5
+ export function refuseSoloField(refuse) {
6
+ return refuse === true ? { refuseSolo: true } : {};
7
+ }
8
+ //# sourceMappingURL=refuse-solo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refuse-solo.js","sourceRoot":"","sources":["../../../src/network/refuse-solo.ts"],"names":[],"mappings":"AAAA;;;0GAG0G;AAC1G,MAAM,UAAU,eAAe,CAAC,MAA2B;IAC1D,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACpD,CAAC"}
@@ -1,13 +1,14 @@
1
1
  import type { ActionId, ActionRev } from "../collection/action.js";
2
- import type { ExpiredFailure, StaleFailure, WriteFailure } from "./struct.js";
2
+ import type { ExpiredFailure, RejectedFailure, ShortfallFailure, StaleFailure, WriteFailure } from "./struct.js";
3
3
  /**
4
4
  * The single rule for "is this non-success retryable after a re-read?" Both write paths and the
5
5
  * transactor's aggregation call this — no consumer re-derives it.
6
6
  *
7
7
  * {@link StaleFailure.conflict} is authoritative when present. The `missing`/`pending` fallback
8
8
  * covers producers that have not been taught the field, including a remote peer on an older build
9
- * (the repo protocol is plain JSON, so an unset field simply arrives absent). An expiry is never a
10
- * conflict ({@link isExpiryFailure}), whatever else arrived beside it.
9
+ * (the repo protocol is plain JSON, so an unset field simply arrives absent). An expiry
10
+ * ({@link isExpiryFailure}), a promise shortfall ({@link isShortfallFailure}) and a validity
11
+ * rejection ({@link isRejectedFailure}) are never a conflict, whatever else arrived beside them.
11
12
  */
12
13
  export declare function isConflictFailure(failure: WriteFailure): boolean;
13
14
  /**
@@ -18,6 +19,22 @@ export declare function isConflictFailure(failure: WriteFailure): boolean;
18
19
  * reads as the shape it always had.
19
20
  */
20
21
  export declare function isExpiryFailure(failure: WriteFailure): failure is ExpiredFailure;
22
+ /**
23
+ * The single rule for "did the cohort refuse this pend because too few of its members answered the
24
+ * promise round?" ({@link ShortfallFailure}). Every write path stops on it rather than retrying, since
25
+ * every coordinator of the cohort meets the same silent members. Decided by the structured field,
26
+ * never the reason text; a coordinator on a build that predates the field throws the shortfall
27
+ * instead of returning it, which a writer sees as it always did.
28
+ */
29
+ export declare function isShortfallFailure(failure: WriteFailure): failure is ShortfallFailure;
30
+ /**
31
+ * The single rule for "did the cohort refuse this pend because the members that sank it judged the
32
+ * transaction invalid?" ({@link RejectedFailure}). Every write path stops on it rather than retrying,
33
+ * since re-sending the same content to the same checks is refused the same way. Decided by the
34
+ * structured field, never the reason text; a coordinator on a build that predates the field throws the
35
+ * rejection instead of returning it, which a writer sees as it always did.
36
+ */
37
+ export declare function isRejectedFailure(failure: WriteFailure): failure is RejectedFailure;
21
38
  /**
22
39
  * The single rule for picking one {@link StaleFailure.staleAt} out of several candidates.
23
40
  *
@@ -1 +1 @@
1
- {"version":3,"file":"stale-failure.d.ts","sourceRoot":"","sources":["../../../src/network/stale-failure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9E;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAGhE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,IAAI,cAAc,CAEhF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,SAAS,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,YAAY,CAAC,SAAS,CAAC,CAQtG;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEjH"}
1
+ {"version":3,"file":"stale-failure.d.ts","sourceRoot":"","sources":["../../../src/network/stale-failure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEjH;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAGhE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,IAAI,cAAc,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,IAAI,gBAAgB,CAErF;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,IAAI,eAAe,CAEnF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,SAAS,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,YAAY,CAAC,SAAS,CAAC,CAQtG;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAEjH"}
@@ -4,11 +4,12 @@
4
4
  *
5
5
  * {@link StaleFailure.conflict} is authoritative when present. The `missing`/`pending` fallback
6
6
  * covers producers that have not been taught the field, including a remote peer on an older build
7
- * (the repo protocol is plain JSON, so an unset field simply arrives absent). An expiry is never a
8
- * conflict ({@link isExpiryFailure}), whatever else arrived beside it.
7
+ * (the repo protocol is plain JSON, so an unset field simply arrives absent). An expiry
8
+ * ({@link isExpiryFailure}), a promise shortfall ({@link isShortfallFailure}) and a validity
9
+ * rejection ({@link isRejectedFailure}) are never a conflict, whatever else arrived beside them.
9
10
  */
10
11
  export function isConflictFailure(failure) {
11
- if (isExpiryFailure(failure))
12
+ if (isExpiryFailure(failure) || isShortfallFailure(failure) || isRejectedFailure(failure))
12
13
  return false;
13
14
  return failure.conflict ?? Boolean(failure.missing?.length || failure.pending?.length);
14
15
  }
@@ -22,6 +23,26 @@ export function isConflictFailure(failure) {
22
23
  export function isExpiryFailure(failure) {
23
24
  return failure.expired !== undefined;
24
25
  }
26
+ /**
27
+ * The single rule for "did the cohort refuse this pend because too few of its members answered the
28
+ * promise round?" ({@link ShortfallFailure}). Every write path stops on it rather than retrying, since
29
+ * every coordinator of the cohort meets the same silent members. Decided by the structured field,
30
+ * never the reason text; a coordinator on a build that predates the field throws the shortfall
31
+ * instead of returning it, which a writer sees as it always did.
32
+ */
33
+ export function isShortfallFailure(failure) {
34
+ return failure.shortfall !== undefined;
35
+ }
36
+ /**
37
+ * The single rule for "did the cohort refuse this pend because the members that sank it judged the
38
+ * transaction invalid?" ({@link RejectedFailure}). Every write path stops on it rather than retrying,
39
+ * since re-sending the same content to the same checks is refused the same way. Decided by the
40
+ * structured field, never the reason text; a coordinator on a build that predates the field throws the
41
+ * rejection instead of returning it, which a writer sees as it always did.
42
+ */
43
+ export function isRejectedFailure(failure) {
44
+ return failure.rejected !== undefined;
45
+ }
25
46
  /**
26
47
  * The single rule for picking one {@link StaleFailure.staleAt} out of several candidates.
27
48
  *
@@ -1 +1 @@
1
- {"version":3,"file":"stale-failure.js","sourceRoot":"","sources":["../../../src/network/stale-failure.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAqB;IACtD,IAAI,eAAe,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3C,OAAO,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACxF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,OAAqB;IACpD,OAAO,OAAO,CAAC,OAAO,KAAK,SAAS,CAAC;AACtC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH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