@optimystic/db-core 1.25.0 → 1.27.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 (74) hide show
  1. package/dist/src/cluster/structs.d.ts +10 -0
  2. package/dist/src/cluster/structs.d.ts.map +1 -1
  3. package/dist/src/cohort-topic/addressing.d.ts +26 -2
  4. package/dist/src/cohort-topic/addressing.d.ts.map +1 -1
  5. package/dist/src/cohort-topic/addressing.js +35 -4
  6. package/dist/src/cohort-topic/addressing.js.map +1 -1
  7. package/dist/src/cohort-topic/member-engine.d.ts +17 -10
  8. package/dist/src/cohort-topic/member-engine.d.ts.map +1 -1
  9. package/dist/src/cohort-topic/member-engine.js +20 -18
  10. package/dist/src/cohort-topic/member-engine.js.map +1 -1
  11. package/dist/src/cohort-topic/registration/renewal.d.ts +21 -14
  12. package/dist/src/cohort-topic/registration/renewal.d.ts.map +1 -1
  13. package/dist/src/cohort-topic/registration/renewal.js +38 -28
  14. package/dist/src/cohort-topic/registration/renewal.js.map +1 -1
  15. package/dist/src/collection/collection.d.ts +123 -34
  16. package/dist/src/collection/collection.d.ts.map +1 -1
  17. package/dist/src/collection/collection.js +231 -74
  18. package/dist/src/collection/collection.js.map +1 -1
  19. package/dist/src/collection/segments.d.ts +71 -14
  20. package/dist/src/collection/segments.d.ts.map +1 -1
  21. package/dist/src/collection/segments.js +94 -14
  22. package/dist/src/collection/segments.js.map +1 -1
  23. package/dist/src/network/i-key-network.d.ts +28 -0
  24. package/dist/src/network/i-key-network.d.ts.map +1 -1
  25. package/dist/src/network/i-repo.d.ts +16 -0
  26. package/dist/src/network/i-repo.d.ts.map +1 -1
  27. package/dist/src/offline/queue.d.ts +13 -0
  28. package/dist/src/offline/queue.d.ts.map +1 -1
  29. package/dist/src/offline/queue.js +22 -3
  30. package/dist/src/offline/queue.js.map +1 -1
  31. package/dist/src/reactivity/topic-anchor.d.ts.map +1 -1
  32. package/dist/src/reactivity/topic-anchor.js +20 -2
  33. package/dist/src/reactivity/topic-anchor.js.map +1 -1
  34. package/dist/src/transaction/coordinator.d.ts +1 -1
  35. package/dist/src/transaction/coordinator.d.ts.map +1 -1
  36. package/dist/src/transaction/coordinator.js +15 -16
  37. package/dist/src/transaction/coordinator.js.map +1 -1
  38. package/dist/src/transactor/network-transactor.d.ts +16 -3
  39. package/dist/src/transactor/network-transactor.d.ts.map +1 -1
  40. package/dist/src/transactor/network-transactor.js +22 -5
  41. package/dist/src/transactor/network-transactor.js.map +1 -1
  42. package/dist/src/transform/atomic.d.ts +8 -2
  43. package/dist/src/transform/atomic.d.ts.map +1 -1
  44. package/dist/src/transform/atomic.js +10 -4
  45. package/dist/src/transform/atomic.js.map +1 -1
  46. package/dist/src/transform/helpers.d.ts +29 -3
  47. package/dist/src/transform/helpers.d.ts.map +1 -1
  48. package/dist/src/transform/helpers.js +62 -3
  49. package/dist/src/transform/helpers.js.map +1 -1
  50. package/dist/src/transform/tracker.d.ts +57 -5
  51. package/dist/src/transform/tracker.d.ts.map +1 -1
  52. package/dist/src/transform/tracker.js +111 -11
  53. package/dist/src/transform/tracker.js.map +1 -1
  54. package/dist/src/utility/expiring-lru-map.d.ts +16 -0
  55. package/dist/src/utility/expiring-lru-map.d.ts.map +1 -0
  56. package/dist/src/utility/expiring-lru-map.js +39 -0
  57. package/dist/src/utility/expiring-lru-map.js.map +1 -0
  58. package/package.json +1 -1
  59. package/src/cluster/structs.ts +10 -0
  60. package/src/cohort-topic/addressing.ts +42 -4
  61. package/src/cohort-topic/member-engine.ts +35 -28
  62. package/src/cohort-topic/registration/renewal.ts +62 -42
  63. package/src/collection/collection.ts +3462 -3272
  64. package/src/collection/segments.ts +140 -22
  65. package/src/network/i-key-network.ts +30 -0
  66. package/src/network/i-repo.ts +16 -0
  67. package/src/offline/queue.ts +23 -3
  68. package/src/reactivity/topic-anchor.ts +23 -3
  69. package/src/transaction/coordinator.ts +15 -16
  70. package/src/transactor/network-transactor.ts +24 -6
  71. package/src/transform/atomic.ts +12 -5
  72. package/src/transform/helpers.ts +61 -3
  73. package/src/transform/tracker.ts +110 -12
  74. package/src/utility/expiring-lru-map.ts +42 -0
@@ -1 +1 @@
1
- {"version":3,"file":"renewal.js","sourceRoot":"","sources":["../../../../src/cohort-topic/registration/renewal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,yBAAyB,EAAE,iCAAiC,EAAE,MAAM,4BAA4B,CAAC;AAC1G,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAsF/D,MAAM,qBAAqB;IAMgC;IALlD,mBAAmB,GAAG,CAAC,CAAC;IACxB,OAAO,CAAqB;IAC5B,SAAS,CAAyB;IAClC,aAAa,CAAS;IAE9B,YAAY,OAA2B,EAAmB,IAA4B;QAA5B,SAAI,GAAJ,IAAI,CAAwB;QACrF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,kBAAkB,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;IACzC,CAAC;IAED,IAAI,MAAM;QACT,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAED,IAAI,eAAe;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,IAAI,cAAc;QACjB,OAAO,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,QAAQ;QACb,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,WAAW;QAChB,OAAO,E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CAAC,CAAC;QAC/B,CAAC;QACD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AAED,yCAAyC;AACzC,MAAM,UAAU,uBAAuB,CAAC,IAA2B;IAClE,OAAO,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAED,oFAAoF;AACpF,SAAS,GAAG,CAAC,CAAS;IACrB,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -7,7 +7,7 @@ import { BlockFloors } from "../transactor/block-floors.js";
7
7
  import type { WriteDurability } from "../network/struct.js";
8
8
  import type { CollectionId, CommittedTail, CommittedTailAnswer, CommittedTailQuery, CommittedTailReadOptions, HeadCommitOptions, ICollection, InFlightAttempt, InFlightCycle, OpenHeadCommitOptions, SyncOptions } from "./index.js";
9
9
  import { ActionRefusedError } from "./struct.js";
10
- import type { EntryId } from "./segments.js";
10
+ import type { EntryId, StagedUnit } from "./segments.js";
11
11
  import type { ActionContext, ActionRev, AlreadyAppliedTally } from "./action.js";
12
12
  import type { WriteIdentity } from "./write-attempts.js";
13
13
  import type { HeadCommitHandle } from "./head-commit.js";
@@ -111,7 +111,10 @@ export interface ReadViewOptions {
111
111
  /** A point-in-time copy of a collection's staged (un-synced) state, produced by
112
112
  * {@link Collection.snapshotPending} and consumed by {@link Collection.restorePending}. */
113
113
  export interface CollectionSnapshot<TAction> {
114
- /** Deep-cloned tracker transforms at snapshot time. */
114
+ /** The tracker's transforms at snapshot time, as {@link Tracker.shareTransforms} hands them out:
115
+ * the maps are this snapshot's own, the staged values inside them are shared with the tracker,
116
+ * which copies a value before changing it. Stays as captured under later staging. Read it; do not
117
+ * change it, since nothing here would copy first. */
115
118
  transforms: Transforms;
116
119
  /** The bases the transforms' update operations were computed against (see {@link BasePins}),
117
120
  * copied at snapshot time. Restored with the transforms, so a restore never pairs operations
@@ -119,17 +122,25 @@ export interface CollectionSnapshot<TAction> {
119
122
  * were not built on. Absent on a snapshot built by hand; such a restore keeps whatever pins
120
123
  * the tracker holds for the restored ids. */
121
124
  pins?: BasePins;
122
- /** The OPEN segment's actions at snapshot time (see {@link SegmentList}). Sealed segments are
123
- * not captured as actions — their effects are in `transforms`, which is what a committed read
124
- * view built from this snapshot must include — and a restore never puts one back: whether it
125
- * reinstates `transforms` verbatim or rebuilds the tracker from the sealed segments as they are
126
- * then is decided by {@link sealedVersion} (see {@link Collection.restorePending}). */
127
- pending: Action<TAction>[];
125
+ /** The OPEN segment's units at snapshot time (see {@link SegmentList}): each action with the
126
+ * delta and tally its staging produced, shared with the segment list, which never changes a unit.
127
+ * Sealed segments are not captured as actions — their effects are in `transforms`, which is what
128
+ * a committed read view built from this snapshot must include — and a restore never puts one
129
+ * back: whether it reinstates `transforms` verbatim or rebuilds the tracker from the sealed
130
+ * segments as they are then is decided by {@link sealedVersion} and {@link replayEpoch} (see
131
+ * {@link Collection.restorePending}). */
132
+ pending: readonly StagedUnit<TAction>[];
128
133
  /** {@link SegmentList.version} at capture: a restore that finds the sealed list changed since —
129
134
  * a segment sealed, dropped or refused while the snapshot was outstanding — replays rather than
130
135
  * reinstating `transforms`, which would put a dropped segment's effects back. Absent on a
131
136
  * snapshot built by hand, which reads as "unchanged". */
132
137
  sealedVersion?: number;
138
+ /** The collection's replay epoch at capture — bumped by every replay, which stages every segment
139
+ * again under fresh block ids and records those ids on the segments. A restore over sealed
140
+ * segments that finds it moved replays rather than reinstating `transforms`, whose ids the
141
+ * segments' records no longer name. Absent on a snapshot built by hand, which reads as
142
+ * "unchanged". */
143
+ replayEpoch?: number;
133
144
  /** The committed boundary (action context) the staged state sat on when captured.
134
145
  * `undefined` for a collection with no committed revision yet (an invented
135
146
  * collection whose header/root still live in the tracker). A read view built
@@ -166,6 +177,14 @@ export declare class Collection<TAction> implements ICollection<TAction> {
166
177
  * exactly the one pending list it replaced, and every path behaves as it did then. */
167
178
  private readonly segments;
168
179
  private readonly latchId;
180
+ /** Bumped at the start of every replay ({@link replayActions}): a replay stages every segment
181
+ * again, so the blocks the staged actions insert take fresh ids, and the deltas recorded on the
182
+ * segments name those. A head attempt built from the head's delta carries the epoch it was built
183
+ * in, and the committed head is taken out of the live tracker only while the epoch is unchanged —
184
+ * otherwise the attempt's ids are not the ones the live tracker holds, and the head is replayed
185
+ * out as before ({@link subtractCommittedHead}). A snapshot captures it for the same reason
186
+ * ({@link CollectionSnapshot.replayEpoch}). */
187
+ private replayEpoch;
169
188
  /** The transforms an INVENTED collection starts from — its header, its empty log block and (for
170
189
  * a tree) its empty root, as {@link createOrOpen}'s create branch staged them. A replay resets
171
190
  * the tracker to a copy of this, rather than to empty, for as long as no committed revision has
@@ -532,8 +551,10 @@ export declare class Collection<TAction> implements ICollection<TAction> {
532
551
  * commit changes what this collection's reads see ({@link viewChanged}); a head commit's tracker
533
552
  * is private to the commit.
534
553
  *
535
- * @returns the sum of what the handlers accepted as already applied ({@link AlreadyAppliedTally});
536
- * a handler that answers nothing adds the zero tally. */
554
+ * @returns what the staging produced ({@link Staging}): the transforms the handlers staged — the
555
+ * atomic's own, which `tracker` copied what it kept of, so the caller may keep them as the record
556
+ * of this staging — and the sum of what the handlers accepted as already applied
557
+ * ({@link AlreadyAppliedTally}); a handler that answers nothing adds the zero tally. */
537
558
  private stageInto;
538
559
  /** Tell {@link CollectionInitOptions.onViewChanged} that what this collection's reads see is
539
560
  * about to change. Every caller calls it in the same synchronous step as the change itself — no
@@ -965,7 +986,11 @@ export declare class Collection<TAction> implements ICollection<TAction> {
965
986
  * until the first sync. Resetting such a collection to empty would leave it
966
987
  * unreadable; restoring the snapshot returns it to its prior (readable) state.
967
988
  *
968
- * The returned snapshot is deep-cloned and independent of subsequent mutations.
989
+ * The returned snapshot stays as captured under subsequent staging, without copying what is
990
+ * staged: it shares the staged values with the tracker, which copies one before changing it
991
+ * ({@link Tracker.shareTransforms}). A successful commit restores none of its snapshots, and the
992
+ * Quereus bridge takes one per statement per written collection, so a deep copy here cost every
993
+ * statement in proportion to the whole offline queue.
969
994
  * Synchronous and latch-free: intended to bracket transaction-scoped staging,
970
995
  * when no concurrent act/sync is in flight. */
971
996
  snapshotPending(): CollectionSnapshot<TAction>;
@@ -982,19 +1007,23 @@ export declare class Collection<TAction> implements ICollection<TAction> {
982
1007
  * revision), and whether any segment is sealed now:
983
1008
  *
984
1009
  * - **Verbatim**, when the sealed list is unchanged and the boundary has not moved: the tracker
985
- * is reset to a copy of the captured transforms, the captured pins are restored, and the open
1010
+ * is reset to new maps over the captured transforms' values, so one snapshot can be restored
1011
+ * again (a repeated `rollback to`), the captured pins are restored, and the open
986
1012
  * segment is set to the captured actions. This keeps an INVENTED collection's header, log
987
1013
  * block and root, which live in the tracker until the first sync and would be lost by a
988
1014
  * reset. It is the arm every restore took before segments existed, so while nothing is ever
989
1015
  * sealed nothing behaves differently.
990
1016
  * - **Replay**, when the sealed list has changed — a segment sealed, dropped or refused while
991
- * the snapshot was outstanding — or when the boundary has moved while a segment is sealed:
992
- * the open segment is set to the captured actions and the tracker is rebuilt by
993
- * {@link replayActions}, the sealed segments as they are NOW (refused ones skipped, a newly
994
- * refused one recorded and reported) and then the restored open actions. Reinstating the
995
- * captured transforms would put a dropped segment's effects back — the drain removes the
996
- * head segment after committing it, and the next head commit would commit it a second time
997
- * — and a reset would drop the sealed segments' effects.
1017
+ * the snapshot was outstanding — or when the boundary has moved, or a replay has run
1018
+ * ({@link CollectionSnapshot.replayEpoch}), while a segment is sealed: the open segment is
1019
+ * set to the captured actions and the tracker is rebuilt by {@link replayActions}, the sealed
1020
+ * segments as they are NOW (refused ones skipped, a newly refused one recorded and reported)
1021
+ * and then the restored open actions. Reinstating the captured transforms would put a dropped
1022
+ * segment's effects back — the drain removes the head segment after committing it, and the
1023
+ * next head commit would commit it a second time — and a reset would drop the sealed
1024
+ * segments' effects. After a replay, reinstating them would put back block ids the sealed
1025
+ * segments' recorded deltas no longer name, and the next head commit would take the wrong
1026
+ * blocks out of the tracker.
998
1027
  * - A moved boundary with NOTHING sealed keeps the two arms it had before segments. An empty
999
1028
  * captured open segment (the transaction-rollback shape: the capture predates the
1000
1029
  * transaction's first stage) resets the tracker empty, because the captured transforms
@@ -1031,7 +1060,9 @@ export declare class Collection<TAction> implements ICollection<TAction> {
1031
1060
  * pre-pend re-validation (restageIfBasesMoved) finds those bases moved and re-stages. */
1032
1061
  restorePending(snapshot: CollectionSnapshot<TAction>): Promise<void>;
1033
1062
  /** A read-only {@link Tracker} pinned to this collection's committed state AS OF the
1034
- * moment of this call, seeded with a (deep-copied) set of pre-transaction transforms.
1063
+ * moment of this call, seeded with a snapshot's transforms ({@link CollectionSnapshot.transforms}).
1064
+ * It shares their values, so pass a snapshot's and not a live tracker's, which would go on changing
1065
+ * the values it owns; a view does not write, and if one did it would copy first.
1035
1066
  * Reads through it observe exactly that revision plus exactly those transforms — NOT
1036
1067
  * the mutations staged into this collection's live tracker afterward, and NOT commits
1037
1068
  * that fold into (or clear) the live read cache while the view is being walked. Used
@@ -1121,6 +1152,12 @@ export declare class Collection<TAction> implements ICollection<TAction> {
1121
1152
  sealPending(entryId: EntryId): boolean;
1122
1153
  /** The entry ids of the sealed segments, oldest first — refused ones included, until dropped. */
1123
1154
  sealedEntries(): EntryId[];
1155
+ /** Whether `entryId` owns a sealed segment here, refused or not: asked of one entry at a time, at
1156
+ * any queue depth, so it builds no list. Synchronous and latch-free, like {@link sealedEntries}. */
1157
+ holdsSealed(entryId: EntryId): boolean;
1158
+ /** Whether any segment is sealed here, refused ones included. Synchronous and latch-free, like
1159
+ * {@link sealedEntries}. */
1160
+ hasSealed(): boolean;
1124
1161
  /** The log tail block id the most recent header read named ({@link logTailId}), for a caller that
1125
1162
  * resolves this collection's cohorts from routing keys without a read — the offline queue's
1126
1163
  * reachability gate (docs/offline-sync.md §When to submit). `undefined` before the first header
@@ -1135,10 +1172,9 @@ export declare class Collection<TAction> implements ICollection<TAction> {
1135
1172
  * sealed here. Synchronous and latch-free, like {@link sealedEntries}. */
1136
1173
  sealedActions(entryId: EntryId): readonly Action<TAction>[] | undefined;
1137
1174
  /** The OPEN segment's actions — what the current transaction has staged since the last seal — as
1138
- * the array the segment holds (never mutated by a caller). Unlike {@link getPendingActions} it
1139
- * answers while segments are sealed, for a reader that judges the open transaction beside the
1140
- * queued ones (the Quereus plugin's `CommitOutlook()`). Synchronous and latch-free, like
1141
- * {@link sealedActions}. */
1175
+ * a new array. Unlike {@link getPendingActions} it answers while segments are sealed, for a
1176
+ * reader that judges the open transaction beside the queued ones (the Quereus plugin's
1177
+ * `CommitOutlook()`). Synchronous and latch-free, like {@link sealedActions}. */
1142
1178
  openActions(): readonly Action<TAction>[];
1143
1179
  /** The exact inverse of {@link sealPending}, list-only and latch-free by the same contract: move
1144
1180
  * the segment's actions back into the open segment, for an enqueue whose journal write failed
@@ -1513,24 +1549,67 @@ export declare class Collection<TAction> implements ICollection<TAction> {
1513
1549
  private headSegment;
1514
1550
  /** The tracker a head attempt is built from (see {@link commitHead}): `current`, while it was
1515
1551
  * built for the revision the next attempt requests and no base under it has moved; otherwise a
1516
- * fresh one ({@link buildHeadTracker}). A revision that moved is a write that is genuinely
1517
- * different, and so is one whose held lineage moved at the same revision: a refresh between
1518
- * attempts that adopted another lineage ({@link judgeAdoption}) dropped the read cache the
1519
- * tracker was staged over, and an action that inserted a block computed from that content pinned
1520
- * no base the re-judge below would see as moved. A base that moved at the same revision is
1521
- * re-judged exactly as {@link restageIfBasesMoved} re-judges the live queue before an attempt,
1522
- * and rebuilds.
1552
+ * fresh one — from the head's recorded delta where that is possible
1553
+ * ({@link headTrackerFromDelta}), else by running its handlers ({@link buildHeadTracker}). A
1554
+ * revision that moved is a write that is genuinely different, and so is one whose held lineage
1555
+ * moved at the same revision: a refresh between attempts that adopted another lineage
1556
+ * ({@link judgeAdoption}) dropped the read cache the tracker was staged over, and an action that
1557
+ * inserted a block computed from that content pinned no base the re-judge below would see as
1558
+ * moved. A base that moved at the same revision is re-judged exactly as
1559
+ * {@link restageIfBasesMoved} re-judges the live queue before an attempt, and rebuilds.
1523
1560
  * NOTE: that rebuild is the same exception to the byte-identical retry that {@link syncAttempts}
1524
1561
  * records at its `restageIfBasesMoved` call — fresh ids for the blocks the actions insert under
1525
1562
  * an unchanged `(action id, revision)` — reached the same narrow way and refused by storage's
1526
1563
  * base guard on the same machines; the same answer applies if it is ever seen. */
1527
1564
  private headTrackerFor;
1565
+ /** A head tracker built from what `segment`'s actions staged into the live tracker
1566
+ * ({@link SealedSegment.delta}) rather than by running them again: a tracker over the read cache
1567
+ * holding a copy of the delta, with the live tracker's pins for the blocks the delta updates — the
1568
+ * bases those operations were computed against, which the live tracker has judged exactly as this
1569
+ * tracker's will be (the operations are the same). Correct because the segment's actions were
1570
+ * staged over the committed state plus the segments ahead of it, and once those have committed
1571
+ * with nothing from any other writer in between, the committed state IS that base, so running the
1572
+ * handlers again would make every decision the same way; their only different output would be
1573
+ * fresh ids for the blocks they insert, which the live tracker does not hold, and which is why a
1574
+ * rebuilt head has to be replayed out of the tracker afterwards. A refresh that adopts another
1575
+ * writer's revision replays, which records every delta again. `undefined` — build by running the
1576
+ * handlers — when the delta is not on record, or when a pin under it has moved: the delta was
1577
+ * computed on content the cache no longer describes. The caller keeps this for a collection that
1578
+ * holds a committed revision only: an invented collection's first commit has to carry the baseline,
1579
+ * which the delta does not. */
1580
+ private headTrackerFromDelta;
1581
+ /** Take a committed head segment out of the live tracker without running a handler, the
1582
+ * counterpart of {@link headTrackerFromDelta}: the attempt's transforms are in the read cache and
1583
+ * its revision adopted (`fold`), so the live tracker's state for the blocks the head touched
1584
+ * (`touched`) is rebuilt from the remaining segments' and the open units' recorded deltas alone
1585
+ * (`Tracker.refold`), and nothing else is visited. Two steps. First, each touched block that a
1586
+ * remaining delta updates and the read cache no longer retains is read through the cache now:
1587
+ * the fold applies the head's operations into a cached block only, so an evicted one would be
1588
+ * pinned at the revision last served, which the remaining operations were not computed on. Then,
1589
+ * in one synchronous step, {@link viewChanged} and the re-fold — told even though no id changes,
1590
+ * because a read that fetched its base before the fold and applied the remaining operations
1591
+ * after it would otherwise see content missing the head; the signal readers already handle
1592
+ * (docs/internals.md, "The drain changes a tree beneath its readers"), once per commit instead of
1593
+ * once per unit re-staged.
1594
+ *
1595
+ * NOTE: `touched` is what the head's delta touched, not what its attempt touched: a block the
1596
+ * attempt's log append changed and the delta did not — the collection header, when the log tail
1597
+ * rolled over in this commit — is not visited, so a later segment's pin on it is judged moved
1598
+ * and the next refresh or head commit replays what is staged. At most once per roll-over, which
1599
+ * is every 32 entries; if it ever shows in a drain profile, visit the attempt's touched ids too,
1600
+ * on the ground that the append changes only the header's tail id, which no handler reads.
1601
+ *
1602
+ * @returns `false`, with nothing changed, when a remaining segment's or open unit's delta is not
1603
+ * on record: the caller replays instead. */
1604
+ private subtractCommittedHead;
1528
1605
  /** A tracker over this instance's read cache, with pins of its own, holding `segment`'s actions
1529
1606
  * staged atomically over the committed state — from the invented baseline while this collection
1530
1607
  * has no committed revision ({@link replayBaseline}): its header, log block and root then exist
1531
1608
  * nowhere else, and the head's commit has to carry them. A refusal is the segment's own,
1532
1609
  * recorded and reported ({@link recordSealedRefusal}) and thrown; a live replay that found it
1533
- * first has already done the recording, and the caller never gets here. */
1610
+ * first has already done the recording, and the caller never gets here. Records the tally this
1611
+ * staging produced on the segment, never the transforms: their ids are this tracker's, not the
1612
+ * live tracker's, which `SealedSegment.delta` names. */
1534
1613
  private buildHeadTracker;
1535
1614
  /** Stage `actions` and flush them as one call that either takes effect or leaves NOTHING behind:
1536
1615
  * when the flush throws, the actions this call staged are unstaged again before the error escapes.
@@ -1578,14 +1657,24 @@ export declare class Collection<TAction> implements ICollection<TAction> {
1578
1657
  *
1579
1658
  * Each re-staged update pins its base through `Atomic.commit` → `Tracker.absorb`, the path
1580
1659
  * {@link act} uses, so the pend declares the bases the re-staged operations were computed on. Each
1581
- * sealed segment that staged records what its actions accepted as already applied
1582
- * (`SealedSegment.applied`), the tally the head commit reports when the segment is committed.
1660
+ * sealed segment that staged records what its actions staged (`SealedSegment.delta`, under the ids
1661
+ * this replay minted — the ones the live tracker now holds, which is what lets the next head
1662
+ * commit take the head out of the tracker without a replay) and what they accepted as already
1663
+ * applied (`SealedSegment.applied`), the tally the head commit reports when the segment is
1664
+ * committed; each open unit records the same for its action. The replay epoch moves first
1665
+ * ({@link replayEpoch}), so a head attempt built before this replay is known to hold other ids.
1583
1666
  *
1584
1667
  * A replay changes the tree beneath unlatched readers twice over: the reset drops every block a
1585
1668
  * staged action inserted, and the re-staging inserts them again under fresh ids. Both are told
1586
1669
  * through {@link viewChanged} — the reset here, each re-staged unit in {@link stageInto} — so a
1587
1670
  * reader part-way through a descent knows to read again rather than follow an id that is gone.
1588
1671
  *
1672
+ * NOTE: a throw out of the open segment's staging leaves the units behind it with no staging on
1673
+ * record (every record is cleared first, since the ids it named are gone), on top of the
1674
+ * half-restaged tracker the callers' note on this method already accepts; the next replay
1675
+ * records them again, and a seal over them meanwhile carries no delta, which the head commit
1676
+ * takes as "stage it again".
1677
+ *
1589
1678
  * @param unreported - a segment whose refusal is recorded but NOT reported through
1590
1679
  * `onSealedRefused`: the one {@link restoreSealed} is inserting, whose caller reads the recorded
1591
1680
  * refusal off the segment itself. */
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/collection/collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAA+C,MAAM,aAAa,CAAC;AAMlL,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,OAAO,EAAE,gBAAgB,EAAiC,MAAM,oCAAoC,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAA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