You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c9b6380
Browse filesBrowse the repository at this point in the historyBrowse files
test(signals): shadow the per-hold seat table against the engine
Step 2 of seat-per-hold.md §8. The `__TEST__` shadow in `seat.ts` now
predicts every read's slot from the pass's seat toward the hold of the node
it reads (§3): work when born into it, when its node holds the hold's
staging, or when the hold's flush dirtied it; verdict reader when the pass
probed (or inherited a probe of) a node that hold holds; mainline else.
Mechanism: probed nodes are remembered per reader (`probeMemory`) and
resolved to holds at use (`holdOf`), since a hold created in the same
flush after a nothing-found probe (verdict-contract L156) is not a
transaction at probe time. Render effects inherit probes only through
`laneDirty` (mirrored with `shadowLaneDirtyHook`, D-26 #4284); a pending
or held-async memo drops its memory at the head (#3884); store leaf probes
count as their family derive's (D-30, `_fam`).
The gate (§8 step 2) does not pass: the D-25 either-order family shows
slot differences in 4393/4491/4504/verdict-memo-flight-no-reask, all one
shape — a verdict posture inherited through the #4050 arm toward a hold
that has since landed. Reported to the maintainer before any engine
change; `probedToward` keeps today's order (a probe of T beats T's held
staging) and the comment there says why.
Also regenerates docs/RULES-INDEX.md for the spec commit's rule text.
Co-authored-by: Claude via Cursor <[email protected]>
Shadow seat (`__TEST__` only): assert the per-hold seat table (seat-per-hold.md §3) against the engine — the seat of a pass toward each hold from the probes it made or inherited, the staging its node holds, and the flush that dirtied it — instead of the node's single verdict-lane membership.
Copy file name to clipboardExpand all lines: packages/signals/docs/RULES-INDEX.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Status legend: **live** stated and standing · **ruled** carries an explicit rul
54
54
| A7 | amended |`docs/SPEC-ASYNC-SEMANTICS.md:167`| seat.ts×1 truth.ts×1 verdict.ts×1 | fuzz-findings-l2.test.ts×1 latest-uninitialized-over-latest-4362.test.ts×2 spec-async-semantics.test.ts×2 visibility-oracle-store.states.ts×1 visibility-oracle.states.ts×1 visibility-oracle.test.ts×1 |[ruled, amended in place] Resolved async never reads `[false, undefined]` — After an async memo resolves, `[isPending(x), latest(x)]` is `[false, resolvedValue]` — never `[false, undefined]`. **Amende… |
55
55
| A8 | amended |`docs/SPEC-ASYNC-SEMANTICS.md:175`| — | create-deferred-3710.test.ts×1 createMemo.test.ts×1 visibility-oracle-store.states.ts×1 visibility-oracle.states.ts×2 |[ruled, amended in place 2026-07-07]`isPending(() => latest(x))` follows `x`'s own async only — verdicts are per-channel — (**re-ruled 2026-07-07c** — was "tracks the transition the same as `isPendin… |
56
56
| A9 | amended |`docs/SPEC-ASYNC-SEMANTICS.md:183`| async.ts×1 projection.ts×1 target.ts×1 | spec-async-semantics.test.ts×3 visibility-oracle-store.states.ts×4 visibility-oracle-store.test.ts×1 |[ruled, amended in place 2026-07-07] Store leaves behind a firewall report the firewall's new-question refetch — `isPending` on a store leaf behind a firewall reports the firewall's refetch like any a… |
57
-
| A10 | ruled |`docs/SPEC-ASYNC-SEMANTICS.md:191`| async.ts×1 core.ts×3 lanes.ts×1 scheduler.ts×1 seat.ts×1 verdict.ts×3 | boundary-not-born-held-3540.test.ts×1 createMemo.test.ts×1 error-staged-recovery.test.ts×1 fuzz-findings-l2.test.ts×1 ispending-memo-unstamped-hold-3457.test.ts×2 latest-isPending-consistency.test.ts×3 latest-uninitialized-over-latest-4362.test.ts×1 verdict-contract.test.ts×2 verdict-memo-flight-no-reask.test.ts×1 |[ruled]`[isPending(x), x()]` is atomic within one scope — `[isPending(x), x()]` read in one scope is atomic: a reader that observed the fresh value must not see `pending === true` for it. |
57
+
| A10 | ruled |`docs/SPEC-ASYNC-SEMANTICS.md:191`| async.ts×1 core.ts×3 lanes.ts×1 scheduler.ts×1 seat.ts×2 verdict.ts×3 | boundary-not-born-held-3540.test.ts×1 createMemo.test.ts×1 error-staged-recovery.test.ts×1 fuzz-findings-l2.test.ts×1 ispending-memo-unstamped-hold-3457.test.ts×2 latest-isPending-consistency.test.ts×3 latest-uninitialized-over-latest-4362.test.ts×1 verdict-contract.test.ts×2 verdict-memo-flight-no-reask.test.ts×1 |[ruled]`[isPending(x), x()]` is atomic within one scope — `[isPending(x), x()]` read in one scope is atomic: a reader that observed the fresh value must not see `pending === true` for it. |
58
58
| A11 | ruled |`docs/SPEC-ASYNC-SEMANTICS.md:103`| — | latest-isPending-consistency.test.ts×1 loading-fallback-in-flush-3540.test.ts×2 visibility-oracle-store.states.ts×2 visibility-oracle.states.ts×1 |[ruled] Sync derivations of held sources are visible through `latest()`/`isPending()` — Sync derivations of transition-held sources are visible through `latest()`/`isPending()` (held sync recompute is… |
59
59
| A12 | amended |`docs/SPEC-ASYNC-SEMANTICS.md:199`| — | createOptimistic.test.ts×2 spec-async-semantics.test.ts×1 |[ruled, amended in place] Resting optimistic nodes report pending like a plain memo — A resting optimistic node reports pending via exactly the causes a plain async memo does (A19) — a reverting optim… |
60
60
| A13 | ruled |`docs/SPEC-ASYNC-SEMANTICS.md:207`| — | spec-async-semantics.test.ts×7 |[ruled 2026-07-06 (promoted from B1)] Resting optimistic ≡ plain async memo at every checkpoint — (was B1) A resting optimistic node (no active override) is observationally identical to a plain async … |
@@ -83,10 +83,10 @@ Status legend: **live** stated and standing · **ruled** carries an explicit rul
83
83
84
84
| id | status | defined | cited in src | cited in tests | statement (at definition) |
| V4 | fixed |`docs/SPEC-ASYNC-SEMANTICS.md:503`| seat.ts×3| spec-async-semantics.test.ts×5 | - **V4 (violated the old A20's three-form algebra) — FIXED, then the rule it |
89
+
| V4 | fixed |`docs/SPEC-ASYNC-SEMANTICS.md:503`| seat.ts×4| spec-async-semantics.test.ts×5 | - **V4 (violated the old A20's three-form algebra) — FIXED, then the rule it |
90
90
| V5 | live |`docs/SPEC-ASYNC-SEMANTICS.md:515`| scheduler.ts×1 | spec-async-semantics.test.ts×3 | - **V5 (A17 corollary — found and fixed with the revert-target elimination, |
91
91
## B — tier B
92
92
@@ -380,12 +380,12 @@ Status legend: **live** stated and standing · **ruled** carries an explicit rul
380
380
|---|---|---|---|---|---|
381
381
| §1 | live |`docs/INTERNALS-STORE-STATE.md:27`| seat.ts×1 target.ts×1 | reveal-gating-contract.test.ts×1 | Storage model (the single-home rule) |
0 commit comments