Repository navigation
Commit 1ea6374
fix(signals): latest() of an uninitialized source throws in every scope; rule the oracle's open cells
latestRead's NotReady fallback served the visible value when the caller was
unowned OR the source was initialized; an uninitialized source read from an
event handler therefore returned undefined — a value latest<T>'s type
excludes. The condition is now the initialized case only. isPending is
unchanged (an unowned probe answers false, which boolean admits).
Rulings recorded in SPEC-ASYNC-SEMANTICS.md (2026-09-14, from the
visibility oracle's first run):
- A7 amended: before the first landing latest() throws, never undefined.
- A16 wording corrected: the boundary is ownership (context === null), not
tracking — untrack() inside an owner propagates NotReady.
- A17 authoritative-reader carve-out: until()'s predicate reads the landed
world (staged values included, before they are visible), never the
caller's optimism.
- A32 (new): children-forbidden readers (createTrackedEffect, onSettled)
see the frame — committed values and a displayed override — never a
held write; they cannot enter a hold on their own.
- Observer dependence of a fresh derivation over a pending node recorded
as inherent (the frame is identical either way).
Oracle: 18 unspecified cells → 10, of which 7 are pre-flush cells parked on
A28 (#3337). Three violation cells stand.
Co-authored-by: Cursor <[email protected]>1 parent d901abe commit 1ea6374
5 files changed
Lines changed: 92 additions & 85 deletions
File tree
- .changeset
- packages/signals
- docs
- src/core
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments