@zakkster/lite-signal 1.6.0-preview.2 → 1.6.0-rc
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 +635 -63
- package/README.md +344 -109
- package/Signal.d.ts +66 -0
- package/Signal.js +254 -3
- package/llms.txt +281 -103
- package/package.json +40 -11
package/CHANGELOG.md
CHANGED
|
@@ -4,16 +4,314 @@ 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.6.0] -- 2026-
|
|
8
|
-
|
|
9
|
-
The
|
|
10
|
-
|
|
7
|
+
## [1.6.0-rc] -- 2026-09-05
|
|
8
|
+
|
|
9
|
+
The release-candidate hardening pass. **No engine change past the version banner
|
|
10
|
+
comment** -- `Signal.js` hot paths are byte-identical to beta-1 (shasum-verified
|
|
11
|
+
before and after, and a line diff against the canonical 1.5.0 engine confirmed
|
|
12
|
+
1.6.0 is a strict superset: nothing from the 1.5.0 line is missing here). What
|
|
13
|
+
moves is the entire verification surface: the canonical repo's audited 1.5.0
|
|
14
|
+
torture/harness/test infrastructure is merged in, re-targeted to this engine, and
|
|
15
|
+
then extended with 1.6.0-only gates.
|
|
16
|
+
|
|
17
|
+
### Changed -- torture suite: 22 -> 27 scenarios, three-state protocol
|
|
18
|
+
|
|
19
|
+
`bench/torture/run.mjs` now registers **27 scenarios (23 semantic + 4 soak, one
|
|
20
|
+
opt-in)** under the audited runner protocol: skips exit 77 and version floors are
|
|
21
|
+
ENFORCED (a scenario that skips while the engine is at/above its floor FAILS the
|
|
22
|
+
run -- a dropped export cannot be a green skip), scenario wall-clock is capped,
|
|
23
|
+
and a PASS that asserted nothing is a failure. Ported from the canonical line:
|
|
24
|
+
`contract-torture`, `interop-torture`, `retrack-dispose-torture`, and the opt-in
|
|
25
|
+
full-distance `wraparound-torture` (the 2^31 dormancy band re-verified at
|
|
26
|
+
~2.1B-spin distance ON THIS ENGINE, 12/12 -- the version-compare expressions are
|
|
27
|
+
byte-identical to 1.5.0). Every 1.5.0-observed behavioral pin re-verified
|
|
28
|
+
UNCHANGED here -- zero pin flips. On this engine the runner executes 20 semantic
|
|
29
|
+
scenarios with 3 legitimate floor skips (flush 1.7, cleanup-return 1.8,
|
|
30
|
+
Symbol.dispose 1.9); `scope-torture` and the owner/lifecycle lanes run natively.
|
|
31
|
+
|
|
32
|
+
### Added -- the 1.6 flush lane gated engine-raw: `burst-profile-torture`
|
|
33
|
+
|
|
34
|
+
A new semantic scenario (floor 1.6.0) pins opcodes 6/7 + `stats().flushPasses`
|
|
35
|
+
exactly, with no devtools dependency: a B-write batch over K effects emits
|
|
36
|
+
exactly K op-7 enqueues (coalescing == 1.0x visible BEFORE any body runs),
|
|
37
|
+
1000-burst linear accounting with zero drift, a D-stage cross-effect cascade
|
|
38
|
+
drains in exactly D passes with strict 7,6,7,6 alternation (the double-buffer
|
|
39
|
+
contract), a self-write takes one pass with no re-enqueue yet stays responsive
|
|
40
|
+
to external writes, the counter is FROZEN while no mutation hook is attached,
|
|
41
|
+
`destroy()` resets it, and the stat agrees with the op-6 count to the integer.
|
|
42
|
+
`BURST_BREAK=drop7` / `=ghost6` fault-injection self-tests prove the pins fire
|
|
43
|
+
(both exit 1). `contract-torture` adds the abnormal-path pins: a throwing
|
|
44
|
+
batch's finally-flush counts exactly ONE pass, and `CycleError` counts exactly
|
|
45
|
+
`maxFlushPasses` completed passes.
|
|
46
|
+
|
|
47
|
+
### Added -- zero-GC scope lanes
|
|
48
|
+
|
|
49
|
+
`zerogc-torture` gains **churn-scope** (createScope adopt + cascade-dispose
|
|
50
|
+
churn under the sub-object retention floor + exact counters, with an in-loop
|
|
51
|
+
value check that crashes the lane on corruption instead of greenly measuring)
|
|
52
|
+
and **bounded-scope**, the zero-slack NODE twin of the link-graveyard witness:
|
|
53
|
+
`maxNodes:4` leaves nothing spare beyond the base signal, so the scope owner
|
|
54
|
+
node -- which no other churn lane covers -- plus the adopted computed+effect
|
|
55
|
+
must ALL recycle on the single disposer; 200,000 cycles with EXACT allocation
|
|
56
|
+
ledgers (3 per cycle). 56 asserts total; `ZEROGC_BREAK=1`/`=transient`
|
|
57
|
+
self-tests still exit 1.
|
|
58
|
+
|
|
59
|
+
### Changed -- devtools pairing: lite-devtools 1.6.2 (burst tier LIVE)
|
|
60
|
+
|
|
61
|
+
devDependency `^1.2.0 -> ^1.6.2`; `test/25-devtools-real-boot` is rewritten
|
|
62
|
+
against the probed 1.6.2 x 1.6.0 ground truth: 22 function exports + the
|
|
63
|
+
`VERSION` const pinned, the FULL 13-key `capabilities()` fingerprint asserted
|
|
64
|
+
as an exact key set (`scopes:T burst:T statsKeys:14`, `flushControl:F
|
|
65
|
+
cleanupReturn:F` -- a silent capability drift now fails loudly),
|
|
66
|
+
`burstProfile()` is live and its stop()-summary is pinned exactly (a 3-write
|
|
67
|
+
batch = `passes:1, perPass:[1]`), and the 1.6.x `Symbol.dispose` stopper stamps
|
|
68
|
+
are asserted (`off[Symbol.dispose] === off`, `h[Symbol.dispose] === h.stop`).
|
|
69
|
+
The devtools zero-GC probe ports as `test/32` (canonical's test 31, renumbered
|
|
70
|
+
around this line's `31-config-validation`). `@zakkster/lite-gc-profiler` moves
|
|
71
|
+
`^1.15.0 -> ^1.16.0` with the per-scenario churn-floor refactor already carried
|
|
72
|
+
by the ported `zerogc-torture` (steady lanes still gate at exactly 0 B/call).
|
|
73
|
+
|
|
74
|
+
### Added -- harness instruments + VersionMatrix lanes (canonical parity)
|
|
75
|
+
|
|
76
|
+
`harness/` gains the canonical attribution program: `visit-anatomy` (the
|
|
77
|
+
instrumented-engine structural-counter gate -- **all 21 exact pins hold on this
|
|
78
|
+
engine unchanged**, including the clean-short-circuit gate: 64 scHit/pull and
|
|
79
|
+
`depWalk == 0` on unrelated reads), `jit-health --strict` (all four handle
|
|
80
|
+
families MONOMORPHIC; deopt census baseline recorded for Node 26),
|
|
81
|
+
`creation-anatomy`/`costmodel`/`floors`/`trend`/`burst-real`, and the repaired
|
|
82
|
+
`creation-isolated`. VersionMatrix carries the calibrated read lane + the
|
|
83
|
+
exact-counter creation-churn lane (288 allocs/frame, 0 poolGrowths, zero
|
|
84
|
+
tolerance). Creation cost measured IDENTICAL to 1.5.0 (signal 27.2 vs 27.1
|
|
85
|
+
ns/op, signalBox 19.8 vs 19.9) -- the +19% cross-folder lead the trend
|
|
86
|
+
instrument flagged at beta-1 does not reproduce on this folder's own gate.
|
|
87
|
+
|
|
88
|
+
### Fixed -- repo hygiene
|
|
89
|
+
|
|
90
|
+
- `test/28-scope.test.mjs` removed: byte-identical duplicate of `29-scope`
|
|
91
|
+
(collided with `28-run-with-owner`; inflated the suite by 4 tests).
|
|
92
|
+
- `test/zgc` positive control re-armed for Node 26: V8's adaptive/MinorMS
|
|
93
|
+
nursery absorbed the old 1-object-per-iter planted volume at 2 scavenges
|
|
94
|
+
(under the > MAX_SCAVENGES+3 budget) -- the meter still worked, it was
|
|
95
|
+
under-fed. Four fresh objects per iteration (~50 MB/run, mostly dropped)
|
|
96
|
+
restore a double-digit margin; negative control untouched. 7/7.
|
|
97
|
+
- `test:hardening` unbroken: the `test/ProfilerTests` sub-package it points at
|
|
98
|
+
now ships in-tree (ported from canonical).
|
|
99
|
+
- Stale `bench-reactive` script removed (its target was deleted at beta with
|
|
100
|
+
the bench-reactive-legacy deprecation; bench protocol v3 `mirror`/`sweep` is
|
|
101
|
+
the cross-framework instrument).
|
|
102
|
+
- Demos: both demos carry the 1.5.0-surface panels plus a new **v1.6 - scope**
|
|
103
|
+
control (createScope adopt/dispose with live readout; browser-verified, zero
|
|
104
|
+
console errors, exact node-count deltas). Non-shipping.
|
|
105
|
+
|
|
106
|
+
### Verified (full ladder, this host, Node 26)
|
|
107
|
+
|
|
108
|
+
| gate | result |
|
|
109
|
+
| ---- | ------ |
|
|
110
|
+
| `npm test` / `test:gc` | 522/521/0 fail/1 skip · 530/529/0/1 |
|
|
111
|
+
| `npm run torture` | 27 registered: 23 pass, 4 legit skips, 0 fail |
|
|
112
|
+
| `TORTURE_WRAPAROUND=1` full-distance soak | PASS 12/12 (~51s) |
|
|
113
|
+
| `test:zgc` + `test:zgc:report` | 7/7 · ZERO-GC GATE PASS 3/3 |
|
|
114
|
+
| `test:hardening` / `test:harness` | 22/0/6 · 5/5 |
|
|
115
|
+
| `zerogc-torture` + both `ZEROGC_BREAK` modes | 56 asserts; both breaks exit 1 |
|
|
116
|
+
| `burst-profile-torture` + both `BURST_BREAK` modes | 26 asserts; both breaks exit 1 |
|
|
117
|
+
| `visit-anatomy --verify` | 21/21 exact pins |
|
|
118
|
+
| `jit-health --strict` | 4/4 monomorphic; baseline pinned |
|
|
119
|
+
| `npm run gate` (VersionMatrix pre-publish) | **GATE PASSED 5/5** vs floor 1.3.0 + rolling 1.5.0, same-host interleaved capture; creation counters exact (288 allocs/frame, 0 growths); per-workload sinks identical across all three versions |
|
|
120
|
+
|
|
121
|
+
## [1.6.0-beta-1] -- 2026-08-20
|
|
122
|
+
|
|
123
|
+
Backports the **1.4.5 `createRegistry` input validation** (all four findings) onto
|
|
124
|
+
the 1.6.0-beta engine. Supersedes 1.6.0-beta. Only `createRegistry`'s *cold*
|
|
125
|
+
construction path changed -- the hot paths are byte-identical and the zero-GC gates
|
|
126
|
+
(`bench/torture/run.mjs` 22/22) are unchanged. If you had a typo in your registry
|
|
127
|
+
config, you will now hear about it.
|
|
128
|
+
|
|
129
|
+
### Added -- createRegistry validates its config (fail closed)
|
|
130
|
+
|
|
131
|
+
- **Bounded eager construction.** `prealloc:"eager"` with a non-finite or absurd
|
|
132
|
+
capacity (`maxNodes:Infinity`, `maxNodes:1e9`) previously ran an unbounded
|
|
133
|
+
construction loop and killed the process with an **uncatchable SIGABRT**. It now
|
|
134
|
+
throws a `TypeError` **by name**, before allocating, gated on `(maxNodes+maxLinks)`
|
|
135
|
+
against a ceiling of `1<<24` (16,777,216) objects. `prealloc:"lazy"` keeps its
|
|
136
|
+
unbounded on-demand ledger, untouched.
|
|
137
|
+
- **Per-option validation by name.** `maxNodes` / `maxLinks` / `maxFlushPasses` must
|
|
138
|
+
be finite integers `>= 1`; `prealloc` must be exactly `"eager"` | `"lazy"`;
|
|
139
|
+
`onCapacityExceeded` must be exactly `"throw"` | `"grow"`. Each bad value throws a
|
|
140
|
+
`TypeError` prefixed `createRegistry: "<option>"` at construction -- not a delayed
|
|
141
|
+
internal `nextFree` TypeError on first use.
|
|
142
|
+
- **Config-shape gate.** A non-object, `null`, or array `config` throws
|
|
143
|
+
`createRegistry: "config"` rather than dying later.
|
|
144
|
+
- **Unknown-key rejection with did-you-mean.** An unrecognized key throws with a
|
|
145
|
+
Levenshtein suggestion (`maxNods` -> `maxNodes`, `preAlloc` -> `prealloc`) instead
|
|
146
|
+
of being silently ignored.
|
|
147
|
+
- **`stats()` gains `nodePoolPopulation` / `linkPoolPopulation`** -- the TRUE count
|
|
148
|
+
of physically constructed nodes/links, distinct from the `*Capacity` ledgers. A
|
|
149
|
+
silently mis-set `prealloc` is now observable (population 0 under lazy) instead of
|
|
150
|
+
telemetry-blind. **The one observable API change: `stats()` grows to 14 keys,
|
|
151
|
+
purely additive** -- no existing key changed; only an exact key-*count* assertion
|
|
152
|
+
is affected (updated in `test/03-pool.test.mjs`).
|
|
153
|
+
|
|
154
|
+
### Tests
|
|
155
|
+
|
|
156
|
+
New `test/*-config-validation.test.mjs` adds the full config matrix, the did-you-mean
|
|
157
|
+
cases, the eager ceiling, the population contract, and the three OOM rows as isolated
|
|
158
|
+
child-process cases proving the fixed engine throws + exits 0 under a 256 MB cap where
|
|
159
|
+
the unvalidated engine died.
|
|
160
|
+
|
|
161
|
+
## [1.6.0-beta] -- 2026-07-27
|
|
162
|
+
|
|
163
|
+
Promotes `1.6.0-alpha.0` to the `beta` dist-tag. The engine gains one behavioural
|
|
164
|
+
fix over alpha.0 -- the dangling re-tracking cursor crash below, which touches
|
|
165
|
+
`disposeNode` / `freeLink` -- plus 100% branch coverage and a completed torture
|
|
166
|
+
surface; `createScope`, the `flushPasses` stat, and the op-6 / op-7 mutation-hook
|
|
167
|
+
opcodes are carried forward from alpha.0 unchanged.
|
|
168
|
+
|
|
169
|
+
### Added -- torture suite completed: `introspect-torture`, and `scope-torture` now runs
|
|
170
|
+
|
|
171
|
+
`bench/torture/run.mjs` now registers **22 scenarios (19 semantic + 3 soak)** --
|
|
172
|
+
full parity with the shipped 1.4.4 sibling, the forward-compatible superset
|
|
173
|
+
through 1.9. This is a **verification-only** parity pass: the engine
|
|
174
|
+
(`Signal.js` / `Signal.d.ts`) is **UNCHANGED** -- byte-identical shasum before
|
|
175
|
+
and after. Two changes matter on the 1.6.0 engine
|
|
176
|
+
specifically. First, **`scope-torture`** -- present but feature-skipped on
|
|
177
|
+
the 1.5.0 line -- now **executes**, since `createScope` exists: it fuzzes the
|
|
178
|
+
adoption contract (computeds/effects adopted, plain signals not; the
|
|
179
|
+
`signals + computeds + effects === activeNodes` invariant), the disposal-crash
|
|
180
|
+
repro and a 300-seed fuzz of it, `runWithOwner` re-attachment into a scope, and
|
|
181
|
+
pool balance over 200 scope rounds on a hard-ceiling registry. Second, a new
|
|
182
|
+
semantic scenario **`introspect-torture`** closes the one 1.6.0 gap the rest of
|
|
183
|
+
the suite left open: the read-only introspection surface
|
|
184
|
+
(`describe` / `nodeId` / `hasObservers` / `isTracking` /
|
|
185
|
+
`forEachObserver` / `forEachSource` / `forEachOwned` / `ownerOf` /
|
|
186
|
+
`observeObservers`) that lite-devtools and lite-studio build on. Because these
|
|
187
|
+
calls cannot corrupt a value, every value/wakeup/work oracle is blind to them --
|
|
188
|
+
so a wrong `hasObservers` or a `forEachSource` that skips a link is a silent
|
|
189
|
+
correctness bug in every tool that trusts it. It pins two load-bearing
|
|
190
|
+
properties: **walk agreement** (the source/observer walk must match the real edge
|
|
191
|
+
set and track dynamic rewiring, cross-checked against both the reference dep set
|
|
192
|
+
and the op-3/op-4 link lane) and **the ABA gen-stamp guard** (a descriptor
|
|
193
|
+
captured before a node is disposed and its slot recycled must resolve to nothing,
|
|
194
|
+
never the new resident -- the only scenario that catches this guard's removal).
|
|
195
|
+
|
|
196
|
+
Beyond `scope-torture` and `introspect-torture`, five further scenarios are
|
|
197
|
+
ported from the 1.4.4 sibling to close the parity gap: **`lifecycle-torture`**
|
|
198
|
+
(createRoot detachment + destroy registry reset), **`owner-torture`** (getOwner /
|
|
199
|
+
runWithOwner capture-restore, live-adoption cascade, and stale-handle ABA
|
|
200
|
+
degradation to rooted), **`error-torture`** (throwing effect bodies: per-effect
|
|
201
|
+
buffering, single re-throw vs `AggregateError`, and a 4096-cycle buffer drain),
|
|
202
|
+
**`deep-chain-torture`** (pullComputed recursion fail-closed with a `RangeError`
|
|
203
|
+
vs the iterative push path), and **`zerogc-torture`** (the zero-GC hot path made
|
|
204
|
+
falsifiable via `measureAllocs` / `measureOps` + `stats()` counters, with a
|
|
205
|
+
`ZEROGC_BREAK` self-test). Because 1.6.0 ships `createScope` / `getOwner` /
|
|
206
|
+
`runWithOwner` / `createRoot` **natively**, the owner/scope/createRoot scenarios
|
|
207
|
+
that SKIPPED on 1.4.4 (which lacks `createScope`) **run natively here** and passed
|
|
208
|
+
exactly as written -- no assertion needed pinning to a divergent behaviour; the
|
|
209
|
+
`churn-box` lane in `zerogc-torture` activates because `signalBox` exists. The
|
|
210
|
+
three soaks (`graph-fuzzer`, `scheduler-bench`, `torture-soak`) gain a
|
|
211
|
+
value-correctness oracle: a preallocated `Int32Array` shadow of every signal,
|
|
212
|
+
checked over a rotating window per tick and swept in full at teardown, alongside
|
|
213
|
+
the existing liveness assertions and the module-scoped int32 JIT sink.
|
|
214
|
+
|
|
215
|
+
Every scenario feature-detects and **skips cleanly** below the engine version
|
|
216
|
+
that introduces its feature, so on the 1.6.0 engine the runner executes **16
|
|
217
|
+
semantic** scenarios and reports a clean SKIP for the three later-version ones
|
|
218
|
+
(`flush-torture` 1.7.0, `cleanup-return-torture` 1.8.0, `dispose-torture` 1.9.0).
|
|
219
|
+
|
|
220
|
+
### Changed -- test file numbering collision fixed
|
|
221
|
+
|
|
222
|
+
The new `createScope` unit file shipped as `test/28-scope.test.mjs`, colliding on
|
|
223
|
+
the `28-` prefix with `test/28-run-with-owner.test.mjs` (getOwner/runWithOwner).
|
|
224
|
+
It is renamed to `test/29-scope.test.mjs`. Both always ran under the
|
|
225
|
+
`test/*.test.mjs` glob; the rename only restores the one-file-per-number
|
|
226
|
+
convention.
|
|
227
|
+
|
|
228
|
+
A new unit file **`test/30-throwing-equals.test.mjs`** (numbered 30 -- 28 is
|
|
229
|
+
still occupied by both `28-run-with-owner` and the renamed history, and 29 is
|
|
230
|
+
taken) pins the behaviour of a user `equals` predicate that throws. It covers all
|
|
231
|
+
five physical `eq()` sites: the three callable sites (signal set pre-check
|
|
232
|
+
:1105, batch-revert check :1112, computed re-eval :986) with a contrast
|
|
233
|
+
anti-tautology test, plus the two `signalBox` boxSet sites (pre-check :1210,
|
|
234
|
+
revert :1217) -- confirmed to behave identically to the callable path.
|
|
235
|
+
|
|
236
|
+
### Verified -- full suite green on the 1.6.0 engine (Node 22, `--expose-gc`)
|
|
237
|
+
|
|
238
|
+
- **Torture:** 22/22 -- `torture:semantic` 19/19 (16 executed, 3 clean skips),
|
|
239
|
+
`torture:soak` 3/3 (zero errors, value oracle clean, every pool back to its
|
|
240
|
+
leaf-only floor).
|
|
241
|
+
- **Unit:** 472 tests, 471 pass, 0 fail, 1 skip (the architectural SSR N/A in
|
|
242
|
+
`17-reactivity`), measured with the sibling `@zakkster/lite-devtools` resolvable
|
|
243
|
+
so the 10-test `test/25-devtools-real-boot` real-rig runs. The +9 over the
|
|
244
|
+
previous cut is the new `test/30-throwing-equals.test.mjs` (throwing-`equals`
|
|
245
|
+
site audit). Without the devtools sibling the 10 real-boot tests do not pass;
|
|
246
|
+
that rig is the only sibling-dependent surface.
|
|
247
|
+
|
|
248
|
+
### Removed -- `bench-reactive-legacy` (deprecated in 1.5.0)
|
|
249
|
+
|
|
250
|
+
The pre-v3 five-framework reactivity suite is removed, per the 1.5.0 deprecation
|
|
251
|
+
(one-release window through 1.5.1). Cross-framework standing comes from the bench
|
|
252
|
+
protocol v3 **mirror** (`bench/mirror.mjs --self-verify` + `bench/sweep.mjs`).
|
|
253
|
+
|
|
254
|
+
### Changed -- bench protocol v3 (carried forward)
|
|
255
|
+
|
|
256
|
+
The `bench/` harness is bench protocol v3: three instruments (microscope / mirror /
|
|
257
|
+
version-economics), each with a fixed config and a machine-generated `#STAMP`
|
|
258
|
+
(engine + harness sha256, live registry config, host, node). See `bench/README.md`.
|
|
259
|
+
|
|
260
|
+
### Added -- Coveralls coverage badge
|
|
261
|
+
|
|
262
|
+
README carries a Coveralls badge; lcov is produced by `npm run test:report`
|
|
263
|
+
(`coveralls-next` in devDependencies).
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Fixed -- dangling re-tracking cursor on source disposal (crash)
|
|
267
|
+
|
|
268
|
+
Disposing a signal/computed from inside an observer that had linked it on the
|
|
269
|
+
previous run, but had not yet re-read it on the current run, crashed with
|
|
270
|
+
`TypeError: Cannot set properties of null (setting 'headSub')`. `disposeNode`'s
|
|
271
|
+
sub-list teardown freed the link while the observer's re-tracking cursor
|
|
272
|
+
(`activeObserverCurrentDep`) was still parked on it; `severTail` then walked from
|
|
273
|
+
a freed link, wiped the observer's `headDep`, and double-freed the link. Reachable
|
|
274
|
+
from the plain public API (see `COVERAGE-NOTES.md` for the repro). Fixed with a
|
|
275
|
+
one-line cursor repair in `disposeNode` (advance the cursor to the next surviving
|
|
276
|
+
dep before the free); O(1), disposal path only, no steady-state cost. The now-dead
|
|
277
|
+
`freeLink` `-1` defensive ternaries were removed with it. Pinned by a regression
|
|
278
|
+
test in `test/12-coverage.test.mjs`.
|
|
279
|
+
|
|
280
|
+
**Hot-path parity note:** this touches `disposeNode` and `freeLink`, so their
|
|
281
|
+
sha256 no longer matches the `1.6.0-alpha.0` baseline. The steady-state read /
|
|
282
|
+
propagation bodies (`pullComputed`, `markDownstream`, `executeEffect`,
|
|
283
|
+
`flushEffects`, `allocateLink`, `severTail`, `createNode`, `runCleanup`) are
|
|
284
|
+
unchanged. Re-baseline the VersionMatrix engine sha256 on the next publish.
|
|
285
|
+
|
|
286
|
+
### Changed -- branch coverage closed to 100%
|
|
287
|
+
|
|
288
|
+
Branch coverage on `Signal.js` went `96.96% -> 100%`. The gap the `1.6.0-alpha.0`
|
|
289
|
+
notes described -- the hook-attached side of the new op-6 / op-7 gates, which the
|
|
290
|
+
active suite never exercised because it never attached a hook -- is now closed by
|
|
291
|
+
a test that attaches a mutation hook and asserts both opcodes fire on the flush
|
|
292
|
+
path. Alongside it: the three reachable branches ported from the 1.4.0-rc pass
|
|
293
|
+
(`allocateLink` dead-target, `executeEffect` scheduler re-entrancy, `computed`
|
|
294
|
+
stale-handle read), the 1.5.0 box + owner surface (box stale-handle guards,
|
|
295
|
+
`computedBox` `equals`, top-level `getOwner` / `runWithOwner`), and the two
|
|
296
|
+
provably-unreachable clamps (link-ledger, `batchEpoch` wraparound) now carrying
|
|
297
|
+
`/* c8 ignore */` with proofs. See `COVERAGE-NOTES.md`; reconfirm under codify.
|
|
298
|
+
|
|
299
|
+
## [1.6.0-alpha.0] -- 2026-07-XX
|
|
300
|
+
|
|
301
|
+
The observability-and-lifecycle minor, shipping on the `alpha` dist-tag while it
|
|
302
|
+
settles. Three additions: `stats()` gains a twelfth key, **`flushPasses`**, plus two
|
|
11
303
|
flush-profiling mutation-hook opcodes -- the flush/recompute dimension
|
|
12
|
-
lite-devtools 1.2 / lite-studio 1.2 read through `watchAllocations`;
|
|
13
|
-
**`createScope(fn)
|
|
14
|
-
`createRoot` that a keyed-list / scene reconciler needs for per-item teardown
|
|
15
|
-
|
|
16
|
-
|
|
304
|
+
lite-devtools 1.2 / lite-studio 1.2 read through `watchAllocations`;
|
|
305
|
+
**`createScope(fn)`**, the disposable-owner counterpart to
|
|
306
|
+
`createRoot` that a keyed-list / scene reconciler needs for per-item teardown;
|
|
307
|
+
and **`getOwner` / `runWithOwner`** carried forward from 1.5.0-beta.2 as the
|
|
308
|
+
capture-and-restore companion to `createRoot`. The engine hot path is **no
|
|
309
|
+
longer byte-identical to 1.5** for the first time since 1.2.2 -- `markDownstream`
|
|
310
|
+
and `flushEffects` picked up hook-gated fires for the two new opcodes -- but
|
|
311
|
+
the gate is a single branch-predicted `null` check per fire site and the
|
|
312
|
+
observable cost only shows on the cheapest propagation shapes (KAIROS, DEEP
|
|
313
|
+
CHAIN); the wide-aggregation and dynamic-DAG wins are unchanged. Drop-in over
|
|
314
|
+
1.5.1-beta.1.
|
|
17
315
|
|
|
18
316
|
### Added -- `flushPasses` on `stats()` + flush-profiling opcodes
|
|
19
317
|
|
|
@@ -26,12 +324,25 @@ the flush dimension:
|
|
|
26
324
|
|
|
27
325
|
Both the counter bump and the opcode dispatch sit behind the existing
|
|
28
326
|
`if (mutationHook !== null)` gate, so when no profiler is attached they are inert:
|
|
29
|
-
`flushPasses` is frozen and the flush loop is byte-identical to 1.5.0
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
327
|
+
`flushPasses` is frozen and the flush loop is byte-identical to 1.5.0 EXCEPT for
|
|
328
|
+
the added `null` check itself. The residual cost is one branch-predicted `null`
|
|
329
|
+
check per fire site (per pass in `flushEffects`, per enqueued dirty subscriber
|
|
330
|
+
in `markDownstream`'s inner loop). Measurable on the very cheapest propagation
|
|
331
|
+
shapes where every iteration matters -- KAIROS moves from -7% -> -12% vs alien
|
|
332
|
+
on the 1.6.0-alpha sweep, DEEP CHAIN from -14% -> -21% -- and invisible on the
|
|
333
|
+
allocation-dominated shapes where the ratio of pool retracking to marker walks
|
|
334
|
+
favors lite by orders of magnitude (SELECTIVE DAG +49%, DYNAMIC DAG +43%, MUX
|
|
335
|
+
+35%, SMALL SELECTIVE +29% -- all unchanged from the 1.5.0-beta sweep). When a
|
|
336
|
+
profiler is actually attached the observable becomes the profiler's own cost and
|
|
337
|
+
the gate itself disappears from the picture. This is what lets `watchAllocations`
|
|
338
|
+
chart recompute/flush activity alongside the 1.4.0 allocation counters
|
|
339
|
+
(`totalAllocations` / `poolGrowths` / `totalDisposals`), which remain available
|
|
340
|
+
from 1.4.0 on every engine -- only the flush series requires 1.6.
|
|
341
|
+
|
|
342
|
+
The `03-pool` test for the `stats()` shape is bumped from "11-key 1.4.0 shape"
|
|
343
|
+
to "12-key 1.6 shape" with `flushPasses` in the expected key list.
|
|
344
|
+
|
|
345
|
+
### Added -- `createScope(fn)` (disposable owner scope)
|
|
35
346
|
|
|
36
347
|
`createScope` runs `fn(dispose)` in a detached scope and returns whatever `fn`
|
|
37
348
|
returns, having handed `fn` a single `dispose` that **cascade-disposes every effect
|
|
@@ -64,26 +375,69 @@ pure-owner node transparently.
|
|
|
64
375
|
Exported as a registry method and a top-level helper bound to the default registry,
|
|
65
376
|
mirroring `createRoot`.
|
|
66
377
|
|
|
378
|
+
### Added -- `getOwner` / `runWithOwner` (carried forward from 1.5.0-beta.2)
|
|
379
|
+
|
|
380
|
+
The re-attach companion to `createRoot`, ported forward from 1.5.0-beta.2
|
|
381
|
+
unchanged. `getOwner()` returns the current owner as an **opaque, gen-stamped
|
|
382
|
+
handle** (or `undefined` outside any effect/computed body); `runWithOwner(handle,
|
|
383
|
+
fn)` runs `fn` with the captured lifecycle scope reinstated so effects/computeds
|
|
384
|
+
created directly in `fn` are adopted by that owner. Nulls the tracking observer
|
|
385
|
+
for the duration of `fn` (same pairing as `createRoot`) so accidental cross-async
|
|
386
|
+
edges cannot form.
|
|
387
|
+
|
|
388
|
+
Handles are gen-stamped (the same `NODE_GEN` ABA-guard machinery
|
|
389
|
+
`describe` / `nodeId` / `forEachOwned` / `ownerOf` have used since 1.2.1) --
|
|
390
|
+
safe to hold across async boundaries. If the captured owner is disposed and
|
|
391
|
+
its pool slot recycled by an unrelated effect via the LIFO free list, the gen
|
|
392
|
+
no longer matches and `runWithOwner` degrades to **rooted execution** rather
|
|
393
|
+
than corrupting the graph. Two hazards on the raw-pointer alternative were
|
|
394
|
+
empirically reproduced against a 1.5.0-beta engine patched with the naive
|
|
395
|
+
implementation (`harness/owner-hazard-repro.mjs`) and are pinned in
|
|
396
|
+
`test/28-run-with-owner.test.mjs`:
|
|
397
|
+
|
|
398
|
+
- **Recycled-slot cascade death** -- capture, dispose owner, allocate a stranger
|
|
399
|
+
effect that reuses the slot, `runWithOwner(captured)` silently adopts
|
|
400
|
+
continuation into the stranger, stranger's re-run cascade-disposes it.
|
|
401
|
+
- **Corpse adoption = engine crash** -- capture, dispose owner but not-yet-
|
|
402
|
+
recycled, `runWithOwner(captured, () => effect(...))` splices a child into
|
|
403
|
+
a disposed owner's `firstOwned` and the next disposal walk recurses without
|
|
404
|
+
termination (`RangeError: Maximum call stack size exceeded`).
|
|
405
|
+
|
|
406
|
+
Both fail on the raw-pointer sketch; both pass on the shipped `describeNode` /
|
|
407
|
+
`liveNode` implementation. Test coverage: 16 tests in `test/28-run-with-owner`
|
|
408
|
+
(basic shape, degradation, and the three hazard pins with allocation pressure
|
|
409
|
+
applied so the ABA guard is genuinely exercised).
|
|
410
|
+
|
|
411
|
+
Exported as registry methods and top-level helpers, mirroring `createRoot` /
|
|
412
|
+
`createScope`.
|
|
413
|
+
|
|
67
414
|
### Added -- characterization harnesses (`burst-dag.mjs`, `pull-stress.mjs`)
|
|
68
415
|
|
|
69
|
-
Two
|
|
70
|
-
surface against the engine's
|
|
71
|
-
(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
(
|
|
82
|
-
|
|
83
|
-
|
|
416
|
+
Two standalone harnesses in `harness/` that exercise the new 1.6.0 instrumentation
|
|
417
|
+
surface against the engine's hot paths, both consuming public `onGraphMutation`
|
|
418
|
+
(opcodes 5/6/7) and both staying out of `npm test` and the published tarball.
|
|
419
|
+
`pull-stress.mjs` imports `../Signal.js` and exposes a CLI + module exports;
|
|
420
|
+
`burst-dag.mjs` takes the engine path as an argument and is CLI-only.
|
|
421
|
+
|
|
422
|
+
**`burst-dag.mjs`** (`npm run profile:burst`, also `node --expose-gc
|
|
423
|
+
harness/burst-dag.mjs <Signal.js>`) reproduces Andrii's actual generator: the
|
|
424
|
+
layer edges use his **verbatim strided picker** (`base = (node*13 + layer*17) %
|
|
425
|
+
prevW`, strided step), `staticFraction = 1` (all-static computeds, per-batch pull
|
|
426
|
+
reads, no effects) -- the real `layered burst flush warm` shape. It runs that
|
|
427
|
+
head-to-head against the earlier contiguous-window guess it embeds and reports
|
|
428
|
+
structure (passes/burst, recomputed, maxRecompute/node, poolGrowths) plus median
|
|
429
|
+
us/burst for each. On 1.6.0-alpha the strided real topology recomputes ~2x the
|
|
430
|
+
nodes (15928 vs 8120) at ~26% higher us/burst, both with `passes = 0` (pure pull,
|
|
431
|
+
nothing to flush) and `maxRecompute/node = 1`: no redundant work either way, so
|
|
432
|
+
the ~2x gap is **locality** on the correct topology. This resolves the ROADMAP S5
|
|
433
|
+
open question (was the contiguous guess faithful to Andrii's generator?). The
|
|
434
|
+
earlier contiguous version -- with its `--width` / `--layers` CLI and its
|
|
435
|
+
`burstDagScenario` / `multiPassProbe` exports for the zero-GC gate -- is archived
|
|
436
|
+
as `harness/attic/burst-dag.mjs`; nothing mounted those exports, so retiring it
|
|
437
|
+
is inert.
|
|
84
438
|
|
|
85
439
|
**`pull-stress.mjs`** (`npm run profile:pull`, also `node --expose-gc
|
|
86
|
-
pull-stress.mjs [--maxDepth=3584 --step=512 ...]`) is the pull-path companion:
|
|
440
|
+
harness/pull-stress.mjs [--maxDepth=3584 --step=512 ...]`) is the pull-path companion:
|
|
87
441
|
characterizes how the recursive pull scales with chain depth and binary-searches
|
|
88
442
|
the exact overflow point. Three answers per run: (1) the exact deepest chain
|
|
89
443
|
that pulls successfully (the roadmap's "~5,000 chained computeds" pinned to a
|
|
@@ -99,24 +453,32 @@ supported and surface a real engine difference (box pulls overflow earlier
|
|
|
99
453
|
because `box.get()` adds a prototype-method frame per level, and cached box
|
|
100
454
|
reads are several times more expensive than cached callable reads).
|
|
101
455
|
|
|
102
|
-
|
|
103
|
-
engine build: point
|
|
104
|
-
(`burst-dag` adapts -- only opcode 5 fires on
|
|
105
|
-
|
|
106
|
-
they produce are reproducible,
|
|
456
|
+
`pull-stress` imports only `../Signal.js`, and `burst-dag` takes the engine path
|
|
457
|
+
as an argument, so both run against any engine build: point them at 1.5.x to
|
|
458
|
+
compare without the new counters (`burst-dag` adapts -- only opcode 5 fires on
|
|
459
|
+
that engine, so `passes` reads 0 -- and `pull-stress` works identically), or at a
|
|
460
|
+
rejected candidate to re-verify on. The numbers they produce are reproducible,
|
|
461
|
+
comparable, and engine-version-aware.
|
|
107
462
|
|
|
108
463
|
### Verified
|
|
109
464
|
|
|
110
|
-
- **Full suite green** against the 1.6.0 engine
|
|
111
|
-
1
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
465
|
+
- **Full suite green** against the 1.6.0-alpha engine (getOwner + runWithOwner
|
|
466
|
+
merged in from 1.5.0-beta.2): **447 tests**, 436 pass, 0 fail, 1 skip
|
|
467
|
+
(only the architecturally-N/A SSR case in `17-reactivity`), 10 cancelled
|
|
468
|
+
(the `25-devtools-real-boot` cases that need `@zakkster/lite-devtools`
|
|
469
|
+
installed as a peer -- pre-existing, unrelated to any 1.6 change). +4
|
|
470
|
+
`createScope` tests in `test/28-scope_test.mjs`; +16 `getOwner` /
|
|
471
|
+
`runWithOwner` tests in `test/28-run-with-owner.test.mjs` (basic shape,
|
|
472
|
+
degradation, and the three hazard pins -- recycled-slot cascade / corpse
|
|
473
|
+
adoption / composed with allocation pressure); the 1.5.0 box and createRoot
|
|
474
|
+
suites carry forward unchanged. `test/03-pool` "stats() shape" test
|
|
475
|
+
updated from the 11-key 1.4.0 shape to the 12-key 1.6 shape (adds
|
|
476
|
+
`flushPasses`). **Coverage** (c8@11, Node 22): `Signal.js` 100% statements /
|
|
477
|
+
96.96% branches / 100% functions / 100% lines; `Watch.js` 100% across all
|
|
478
|
+
four. The branch drop vs 1.5.0 (97.35% -> 96.96%) is the zero-cost gate on
|
|
479
|
+
`flushPasses` / opcode 6 / opcode 7 -- the `if (mutationHook !== null)`
|
|
480
|
+
mutation-hook-attached branch is not exercised by the active test suite,
|
|
481
|
+
which never attaches a hook; the inert path is covered.
|
|
120
482
|
- **`createScope` behavior** (4 tests, `node --expose-gc`): returns `fn`'s value and
|
|
121
483
|
runs the owner exactly once even when `fn` reads signals in its direct body
|
|
122
484
|
(untracked); inner effects/computeds track and update; `dispose()` cascade-disposes
|
|
@@ -127,11 +489,141 @@ they produce are reproducible, comparable, and engine-version-aware.
|
|
|
127
489
|
introspection-stamped to its owner effect; and `totalAllocations - totalDisposals
|
|
128
490
|
=== activeNodes` holds after teardown. Plus a smoke confirming signal -> computed ->
|
|
129
491
|
effect is unaffected by the additive change.
|
|
492
|
+
- **`getOwner` / `runWithOwner` port**: sha256 over the extracted function bodies of
|
|
493
|
+
`pullComputed`, `executeEffect`, `allocateLink`, `severTail`, `createNode`,
|
|
494
|
+
`runCleanup`, `disposeNode`, `createRoot`, `createScope` matches the pristine
|
|
495
|
+
1.6.0-alpha engine byte-for-byte -- port touched no hot path. `Publications/
|
|
496
|
+
owner-hazard-repro.mjs` reports **`VERDICT: SAFE`** on the merged engine on both
|
|
497
|
+
hazards (continuation runs 2 times before stranger disposal, 3 after; corpse
|
|
498
|
+
case runs 2 without `RangeError`).
|
|
130
499
|
- **Instrumentation is zero-cost when unobserved**: `flushPasses` advances and opcodes
|
|
131
|
-
6/7 fire only while a mutation-hook listener is attached; with none, the
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
500
|
+
6/7 fire only while a mutation-hook listener is attached; with none, the two hook
|
|
501
|
+
fire sites are pure `null`-check branches (branch-predicted-free after warmup).
|
|
502
|
+
|
|
503
|
+
### Verified -- fresh 1.6.0-alpha bench sweep (dual-host: Apple M4 Pro + 2016 Intel MacBook)
|
|
504
|
+
|
|
505
|
+
Both v3 instruments were re-run in full on the 1.6.0-alpha engine on **two hosts**:
|
|
506
|
+
the current authoritative machine **Apple M4 Pro darwin/arm64, Node 26.3.1** (with
|
|
507
|
+
`#STAMP`-verified outputs committed to `bench/r.txt` -- microscope aggregate, 4
|
|
508
|
+
engines across the six first-party shapes -- and `bench/rb.txt` -- mirror sweep,
|
|
509
|
+
Andrii's canonical adapter verbatim, lite vs alien across 47 rows, isolated-per-row,
|
|
510
|
+
10 reps) and the older reference host **2016 Intel MacBook Pro, Node 22** (kept
|
|
511
|
+
sweep-over-sweep for cross-host reference; `bench/results.txt` propagation, 9
|
|
512
|
+
scenarios, and `bench/resultsReactive.txt` cross-framework reactivity, median-of-10,
|
|
513
|
+
34 tests -- the 10 raw reactive-suite runs sit under `bench/bench-runs-reactive/
|
|
514
|
+
run_1.txt` ... `run_10.txt` so anyone can re-median independently). The M4 Pro host
|
|
515
|
+
has a lower run-to-run noise floor than the Intel host, so the sub-percent parity
|
|
516
|
+
band tightens; conversely the Intel host makes small branch-cost swings visible
|
|
517
|
+
that the M4 Pro's frontend absorbs.
|
|
518
|
+
|
|
519
|
+
- **Microscope aggregate on M4 Pro (r.txt):** on the six v3 microscope shapes, lite
|
|
520
|
+
wins vs alien on **MUX +35.3%** (fan-in), **SELECTIVE DAG +20.6%**, **DYNAMIC DAG
|
|
521
|
+
+17.7%**, and -- new this sweep -- **BROADCAST +12.0%** (flipped from -1.2%
|
|
522
|
+
parity on 1.5.0-beta; fan-out is now a fourth speed win). The three allocation-
|
|
523
|
+
heavy wins hold their 1.5.0-beta M4 Pro magnitudes within noise because the
|
|
524
|
+
mutation-hook gate is round-off relative to per-iteration retracking work.
|
|
525
|
+
**KAIROS narrowed from -15.7% to -9.9%** -- the exact opposite of what the Intel
|
|
526
|
+
host shows for the same engine, which is what you would expect if branch
|
|
527
|
+
prediction on the M4's frontend is absorbing the two hook-gate `null` checks
|
|
528
|
+
completely. DEEP CHAIN stays firmly in alien's column at -73.8% (the
|
|
529
|
+
architectural weak spot the honest framing has always named: recursive JS-stack
|
|
530
|
+
computed resolution against a flat chain). Speed wins vs alien: **4/6** (was
|
|
531
|
+
3/6 on 1.5.0-beta); heap wins: **5/6** with the sixth being a shared-zero on
|
|
532
|
+
BROADCAST.
|
|
533
|
+
- **Propagation bench on Intel (results.txt):** lite +49% / +43% / +35% / +29% on
|
|
534
|
+
the four allocation-heavy scenarios (SELECTIVE DAG / DYNAMIC DAG / MUX / SMALL
|
|
535
|
+
SELECTIVE) -- unchanged in character from the 1.5.0-beta Intel sweep, confirming
|
|
536
|
+
the gate is round-off on allocation-dominated shapes. Parity on LARGE WEB APP
|
|
537
|
+
(-3%) and WIDE DENSE (-6%), inside host noise. **Alien-signals ahead on
|
|
538
|
+
BROADCAST (-10%), KAIROS (-12%, was -7% on 1.5.0-beta), and DEEP CHAIN (-21%,
|
|
539
|
+
was -14% on 1.5.0-beta)** -- the KAIROS and DEEP CHAIN widening IS the observable
|
|
540
|
+
gate cost on this slower host, one predicted `null` check per inner-loop
|
|
541
|
+
iteration on shapes that iterate 1000-25000 times per rep. That the same
|
|
542
|
+
engine reads KAIROS -12% on Intel and -9.9% on M4 Pro is not a contradiction;
|
|
543
|
+
it is what a cross-host branch-cost artifact looks like when only one of the two
|
|
544
|
+
frontends can hide it. Speed wins vs alien on Intel: **4/9** (was 5/9); heap
|
|
545
|
+
wins: **8/9** (unchanged).
|
|
546
|
+
- **Microscope heap (the actual story) on M4 Pro:** on every shape where GC
|
|
547
|
+
pressure exists at all, lite allocates **one to four orders of magnitude less
|
|
548
|
+
transient heap than alien** -- DEEP CHAIN 0.5 KB vs 1062 KB (>2000x, on the
|
|
549
|
+
shape lite loses on time), MUX 0 KB vs 781 KB, KAIROS 23 KB vs 802 KB (34.3x),
|
|
550
|
+
DYNAMIC DAG 3.4 MB vs 60.0 MB (17.9x), SELECTIVE DAG 7.6 MB vs 78.2 MB (10.3x).
|
|
551
|
+
Against preact-signals and solid-signals the heap gap is even wider on the
|
|
552
|
+
fan-in / fan-out family; solid allocates ~17 MB on MUX and ~15 MB on SELECTIVE
|
|
553
|
+
DAG where lite allocates 0 KB and 7.6 MB on the same shapes. The
|
|
554
|
+
differentiated position is ALLOCATION, not raw propagation speed --
|
|
555
|
+
competitive-to-winning throughput with dramatically lower GC pressure, and
|
|
556
|
+
that is the headline that reproduces across hosts.
|
|
557
|
+
- **Mirror sweep on M4 Pro (rb.txt):** Andrii's canonical 47-shape suite re-run
|
|
558
|
+
isolated-per-row lite vs alien on M4 Pro reproduces the same honest framing:
|
|
559
|
+
lite runs **parity-to-behind alien on throughput** across the suite (wins
|
|
560
|
+
outright on **5/47** -- `1000x5 - 25 sources (wide dense)` +12.2%,
|
|
561
|
+
`manySourcesIntoOneComputedEffectWithDirect` +31.8%,
|
|
562
|
+
`manySourcesIntoOneComputedEffect` +31.4%, `molBench` +1.0% (new this sweep),
|
|
563
|
+
and `createComputations4to1` +9.5%; up from 4/47 on 1.5.0-beta), weak on the
|
|
564
|
+
deep/layered-burst family. Every row carries a `#STAMP` and the counters
|
|
565
|
+
(`nodesRecomputed` / `edgesTraversed` / `sinkReads`) match Andrii's published
|
|
566
|
+
suite exactly (`mirror.mjs --self-verify`), so a lite-vs-alien delta here is
|
|
567
|
+
identical work, not DCE.
|
|
568
|
+
- **Reactive suite on Intel (resultsReactive.txt):** fastest of five frameworks
|
|
569
|
+
on all five `dyn` rows (simple +19%, dynamic +13%, large web app +11%, wide
|
|
570
|
+
dense +4%, deep +16%). On the `S: updateComputations` micro-rows lite trades
|
|
571
|
+
the lead with alien: **4/7 wins this sweep** (was 7/7 on 1.5.0-beta),
|
|
572
|
+
consistent with the gate cost on 50-70ms rows that iterate many thousands of
|
|
573
|
+
times per measurement on the Intel host.
|
|
574
|
+
- **Andrii Volynets js-reactivity-benchmark position holds at 4th of 15** with
|
|
575
|
+
geomean **73.1ms** (raw log `bench/AndriiVolynetsReactiveBench.log`, all 15
|
|
576
|
+
x 47 rows); lite is ahead of 5th-place Preact Signals (79.9) by ~9%.
|
|
577
|
+
Outright-fastest-of-15 wins jumped to **6 shapes**: `broadPropagation`,
|
|
578
|
+
`manyEffectsFromOneSource`, `manySourcesIntoOneComputedEffect`,
|
|
579
|
+
`manySourcesIntoOneComputedEffectWithDirect`, `molBench`, and the `32x8 - 4
|
|
580
|
+
sources - pull` DAG. Top-3 count: 23/47. (Outright wins swing at the top of
|
|
581
|
+
a very tight leaderboard; the stable metric across every sweep is the
|
|
582
|
+
geomean rank at 4th of 15.)
|
|
583
|
+
- **Third-party engine versions carried forward** from the 1.5.0-beta sweep
|
|
584
|
+
(alien-signals 3.2.1, @preact/signals-core 1.14.2, @vue/reactivity 3.5.35,
|
|
585
|
+
solid-js 1.9.13). No peer bumps this cycle -- the deltas here are the 1.6
|
|
586
|
+
engine's own footprint plus host noise.
|
|
587
|
+
|
|
588
|
+
### Tooling -- harness reorganization (no published-surface change)
|
|
589
|
+
|
|
590
|
+
The loose `harness/` probes are routed through a single dispatcher
|
|
591
|
+
(`harness/run.mjs`) and exposed as npm scripts: `harness:field`,
|
|
592
|
+
`harness:dispose`, `harness:churn`, `harness:owner`, `harness:creation`, and
|
|
593
|
+
`harness:all` (field + dispose + churn in sequence). `harness:field` is the
|
|
594
|
+
portable fieldkit verify + cold-child A/B bench; the rest map one-to-one to the
|
|
595
|
+
existing probe files. Paths resolve from the dispatcher, so the working
|
|
596
|
+
directory no longer matters.
|
|
597
|
+
|
|
598
|
+
- **`churnprobe.mjs` corrected.** It read link churn from `stats().totalLink*`
|
|
599
|
+
fields that never existed on this engine (`stats()` tracks only NODE lifecycle
|
|
600
|
+
plus a live `activeLinks` gauge), so every row printed `NaN`. It now counts
|
|
601
|
+
gross link churn off `onGraphMutation` -- opcode `3` (link-add) and `4`
|
|
602
|
+
(link-sever) -- which is strictly better: a net `activeLinks` delta would read
|
|
603
|
+
zero on `dep-flip` because each sever is matched by an add, hiding exactly the
|
|
604
|
+
retracking the probe exists to catch. Stable shapes now read `churn/recompute
|
|
605
|
+
= 0`; `dep-flip` reads `2.0`. Opcodes `3`/`4`/`5` are unchanged from 1.5; the
|
|
606
|
+
probe does not use the new `6`/`7` flush opcodes.
|
|
607
|
+
- **`burst-dag.mjs` reconciled.** The contiguous-window guess was first promoted
|
|
608
|
+
from `futureVersions/` into `harness/` (wiring up the `profile:burst` script
|
|
609
|
+
that already pointed there), then superseded by the verbatim-Andrii strided
|
|
610
|
+
reconciliation now carrying that name (see Added above); the contiguous guess
|
|
611
|
+
and its `burstDagScenario` / `multiPassProbe` exports are preserved in
|
|
612
|
+
`harness/attic/`. `pull-stress.mjs` -- the pull-path companion documented
|
|
613
|
+
alongside it -- landed in `harness/`.
|
|
614
|
+
- **The owner-recycling reproducer** is documented at its real home,
|
|
615
|
+
`harness/owner-hazard-repro.mjs`; the earlier `Publications/...` citations
|
|
616
|
+
in README / CHANGELOG / llms.txt pointed at a path the file was never in, and
|
|
617
|
+
are corrected. The createComputations matrix parent/child link
|
|
618
|
+
(`creation-isolated.mjs` -> `andrii-isolated-child.mjs`) is repaired.
|
|
619
|
+
- **Six settled one-off probes** -- the five from the 1.2.0 -> 1.2.1
|
|
620
|
+
construction-shape regression hunt, plus the superseded
|
|
621
|
+
`repro-set-after-dispose.mjs` (its invariant now pinned by `test/07-dispose`
|
|
622
|
+
and `test/26-free-list-invariant`) -- are parked in `harness/attic/` with a
|
|
623
|
+
README explaining each.
|
|
624
|
+
|
|
625
|
+
`Signal.js` and the published `files[]` whitelist are untouched by any of the
|
|
626
|
+
above; this is a repo-tooling change only.
|
|
135
627
|
|
|
136
628
|
## [1.5.0] -- 2026-06-XX
|
|
137
629
|
|
|
@@ -194,13 +686,17 @@ dependency and updates correctly; a `computedBox` that reads a callable
|
|
|
194
686
|
the introspection surface all apply uniformly -- a box node is indistinguishable
|
|
195
687
|
from a callable node to the graph, the owner tree, and devtools.
|
|
196
688
|
|
|
197
|
-
### Added -- `test/24-signalbox_test.mjs` activated (
|
|
689
|
+
### Added -- `test/24-signalbox_test.mjs` activated (12 tests)
|
|
198
690
|
|
|
199
691
|
The suite that was committed-but-skipped since 1.3.0 now runs against the real
|
|
200
|
-
implementation
|
|
201
|
-
peek-does-not-track, subscribe fires-and-untracks,
|
|
202
|
-
directions, batch coalescing across boxes, dispose
|
|
203
|
-
ABA-safety, and the `equals` short-circuit.
|
|
692
|
+
implementation. The 9 originally-staged tests cover box get/set/peek/update,
|
|
693
|
+
computedBox derive + memoize, peek-does-not-track, subscribe fires-and-untracks,
|
|
694
|
+
box<->callable interop both directions, batch coalescing across boxes, dispose
|
|
695
|
+
stopping updates with ABA-safety, and the `equals` short-circuit. The 3
|
|
696
|
+
box-coverage additions for 1.5.0 cover `computedBox.peek` (track-free read on
|
|
697
|
+
the derived shape), the set-then-revert net no-op in a batch (pre-batch revert
|
|
698
|
+
applies to box writes too), and the top-level `signalBox` / `computedBox`
|
|
699
|
+
helpers binding to the default registry with full callable interop. All 12 pass.
|
|
204
700
|
|
|
205
701
|
### Added -- `createRoot(fn)` (ownership escape hatch)
|
|
206
702
|
|
|
@@ -237,11 +733,13 @@ query-watcher being the first in the ecosystem. Those consumers wrap the spawn i
|
|
|
237
733
|
`createRoot(() => effect(...))` and dispose it themselves; the watcher then
|
|
238
734
|
survives consumer re-runs.
|
|
239
735
|
|
|
736
|
+
### Verified
|
|
240
737
|
|
|
241
738
|
- **Full suite green** against the 1.5.0 engine: 439 tests, 438 pass, 0 fail,
|
|
242
739
|
1 skip (only the architecturally-N/A SSR case in `17-reactivity`; the 9
|
|
243
|
-
`24-signalbox` tests are now active
|
|
244
|
-
|
|
740
|
+
`24-signalbox` tests are now active and the suite carries +3 box-coverage
|
|
741
|
+
additions for a 12-test file, +7 `createRoot` tests in
|
|
742
|
+
`test/27-create-root_test.mjs`). **Coverage** (c8@11,
|
|
245
743
|
Node 22): `Signal.js` 100% statements / 97.35% branches / 100% functions / 100%
|
|
246
744
|
lines; `Watch.js` 100% across all four.
|
|
247
745
|
- **Box hot path is zero-GC**: 200,000 writes through a 256-wide box graph,
|
|
@@ -262,7 +760,60 @@ survives consumer re-runs.
|
|
|
262
760
|
cleanly -- detachment costs no auto-cleanup but introduces no leak. Verified
|
|
263
761
|
against the exact lazy-watcher pattern `lite-query` uses.
|
|
264
762
|
|
|
265
|
-
|
|
763
|
+
### Added -- VersionMatrix identical-code guard (harness/VersionMatrix/)
|
|
764
|
+
|
|
765
|
+
The regression gate (`harness/VersionMatrix/`, wired into `prepublishOnly` since
|
|
766
|
+
1.4.0) gains an **identical-code guard**: each capture records the sha256 of the
|
|
767
|
+
engine source (`baselines/<label>/engine.sha256`). If the candidate's hash matches
|
|
768
|
+
a baseline's, that axis is running the *same bytes* -- any measured delta is host
|
|
769
|
+
noise, not a regression -- so the gate marks it `SKIP` rather than let variance
|
|
770
|
+
flag a phantom. This is what saves you when you re-version without a code change:
|
|
771
|
+
a `1.5.0-beta.0` that is byte-identical to a published `1.5.0-alpha.1` cannot
|
|
772
|
+
regress against it, and the gate says so structurally instead of failing on a
|
|
773
|
+
noisy median. Genuine code changes produce a different hash and are gated
|
|
774
|
+
normally. Everything else about the harness -- cold-process-per-version,
|
|
775
|
+
LCG-deterministic input, two baselines (floor `1.3.0` + rolling), calibrated
|
|
776
|
+
tolerances (`frame.avg` 5% rolling / 10% floor, `frame.p99` and `phase.write.p99`
|
|
777
|
+
18% / 30%), four workloads mapping to public bench claims -- carries forward
|
|
778
|
+
from 1.4.0. Details in `harness/VersionMatrix/README.md`.
|
|
779
|
+
|
|
780
|
+
### Verified -- fresh 1.5.0-beta bench sweep
|
|
781
|
+
|
|
782
|
+
Both benches were re-run in full on the 1.5.0-beta engine and their outputs
|
|
783
|
+
committed to `bench/results.txt` (isolated propagation, 9 scenarios) and
|
|
784
|
+
`bench/resultsReactive.txt` (cross-framework reactivity, median-of-10, 34
|
|
785
|
+
tests). The 10 raw reactive-suite runs sit under `bench/bench-runs-reactive/
|
|
786
|
+
run_1.txt` ... `run_10.txt` so anyone can re-median independently.
|
|
787
|
+
|
|
788
|
+
- **Propagation bench (results.txt):** lite +48% / +45% / +33% / +29% on the four
|
|
789
|
+
allocation-heavy scenarios (SELECTIVE DAG / DYNAMIC DAG / MUX / SMALL
|
|
790
|
+
SELECTIVE); **LARGE WEB APP flipped into a small lite win (+2%, from -3% on
|
|
791
|
+
1.4.0)** after the alien-signals 3.1.2 -> 3.2.1 bump between sweeps; parity on
|
|
792
|
+
WIDE DENSE (-6%) and KAIROS (-7%); alien ahead on BROADCAST (-12%) and DEEP
|
|
793
|
+
CHAIN (-14%, narrowed from -29% on 1.4.0 for the same alien-version reason
|
|
794
|
+
-- lite's DEEP CHAIN barely moved, 395 -> 398ms). Speed wins vs alien: **5/9**
|
|
795
|
+
(was 4/9); heap wins: 8/9.
|
|
796
|
+
- **Reactive suite (resultsReactive.txt):** fastest of five frameworks on all
|
|
797
|
+
five `dyn` rows (simple +19%, dynamic +16%, large web app +9%, wide dense +6%,
|
|
798
|
+
deep +12%), and **lite now leads alien on ALL 7 `S: updateComputations` rows**
|
|
799
|
+
this sweep (+3% / +6% / +3% / +12% / +3% / +2% / +8%; was 4/7 on 1.4.0).
|
|
800
|
+
- **Andrii Volynets js-reactivity-benchmark position holds at 4th of 15** with
|
|
801
|
+
geomean **79.3ms** (raw log `bench/AndriiVolynetsReactiveBench.log`); lite is
|
|
802
|
+
ahead of 5th-place Preact Signals (99.8) by ~21% -- the gap widened this
|
|
803
|
+
sweep after Preact's own regression on the newer 1.14.2. Top-3 count moved
|
|
804
|
+
from 21/47 (1.3.0 log) -> 23/47 (1.4.0 log) -> **25/47 (1.5.0-beta log)**;
|
|
805
|
+
outright-fastest-of-15 wins fluctuate at the top of a very tight leaderboard
|
|
806
|
+
where alien-signals / reflex / lite trade sub-percent margins per shape (5
|
|
807
|
+
outright wins on 1.4.0, **2 outright wins on 1.5.0-beta** -- `createComputations4to1`
|
|
808
|
+
and `1000x5 - 25 sources (wide dense)`). The stable metric across every
|
|
809
|
+
published sweep is the geomean rank at #4 of 15.
|
|
810
|
+
- **Third-party version bumps** used in this sweep vs 1.4.0: alien-signals
|
|
811
|
+
3.1.2 -> 3.2.1, @preact/signals-core 1.14.1 -> 1.14.2, @vue/reactivity
|
|
812
|
+
3.5.13 -> 3.5.35, solid-js 1.9.12 -> 1.9.13. Any within-lib delta between
|
|
813
|
+
the two sweeps reflects those bumps + host noise, not lite-signal changes:
|
|
814
|
+
1.4.0 -> 1.5.0 hot-path bytes are byte-identical (1.5.0 adds only the
|
|
815
|
+
non-callable box handle shape, which affects construction cost and handle
|
|
816
|
+
ergonomics but not the pooled-node read/write path).
|
|
266
817
|
|
|
267
818
|
## [1.4.0] -- 2026-06-XX
|
|
268
819
|
|
|
@@ -320,6 +871,31 @@ with the rest of registry state, so a reused registry reports lifecycle numbers
|
|
|
320
871
|
for its current epoch only. Grown pool *capacity* is retained across `destroy()`
|
|
321
872
|
as before (the reset keeps the arena warm); only the cumulative counts reset.
|
|
322
873
|
|
|
874
|
+
### Added -- VersionMatrix regression gate (harness/VersionMatrix/)
|
|
875
|
+
|
|
876
|
+
A **same-host, cold-process regression gate** for the engine ships alongside the
|
|
877
|
+
observability counters, wired into `prepublishOnly` -- a candidate that regresses
|
|
878
|
+
beyond calibrated tolerances aborts `npm publish` before it starts. Each
|
|
879
|
+
version-x-workload is profiled in its own `node` invocation (V8 never carries
|
|
880
|
+
inline caches or JIT state across versions), fed an identical LCG write sequence
|
|
881
|
+
(delta = engine change, not input), and reduced to a per-metric median-of-N
|
|
882
|
+
(default 5). **Two baselines** gate every publish: a **floor** (never moves;
|
|
883
|
+
"we shall not regress below this line") and a **rolling** baseline (previous
|
|
884
|
+
published version); a candidate must clear BOTH. Tolerances calibrated against
|
|
885
|
+
measured self-noise (`npm run calibrate`): `frame.avg` is the stable anchor at
|
|
886
|
+
5% vs rolling / 10% vs floor (self-noise <=~3%); `frame.p99` and
|
|
887
|
+
`phase.write.p99` sit at 18% / 30% (self-noise up to ~14%, so a p99 fail should
|
|
888
|
+
be re-run to confirm). Four workloads map to public bench claims:
|
|
889
|
+
`reactive-graph-mix` (KAIROS / mol pattern), `deep-chain` (the DEEP CHAIN weak
|
|
890
|
+
spot), `broadcast-fanout` (the BROADCAST fan-out), and `dynamic-dep-churn` (the
|
|
891
|
+
DYNAMIC / SELECTIVE DAG wins). Committed median baselines under
|
|
892
|
+
`harness/VersionMatrix/baselines/` are the public evidence surface (each
|
|
893
|
+
carrying `env` metadata: CPU, node, date); the gate itself always re-captures
|
|
894
|
+
floor / rolling / candidate in the same job so it never diffs across hosts.
|
|
895
|
+
Manifest at `manifest.json` pins the floor (`1.3.0`), the rolling reference, and
|
|
896
|
+
the workload list. Details in `harness/VersionMatrix/README.md`. (The 1.5.0-beta
|
|
897
|
+
identical-code guard extending this gate lands in the 1.5.0 entry above.)
|
|
898
|
+
|
|
323
899
|
### Verified
|
|
324
900
|
|
|
325
901
|
- **Full suite green** against the 1.4.0 engine: 429 tests, 419 pass, 0 fail,
|
|
@@ -338,8 +914,6 @@ as before (the reset keeps the arena warm); only the cumulative counts reset.
|
|
|
338
914
|
the `stats()` surface (the 1.2.x / 1.3.0 entries described the absence of the
|
|
339
915
|
counters in prose; 1.4.0 codifies the new shape as a test assertion).
|
|
340
916
|
|
|
341
|
-
|
|
342
|
-
|
|
343
917
|
## [1.3.0] -- 2026-06-XX
|
|
344
918
|
|
|
345
919
|
The pool minor: the node and link pools become **growable and incrementally
|
|
@@ -433,9 +1007,7 @@ in 1.3.0.
|
|
|
433
1007
|
counters (`totalAllocations` / `totalDisposals` / `poolGrowths`) remain
|
|
434
1008
|
reserved for 1.4.0 and are still absent here.
|
|
435
1009
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
## [1.2.2] -- 2026-06-XX
|
|
1010
|
+
## [1.2.2] -- 2026-06-14
|
|
439
1011
|
|
|
440
1012
|
A code-deletion ship: a `createNode` audit removes ten redundant field-writes
|
|
441
1013
|
that defended against a state the engine cannot produce on a clean free-list.
|