Repository navigation
Commit af0fe5e
test(hydration): generic hydration consistency pins and harness arm
Answers "are the frames consistency reds SC-only, or generic hydration
holes?" for Solid 2's plain `hydrate()`: classifies C1–C19 / R1–R10, drives
the generic twin of every candidate through a frames-free page (two
streamed `<Loading>` boundaries over module-level state, rendered by
`renderToStream` in both fragment orders), by hand and under a property
harness, and pins what it finds. Tests and docs only; no engine change.
Six generic reds (`test.fails`, each with a control):
- GH1 C19 — a memo created before snapshot capture (module-level) is read
live by a boundary resume's claim pass; the server text stays.
- GH2 C19 — a shell async memo adopted pending (no creation snapshot),
re-run by a client write before a later boundary resumes — same.
- GH3 C19/C1 — a store write to a leaf no reader materialized is not
snapshotted: `<For>` at the resume renders the post-write length, key
miss for the extra row, list short until the next structural change.
- GH4 C9/C12/events — a boundary resuming while a shell async source is
in flight commits its fallback over the settled server content at the
snapshot release (unrevealed core boundary); the server nodes are
detached then re-attached, a click queued on them is lost.
- GH5 C3 — hydration-done does not count a root's module preload: a
second root finishing synchronously drains done while the first still
waits; the bootstrap then stops capturing events for it.
- GH6 C14 — disposing a root during its module preload does not cancel
the deferred render; the root mounts after dispose and stays live.
Holds confirmed on plain pages (1000 harness cases, two seeds, nothing
outside the six): C2, C3 for `<Loading>` holds, C10, C12 at settle
points, C14 for boundary disposal, queued-event replay, the #3504
snapshot for plain signals.
packages/web/test/consistency/generic/: scenario.ts, run.tsx (oracle),
campaign.spec.tsx (opt-in, `CONSISTENCY_FUZZ=1`, same knobs as
test/consistency/harness), replay.spec.tsx (GH1–GH4 + holds),
preload-hold.spec.tsx (GH5, GH6), README.md. Shared page
test/harness/generic-hydration.tsx; artifacts from
test/server/generic-hydration.gen.spec.tsx. Contract doc: new section
"Generic hydration — classification and pins (2026-10-06)".
Co-authored-by: Claude via Cursor <[email protected]>1 parent 00dbc86 commit af0fe5e
12 files changed
Lines changed: 1737 additions & 0 deletions
File tree
- documentation/server-components
- packages/web/test
- consistency/generic
- harness
- __artifacts__
- server
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments