Skip to content

Commit 63a0fdf

Browse files
committed
Merge branch 'next' into claude/project-thread-x1ore2-4557
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
2 parents bc9f3b6 + d9a97d0 commit 63a0fdf

19 files changed

Lines changed: 885 additions & 55 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/signals": patch
3+
---
4+
5+
Avoid evaluating property getters when attribution compares memo outputs and list items for unstable identity diagnostics.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/web": patch
3+
---
4+
5+
A broadcast live read with a plain form query (`?room=a`, no `?args=`) is now keyed by that query, so viewers of different queries no longer share one source.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/signals": patch
3+
---
4+
5+
`deep()` and `snapshot()` read inside a computation now serve the frame the store's container node serves that computation. Before, a container held by a transaction (an action that wrote the store on both sides of a yield) always served its committed backing to `deep()`/`snapshot()`, even in the transaction's own landing flush, where the same computation's property reads already saw the landed values: a render effect reading `s.x` and `deep(s)` logged `3:{"x":1}` and was never re-run. The same applied to a derived `createStore(fn, seed)` whose user setter wrote across a yield. Reads outside a computation still see the committed backing of a held container.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/signals": patch
3+
---
4+
5+
A rejection under a `<Loading>` that has not shown its content reaches `<Errored>` at once when a `latest()` reader under the same boundary reads a derivation whose upstream still has a flight out for an older question (#4568). The boundary judged its readers settled while that `latest()` reader was queued to re-derive, revealed into a hold the reader then went pending in, and the later rejection was staged in that hold until the obsolete flight landed. A verdict reader queued to re-derive is now waited on until its pass answers (A19, D-41).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/signals": patch
3+
---
4+
5+
The `UNSTABLE_LIST_IDENTITY` diagnostic reads a row's `id`/`key`/`_id` only from an own data property, so it never invokes a getter (a class instance's prototype `id` or an own accessor) while pairing rows.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/web": patch
3+
---
4+
5+
A no-JS form post answered by `respond(value, { headers })`, returned or thrown, now keeps the envelope's `Set-Cookie` headers on the redirect.

‎packages/signals/docs/RULES-INDEX.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Status legend: **live** stated and standing · **ruled** carries an explicit rul
6363
| A16 | amended | `docs/SPEC-ASYNC-SEMANTICS.md:223` | scheduler.ts×1 | caught-reactive-read-diagnostic.test.ts×1 latest-uninitialized-over-latest-4362.test.ts×2 spec-async-semantics.test.ts×1 strict-read-pending-store.test.ts×2 uninitialized-visibility.test.ts×1 visibility-oracle-store.states.ts×2 visibility-oracle.states.ts×2 visibility-oracle.test.ts×1 | [ruled, amended in place 2026-07-06 (promoted from B5)] `isPending` never throws in untracked contexts — (was B5) `isPending` never throws in untracked contexts — thunks that throw real errors or read… |
6464
| A17 | amended | `docs/SPEC-ASYNC-SEMANTICS.md:71` | async.ts×3 constants.ts×1 lanes.ts×7 scheduler.ts×2 seat.ts×1 verdict.ts×1 map.ts×1 optimistic.ts×1 store.ts×3 | create-deferred-3710.test.ts×1 fuzz-findings-l2.test.ts×6 lane-uninitialized-landing-3648.test.ts×5 optimistic-over-held-row-3796.test.ts×1 optimistic-read-lane-not-transaction-3698.test.ts×2 optimistic-undefined-override.test.ts×1 posture-store-parity.test.ts×1 refresh-await.test.ts×1 reveal-gating-contract.test.ts×3 spec-async-semantics.test.ts×10 createOptimisticStore.test.ts×2 kanban-a17-fixture.test.ts×3 optimistic-list-mutation-matrix.test.ts×1 optimistic-maparray-index-frame-f1.test.ts×1 optimistic-untracked-reads-f3-f5.test.ts×1 signal-store-twins-qd.test.ts×1 treeshake.test.ts×1 until.test.ts×1 visibility-oracle-store.states.ts×24 visibility-oracle-store.test.ts×1 visibility-oracle.states.ts×20 visibility-oracle.test.ts×1 | [ruled, amended in place 2026-07-06 (promoted from C4)] An active override is the displayed value until its transaction commits, and the graph's value until its own source answers — **Statement (curre… |
6565
| A18 | amended | `docs/SPEC-ASYNC-SEMANTICS.md:81` | action.ts×1 async.ts×2 core.ts×3 lanes.ts×8 scheduler.ts×2 types.ts×1 verdict.ts×1 map.ts×1 optimistic.ts×1 projection.ts×1 | body-end-supersession-visibility.test.ts×4 createOptimistic.test.ts×3 l2-fuzz-existing-rules.test.ts×2 lane-contract.test.ts×1 lane-frame-deferred-run-3662.test.ts×1 lane-outside-view.test.ts×1 lane-uninitialized-landing-3648.test.ts×5 optimistic-move-duplicate-3548.test.ts×2 optimistic-read-lane-not-transaction-3698.test.ts×4 posture-store-parity.test.ts×5 spec-async-semantics.test.ts×5 flight-owned-transaction.test.ts×1 lane-authority-twins.test.ts×1 optimistic-list-mutation-matrix.test.ts×1 optimistic-untracked-reads-f3-f5.test.ts×1 signal-store-twins-qd.test.ts×1 unchanged-presence-no-hold-3743.test.ts×2 superseded-before-first-commit.test.ts×4 visibility-oracle-store.states.ts×8 visibility-oracle-store.test.ts×1 visibility-oracle.states.ts×19 visibility-oracle.test.ts×1 | [ruled, amended in place 2026-07-07 (promoted from B4)] An override lives exactly as long as its own transaction; a newer truth from the source supersedes it in the graph immediately, on screen at com… |
66-
| A19 | amended | `docs/SPEC-ASYNC-SEMANTICS.md:151` | async.ts×1 constants.ts×1 core.ts×6 lanes.ts×1 scheduler.ts×2 seat.ts×1 types.ts×1 verdict.ts×6 store.ts×2 | create-deferred-3710.test.ts×2 derived-store-first-landing-verdict.test.ts×1 fuzz-findings-l2.test.ts×4 lane-uninitialized-landing-3648.test.ts×2 latest-memo-inline-parity.test.ts×1 latest-uninitialized-over-latest-4362.test.ts×2 mount-over-foreign-hold-3761.test.ts×2 spec-async-semantics.test.ts×3 derived-presence-async-3726.test.ts×2 superseded-before-first-commit.test.ts×3 uninitialized-visibility.test.ts×1 verdict-memo-flight-no-reask.test.ts×2 visibility-oracle-store.states.ts×8 visibility-oracle-store.test.ts×1 visibility-oracle.states.ts×14 visibility-oracle.test.ts×1 write-proposals-3494.test.ts×1 | [ruled, amended in place 2026-07-07 (promoted from C1)] `isPending(x)` ≡ the observable value is not final (three causes) — (was C1 — **partially reverses an earlier decision**) **Definition: `isPendi… |
66+
| A19 | amended | `docs/SPEC-ASYNC-SEMANTICS.md:151` | boundaries.ts×1 async.ts×1 constants.ts×1 core.ts×6 lanes.ts×1 scheduler.ts×2 seat.ts×1 types.ts×1 verdict.ts×6 store.ts×2 | create-deferred-3710.test.ts×2 derived-store-first-landing-verdict.test.ts×1 errored-latest-obsolete-flight-4568.test.ts×1 fuzz-findings-l2.test.ts×4 lane-uninitialized-landing-3648.test.ts×2 latest-memo-inline-parity.test.ts×1 latest-uninitialized-over-latest-4362.test.ts×2 mount-over-foreign-hold-3761.test.ts×2 spec-async-semantics.test.ts×3 derived-presence-async-3726.test.ts×2 superseded-before-first-commit.test.ts×3 uninitialized-visibility.test.ts×1 verdict-memo-flight-no-reask.test.ts×2 visibility-oracle-store.states.ts×8 visibility-oracle-store.test.ts×1 visibility-oracle.states.ts×14 visibility-oracle.test.ts×1 write-proposals-3494.test.ts×1 | [ruled, amended in place 2026-07-07 (promoted from C1)] `isPending(x)` ≡ the observable value is not final (three causes) — (was C1 — **partially reverses an earlier decision**) **Definition: `isPendi… |
6767
| A20 | superseded | `docs/SPEC-ASYNC-SEMANTICS.md:410` | — | question-scoped-pending.test.ts×2 spec-async-semantics.test.ts×3 createOptimisticStore.test.ts×1 | [superseded 2026-07-13 by A24] (superseded) Optimistic writes announce a store-wide pending — (**SUPERSEDED 2026-07-13 by A24** — the mask is deleted; optimistic writes are verdict-inert. Kept for the… |
6868
| A21 | superseded | `docs/SPEC-ASYNC-SEMANTICS.md:417` | — | question-scoped-pending.test.ts×3 spec-async-semantics.test.ts×3 | [superseded 2026-07-13 by A24] (superseded) The store-wide mask — (**SUPERSEDED 2026-07-13 by A24** — the store-wide mask is deleted with the mask model; nothing silences a new question. The effective… |
6969
| A22 | amended | `docs/SPEC-ASYNC-SEMANTICS.md:231` | store.ts×1 | createProjection.draft-lifetime-3585.test.ts×1 spec-async-semantics.test.ts×1 visibility-oracle-store.states.ts×1 | [ruled, amended in place 2026-07-08] Pending is per-node; store-wide only for the firewall's own work — **Pending is per-node: store-wide verdicts exist only as the firewall's own in-flight work (A9) … |

‎packages/signals/src/boundaries.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import {
5151
EFFECT_TRACKED,
5252
EFFECT_USER,
5353
REACTIVE_DISPOSED,
54+
REACTIVE_IN_HEAP,
5455
REACTIVE_LANE_READ,
5556
REACTIVE_PROBED,
5657
REACTIVE_ZOMBIE,
@@ -356,10 +357,15 @@ export function prune(b: Boundary, pass?: boolean | 0): number {
356357
// An error staged on its source (D-41, `stageError`) is not settled:
357358
// it publishes with the commit. A reader that threw it now (a lane
358359
// pass, a reader of a node born staged) reached the boundary first
359-
// (#4364).
360+
// (#4364). Nor a verdict reader queued to re-derive: its source
361+
// settling retired the pending it carried, and its pass, not that
362+
// retirement, is its answer (A19) — it may ask the next flight. Judged
363+
// settled before it ran, a fresh boundary revealed into a hold its
364+
// pass then went pending in, which waited on that flight (#4568).
360365
if (
361366
(r._statusFlags | s._statusFlags) & mask ||
362-
(mask & STATUS_ERROR && s._config & CONFIG_STAGED_ERROR)
367+
(mask & STATUS_ERROR && s._config & CONFIG_STAGED_ERROR) ||
368+
(r._config & CONFIG_VERDICT && r._flags & REACTIVE_IN_HEAP)
363369
) {
364370
if (pass === 0) break;
365371
continue;

‎packages/signals/src/core/attribution.ts‎

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,28 +1743,31 @@ function isPlainShape(v: unknown): v is object {
17431743

17441744
/** Shallow structural equivalence, capped so hot paths stay cheap. */
17451745
const UNSTABLE_KEY_CAP = 64;
1746+
/**
1747+
* An own data property's value, or ACCESSOR for an accessor or a missing key:
1748+
* reading an accessor runs user code (#4548), so a diagnostic never does.
1749+
*/
1750+
const ACCESSOR = {};
1751+
function ownData(o: object, key: PropertyKey): unknown {
1752+
const d = Object.getOwnPropertyDescriptor(o, key);
1753+
return d && "value" in d ? d.value : ACCESSOR;
1754+
}
1755+
17461756
function shallowEquivalent(a: object, b: object): boolean {
1747-
const aArr = Array.isArray(a);
1748-
if (aArr !== Array.isArray(b)) return false;
1749-
if (aArr) {
1750-
const arrA = a as unknown[];
1751-
const arrB = b as unknown[];
1752-
if (arrA.length !== arrB.length || arrA.length > UNSTABLE_KEY_CAP) return false;
1753-
for (let i = 0; i < arrA.length; i++) if (arrA[i] !== arrB[i]) return false;
1754-
return true;
1755-
}
1757+
if (Array.isArray(a) !== Array.isArray(b)) return false;
17561758
// Every own key, symbols included: a symbol-keyed box holding a fresh value
17571759
// each run (web's `dynamic` boxes its in-flight promise) is not equivalent.
1760+
// An array's indices and `length` are own keys too, so a hole stays a hole.
1761+
// Descriptors, not values: an accessor is never equivalent.
17581762
const keys = Reflect.ownKeys(a);
1759-
if (keys.length > UNSTABLE_KEY_CAP || keys.length !== Reflect.ownKeys(b).length) return false;
1760-
for (const key of keys) {
1761-
if (
1762-
!(key in b) ||
1763-
(a as Record<PropertyKey, unknown>)[key] !== (b as Record<PropertyKey, unknown>)[key]
1764-
)
1765-
return false;
1766-
}
1767-
return true;
1763+
return (
1764+
keys.length <= UNSTABLE_KEY_CAP &&
1765+
keys.length === Reflect.ownKeys(b).length &&
1766+
keys.every(key => {
1767+
const v = ownData(a, key);
1768+
return v !== ACCESSOR && v === ownData(b, key);
1769+
})
1770+
);
17681771
}
17691772

17701773
/**
@@ -2283,8 +2286,12 @@ const listIdentityWarned = new WeakSet<object>();
22832286

22842287
function recordId(item: unknown): unknown {
22852288
if (item === null || typeof item !== "object") return undefined;
2286-
const o = item as Record<string, unknown>;
2287-
return o.id ?? o.key ?? o._id ?? undefined;
2289+
// Own data properties only: an inherited or own getter is user code.
2290+
for (const key of ["id", "key", "_id"]) {
2291+
const v = ownData(item, key);
2292+
if (v !== ACCESSOR && v != null) return v;
2293+
}
2294+
return undefined;
22882295
}
22892296

22902297
function checkListIdentity(

‎packages/signals/src/store/store.ts‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,14 +2741,19 @@ function snapshotWalk(value: any, seen: Map<object, any>, fam: StoreFamily | nul
27412741
}
27422742
if (t._fam !== null) fam = t._fam;
27432743
// R27: a snapshot sees the batch's pending backing — a held one (another
2744-
// transaction's future) only from its own draft.
2744+
// transaction's future) only from its own draft, or from a pass the
2745+
// container node serves the future (its landing flush, a memo joining).
27452746
let backing = t.v;
2746-
if (
2747-
t.pb !== null &&
2748-
(inDraft(t) || writeOverride || t.k === null || !(t.k._config & CONFIG_HELD))
2749-
) {
2750-
if (t.ovl) materializePB(t);
2751-
backing = t.pb!;
2747+
const pb = t.pb;
2748+
if (pb !== null) {
2749+
const k = t.k;
2750+
backing =
2751+
inDraft(t) || writeOverride || k === null || !(k._config & CONFIG_HELD)
2752+
? pb
2753+
: stagingReader() !== null
2754+
? asBacking(untrack(() => readNode(k)))
2755+
: t.v;
2756+
if (backing === pb && t.ovl) backing = materializePB(t);
27522757
}
27532758
if (optHooks && optRead(t)) backing = optHooks.view(t, backing);
27542759
if (backing === src) break;

0 commit comments

Comments
 (0)