Repository navigation
Commit c66cf6a
fix(signals): lanes stage — an optimistic derivation is an override (#3479 review)
A lane pass on a memo publishes its speculative result into the override
slot (`laneOverride`, CONFIG_DERIVED_OVERRIDE) instead of direct-committing
`_value`, so the committed view a reader off the lane is served (#3460) is a
whole frame: the held source and its derivations together, never a committed
shadow beside a speculative memo (gabbev's fuzzer, latest cohort: 57 -> 5
published-derivation disagreements, torn tuples to an effect 26 -> 0).
- Off the lane is provenance, not membership: a pass under the lane's own
transaction (its async's landing re-entering it) is the lane's work — the
`1:0` frame of an optimistic value that never finished preparing.
- The revert PROMOTES a derived override the truth confirmed instead of
re-deriving (no re-ask waterfall after the reveal); a superseded one drops.
- A derived override is a plain member: merges lanes through itself, does
not stop pending propagation, suspends its lane readers on its re-ask, is
skipped by body-end supersession and the authoritative-blockage census,
carries no `_overrideTime` or provenance stamp, is no acknowledgement to
the hold census.
- Every pass over a live lane member carrying a derived override is the
lane's pass, whatever channel dirtied it (a boundary reset re-running a
lane-born memo read its re-derived lane view as a differing truth and
demoted the lane; fuzzer latest-1 #2481). A fresh lane publish clears a
supersession in force.
Pins in tests/lane-outside-view.test.ts; A17 and INV-11 amended; size caps
ratcheted (isPending/latest 11.90 -> 12.05, store app 29.60 -> 29.75,
hydrating 19.60 -> 19.70 KB).
Co-authored-by: Claude via Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>1 parent 078078a commit c66cf6a
14 files changed
Lines changed: 448 additions & 78 deletions
File tree
- .changeset
- packages/signals
- docs
- src/core
- tests
- scripts/size
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
201 | 210 | | |
202 | 211 | | |
203 | 212 | | |
204 | 213 | | |
205 | 214 | | |
206 | 215 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
211 | 220 | | |
212 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
213 | 241 | | |
214 | 242 | | |
215 | 243 | | |
| |||
0 commit comments