Repository navigation
Commit b296640
refactor: structural version chain — closes the sweep/watermark finding class
Five findings at a4c439b, four in the accreted sweep machinery. Per the
standing decision, redesigned rather than patched a fifth time:
Emissions stamp svAt (per-kind: sv rows, svs slots); the channel tracks
the VISIBLE version (svv/svvs — live-queue entry, releaseBatch for
stashed items, emission for lane items); entries init av to it and apply
an item only when av === svAt-1 (the item's baseline IS their last-seen
state). Gaps take ONE flush-end resync after every queue. Deleted:
emission-snapshot membership, PcSweep/noteSweep/sweepList/runLateSweeps,
maxRq/winEnd watermarks, drainGen/dg, rq/sq stamps.
Findings 1/2/4 are unaskable under the chain. Finding 3: settle loop
skips staged-fold targets (single reveal notification, pinned). Finding
5: repairAncestorSlots at registration, gated to stale aliases of the
SAME child resolved through the family map — the ungated first cut
injected tentative rows into committed truth (all four optimistic
equivalence failures, one root cause). Revert-form resyncs (cm items)
resolve committed raw only — never a lingering draft, never the
composing proxy.
Held-window registrants improve: chain connects, real baseline-sound
ops at release instead of a rebuild (pin updated).
Signals 1,511 (+2 expected-fail) | web 719 | parity 153 — all green.
Three ratchets (17.15/19.6/27.4): flat redesign cost, accretion stops.
Co-authored-by: Cursor <[email protected]>1 parent a4c439b commit b296640
8 files changed
Lines changed: 285 additions & 172 deletions
File tree
- .changeset
- packages/signals
- src/store/next
- tests/store
- scripts/size
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
3 | 43 | | |
4 | 44 | | |
5 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
0 commit comments