Repository navigation
Commit 59ed7fd
fix(signals): store follows signal — A28 at the backing, an override survives its key becoming unobserved (S6, S7)
Ruling 2026-09-17: store rules follow signal rules. The two divergences the
7-reader posture matrix recorded in #3520 are closed.
S6 — A28 at the backing. Core read() serves an unflushed node's committed
value and re-runs the reader in the carrying flush (unflushedValue /
markLateLinker); the store's backing selection served the pending backing to
every owner-context reader at once. A derivation created inside a foreign
action that adopted a mainline setStore published the unflushed 1 where the
signal published 0. Now: ensurePB stamps the target with clock when the draft
opens outside a flush from outside any owner (the A28 (4) promoted-write
exemption, core's notePromotedWrite twin); pendingBackingVisible serves
committed for a stamped-this-tick backing and marks the reader late linker;
nodeValue gains core's unflushedValue arm; getNode gains a third born kind —
a node born in the unflushed window stages the pending backing's value as
core's ambient staging does (stageUnflushedKey: queuePendingNode, and
CONFIG_ADOPTED_UNFLUSHED under a transaction body), so the carrying flush
commits the write through the node. deep()/snapshot() keep their documented
speculative-peek contract.
S7 — the slot hook released a property node the moment its last subscriber
left, with the optimistic override on it (overrides live on nodes over a
clone the setter discards): s.n read 0 while the action was live. A node
carrying an override or a staged write now defers its release to the flush
that resolves it (deferSlotRelease feeds the previously unfed
transientStoreNodes sweep, whose checks were already exactly these).
Pins: posture-store-parity S6 (three shapes, with the commit follow-through)
and S7 (override visible; node released at settle) flip from recorded
divergences to parity pins. Matrix: every paired signal/store state is now
row-for-row identical (5 pairs x 37 rows, 0 differences).
Gate: suite green; oracles identical; solid/web unchanged from next; +0 B
minified core, +457 B minified store; two brotli caps ratcheted.
Co-authored-by: Claude via Cursor <[email protected]>1 parent e30fcc7 commit 59ed7fd
7 files changed
Lines changed: 198 additions & 47 deletions
File tree
- .changeset
- packages/signals
- docs
- src
- core
- store/next
- tests
- scripts/size
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
129 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
59 | 64 | | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
255 | 266 | | |
256 | 267 | | |
257 | 268 | | |
| |||
344 | 355 | | |
345 | 356 | | |
346 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
347 | 373 | | |
348 | 374 | | |
349 | 375 | | |
| |||
391 | 417 | | |
392 | 418 | | |
393 | 419 | | |
394 | | - | |
395 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
396 | 425 | | |
397 | 426 | | |
398 | 427 | | |
| |||
446 | 475 | | |
447 | 476 | | |
448 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
449 | 489 | | |
450 | 490 | | |
451 | 491 | | |
| |||
703 | 743 | | |
704 | 744 | | |
705 | 745 | | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
706 | 751 | | |
707 | 752 | | |
708 | 753 | | |
| |||
896 | 941 | | |
897 | 942 | | |
898 | 943 | | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
899 | 962 | | |
900 | 963 | | |
901 | 964 | | |
| |||
1740 | 1803 | | |
1741 | 1804 | | |
1742 | 1805 | | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
1743 | 1811 | | |
1744 | 1812 | | |
1745 | 1813 | | |
| |||
1835 | 1903 | | |
1836 | 1904 | | |
1837 | 1905 | | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1838 | 1914 | | |
1839 | 1915 | | |
1840 | 1916 | | |
| |||
0 commit comments