@zakkster/lite-signal 1.8.0-experimental.0 → 1.9.0-alpha

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,6 +4,740 @@ 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-alpha] -- 2026-09-06
8
+
9
+ The **verification-infrastructure parity cut** on the rebuilt 1.9 line, and the
10
+ first alpha of it. The engine is **byte-identical to 1.9.0-preview.6 past the
11
+ version banner** -- still the 1.8.0 base plus the five existence-guarded
12
+ `Symbol.dispose` stamp sites (registry -> `destroy`, effect + `createScope`
13
+ disposers -> themselves, both box prototypes; callable value handles
14
+ deliberately unstamped). What changed is everything that WATCHES the engine:
15
+ the full 1.8.0-beta audit infrastructure is forward-ported and re-proven here.
16
+
17
+ ### Added -- the 27-scenario torture suite (was 22)
18
+
19
+ - The 2026-08 audit-phase scenarios: `contract-torture`, `interop-torture`,
20
+ `retrack-dispose-torture`, `burst-profile-torture`, and the opt-in
21
+ `wraparound-torture` (full-distance 2^31 dormancy-band soak, 12/12 asserts).
22
+ - The audit-hardened runner (`run.mjs`): 3-state skip protocol (exit 77
23
+ floor-skip / 78 env-skip), **enforced floors** (a skip at/above the
24
+ scenario's floor FAILS the run), per-scenario wall-clock caps, and
25
+ assert-nothing detection.
26
+ - The folder supersets carried forward: flush-torture (1.7.0-origin sections
27
+ 7-10) and cleanup-return-torture (1.8.0-origin section 6b severTail
28
+ cursor-repair pins).
29
+ - **On this engine all 23 semantic scenarios execute with ZERO floor-skips --
30
+ the first engine in the line to run the complete superset** (`dispose` was
31
+ the last feature gate; `dispose-torture` activates natively). Suite verdict:
32
+ 26 pass / 1 opt-in skip / 0 fail in ~31s.
33
+
34
+ ### Added -- test and gate lanes
35
+
36
+ - `test/25-devtools-real-boot` rewritten against the REAL installed
37
+ **devtools 1.6.2** (14 tests): the exact 13-key `capabilities()` fingerprint
38
+ probed live (identical to the 1.8.0 pairing -- devtools 1.6.2 has no 1.9 cap
39
+ key, so the exact key set is itself the 1.9-era pin), all 22 exports +
40
+ `VERSION`, `burstProfile()` shapes, the 1.6.x `Symbol.dispose` stamps.
41
+ - `test/36-devtools-zerogc-probe` (ported, renumbered above the folder max):
42
+ poolGrowths == 0 on the reactive-benchmark weak-group shapes through both
43
+ the engine counter and devtools `watchAllocations()`.
44
+ - `test/zgc/` lane (`test:zgc` + `test:zgc:report`): 7/7 + 3/3 under a 4 MB
45
+ semi-space; `test/ProfilerTests` (`test:hardening`, 22/0/6) and
46
+ `harness/ProfilerTools` (`test:harness`, 5/5) sub-package lanes.
47
+ - Phase-1/2/3 harness instruments: `visit-anatomy` (21 exact structural pins),
48
+ `jit-health` (strict, fresh Node-26 baseline), `mint-anatomy`, `costmodel`,
49
+ `floors`, `trend`, `creation-anatomy`, `burst-real`; `harness/run.mjs` gains
50
+ the `mint` entry.
51
+ - VersionMatrix read+counter lanes with trimmed-spread aggregation and the
52
+ NO-EVIDENCE refusal protocol; **gate-self PASSED 5/5** vs floor-1.3.0 +
53
+ rolling-1.5.0 tarballs, creation counter lane exact (288 allocs/frame,
54
+ min=max=p99 over 1500 frames; 0 poolGrowths).
55
+
56
+ ### Measured on this engine
57
+
58
+ - **Mint anatomy IDENTICAL for the fifth engine running**: signal 264.3 /
59
+ computed 208.1 / effect 160.0 / signalBox 56.0 / computedBox 56.0 B/op
60
+ all-space. The effect disposer's `Symbol.dispose` stamp is its THIRD symbol
61
+ property and still fits the cap-3 PropertyArray -- creation stays flat,
62
+ exactly as the rebuilt-line roadmap's creation bar demands.
63
+ - visit-anatomy: 21/21 pins with **NO re-anchor needed** (the stamp sites add
64
+ no eq-dispatch site; drift refusal and the gutted-short-circuit mutant both
65
+ re-witnessed in scratch clones).
66
+ - jit-health strict: all four handle families MONOMORPHIC -- the shared-proto
67
+ box stamps do not split handle maps.
68
+ - Cleanup-return compose order, wraparound band, and every audit-era pin:
69
+ carried with ZERO pin flips.
70
+
71
+ ### Changed
72
+
73
+ - devDeps: `@zakkster/lite-devtools` ^1.2.0 -> **^1.6.2**,
74
+ `@zakkster/lite-gc-profiler` ^1.15.0 -> **^1.16.0**.
75
+ - `npm test` / `test:gc` / `test:coverage` are now glob-scoped to
76
+ `'test/*.test.mjs'` (bare `node --test` recursive discovery would sweep the
77
+ ported `test/zgc/` + `test/ProfilerTests/` lanes without their required
78
+ flags; the OOM child stays out of the glob structurally). Unit suite:
79
+ **547 tests, 546 pass, 0 fail, 1 skip** (`test:gc`: 555/554/0/1).
80
+ - `verify` now chains `npm test && test:zgc && harness:smoke && bench`.
81
+ - Signal.js line-ref comments in capacity/deep-chain/error/owner tortures and
82
+ `test/30` refreshed against the current engine (the preview.6 validation
83
+ insertion had shifted them).
84
+
85
+ ### Removed
86
+
87
+ - `test/33-computed-selfdirty-prev-owner.test.mjs` -- byte-identical duplicate
88
+ of `test/34-...` (sha `0f48d434`), and its `33-` prefix collided with
89
+ `33-cleanup-return`; the glob ran the suite twice.
90
+ - The stale `bench-reactive` script (pointed at a `benchmarkReactive.mjs` this
91
+ folder does not carry) and the stale llms `demo/index.html` +
92
+ "wired as prepublishOnly" claims (the gate is `npm run gate` ->
93
+ `pre-publish.mjs`; no such npm hook exists).
94
+
95
+
96
+
97
+ Backports the **1.4.5 `createRegistry` input validation** (all four findings) onto
98
+ the 1.9.0-preview.5 engine. Supersedes 1.9.0-preview.5. Only `createRegistry`'s *cold*
99
+ construction path changed -- the hot paths are byte-identical and the zero-GC gates
100
+ (`bench/torture/run.mjs` 22/22) are unchanged. If you had a typo in your registry
101
+ config, you will now hear about it.
102
+
103
+ ### Added -- createRegistry validates its config (fail closed)
104
+
105
+ - **Bounded eager construction.** `prealloc:"eager"` with a non-finite or absurd
106
+ capacity (`maxNodes:Infinity`, `maxNodes:1e9`) previously ran an unbounded
107
+ construction loop and killed the process with an **uncatchable SIGABRT**. It now
108
+ throws a `TypeError` **by name**, before allocating, gated on `(maxNodes+maxLinks)`
109
+ against a ceiling of `1<<24` (16,777,216) objects. `prealloc:"lazy"` keeps its
110
+ unbounded on-demand ledger, untouched.
111
+ - **Per-option validation by name.** `maxNodes` / `maxLinks` / `maxFlushPasses` must
112
+ be finite integers `>= 1`; `prealloc` must be exactly `"eager"` | `"lazy"`;
113
+ `onCapacityExceeded` must be exactly `"throw"` | `"grow"`. Each bad value throws a
114
+ `TypeError` prefixed `createRegistry: "<option>"` at construction -- not a delayed
115
+ internal `nextFree` TypeError on first use.
116
+ - **Config-shape gate.** A non-object, `null`, or array `config` throws
117
+ `createRegistry: "config"` rather than dying later.
118
+ - **Unknown-key rejection with did-you-mean.** An unrecognized key throws with a
119
+ Levenshtein suggestion (`maxNods` -> `maxNodes`, `preAlloc` -> `prealloc`) instead
120
+ of being silently ignored.
121
+ - **`flushStrategy` stays a first-class option.** It is a recognized key (its own native value-guard is unchanged); only misspelled *keys* are rejected.
122
+ - **`stats()` gains `nodePoolPopulation` / `linkPoolPopulation`** -- the TRUE count
123
+ of physically constructed nodes/links, distinct from the `*Capacity` ledgers. A
124
+ silently mis-set `prealloc` is now observable (population 0 under lazy) instead of
125
+ telemetry-blind. **The one observable API change: `stats()` grows to 14 keys,
126
+ purely additive** -- no existing key changed; only an exact key-*count* assertion
127
+ is affected (updated in `test/03-pool.test.mjs`).
128
+
129
+ ### Tests
130
+
131
+ New `test/*-config-validation.test.mjs` adds the full config matrix, the did-you-mean
132
+ cases, the eager ceiling, the population contract, and the three OOM rows as isolated
133
+ child-process cases proving the fixed engine throws + exits 0 under a 256 MB cap where
134
+ the unvalidated engine died.
135
+
136
+ ## [1.9.0-preview.5] -- 2026-08-18
137
+
138
+ Packaging-only cut. **The engine is UNCHANGED** -- `Signal.js` is behaviourally
139
+ byte-identical to `preview.4`; the sole `Signal.js` edit is the header banner
140
+ version string (see below). This release makes the published package honour its
141
+ own `package.json`: since 1.5.0 the manifest has advertised `"types":
142
+ "./Signal.d.ts"` and listed `Signal.d.ts` in `files[]`, but the 1.9.0 line
143
+ shipped without the file (`preview.4` and earlier packed a `types` pointer to a
144
+ non-existent declaration, so `tsc` consumers got no types). No API, torture, or
145
+ test change from `preview.4`.
146
+
147
+ ### Added -- the missing `Signal.d.ts` (the 1.9.0 type surface)
148
+
149
+ - **`Signal.d.ts`** now ships, modelled on the 1.8.0 declaration (1.9.0's export
150
+ surface is byte-identical to 1.8.0's) plus the 1.9.0 explicit-resource-management
151
+ delta: `[Symbol.dispose](): void` is typed on exactly the handles the engine
152
+ stamps -- both box prototypes (`SignalBox` :1495, `ComputedBox` :1496), every
153
+ `Dispose` function (the shared effect disposer at :1614, reached by `effect()`,
154
+ `.subscribe()`, and the `createScope` disposer at :1853), and the `Registry`
155
+ (-> `destroy`, :2087). Callable value handles (`Signal` / `Computed`) are left
156
+ UNSTAMPED, matching the engine. So `using r = createRegistry()`,
157
+ `using box = signalBox(0)`, and `using stop = effect(fn)` all typecheck.
158
+ - The `[Symbol.dispose]` slot is expressed through a `lib`-conditional helper
159
+ (`ExplicitDisposeSlot`): it resolves to the member only when the ambient
160
+ TypeScript `lib` knows `Symbol.dispose` (`esnext.disposable` -- required to use
161
+ `using` at all), and to `{}` otherwise, so the declaration NEVER forces a `lib`
162
+ upgrade on type-only consumers. Verified: compiles under
163
+ `--lib ES2022,ESNext.Disposable` with `using` on all four shapes; compiles clean
164
+ under `--lib ES2020` for a type-only consumer (zero errors); manual
165
+ `[Symbol.dispose]()` is typed.
166
+
167
+ ### Changed -- header banner reconciled to the manifest
168
+
169
+ - **`Signal.js` header banner** now reads `v1.9.0-preview.5`, matching
170
+ `package.json` and this changelog. `preview.2` through `preview.4` shipped a
171
+ stale `preview.2` banner (a cosmetic drift in a comment; no code depended on
172
+ it). No other line of `Signal.js` changed -- torture stays 22/22 and the unit
173
+ suite is unaffected.
174
+
175
+ ## [1.9.0-preview.4] -- 2026-08-18
176
+
177
+ Version-only re-tag over `preview.3`. `Signal.js` is byte-identical to
178
+ `preview.3` past the header banner; no engine, torture, test, API, or packaging
179
+ change (the `Signal.d.ts` gap and the stale `preview.2` banner were both still
180
+ present -- both are fixed in `preview.5`). Recorded here for continuity.
181
+
182
+ ## [1.9.0-preview.3] -- 2026-08-18
183
+
184
+ Verification-only parity cut. **The engine is UNCHANGED** -- `Signal.js` (2209
185
+ lines) is byte-for-byte identical to `preview.2`; this cut only brings the
186
+ `bench/torture` suite and the unit tests to FULL PARITY with the shipped 1.4.4
187
+ canonical suite, then VERIFIES-then-PINS 1.9.0's actual behaviour (no assertion
188
+ softened, no budget widened).
189
+
190
+ ### Added -- the last three torture scenarios + soak value-oracles + a throwing-equals pin
191
+
192
+ - **`error-torture`** -- throwing effect bodies under flush: a single throw is
193
+ re-thrown UNWRAPPED; two or more aggregate into one `AggregateError` carrying
194
+ EXACTLY those errors in order; the effect scheduled between two throwers still
195
+ runs; and the pre-allocated error buffer drains to a clean baseline over 4096
196
+ throw/clean cycles (`activeNodes` / `activeLinks` flat). Pinned against 1.9.0
197
+ `Signal.js` :928 (buffer append), :936-937 (finally clear), :941-951 (single
198
+ re-throw / AggregateError).
199
+ - **`deep-chain-torture`** -- `pullComputed` (1.9.0 :1092, recursing at :1113) is
200
+ call-stack recursive, so a computed chain ramped START 2000 / STEP 2000 /
201
+ CEILING 100000 fails CLOSED with a `RangeError` at some depth; the registry
202
+ stays usable, the re-read is deterministic, and the heap-iterative effect
203
+ cascade over an equally deep chain completes without throwing.
204
+ - **`zerogc-torture`** -- the zero-GC claim as a re-runnable gate via
205
+ `@zakkster/lite-gc-profiler` (added as a dev-only dependency): `measureAllocs` /
206
+ `checkAllocs` at `maxBytesPerCall: 0`, `measureOps` / `checkNoGc` at
207
+ `maxMajor: 0` / `maxPauseMs: 2`, and `stats()` poolGrowths/totalAllocations
208
+ deltas, over deep/wide/batch steady writes plus create/dispose churn on both the
209
+ callable form and `signalBox` (churn-box activates natively and reports a visible
210
+ "ok" verdict). `ZEROGC_BREAK=1` self-tests that the gate rejects a planted
211
+ allocation (exits non-zero).
212
+ - **`capacity-torture` section 9** -- the 16x link grow ceiling: `grow` mode still
213
+ fails closed at `maxLinks * 16` (confirmed 1.9.0 :312 / :471) with a `links`
214
+ `CapacityError`, growth terminating AT the ceiling, and a fail-closed re-throw
215
+ rather than a partial sum.
216
+ - **Soak value-oracles** -- `graph-fuzzer`, `scheduler-bench`, `torture-soak` now
217
+ assert VALUE-CORRECTNESS, not just resources: a single `Int32Array` shadow,
218
+ allocated ONCE before the loop, shadows every writable signal; a rotating fixed
219
+ window is checked per tick (no per-tick allocation) and a full sweep runs at
220
+ teardown; a mismatch exits 1 with the seed and index. The module-scoped int32
221
+ JIT sink replaces the former magic-constant "impossible" guard.
222
+ - **`test/30-throwing-equals.test.mjs`** -- a user `equals` that THROWS, pinned at
223
+ all five 1.9.0 sites: the three callable sites (signal set pre-check :1272, batch
224
+ revert :1279, computed re-eval :1143) with a CONTRAST anti-tautology test, and
225
+ the two `signalBox` `boxSet` sites (pre-check :1403, revert :1410).
226
+
227
+ ### Changed -- introspect-torture forEachOwned pinned to an exact count
228
+
229
+ `introspect-torture` section 7 asserted `owned >= 2`; the owned count under one
230
+ scope owner (a computed + an effect) is DETERMINISTICALLY 2, so it is now pinned
231
+ `owned === 2`. No behavioural change -- a tightened assertion.
232
+
233
+ ### Verified -- the whole superset runs natively on the 1.9.0 engine
234
+
235
+ `dispose`, `cleanup-return`, `owner`, `scope`, and `flush` all execute NATIVELY
236
+ here with zero feature-skips: 1.9.0 is the first engine to run the complete
237
+ torture superset.
238
+
239
+ - **Torture:** 22/22 -- `torture:semantic` 19/19 (all executed, zero skips),
240
+ `torture:soak` 3/3 (zero errors, value-oracle clean, every pool back to its
241
+ leaf-only floor).
242
+ - **Unit (`npm test`):** 512 tests, 511 pass, 0 fail, 1 skip.
243
+ - **Unit (`npm run test:gc`):** 520 tests, 519 pass, 0 fail, 1 skip.
244
+
245
+ ## [1.9.0-preview.2] -- 2026-07-27
246
+
247
+ Rolls up the post-`1.9.0-preview` changes into the `preview.2` tag. The 1.9.0
248
+ feature (`using` / `Symbol.dispose` on lifecycle objects) ships in the preview and
249
+ is unchanged here; this cut adds two new torture scenarios from a consolidated
250
+ coverage audit, the crash fix inherited from the 1.8.0 base, 100% coverage, and
251
+ test-suite hygiene.
252
+
253
+ ### Added -- torture suite reaches the zero-skip milestone (19 scenarios)
254
+
255
+ Two effects converge on the 1.9.0 engine. First, **`dispose-torture` now
256
+ executes**: 1.9.0 stamps `Symbol.dispose` at five sites (the registry -> destroy,
257
+ an effect's stop handle, a `createScope` disposer, a `createRoot` disposer, and
258
+ both box prototypes), so `using`-declared lifecycle objects dispose at block exit.
259
+ The scenario feature-detects via the box-prototype stamp and drives each site
260
+ through the TC39 `using` path, asserting idempotent disposal. Because it is a set
261
+ of stamped methods with **no new export**, it is exactly the profile the value /
262
+ introspection oracles cannot see. Second, the coverage audit added **two new
263
+ semantic scenarios** for exports no scenario exercised directly:
264
+
265
+ - **`owner-torture`** (1.6.0+) -- `getOwner` / `runWithOwner` capture-restore: the
266
+ gen-stamped owner handle, adoption of effects/computeds created inside
267
+ `runWithOwner`, and cascade-dispose when the captured owner is torn down.
268
+ - **`lifecycle-torture`** (createRoot 1.5.0+, destroy 1.4.0+) -- `createRoot`
269
+ detachment (an owned subtree that survives its enclosing scope) and the direct
270
+ `destroy` reset contract; `createRoot` had never been called by any scenario,
271
+ and `destroy` was only reached indirectly through a registry `Symbol.dispose`.
272
+
273
+ The suite is now **19 scenarios (16 semantic + 3 soak)**. On the 1.9.0 engine
274
+ **every semantic scenario executes -- zero feature-skips** -- the first engine
275
+ version to run the complete superset, since `dispose` was the last remaining
276
+ feature gate (box 1.5.0, scope/owner/introspect 1.6.0, flush 1.7.0,
277
+ cleanup-return 1.8.0, dispose 1.9.0 are all satisfied).
278
+
279
+ ### Verified -- full suite green on the 1.9.0 engine (Node 22, `--expose-gc`)
280
+
281
+ - **Torture:** 19/19 -- `torture:semantic` 16/16 (all executed, zero skips),
282
+ `torture:soak` 3/3 (zero errors, every pool back to its leaf-only floor).
283
+ - **Unit (plain run):** 499 tests, 479 pass, 0 fail, 1 skip (the architectural
284
+ SSR N/A in `17-reactivity`). The only non-passes are the 19 in
285
+ `test/25-devtools-real-boot`, the real-rig that requires the sibling
286
+ `@zakkster/lite-devtools`; with that sibling resolvable the suite is 498 pass +
287
+ 1 skip. Engine-only, excluding `test/25`: 480 tests, 479 pass, 1 skip. (The c8
288
+ coverage run below reports a different count -- perf-smoke budgets skip under
289
+ instrumentation.)
290
+
291
+ ### Changed -- bench protocol v3 (carried forward)
292
+
293
+ The `bench/` harness is bench protocol v3: three instruments (microscope / mirror /
294
+ version-economics), each with a fixed config and a machine-generated `#STAMP`
295
+ (engine + harness sha256, live registry config, host, node). The pre-v3
296
+ five-framework reactivity suite was removed after 1.5.1. See `bench/README.md`.
297
+
298
+ ### Added -- Coveralls coverage badge
299
+
300
+ README carries a Coveralls badge; lcov is produced by `npm run test:report`
301
+ (`coveralls-next` in devDependencies).
302
+
303
+
304
+ ### Fixed -- dangling re-tracking cursor on source disposal (crash)
305
+
306
+ Disposing a signal/computed from inside an observer that had linked it on the
307
+ previous run, but had not yet re-read it on the current run, crashed with
308
+ `TypeError: Cannot set properties of null (setting 'headSub')`. `disposeNode`'s
309
+ sub-list teardown freed the link while the observer's re-tracking cursor
310
+ (`activeObserverCurrentDep`) was still parked on it; `severTail` then walked from
311
+ a freed link, wiped the observer's `headDep`, and double-freed the link. Reachable
312
+ from the plain public API, inherited from the 1.8.0 base. Fixed with a one-line
313
+ cursor repair in `disposeNode`; the two dead `freeLink` `-1` ternaries were removed
314
+ with it. Pinned by a regression test in `test/12-coverage.test.mjs`.
315
+
316
+ ### Changed -- coverage closed to 100% and test-suite hygiene
317
+
318
+ `Signal.js` reaches **100% statements / branches / functions / lines** (491 tests,
319
+ 490 pass, 1 skip). Beyond the crash fix and its ported box/owner/opcode closure
320
+ suite, this pass added: a test for the new **`using` / `Symbol.dispose`** methods on
321
+ both box prototypes (`box[Symbol.dispose]()` disposes and is idempotent); and the
322
+ cleanup-return array-append arm (carried in via `33-cleanup-return`). Three provably
323
+ -unreachable arms carry `/* c8 ignore */` with proofs: the link-ledger clamp, the
324
+ `batchEpoch` 2^32 wraparound, and the `Symbol.dispose` pre-Node-20 polyfill fallback.
325
+
326
+ Test-suite hygiene: `33-computed-selfdirty-prev-owner.test.mjs` renamed to `34-`
327
+ (the `33-` slot belongs to `33-cleanup-return`, which carries forward from 1.8.0
328
+ because this line inherits effect cleanup-return) -- the rename had left a
329
+ byte-identical `33-` copy behind, so the scope suite's `28-`/`29-` pattern
330
+ repeated here; the stray `33-computed-selfdirty-prev-owner.test.mjs` is deleted,
331
+ leaving one `34-`. The duplicate `28-scope.test.mjs` was likewise dropped in
332
+ favour of `29-scope.test.mjs` (both were byte-identical).
333
+
334
+ **Hot-path parity note:** the fix touches `disposeNode` and `freeLink`; re-baseline
335
+ the VersionMatrix engine sha256 on the next publish.
336
+
337
+ ## [1.9.0-preview] -- 2026-07-XX (rebuilt line, candidate)
338
+
339
+ **Feature of the cut: `using` / `Symbol.dispose` on lifecycle objects.**
340
+ The one-or-two-features-per-version discipline of the rebuilt line
341
+ (bisectability -> a single cause per bench delta) governs everything
342
+ NEW; **`getOwner` / `runWithOwner` continue as the cascade forward-port
343
+ from 1.5.0-beta.3** where they landed to unblock the profiler tooling,
344
+ carried through 1.5.0 / 1.5.1 / 1.6 / 1.7 / 1.8 unchanged. They are on
345
+ this cut and land on every future cut on the same terms until an
346
+ engine-shape change forces a re-verification. Base is 1.8.0 -- the last
347
+ gate-passed, no-bench-regression checkpoint.
348
+
349
+ The rebuilt line is designed against the old-1.9.x / old-1.10 engines
350
+ that were rejected as versions (see the ROADMAP-1_9-REBUILT ledger);
351
+ their proven-safe functionality is being scalped forward across
352
+ 1.9.0-preview -> 1.9.2 rather than shipped in a bundle. The discipline
353
+ is the point.
354
+
355
+ **Where features land on the rebuilt line:**
356
+
357
+ - **1.9.0-preview (this cut)** -- `using` / `Symbol.dispose` on
358
+ lifecycle objects.
359
+ - **Carried forward from 1.5.0-beta.3 through every 1.x line** --
360
+ `getOwner()` / `runWithOwner(handle, fn)`, safe gen-guarded design.
361
+ Ships everywhere until an engine-shape change forces re-verification.
362
+ - **1.9.1-preview** (next) -- `computed(prev => ..., {initial})`,
363
+ Solid-createMemo-shaped scans/reductions.
364
+ - **1.10.0-preview** -- named nodes + `whyDirty()` (the tracing
365
+ foundation).
366
+ - **1.10.1-preview** -- cold-counter pack.
367
+ - **1.11.0-preview** -- `onSettled`, rebuilt as a creation-time
368
+ capability.
369
+ - **1.12.0-preview** -- the trace twin (build-time twin closures for
370
+ per-flush / per-run instrumentation).
371
+ - **1.13.0-preview** (candidate) -- `flushStrategy: "microtask"`.
372
+
373
+ ### Added -- `Symbol.dispose` on lifecycle objects
374
+
375
+ Explicit resource management (`using` syntax, TC39 Stage 3), existence-
376
+ guarded so it degrades cleanly on older runtimes. Manual
377
+ `[Symbol.dispose]()` works on **Node 20+**; the `using` syntax lights up
378
+ on **Node 24+**. Stamped at five sites; every callable **value** handle
379
+ (the return of `signal()` / `computed()`) is deliberately unstamped.
380
+
381
+ ```javascript
382
+ // Lifecycle objects that auto-dispose at block exit:
383
+ using r = createRegistry(); // -> destroy() at block exit
384
+ using stop = effect(() => { ... }); // -> stop() at block exit
385
+ using scope = createScope(dispose => ...); // -> dispose() at block exit
386
+
387
+ // Boxes stamp via prototype (zero per-instance cost):
388
+ using s = registry.signalBox(0); // -> dispose(s) at block exit
389
+
390
+ // Callable handles are deliberately UNSTAMPED:
391
+ const val = signal(0); // no [Symbol.dispose] -- values
392
+ // don't auto-dispose at block
393
+ // exit; that would be a footgun
394
+ ```
395
+
396
+ **Stamp sites (five total):**
397
+
398
+ - **`SYMBOL_DISPOSE` module constant** -- resolved once with
399
+ `typeof Symbol.dispose === "symbol" ? Symbol.dispose : null`, then every
400
+ stamp site is a single `!== null` existence guard. Old runtimes pay
401
+ nothing but the guard on the cold creation path.
402
+ - **Registry** -- `r[Symbol.dispose] = destroy`. `using r =
403
+ createRegistry()` frees the pool at block exit.
404
+ - **Effect disposer** -- the returned disposer function is its own
405
+ `[Symbol.dispose]`: `disposeFn[SYMBOL_DISPOSE] = disposeFn`. Idempotent
406
+ and gen-guarded exactly like a manual call.
407
+ - **`createScope` disposer** -- same idempotent self-stamp as the effect
408
+ disposer.
409
+ - **`signalBox` / `computedBox` prototypes** -- one shared method per
410
+ registry on the two box prototypes: `SIGNAL_BOX_PROTO[SYMBOL_DISPOSE] =
411
+ function () { dispose(this); }`. **Zero per-instance cost** -- the
412
+ method lives on the prototype, never on the instance. Verified:
413
+ `Object.prototype.hasOwnProperty.call(box, Symbol.dispose) === false`.
414
+ - **Callable handles NOT stamped** -- `signal()` and `computed()` return
415
+ value-typed closures. Auto-disposing them at block exit would let a
416
+ `using v = signal(0)` in a hot loop delete the graph on every
417
+ iteration. One extra own-prop stamp per handle is also real creation-
418
+ path cost. The design is deliberate; the discriminator test would
419
+ catch a regression that stamped them.
420
+
421
+ ### Added -- `getOwner` / `runWithOwner` (cascade forward-port from 1.5.0-beta.3)
422
+
423
+ Not new to 1.9.0 -- they have landed on every published cut since
424
+ 1.5.0-beta.3 unblocked the profiler tooling with them. Re-stated here
425
+ because the rebuilt-line ledger explicitly flagged them as a "salvage
426
+ 1.10 -> 1.9.2" candidate, and I need to be crystal about which pattern
427
+ governs on this cut: the **cascade forward-port pattern** (they ship
428
+ until an engine-shape change forces re-verification), NOT the "one
429
+ feature per version, deferred to 1.9.2" pattern. If a future 1.9.x cut
430
+ introduces an engine-shape change that could invalidate the gen-stamped
431
+ handle contract, the ROADMAP-1_9-REBUILT 1.9.2 line reserves the space
432
+ to re-verify the port -- but on this cut nothing changed and the
433
+ long-standing safe implementation carries.
434
+
435
+ The port is the same safe design shipped on 1.6 / 1.7 / 1.8:
436
+ `getOwner()` returns a `describeNode` handle stamped with the pool
437
+ slot's generation counter (NODE_GEN); `runWithOwner(handle, fn)`
438
+ resolves via `liveNode()`, and if the gen has moved (slot recycled) or
439
+ the handle refers to a non-tracker, degrades to **rooted execution**.
440
+ Two hazards on the raw-pointer alternative empirically reproduced by
441
+ `Publications/owner-hazard-repro.mjs`:
442
+
443
+ - **Recycled-slot cascade death** -- capture, dispose owner, allocate
444
+ a stranger effect that reuses the slot; a raw-pointer
445
+ `runWithOwner(captured)` silently adopts the continuation into the
446
+ stranger; the stranger's next re-run cascade-disposes it.
447
+ - **Corpse adoption = engine crash** -- capture, dispose owner but
448
+ not-yet-recycled; a raw-pointer `runWithOwner(captured, () =>
449
+ effect(...))` splices a child into a disposed owner's `firstOwned`;
450
+ the next disposal walk recurses without termination
451
+ (`RangeError: Maximum call stack size exceeded`). Not a leak; a
452
+ crash.
453
+
454
+ Both fail on the raw-pointer sketch; both pass on the shipped
455
+ `describeNode` / `liveNode` implementation. Verified against
456
+ 1.9.0-preview's engine directly: `Publications/owner-hazard-repro.mjs
457
+ ./Signal.js` reports `VERDICT: SAFE` on the recycled-slot case
458
+ (continuation runs 2 times before stranger disposal, 3 after) and
459
+ completes the corpse case without stack overflow.
460
+
461
+ Exported as registry methods AND top-level helpers bound to
462
+ `defaultRegistry`, inserted between `createRoot`'s and `createScope`'s
463
+ registrations for stable ordering. **Sha256 confirms the port added
464
+ new code only** -- no existing function's body was disturbed by the
465
+ insertion (evidence below).
466
+
467
+ ### Hot-path safety -- claims proven, not asserted
468
+
469
+ The rebuilt-line gate proves cold-path claims by **sha256 over
470
+ extracted function bodies**, not by assertion. Verified against
471
+ pristine 1.8.0 (columns: pristine 1.8.0 body vs the 1.9.0-preview
472
+ engine as shipped, with the owner port cascade-forwarded):
473
+
474
+ | function | 1.8.0 | 1.9.0-preview | status |
475
+ | --------------- | ----------------- | ----------------- | ------------------------------ |
476
+ | `pullComputed` | 317bd86984710625 | 317bd86984710625 | byte-identical |
477
+ | `markDownstream`| ad7a007ec23260fc | ad7a007ec23260fc | byte-identical |
478
+ | `executeEffect` | 4487beb9d15f80c6 | 4487beb9d15f80c6 | byte-identical |
479
+ | `flushEffects` | a25b36ba097fdf1a | a25b36ba097fdf1a | byte-identical |
480
+ | `allocateLink` | e8762fa2d0223715 | e8762fa2d0223715 | byte-identical |
481
+ | `severTail` | ea575a83e3c79040 | ea575a83e3c79040 | byte-identical |
482
+ | `createNode` | 6c769aa814fdd4d1 | 6c769aa814fdd4d1 | byte-identical |
483
+ | `runCleanup` | 2e7daa3fb8d2c3ee | 2e7daa3fb8d2c3ee | byte-identical |
484
+ | `disposeNode` | 21be4f8dc8763143 | 21be4f8dc8763143 | byte-identical |
485
+ | `createRoot` | 530eef21e8ce24f1 | 530eef21e8ce24f1 | byte-identical |
486
+ | `flush` | caa47726a01a0079 | caa47726a01a0079 | byte-identical |
487
+ | `batch` | b8d8c94ed878bcab | b8d8c94ed878bcab | byte-identical |
488
+ | `signal` | cf24a3a973f6d0f3 | cf24a3a973f6d0f3 | byte-identical |
489
+ | `computed` | 30a28248bc315dc9 | 30a28248bc315dc9 | byte-identical |
490
+ | `effect` | 8542b2aa3e519e91 | 53945acc0044b722 | +1 line, cold (Symbol.dispose) |
491
+ | `createScope` | 68cd175f7ddc6120 | 13d52c939a2e4566 | +1 line, cold (Symbol.dispose) |
492
+
493
+ `effect` and `createScope` each pick up **exactly one line** on the
494
+ creation path:
495
+
496
+ ```javascript
497
+ if (SYMBOL_DISPOSE !== null) disposeFn[SYMBOL_DISPOSE] = disposeFn;
498
+ ```
499
+
500
+ This is creation-path stamping (once per effect/scope allocation, on
501
+ the disposer construction that already runs), not hot-path. Both the
502
+ propagation core (`pullComputed`, `markDownstream`, `flushEffects`,
503
+ `executeEffect`, `allocateLink`, `severTail`) AND the flush-strategy
504
+ scaffolding (`flush`, `batch`, `.set` closures) are byte-identical to
505
+ 1.8.0. The `getOwner` / `runWithOwner` cascade port adds new functions
506
+ between `createRoot` and `createScope` -- confirmed by sha256 to
507
+ disturb no existing function.
508
+
509
+ **The Bar 2 CREATION BAR** (fieldkit `createSignals` / `createEffects`
510
+ within noise of 1.8.0) is the one to watch here -- a single existence-
511
+ guarded assignment on the effect / scope creation paths is the smallest
512
+ possible thing to add and should register as noise on both host
513
+ MacBooks. Any bench delta beyond noise is either V8 shape-transition
514
+ cost from the extra own-prop stamp on the disposer closure, or run-to-
515
+ run variance; the sha256 verification rules out any other mechanism.
516
+
517
+ ### Test coverage
518
+
519
+ - **Full suite green**: **457 total, 446 pass, 0 fail, 1 skip (SSR N/A),
520
+ 10 cancelled** (the `25-devtools-real-boot` cases needing the devtools
521
+ peer dep -- pre-existing, unrelated). Delta from 1.8.0's 451: +6 tests
522
+ (+5 from the discriminator's `getOwner` block activating on this
523
+ engine; +1 from the discriminator's absorption pin -- both accounted
524
+ for below). The 16-test `test/28-run-with-owner.test.mjs`
525
+ cascade-forwarded from 1.6/1.7/1.8 remains in place.
526
+ - **`test/28-run-with-owner.test.mjs`** (16 tests, cascade-forwarded):
527
+ basic shape, degradation, and the three hazard pins with allocation
528
+ pressure applied so the ABA guard is actually exercised.
529
+ - **New: `test/34-computed-selfdirty-prev-owner.test.mjs`** -- a single
530
+ self-gating discriminator covering three feature bands:
531
+ - **`getOwner / runWithOwner`** -- **ACTIVE on 1.9.0** (owner APIs
532
+ are present via the cascade port). All 5 tests pass: `getOwner`
533
+ returns a live handle inside a scope + `undefined` at root;
534
+ `runWithOwner` adopts nodes into the chosen scope + doesn't track
535
+ reads in `fn`'s direct body; a **stale owner handle degrades to
536
+ rooted execution** under recycling pressure (the ABA-guard pin the
537
+ roadmap explicitly requires -- allocates a stranger effect to reuse
538
+ the disposed owner's slot, then attempts `runWithOwner` with the
539
+ stale handle); nested `runWithOwner` restores the previous owner on
540
+ exit and is throw-safe.
541
+ - **`computed self-write stays ABSORBED (ledger #15)`** -- **ACTIVE
542
+ on 1.9.0** and every 1.x engine. Pins the deliberate
543
+ `johnsoncodehk/reactivity-benchmark #179` exclusion: a computed
544
+ that writes its own tracked dep ABSORBS the write into the current
545
+ evaluation rather than looping. This is the predictable 1.x
546
+ contract, unchanged since the mark/absorb design.
547
+ - `computed fn(prev) + opts.initial` -- **SKIPPED on 1.9.0**
548
+ (feature lands 1.9.1-preview). Currently skips with reason
549
+ `"engine predates fn(prev) (rebuilt-line 1.9.1)"`.
550
+ - **`test/03-pool.test.mjs`** carries the 12-key `stats()` shape
551
+ assertion from 1.6/1.7/1.8 (adds `flushPasses`).
552
+
553
+ **Note on the test file name convention:** the uploaded discriminator
554
+ file used `33-computed-selfdirty-prev-owner_test.mjs` (underscore, and
555
+ number `33`). It is renamed to `34-computed-selfdirty-prev-owner.test.mjs`
556
+ in the delivered tree: `.test.mjs` (period) to match the ecosystem-wide
557
+ convention (`NN-name.test.mjs`) and pick up the standard `test/*.test.mjs`
558
+ glob (`_test.mjs` would be silently ignored by `node --test`), and `34-`
559
+ to avoid colliding with `33-cleanup-return.test.mjs`, which carries forward
560
+ from 1.8.0 since this line inherits the effect cleanup-return feature.
561
+
562
+ ### The rebuilt-line rejection ledger (context for what does NOT ship)
563
+
564
+ Preserved from the ROADMAP-1_9-REBUILT for the record; nothing new on
565
+ this cut, these are the entries the rebuilt line is defined against:
566
+
567
+ - **#15 -- computed self-dirty / upstream #179 closure**: hot-path cost
568
+ for a deliberately-excluded construct. The absorption pin
569
+ (`test/33-...`) keeps this honest.
570
+ - **#16 -- inner-write fixed point**: one flag test + refire branch per
571
+ effect run + ceremony stores; closed **zero** upstream tests (they
572
+ pass under 1.8.0 absorption); its value was contract purity, its cost
573
+ was hot bytes in `executeEffect`. Absorption remains the contract.
574
+ Everything learned (two-tier batch rule, #235 analysis,
575
+ `currentObserver` identity) stays archived for the day the trade
576
+ changes.
577
+ - **#17 -- `onSettled` as a dynamic always-checked hook**: the 7ns/flush
578
+ inline-budget trap that killed the old 1.9.0. Superseded by the
579
+ **1.11.0-preview** design: creation-time capability
580
+ (`createRegistry({ settled: true })`), const-selection at build,
581
+ default-build `flushEffects` byte-identical to 1.8.0's.
582
+ - **Raw-pointer owner handles**: crash + corruption on recycled-slot
583
+ and corpse-adoption, reproduced on 1.5.0-beta. Stands. The safe
584
+ gen-guarded design that unblocked this on 1.5.0-beta.3 is what
585
+ cascade-forwards here.
586
+
587
+ ### The standing gate on the rebuilt line
588
+
589
+ Every candidate on the rebuilt line must pass, before anything else is
590
+ discussed:
591
+
592
+ 1. **The 1to1batch BAR** -- fieldkit `1to1batch` (sbench
593
+ `updateComputations1to1`, exact -- one effect, one signal, 400k
594
+ batch-wrapped sets) within noise of 1.8.0, cold-process interleaved
595
+ minima, on real hardware.
596
+ 2. **CREATION BAR** -- fieldkit `createSignals` / `createEffects` within
597
+ noise of 1.8.0. Any new closure or property stamp on creation paths
598
+ shows here. This is the bar 1.9.0's `effect` and `createScope`
599
+ Symbol.dispose stamps face; both are single-line existence-guarded
600
+ assignments, so the expectation is noise-band.
601
+ 3. **Hot-function hash parity** vs the previous version wherever the
602
+ feature claims cold-path -- **claims are proven by sha256 over
603
+ extracted bodies, not asserted**. Verified above for 1.9.0-preview
604
+ against 1.8.0.
605
+ 4. **The usual ladder**: full suite, smoke, burst structure, upstream
606
+ johnsoncodehk run (177/178 is the standing; #179 excluded by design
607
+ per ledger #15), ecosystem spot (lite-headless minimum),
608
+ VersionMatrix gate, ASCII audit.
609
+
610
+ The lesson behind the 1to1batch bar: the old 1.9.0's `onSettled` check
611
+ cost ~7ns per flush **through V8 code-size / inline-budget effects,
612
+ not instruction count** -- bytes added to `flushEffects` /
613
+ `executeEffect` are hot-path changes even when the branch never takes.
614
+ Therefore: **nothing lands in a hot function body in the default
615
+ build**. Per-flush or per-run telemetry exists only inside build-time
616
+ twins (see the 1.12.0-preview trace-twin design).
617
+
618
+ ### Verified
619
+
620
+ - **Full test suite green** on 1.9.0-preview: 457 total, 446 pass, 0
621
+ fail, 1 skip, 10 cancelled.
622
+ - **Discriminator's absorption pin (ledger #15)** passes on this
623
+ engine.
624
+ - **Discriminator's `getOwner / runWithOwner` block** (5 tests)
625
+ activates and all pass -- including the recycling-pressure gen-guard
626
+ test that would fail on a raw-pointer implementation.
627
+ - **`Publications/owner-hazard-repro.mjs ./Signal.js`** reports
628
+ `VERDICT: SAFE` on the recycled-slot case AND completes the
629
+ corpse-adoption case without stack overflow.
630
+ - **`test/28-run-with-owner.test.mjs`** cascade-forwarded from
631
+ 1.6/1.7/1.8 (16 tests) passes in isolation.
632
+ - **Symbol.dispose behavior verified end-to-end** on Node 22:
633
+ - `registry[Symbol.dispose]` is a function; calling it destroys the
634
+ registry.
635
+ - `effect(...)[Symbol.dispose]` is a function; calling it stops the
636
+ effect.
637
+ - `createScope(...)`'s returned disposer has `[Symbol.dispose]` too
638
+ (via `dispose[SYMBOL_DISPOSE] = dispose`).
639
+ - `signalBox(...)[Symbol.dispose]` is a function, but
640
+ `Object.prototype.hasOwnProperty.call(box, Symbol.dispose)` is
641
+ `false` -- the method lives on the prototype, zero per-instance
642
+ cost.
643
+ - `signal(0)[Symbol.dispose]` is `undefined` (callable value handles
644
+ deliberately unstamped).
645
+ - **sha256 hot-path parity vs 1.8.0**: 14 propagation / flush-scaffold
646
+ functions byte-identical. Only `effect` and `createScope` differ,
647
+ each by exactly one line for existence-guarded Symbol.dispose
648
+ stamping. `getOwner` / `runWithOwner` port added new functions
649
+ between `createRoot` and `createScope`; sha256 confirms no
650
+ pre-existing function was disturbed by the insertion.
651
+
652
+ ### Verified -- fresh 1.9.0-preview bench sweep (Apple M4 Pro / Node 26)
653
+
654
+ Both v3 instruments were re-run in full on the 1.9.0-preview engine on
655
+ **Apple M4 Pro darwin/arm64, Node 26.3.1**, with `#STAMP`-verified
656
+ outputs committed to `bench/r.txt` (microscope aggregate, 4 engines
657
+ across the six first-party shapes) and `bench/rb.txt` (mirror sweep,
658
+ Andrii's canonical adapter verbatim, lite vs alien across 47 rows,
659
+ isolated-per-row, 10 reps). Andrii 15-framework log at
660
+ `bench/AndriiVolynetsReactiveBench.log` (byte-identical to 1.8.0's --
661
+ the 1.9.0-preview engine is sha256-identical to 1.8.0 on all 14
662
+ propagation / flush-scaffold functions and differs only in `effect` and
663
+ `createScope` by one existence-guarded `[Symbol.dispose]` stamp line
664
+ each on the cold creation path, so the ranking numbers carry with zero
665
+ re-verification cost).
666
+
667
+ - **Andrii Volynets js-reactivity-benchmark position holds at 3rd of
668
+ 15** (the position lite moved to on 1.8.0) with geomean **95.4 ms**;
669
+ lite is ahead of 4th-place @reactively (136.0, lite 1.43x faster) and
670
+ 5th-place Preact Signals (148.8, ~56% ahead), behind only
671
+ alien-signals (77.5) and reflex (89.7). **20 outright wins** (the
672
+ eight canonical propagation shapes, all four wide fan-in / fan-out
673
+ shapes, `molBench`, and seven of the rectangular / layered DAG
674
+ shapes). Top-3 count: **29/47**. Since the engine is sha256-identical
675
+ to 1.8.0 across every propagation function, this is the same log
676
+ 1.8.0 published; re-running Andrii's suite would produce host-noise
677
+ drift, not a code-driven delta.
678
+ - **Microscope aggregate on M4 Pro (r.txt):** on the six v3 microscope
679
+ shapes, lite wins vs alien on **MUX +34.9%** (fan-in), **SELECTIVE
680
+ DAG +20.9%**, **DYNAMIC DAG +16.1%**, and **BROADCAST +5.2%**
681
+ (narrowed from +9.4% on 1.8.0 but still on the win side of parity).
682
+ The wins hold within noise of the 1.8.0 M4 Pro sweep despite the two
683
+ `[Symbol.dispose]` stamp lines added at effect / createScope
684
+ creation, which is what "one existence guard per cold creation path,
685
+ nothing on the propagation hot path" looks like in the propagation
686
+ numbers. Alien ahead on **KAIROS -19.5%** (widened from -15.9% on
687
+ 1.8.0 -- host-noise drift on the shape where lite is architecturally
688
+ weakest) and **DEEP CHAIN -72.8%** (the architectural weak spot:
689
+ recursive JS-stack computed resolution against alien's flatter
690
+ chain). Speed wins vs alien: **4/6**; heap wins: **5/6** with the
691
+ sixth being a shared-zero on BROADCAST.
692
+ - **Microscope heap (the actual story) on M4 Pro:** on every shape
693
+ where GC pressure exists at all, lite allocates **one to four orders
694
+ of magnitude less transient heap than alien** -- DEEP CHAIN 0.5 KB vs
695
+ 1062 KB (>2000x, on the shape lite loses on time), MUX 0 KB vs 781
696
+ KB, KAIROS 23 KB vs 802 KB (34.3x), DYNAMIC DAG 3.4 MB vs 55.7 MB
697
+ (16.6x), SELECTIVE DAG 7.7 MB vs 76.5 MB (9.9x). Against
698
+ preact-signals and solid-signals the heap gap is even wider on the
699
+ fan-in / fan-out family; solid allocates ~17 MB on MUX and ~15 MB on
700
+ SELECTIVE DAG where lite allocates 0 KB and 7.7 MB on the same
701
+ shapes. The differentiated position is ALLOCATION, not raw
702
+ propagation speed -- competitive-to-winning throughput with
703
+ dramatically lower GC pressure, and that is the headline that
704
+ reproduces across hosts.
705
+ - **Mirror sweep on M4 Pro (rb.txt):** Andrii's canonical 47-shape
706
+ suite re-run isolated-per-row lite vs alien on M4 Pro reproduces the
707
+ same honest framing: lite runs **parity-to-behind alien on
708
+ throughput** across the head-to-head suite (wins outright on **3/47**
709
+ -- `1000x5 - 25 sources (wide dense)` +10.7%,
710
+ `manySourcesIntoOneComputedEffectWithDirect` +31.5%,
711
+ `manySourcesIntoOneComputedEffect` +30.2%; `molBench` dropped from a
712
+ razor-thin +0.3% win on 1.8.0 to -0.4% parity this sweep, taking the
713
+ outright-win count from 4/47 to 3/47), weak on the deep/layered-burst
714
+ family. That head-to-head result and the "3rd of 15 with 20 outright
715
+ wins" both live on the same Andrii log and are not contradictory: the
716
+ outright-of-15 rankings look at each shape across every framework in
717
+ the field, so shapes where alien beats lite by 20-30% but reflex
718
+ beats both and everyone else is slower can still count as a lite
719
+ outright win when measured that way.
720
+ - **Third-party engine versions carried forward** from the 1.8.0 sweep
721
+ (alien-signals 3.2.1, @preact/signals-core 1.14.2, @vue/reactivity
722
+ 3.5.35, solid-js 1.9.13). No peer bumps this cycle; the deltas here
723
+ are the 1.9 engine's own footprint (the two `[Symbol.dispose]` stamp
724
+ lines) plus host noise.
725
+
726
+ ### Migration
727
+
728
+ Zero work for every existing user. Symbol.dispose is additive; nothing
729
+ that worked before behaves differently. `getOwner` / `runWithOwner`
730
+ cascade forward from every prior 1.x line without semantic change.
731
+
732
+ - **Node 20 / 22 users**: manual `.[Symbol.dispose]()` calls work
733
+ today, the `using` syntax lights up when you upgrade to Node 24.
734
+ - **Node < 20 users**: `SYMBOL_DISPOSE` is `null` and every stamp site
735
+ short-circuits at the guard. The engine behaves byte-identically to
736
+ 1.8.0 modulo the two guard branches on creation.
737
+ - **Users of the `getOwner` / `runWithOwner` idiom from 1.5.0-beta.3
738
+ onward**: continues to work, same signatures, same handle
739
+ gen-guarantees.
740
+
7
741
  ## [1.8.0-preview] -- 2026-07-XX
8
742
 
9
743
  The **effect cleanup return** minor -- Reflex-study pattern A. One additive
@@ -304,9 +1038,9 @@ monomorphic targets and inlines the body. In "eager" mode the inlined body is
304
1038
  byte-identical to the 1.6.0 inline check `if (batchDepth === 0) flushEffects()`
305
1039
  -- **zero behavioral or performance regression** for any existing user.
306
1040
 
307
- This is NOT ledger §0b #6 (per-call closure-var load of a primitive). It is a
1041
+ This is NOT ledger S0b #6 (per-call closure-var load of a primitive). It is a
308
1042
  hoisted function reference resolved once at registry build time and is a NEW
309
- mechanism by the v1 roadmap §0b line 100 definition.
1043
+ mechanism by the v1 roadmap S0b line 100 definition.
310
1044
 
311
1045
  The `getOwner` / `runWithOwner` port adds new user-API functions but touches no
312
1046
  hot path. sha256 over the extracted function bodies of `pullComputed`,
@@ -351,7 +1085,7 @@ pristine 1.7.0-preview byte-for-byte; the two new functions are inserted between
351
1085
 
352
1086
  Real wins, but smaller than the gap to Reflex on the same shapes. The residual
353
1087
  gap is structural (per-write `gen` check, batch-revert epoch tracking, global
354
- version bumping) -- design decisions accepted by §0b and not in scope here.
1088
+ version bumping) -- design decisions accepted by S0b and not in scope here.
355
1089
  Modern V8's `try/finally` elision varies; expect higher absolute speedups on
356
1090
  production V8 than on this sandbox.
357
1091
 
@@ -491,7 +1225,7 @@ they produce are reproducible, comparable, and engine-version-aware.
491
1225
 
492
1226
  - **Full suite green** against the 1.6.0 engine: 443 tests, 442 pass, 0 fail,
493
1227
  1 skip (only the architecturally-N/A SSR case in `17-reactivity`). +4
494
- `createScope` tests in `test/28-scope_test.mjs`; the 1.5.0 box and createRoot
1228
+ `createScope` tests in `test/29-scope.test.mjs`; the 1.5.0 box and createRoot
495
1229
  suites carry forward unchanged. **Coverage** (c8@11, Node 22): `Signal.js`
496
1230
  100% statements / 96.96% branches / 100% functions / 100% lines; `Watch.js`
497
1231
  100% across all four. The branch drop vs 1.5.0 (97.35% -> 96.96%) is the
@@ -576,7 +1310,7 @@ dependency and updates correctly; a `computedBox` that reads a callable
576
1310
  the introspection surface all apply uniformly -- a box node is indistinguishable
577
1311
  from a callable node to the graph, the owner tree, and devtools.
578
1312
 
579
- ### Added -- `test/24-signalbox_test.mjs` activated (9 tests)
1313
+ ### Added -- `test/24-signalbox.test.mjs` activated (9 tests)
580
1314
 
581
1315
  The suite that was committed-but-skipped since 1.3.0 now runs against the real
582
1316
  implementation: box get/set/peek/update, computedBox derive + memoize,
@@ -623,7 +1357,7 @@ survives consumer re-runs.
623
1357
  - **Full suite green** against the 1.5.0 engine: 439 tests, 438 pass, 0 fail,
624
1358
  1 skip (only the architecturally-N/A SSR case in `17-reactivity`; the 9
625
1359
  `24-signalbox` tests are now active, +6 `createRoot` tests in
626
- `test/27-create-root_test.mjs`, +3 box-coverage tests). **Coverage** (c8@11,
1360
+ `test/27-create-root.test.mjs`, +3 box-coverage tests). **Coverage** (c8@11,
627
1361
  Node 22): `Signal.js` 100% statements / 97.35% branches / 100% functions / 100%
628
1362
  lines; `Watch.js` 100% across all four.
629
1363
  - **Box hot path is zero-GC**: 200,000 writes through a 256-wide box graph,
@@ -858,7 +1592,7 @@ What `createNode` still writes are the *lifetime* writes for the new resident:
858
1592
  the new lifetime), plus the conditional owner-adoption splice
859
1593
  (`owner`, `nextOwned`, parent chain link).
860
1594
 
861
- ### Added -- `test/10-free-list-invariant_test.mjs`
1595
+ ### Added -- `test/10-free-list-invariant.test.mjs`
862
1596
 
863
1597
  A three-test invariant suite that asserts the audit's claim by inspecting
864
1598
  freshly-allocated nodes' underlying field state (via the documented
@@ -876,7 +1610,7 @@ If any future change reintroduces a write to a clean-state field on the
876
1610
  dispose path or removes a write that turns out NOT to be redundant, this
877
1611
  suite catches it.
878
1612
 
879
- ### Added -- `test/11-devtools-contract_test.mjs`
1613
+ ### Added -- `test/11-devtools-contract.test.mjs`
880
1614
 
881
1615
  A 12-test smoke probe of the introspection surface that lite-devtools 1.1 /
882
1616
  lite-studio 1.1 consume. Verifies handle resolution + walkers, owner-tree
@@ -1223,7 +1957,7 @@ over 1.1.4, no breaking changes.
1223
1957
  shape kept uniform (monomorphic). **Zero steady-state cost.**
1224
1958
 
1225
1959
  ### Test suite
1226
- - Added `test/15-identity_test.mjs`: 5 tests -- ids unique + stable, `nodeId`/`describe`
1960
+ - Added `test/15-identity.test.mjs`: 5 tests -- ids unique + stable, `nodeId`/`describe`
1227
1961
  undefined on non-handles, descriptor shape `{ id, kind, value }`, descriptors re-walkable,
1228
1962
  identity walks non-perturbing.
1229
1963
 
@@ -1275,7 +2009,7 @@ All accept a public `Signal`/`Computed` handle.
1275
2009
  on a non-handle argument; `observeObservers` throws `TypeError`.
1276
2010
 
1277
2011
  ### Test suite
1278
- - Added `test/13-introspection_test.mjs`: 10 tests across 3 describe blocks --
2012
+ - Added `test/13-introspection.test.mjs`: 10 tests across 3 describe blocks --
1279
2013
  `hasObservers` (live observation reflects, peek doesn't count), `observeObservers`
1280
2014
  auto-pause lifecycle (start-on-first/stop-on-last, no extra connect for a 2nd
1281
2015
  observer, re-observe fires again, no churn on re-track, conditional reads toggle
@@ -1319,7 +2053,7 @@ allocation on whether the read will actually subscribe anything.
1319
2053
  Roughly 1-2 ns per call.
1320
2054
 
1321
2055
  ### Test suite
1322
- - Added `test/10-is-tracking_test.mjs`: 11 tests across 5 describe blocks --
2056
+ - Added `test/10-is-tracking.test.mjs`: 11 tests across 5 describe blocks --
1323
2057
  observer-bodies (effect + computed), untracked windows (`untrack`, `subscribe`
1324
2058
  callback, `onCleanup`, `watch` callback), outside-observer (module scope,
1325
2059
  call-site of unobserved computed read), robustness (state restored after