@zakkster/lite-signal 1.9.0-preview.5 → 1.10.0-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,206 +4,102 @@ All notable changes to `@zakkster/lite-signal` are documented here.
4
4
  Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
  This project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
- ## [1.9.0-preview.5] -- 2026-08-18
8
-
9
- Packaging-only cut. **The engine is UNCHANGED** -- `Signal.js` is behaviourally
10
- byte-identical to `preview.4`; the sole `Signal.js` edit is the header banner
11
- version string (see below). This release makes the published package honour its
12
- own `package.json`: since 1.5.0 the manifest has advertised `"types":
13
- "./Signal.d.ts"` and listed `Signal.d.ts` in `files[]`, but the 1.9.0 line
14
- shipped without the file (`preview.4` and earlier packed a `types` pointer to a
15
- non-existent declaration, so `tsc` consumers got no types). No API, torture, or
16
- test change from `preview.4`.
17
-
18
- ### Added -- the missing `Signal.d.ts` (the 1.9.0 type surface)
19
-
20
- - **`Signal.d.ts`** now ships, modelled on the 1.8.0 declaration (1.9.0's export
21
- surface is byte-identical to 1.8.0's) plus the 1.9.0 explicit-resource-management
22
- delta: `[Symbol.dispose](): void` is typed on exactly the handles the engine
23
- stamps -- both box prototypes (`SignalBox` :1495, `ComputedBox` :1496), every
24
- `Dispose` function (the shared effect disposer at :1614, reached by `effect()`,
25
- `.subscribe()`, and the `createScope` disposer at :1853), and the `Registry`
26
- (-> `destroy`, :2087). Callable value handles (`Signal` / `Computed`) are left
27
- UNSTAMPED, matching the engine. So `using r = createRegistry()`,
28
- `using box = signalBox(0)`, and `using stop = effect(fn)` all typecheck.
29
- - The `[Symbol.dispose]` slot is expressed through a `lib`-conditional helper
30
- (`ExplicitDisposeSlot`): it resolves to the member only when the ambient
31
- TypeScript `lib` knows `Symbol.dispose` (`esnext.disposable` -- required to use
32
- `using` at all), and to `{}` otherwise, so the declaration NEVER forces a `lib`
33
- upgrade on type-only consumers. Verified: compiles under
34
- `--lib ES2022,ESNext.Disposable` with `using` on all four shapes; compiles clean
35
- under `--lib ES2020` for a type-only consumer (zero errors); manual
36
- `[Symbol.dispose]()` is typed.
37
-
38
- ### Changed -- header banner reconciled to the manifest
39
-
40
- - **`Signal.js` header banner** now reads `v1.9.0-preview.5`, matching
41
- `package.json` and this changelog. `preview.2` through `preview.4` shipped a
42
- stale `preview.2` banner (a cosmetic drift in a comment; no code depended on
43
- it). No other line of `Signal.js` changed -- torture stays 22/22 and the unit
44
- suite is unaffected.
45
-
46
- ## [1.9.0-preview.4] -- 2026-08-18
47
-
48
- Version-only re-tag over `preview.3`. `Signal.js` is byte-identical to
49
- `preview.3` past the header banner; no engine, torture, test, API, or packaging
50
- change (the `Signal.d.ts` gap and the stale `preview.2` banner were both still
51
- present -- both are fixed in `preview.5`). Recorded here for continuity.
52
-
53
- ## [1.9.0-preview.3] -- 2026-08-18
54
-
55
- Verification-only parity cut. **The engine is UNCHANGED** -- `Signal.js` (2209
56
- lines) is byte-for-byte identical to `preview.2`; this cut only brings the
57
- `bench/torture` suite and the unit tests to FULL PARITY with the shipped 1.4.4
58
- canonical suite, then VERIFIES-then-PINS 1.9.0's actual behaviour (no assertion
59
- softened, no budget widened).
60
-
61
- ### Added -- the last three torture scenarios + soak value-oracles + a throwing-equals pin
62
-
63
- - **`error-torture`** -- throwing effect bodies under flush: a single throw is
64
- re-thrown UNWRAPPED; two or more aggregate into one `AggregateError` carrying
65
- EXACTLY those errors in order; the effect scheduled between two throwers still
66
- runs; and the pre-allocated error buffer drains to a clean baseline over 4096
67
- throw/clean cycles (`activeNodes` / `activeLinks` flat). Pinned against 1.9.0
68
- `Signal.js` :928 (buffer append), :936-937 (finally clear), :941-951 (single
69
- re-throw / AggregateError).
70
- - **`deep-chain-torture`** -- `pullComputed` (1.9.0 :1092, recursing at :1113) is
71
- call-stack recursive, so a computed chain ramped START 2000 / STEP 2000 /
72
- CEILING 100000 fails CLOSED with a `RangeError` at some depth; the registry
73
- stays usable, the re-read is deterministic, and the heap-iterative effect
74
- cascade over an equally deep chain completes without throwing.
75
- - **`zerogc-torture`** -- the zero-GC claim as a re-runnable gate via
76
- `@zakkster/lite-gc-profiler` (added as a dev-only dependency): `measureAllocs` /
77
- `checkAllocs` at `maxBytesPerCall: 0`, `measureOps` / `checkNoGc` at
78
- `maxMajor: 0` / `maxPauseMs: 2`, and `stats()` poolGrowths/totalAllocations
79
- deltas, over deep/wide/batch steady writes plus create/dispose churn on both the
80
- callable form and `signalBox` (churn-box activates natively and reports a visible
81
- "ok" verdict). `ZEROGC_BREAK=1` self-tests that the gate rejects a planted
82
- allocation (exits non-zero).
83
- - **`capacity-torture` section 9** -- the 16x link grow ceiling: `grow` mode still
84
- fails closed at `maxLinks * 16` (confirmed 1.9.0 :312 / :471) with a `links`
85
- `CapacityError`, growth terminating AT the ceiling, and a fail-closed re-throw
86
- rather than a partial sum.
87
- - **Soak value-oracles** -- `graph-fuzzer`, `scheduler-bench`, `torture-soak` now
88
- assert VALUE-CORRECTNESS, not just resources: a single `Int32Array` shadow,
89
- allocated ONCE before the loop, shadows every writable signal; a rotating fixed
90
- window is checked per tick (no per-tick allocation) and a full sweep runs at
91
- teardown; a mismatch exits 1 with the seed and index. The module-scoped int32
92
- JIT sink replaces the former magic-constant "impossible" guard.
93
- - **`test/30-throwing-equals.test.mjs`** -- a user `equals` that THROWS, pinned at
94
- all five 1.9.0 sites: the three callable sites (signal set pre-check :1272, batch
95
- revert :1279, computed re-eval :1143) with a CONTRAST anti-tautology test, and
96
- the two `signalBox` `boxSet` sites (pre-check :1403, revert :1410).
97
-
98
- ### Changed -- introspect-torture forEachOwned pinned to an exact count
99
-
100
- `introspect-torture` section 7 asserted `owned >= 2`; the owned count under one
101
- scope owner (a computed + an effect) is DETERMINISTICALLY 2, so it is now pinned
102
- `owned === 2`. No behavioural change -- a tightened assertion.
103
-
104
- ### Verified -- the whole superset runs natively on the 1.9.0 engine
105
-
106
- `dispose`, `cleanup-return`, `owner`, `scope`, and `flush` all execute NATIVELY
107
- here with zero feature-skips: 1.9.0 is the first engine to run the complete
108
- torture superset.
109
-
110
- - **Torture:** 22/22 -- `torture:semantic` 19/19 (all executed, zero skips),
111
- `torture:soak` 3/3 (zero errors, value-oracle clean, every pool back to its
112
- leaf-only floor).
113
- - **Unit (`npm test`):** 512 tests, 511 pass, 0 fail, 1 skip.
114
- - **Unit (`npm run test:gc`):** 520 tests, 519 pass, 0 fail, 1 skip.
115
-
116
- ## [1.9.0-preview.2] -- 2026-07-27
117
-
118
- Rolls up the post-`1.9.0-preview` changes into the `preview.2` tag. The 1.9.0
119
- feature (`using` / `Symbol.dispose` on lifecycle objects) ships in the preview and
120
- is unchanged here; this cut adds two new torture scenarios from a consolidated
121
- coverage audit, the crash fix inherited from the 1.8.0 base, 100% coverage, and
122
- test-suite hygiene.
123
-
124
- ### Added -- torture suite reaches the zero-skip milestone (19 scenarios)
125
-
126
- Two effects converge on the 1.9.0 engine. First, **`dispose-torture` now
127
- executes**: 1.9.0 stamps `Symbol.dispose` at five sites (the registry -> destroy,
128
- an effect's stop handle, a `createScope` disposer, a `createRoot` disposer, and
129
- both box prototypes), so `using`-declared lifecycle objects dispose at block exit.
130
- The scenario feature-detects via the box-prototype stamp and drives each site
131
- through the TC39 `using` path, asserting idempotent disposal. Because it is a set
132
- of stamped methods with **no new export**, it is exactly the profile the value /
133
- introspection oracles cannot see. Second, the coverage audit added **two new
134
- semantic scenarios** for exports no scenario exercised directly:
135
-
136
- - **`owner-torture`** (1.6.0+) -- `getOwner` / `runWithOwner` capture-restore: the
137
- gen-stamped owner handle, adoption of effects/computeds created inside
138
- `runWithOwner`, and cascade-dispose when the captured owner is torn down.
139
- - **`lifecycle-torture`** (createRoot 1.5.0+, destroy 1.4.0+) -- `createRoot`
140
- detachment (an owned subtree that survives its enclosing scope) and the direct
141
- `destroy` reset contract; `createRoot` had never been called by any scenario,
142
- and `destroy` was only reached indirectly through a registry `Symbol.dispose`.
143
-
144
- The suite is now **19 scenarios (16 semantic + 3 soak)**. On the 1.9.0 engine
145
- **every semantic scenario executes -- zero feature-skips** -- the first engine
146
- version to run the complete superset, since `dispose` was the last remaining
147
- feature gate (box 1.5.0, scope/owner/introspect 1.6.0, flush 1.7.0,
148
- cleanup-return 1.8.0, dispose 1.9.0 are all satisfied).
149
-
150
- ### Verified -- full suite green on the 1.9.0 engine (Node 22, `--expose-gc`)
151
-
152
- - **Torture:** 19/19 -- `torture:semantic` 16/16 (all executed, zero skips),
153
- `torture:soak` 3/3 (zero errors, every pool back to its leaf-only floor).
154
- - **Unit (plain run):** 499 tests, 479 pass, 0 fail, 1 skip (the architectural
155
- SSR N/A in `17-reactivity`). The only non-passes are the 19 in
156
- `test/25-devtools-real-boot`, the real-rig that requires the sibling
157
- `@zakkster/lite-devtools`; with that sibling resolvable the suite is 498 pass +
158
- 1 skip. Engine-only, excluding `test/25`: 480 tests, 479 pass, 1 skip. (The c8
159
- coverage run below reports a different count -- perf-smoke budgets skip under
160
- instrumentation.)
161
-
162
- ### Changed -- bench protocol v3 (carried forward)
163
-
164
- The `bench/` harness is bench protocol v3: three instruments (microscope / mirror /
165
- version-economics), each with a fixed config and a machine-generated `#STAMP`
166
- (engine + harness sha256, live registry config, host, node). The pre-v3
167
- five-framework reactivity suite was removed after 1.5.1. See `bench/README.md`.
168
-
169
- ### Added -- Coveralls coverage badge
170
-
171
- README carries a Coveralls badge; lcov is produced by `npm run test:report`
172
- (`coveralls-next` in devDependencies).
173
-
174
-
175
- ### Fixed -- dangling re-tracking cursor on source disposal (crash)
176
-
177
- Disposing a signal/computed from inside an observer that had linked it on the
178
- previous run, but had not yet re-read it on the current run, crashed with
179
- `TypeError: Cannot set properties of null (setting 'headSub')`. `disposeNode`'s
180
- sub-list teardown freed the link while the observer's re-tracking cursor
181
- (`activeObserverCurrentDep`) was still parked on it; `severTail` then walked from
182
- a freed link, wiped the observer's `headDep`, and double-freed the link. Reachable
183
- from the plain public API, inherited from the 1.8.0 base. Fixed with a one-line
184
- cursor repair in `disposeNode`; the two dead `freeLink` `-1` ternaries were removed
185
- with it. Pinned by a regression test in `test/12-coverage.test.mjs`.
186
-
187
- ### Changed -- coverage closed to 100% and test-suite hygiene
188
-
189
- `Signal.js` reaches **100% statements / branches / functions / lines** (491 tests,
190
- 490 pass, 1 skip). Beyond the crash fix and its ported box/owner/opcode closure
191
- suite, this pass added: a test for the new **`using` / `Symbol.dispose`** methods on
192
- both box prototypes (`box[Symbol.dispose]()` disposes and is idempotent); and the
193
- cleanup-return array-append arm (carried in via `33-cleanup-return`). Three provably
194
- -unreachable arms carry `/* c8 ignore */` with proofs: the link-ledger clamp, the
195
- `batchEpoch` 2^32 wraparound, and the `Symbol.dispose` pre-Node-20 polyfill fallback.
196
-
197
- Test-suite hygiene: `33-computed-selfdirty-prev-owner.test.mjs` renamed to `34-`
198
- (the `33-` slot belongs to `33-cleanup-return`, which carries forward from 1.8.0
199
- because this line inherits effect cleanup-return) -- the rename had left a
200
- byte-identical `33-` copy behind, so the scope suite's `28-`/`29-` pattern
201
- repeated here; the stray `33-computed-selfdirty-prev-owner.test.mjs` is deleted,
202
- leaving one `34-`. The duplicate `28-scope.test.mjs` was likewise dropped in
203
- favour of `29-scope.test.mjs` (both were byte-identical).
204
-
205
- **Hot-path parity note:** the fix touches `disposeNode` and `freeLink`; re-baseline
206
- the VersionMatrix engine sha256 on the next publish.
7
+ ## [1.10.0-preview] -- 2026-09-06
8
+
9
+ The **verification-infrastructure parity cut** for the named-nodes + `whyDirty()`
10
+ feature (introduced in the 1.10.0-canary entry below, unchanged in behaviour).
11
+ The engine is byte-identical to the canary past the version banner EXCEPT for two
12
+ cold-path fixes ported from the 1.9.0 line (see Fixed); the four hot propagation
13
+ bodies stay byte-identical to 1.9.0 (sha-proven, WHY-1_10.md). This cut brings the
14
+ full 1.9.0-alpha audit infrastructure onto the folder and re-proves it here.
15
+
16
+ ### Fixed -- two cold-path ports from LiteSignal1.9.0 (user-authorized, one-time)
17
+
18
+ - **disposeNode cursor repair.** The folder's v1.10.0-canary.1 engine had FORKED
19
+ the rebuilt-1.9 line before this fix landed: disposing a linked-but-unread source
20
+ from an observer's own body mid-retrack left the re-tracking cursor
21
+ (`activeObserverCurrentDep`) dangling at a freed link, then crashed `severTail` /
22
+ `freeLink` with `Cannot set properties of null (setting 'headSub')`. Reproduced by
23
+ scope-torture (dispose-linked-unread) and all five cleanup-return 6b geometries.
24
+ Ported verbatim from 1.9.0: advance the cursor to the next surviving dep when the
25
+ parked link is freed. Disposal path only; no steady-state cost.
26
+ - **createRegistry validation (1.4.5 backport).** The canary also predated the
27
+ config-validation cascade the other five folders carry: `ALLOWED_KEYS` /
28
+ did-you-mean / eager-construction ceiling, plus the `nodePoolPopulation` /
29
+ `linkPoolPopulation` stats keys (`stats()` 12 -> 14). Its absence failed 37 unit
30
+ tests. Ported verbatim; all cold, constructor-only.
31
+
32
+ ### Added -- the 27-scenario torture suite (was 22) + audit lanes
33
+
34
+ - The 2026-08 audit scenarios (`contract`, `interop`, `retrack-dispose`,
35
+ `burst-profile`, opt-in `wraparound`), the 3-state runner with ENFORCED floors,
36
+ and the flush/cleanup-return folder supersets. On this engine **all 23 semantic
37
+ execute with zero floor-skips** (as on 1.9.0 -- `dispose` was the last gate);
38
+ suite verdict 26 pass / 1 opt-in skip / 0 fail.
39
+ - `test/25` rewritten against the REAL devtools 1.6.2 (14 tests): the exact 13-key
40
+ `capabilities()` fingerprint (identical to the 1.8.0/1.9.0 pairings -- devtools
41
+ 1.6.2 has no 1.9/1.10 cap key, so the exact key set is the pin). New
42
+ `test/37-devtools-zerogc-probe` (renumbered above the native `36-named-and-whydirty`).
43
+ - `test/zgc/` (`test:zgc` 7/7 + report 3/3), `test/ProfilerTests` (`test:hardening`
44
+ 22/0/6), `harness/ProfilerTools` (`test:harness` 5/5), and the phase-1/2/3 harness
45
+ instruments (`visit-anatomy`, `jit-health`, `mint-anatomy`, `costmodel`, `floors`,
46
+ `trend`, `creation-anatomy`, `burst-real`); `harness/run.mjs` gains `mint`.
47
+ - VersionMatrix read+counter lanes; **gate-self PASSED 5/5** vs floor-1.3.0 +
48
+ rolling-1.5.0, counter lane exact (288 allocs/frame, 0 poolGrowths).
49
+
50
+ ### Measured on this engine
51
+
52
+ - **Mint anatomy IDENTICAL for the sixth engine running**: signal 264.3 / computed
53
+ 208.1 / effect 160.0 / signalBox 56.0 / computedBox 56.0 B/op all-space -- the cold
54
+ `nodeNames.set` on named creation is off the unnamed fast path.
55
+ - visit-anatomy 21/21 with NO re-anchor (named/whyDirty add no eq-dispatch site;
56
+ both failure paths re-witnessed in scratch clones). jit-health strict: 4x
57
+ monomorphic. Cleanup-return compose order, the wraparound band, and every
58
+ audit-era pin: carried with ZERO pin flips.
59
+
60
+ ### Changed
61
+
62
+ - devDeps: `@zakkster/lite-devtools` ^1.2.0 -> **^1.6.2**,
63
+ `@zakkster/lite-gc-profiler` ^1.15.0 -> **^1.16.0**.
64
+ - `test` / `test:gc` / `test:coverage` glob-scoped to `'test/*.test.mjs'`; unit suite
65
+ **553 tests, 552 pass, 0 fail, 1 skip** (`test:gc` 561/560/0/1). `verify` chains the
66
+ zgc gate. Banner v1.10.0-canary.1 -> v1.10.0-preview.
67
+ - Signal.js line-ref comments (capacity / deep-chain / error / owner tortures, test/30)
68
+ refreshed against the ported engine.
69
+
70
+ ### Removed
71
+
72
+ - `test/33-computed-selfdirty-prev-owner.test.mjs` -- byte-identical duplicate of
73
+ `test/34-...` (sha `0f48d434`); its `33-` prefix collided with `33-cleanup-return`.
74
+ - The stale `bench-reactive` script and the llms `demo/index.html` +
75
+ "wired as prepublishOnly" claims (the gate is `npm run gate` -> `pre-publish.mjs`).
76
+
77
+ ## [1.10.0-canary] -- 2026-07-XX (rebuilt line, candidate)
78
+
79
+ **Feature of the cut: named nodes + `whyDirty()` -- the tracing foundation.**
80
+ Two cold-path primitives the profiler tools (`lite-trace`, `lite-hud`,
81
+ `lite-devtools`) consume directly. No node-shape change; the pinned handle
82
+ shapes from `21-perf-pins` are untouched.
83
+
84
+ ### Added
85
+ - `signal(v, {name})` / `computed(fn, {name})` / `effect(fn, {name})`. Names
86
+ live in a registry-side `Map<id, name>`, written only on named creation and
87
+ read only by `describeNode()` / `whyDirty()` (both cold). Unnamed nodes pay
88
+ a single guarded comparison on the creation path and carry no name key.
89
+ - `describe()` / `describeNode()` gain `name` when present (absent otherwise).
90
+ - `whyDirty(handle)` -- pull-side diagnostic. For a computed, walks its deps
91
+ and reports which one's version moved past the observer's `evalVersion`
92
+ (the SAME predicate `pullComputed` uses, `((dep.version - evalVer)|0) > 0`),
93
+ then traces transitively to the root signal write via `rootCause`. Read-only:
94
+ it never pulls, so it cannot perturb the graph. Returns `[]` for a clean
95
+ computed and for non-computed handles.
96
+ - `nodeNames` cleared by `destroy()`.
97
+
98
+ ### Unchanged (proven, not asserted)
99
+ - Hot propagation bodies `markDownstream` / `flushEffects` / `executeEffect` /
100
+ `pullComputed` are **byte-identical** to 1.9.0 (sha256 over extracted bodies).
101
+ - Bars: `1to1batch` neutral (write path is the frozen set); `createSignals` /
102
+ `createEffects` within noise (the name comparison on the unnamed path is free).
207
103
 
208
104
  ## [1.9.0-preview] -- 2026-07-XX (rebuilt line, candidate)
209
105
 
@@ -397,7 +293,7 @@ run variance; the sha256 verification rules out any other mechanism.
397
293
  - **`test/28-run-with-owner.test.mjs`** (16 tests, cascade-forwarded):
398
294
  basic shape, degradation, and the three hazard pins with allocation
399
295
  pressure applied so the ABA guard is actually exercised.
400
- - **New: `test/34-computed-selfdirty-prev-owner.test.mjs`** -- a single
296
+ - **New: `test/33-computed-selfdirty-prev-owner.test.mjs`** -- a single
401
297
  self-gating discriminator covering three feature bands:
402
298
  - **`getOwner / runWithOwner`** -- **ACTIVE on 1.9.0** (owner APIs
403
299
  are present via the cascade port). All 5 tests pass: `getOwner`
@@ -422,13 +318,11 @@ run variance; the sha256 verification rules out any other mechanism.
422
318
  assertion from 1.6/1.7/1.8 (adds `flushPasses`).
423
319
 
424
320
  **Note on the test file name convention:** the uploaded discriminator
425
- file used `33-computed-selfdirty-prev-owner_test.mjs` (underscore, and
426
- number `33`). It is renamed to `34-computed-selfdirty-prev-owner.test.mjs`
427
- in the delivered tree: `.test.mjs` (period) to match the ecosystem-wide
428
- convention (`NN-name.test.mjs`) and pick up the standard `test/*.test.mjs`
429
- glob (`_test.mjs` would be silently ignored by `node --test`), and `34-`
430
- to avoid colliding with `33-cleanup-return.test.mjs`, which carries forward
431
- from 1.8.0 since this line inherits the effect cleanup-return feature.
321
+ file used `33-computed-selfdirty-prev-owner_test.mjs` (underscore);
322
+ renamed to `.test.mjs` (period) in the delivered tree to match the
323
+ ecosystem-wide convention (`NN-name.test.mjs`) and pick up the standard
324
+ `test/*.test.mjs` glob. `_test.mjs` would be silently ignored by
325
+ `node --test`.
432
326
 
433
327
  ### The rebuilt-line rejection ledger (context for what does NOT ship)
434
328
 
@@ -520,80 +414,6 @@ twins (see the 1.12.0-preview trace-twin design).
520
414
  between `createRoot` and `createScope`; sha256 confirms no
521
415
  pre-existing function was disturbed by the insertion.
522
416
 
523
- ### Verified -- fresh 1.9.0-preview bench sweep (Apple M4 Pro / Node 26)
524
-
525
- Both v3 instruments were re-run in full on the 1.9.0-preview engine on
526
- **Apple M4 Pro darwin/arm64, Node 26.3.1**, with `#STAMP`-verified
527
- outputs committed to `bench/r.txt` (microscope aggregate, 4 engines
528
- across the six first-party shapes) and `bench/rb.txt` (mirror sweep,
529
- Andrii's canonical adapter verbatim, lite vs alien across 47 rows,
530
- isolated-per-row, 10 reps). Andrii 15-framework log at
531
- `bench/AndriiVolynetsReactiveBench.log` (byte-identical to 1.8.0's --
532
- the 1.9.0-preview engine is sha256-identical to 1.8.0 on all 14
533
- propagation / flush-scaffold functions and differs only in `effect` and
534
- `createScope` by one existence-guarded `[Symbol.dispose]` stamp line
535
- each on the cold creation path, so the ranking numbers carry with zero
536
- re-verification cost).
537
-
538
- - **Andrii Volynets js-reactivity-benchmark position holds at 3rd of
539
- 15** (the position lite moved to on 1.8.0) with geomean **95.4 ms**;
540
- lite is ahead of 4th-place @reactively (136.0, lite 1.43x faster) and
541
- 5th-place Preact Signals (148.8, ~56% ahead), behind only
542
- alien-signals (77.5) and reflex (89.7). **20 outright wins** (the
543
- eight canonical propagation shapes, all four wide fan-in / fan-out
544
- shapes, `molBench`, and seven of the rectangular / layered DAG
545
- shapes). Top-3 count: **29/47**. Since the engine is sha256-identical
546
- to 1.8.0 across every propagation function, this is the same log
547
- 1.8.0 published; re-running Andrii's suite would produce host-noise
548
- drift, not a code-driven delta.
549
- - **Microscope aggregate on M4 Pro (r.txt):** on the six v3 microscope
550
- shapes, lite wins vs alien on **MUX +34.9%** (fan-in), **SELECTIVE
551
- DAG +20.9%**, **DYNAMIC DAG +16.1%**, and **BROADCAST +5.2%**
552
- (narrowed from +9.4% on 1.8.0 but still on the win side of parity).
553
- The wins hold within noise of the 1.8.0 M4 Pro sweep despite the two
554
- `[Symbol.dispose]` stamp lines added at effect / createScope
555
- creation, which is what "one existence guard per cold creation path,
556
- nothing on the propagation hot path" looks like in the propagation
557
- numbers. Alien ahead on **KAIROS -19.5%** (widened from -15.9% on
558
- 1.8.0 -- host-noise drift on the shape where lite is architecturally
559
- weakest) and **DEEP CHAIN -72.8%** (the architectural weak spot:
560
- recursive JS-stack computed resolution against alien's flatter
561
- chain). Speed wins vs alien: **4/6**; heap wins: **5/6** with the
562
- sixth being a shared-zero on BROADCAST.
563
- - **Microscope heap (the actual story) on M4 Pro:** on every shape
564
- where GC pressure exists at all, lite allocates **one to four orders
565
- of magnitude less transient heap than alien** -- DEEP CHAIN 0.5 KB vs
566
- 1062 KB (>2000x, on the shape lite loses on time), MUX 0 KB vs 781
567
- KB, KAIROS 23 KB vs 802 KB (34.3x), DYNAMIC DAG 3.4 MB vs 55.7 MB
568
- (16.6x), SELECTIVE DAG 7.7 MB vs 76.5 MB (9.9x). Against
569
- preact-signals and solid-signals the heap gap is even wider on the
570
- fan-in / fan-out family; solid allocates ~17 MB on MUX and ~15 MB on
571
- SELECTIVE DAG where lite allocates 0 KB and 7.7 MB on the same
572
- shapes. The differentiated position is ALLOCATION, not raw
573
- propagation speed -- competitive-to-winning throughput with
574
- dramatically lower GC pressure, and that is the headline that
575
- reproduces across hosts.
576
- - **Mirror sweep on M4 Pro (rb.txt):** Andrii's canonical 47-shape
577
- suite re-run isolated-per-row lite vs alien on M4 Pro reproduces the
578
- same honest framing: lite runs **parity-to-behind alien on
579
- throughput** across the head-to-head suite (wins outright on **3/47**
580
- -- `1000x5 - 25 sources (wide dense)` +10.7%,
581
- `manySourcesIntoOneComputedEffectWithDirect` +31.5%,
582
- `manySourcesIntoOneComputedEffect` +30.2%; `molBench` dropped from a
583
- razor-thin +0.3% win on 1.8.0 to -0.4% parity this sweep, taking the
584
- outright-win count from 4/47 to 3/47), weak on the deep/layered-burst
585
- family. That head-to-head result and the "3rd of 15 with 20 outright
586
- wins" both live on the same Andrii log and are not contradictory: the
587
- outright-of-15 rankings look at each shape across every framework in
588
- the field, so shapes where alien beats lite by 20-30% but reflex
589
- beats both and everyone else is slower can still count as a lite
590
- outright win when measured that way.
591
- - **Third-party engine versions carried forward** from the 1.8.0 sweep
592
- (alien-signals 3.2.1, @preact/signals-core 1.14.2, @vue/reactivity
593
- 3.5.35, solid-js 1.9.13). No peer bumps this cycle; the deltas here
594
- are the 1.9 engine's own footprint (the two `[Symbol.dispose]` stamp
595
- lines) plus host noise.
596
-
597
417
  ### Migration
598
418
 
599
419
  Zero work for every existing user. Symbol.dispose is additive; nothing
@@ -611,6 +431,8 @@ cascade forward from every prior 1.x line without semantic change.
611
431
 
612
432
  ## [1.8.0-preview] -- 2026-07-XX
613
433
 
434
+ ## [1.8.0-preview] -- 2026-07-XX
435
+
614
436
  The **effect cleanup return** minor -- Reflex-study pattern A. One additive
615
437
  hot-path change: an effect body may now `return` a cleanup function, which
616
438
  runs before the next re-run and on dispose, composing with imperative
@@ -909,9 +731,9 @@ monomorphic targets and inlines the body. In "eager" mode the inlined body is
909
731
  byte-identical to the 1.6.0 inline check `if (batchDepth === 0) flushEffects()`
910
732
  -- **zero behavioral or performance regression** for any existing user.
911
733
 
912
- This is NOT ledger S0b #6 (per-call closure-var load of a primitive). It is a
734
+ This is NOT ledger §0b #6 (per-call closure-var load of a primitive). It is a
913
735
  hoisted function reference resolved once at registry build time and is a NEW
914
- mechanism by the v1 roadmap S0b line 100 definition.
736
+ mechanism by the v1 roadmap §0b line 100 definition.
915
737
 
916
738
  The `getOwner` / `runWithOwner` port adds new user-API functions but touches no
917
739
  hot path. sha256 over the extracted function bodies of `pullComputed`,
@@ -956,7 +778,7 @@ pristine 1.7.0-preview byte-for-byte; the two new functions are inserted between
956
778
 
957
779
  Real wins, but smaller than the gap to Reflex on the same shapes. The residual
958
780
  gap is structural (per-write `gen` check, batch-revert epoch tracking, global
959
- version bumping) -- design decisions accepted by S0b and not in scope here.
781
+ version bumping) -- design decisions accepted by §0b and not in scope here.
960
782
  Modern V8's `try/finally` elision varies; expect higher absolute speedups on
961
783
  production V8 than on this sandbox.
962
784
 
@@ -1096,7 +918,7 @@ they produce are reproducible, comparable, and engine-version-aware.
1096
918
 
1097
919
  - **Full suite green** against the 1.6.0 engine: 443 tests, 442 pass, 0 fail,
1098
920
  1 skip (only the architecturally-N/A SSR case in `17-reactivity`). +4
1099
- `createScope` tests in `test/29-scope.test.mjs`; the 1.5.0 box and createRoot
921
+ `createScope` tests in `test/28-scope_test.mjs`; the 1.5.0 box and createRoot
1100
922
  suites carry forward unchanged. **Coverage** (c8@11, Node 22): `Signal.js`
1101
923
  100% statements / 96.96% branches / 100% functions / 100% lines; `Watch.js`
1102
924
  100% across all four. The branch drop vs 1.5.0 (97.35% -> 96.96%) is the
@@ -1181,7 +1003,7 @@ dependency and updates correctly; a `computedBox` that reads a callable
1181
1003
  the introspection surface all apply uniformly -- a box node is indistinguishable
1182
1004
  from a callable node to the graph, the owner tree, and devtools.
1183
1005
 
1184
- ### Added -- `test/24-signalbox.test.mjs` activated (9 tests)
1006
+ ### Added -- `test/24-signalbox_test.mjs` activated (9 tests)
1185
1007
 
1186
1008
  The suite that was committed-but-skipped since 1.3.0 now runs against the real
1187
1009
  implementation: box get/set/peek/update, computedBox derive + memoize,
@@ -1228,7 +1050,7 @@ survives consumer re-runs.
1228
1050
  - **Full suite green** against the 1.5.0 engine: 439 tests, 438 pass, 0 fail,
1229
1051
  1 skip (only the architecturally-N/A SSR case in `17-reactivity`; the 9
1230
1052
  `24-signalbox` tests are now active, +6 `createRoot` tests in
1231
- `test/27-create-root.test.mjs`, +3 box-coverage tests). **Coverage** (c8@11,
1053
+ `test/27-create-root_test.mjs`, +3 box-coverage tests). **Coverage** (c8@11,
1232
1054
  Node 22): `Signal.js` 100% statements / 97.35% branches / 100% functions / 100%
1233
1055
  lines; `Watch.js` 100% across all four.
1234
1056
  - **Box hot path is zero-GC**: 200,000 writes through a 256-wide box graph,
@@ -1463,7 +1285,7 @@ What `createNode` still writes are the *lifetime* writes for the new resident:
1463
1285
  the new lifetime), plus the conditional owner-adoption splice
1464
1286
  (`owner`, `nextOwned`, parent chain link).
1465
1287
 
1466
- ### Added -- `test/10-free-list-invariant.test.mjs`
1288
+ ### Added -- `test/10-free-list-invariant_test.mjs`
1467
1289
 
1468
1290
  A three-test invariant suite that asserts the audit's claim by inspecting
1469
1291
  freshly-allocated nodes' underlying field state (via the documented
@@ -1481,7 +1303,7 @@ If any future change reintroduces a write to a clean-state field on the
1481
1303
  dispose path or removes a write that turns out NOT to be redundant, this
1482
1304
  suite catches it.
1483
1305
 
1484
- ### Added -- `test/11-devtools-contract.test.mjs`
1306
+ ### Added -- `test/11-devtools-contract_test.mjs`
1485
1307
 
1486
1308
  A 12-test smoke probe of the introspection surface that lite-devtools 1.1 /
1487
1309
  lite-studio 1.1 consume. Verifies handle resolution + walkers, owner-tree
@@ -1828,7 +1650,7 @@ over 1.1.4, no breaking changes.
1828
1650
  shape kept uniform (monomorphic). **Zero steady-state cost.**
1829
1651
 
1830
1652
  ### Test suite
1831
- - Added `test/15-identity.test.mjs`: 5 tests -- ids unique + stable, `nodeId`/`describe`
1653
+ - Added `test/15-identity_test.mjs`: 5 tests -- ids unique + stable, `nodeId`/`describe`
1832
1654
  undefined on non-handles, descriptor shape `{ id, kind, value }`, descriptors re-walkable,
1833
1655
  identity walks non-perturbing.
1834
1656
 
@@ -1880,7 +1702,7 @@ All accept a public `Signal`/`Computed` handle.
1880
1702
  on a non-handle argument; `observeObservers` throws `TypeError`.
1881
1703
 
1882
1704
  ### Test suite
1883
- - Added `test/13-introspection.test.mjs`: 10 tests across 3 describe blocks --
1705
+ - Added `test/13-introspection_test.mjs`: 10 tests across 3 describe blocks --
1884
1706
  `hasObservers` (live observation reflects, peek doesn't count), `observeObservers`
1885
1707
  auto-pause lifecycle (start-on-first/stop-on-last, no extra connect for a 2nd
1886
1708
  observer, re-observe fires again, no churn on re-track, conditional reads toggle
@@ -1924,7 +1746,7 @@ allocation on whether the read will actually subscribe anything.
1924
1746
  Roughly 1-2 ns per call.
1925
1747
 
1926
1748
  ### Test suite
1927
- - Added `test/10-is-tracking.test.mjs`: 11 tests across 5 describe blocks --
1749
+ - Added `test/10-is-tracking_test.mjs`: 11 tests across 5 describe blocks --
1928
1750
  observer-bodies (effect + computed), untracked windows (`untrack`, `subscribe`
1929
1751
  callback, `onCleanup`, `watch` callback), outside-observer (module scope,
1930
1752
  call-site of unobserved computed read), robustness (state restored after