@zakkster/lite-signal 1.6.0-rc → 1.6.0-rc.2
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 +57 -0
- package/README.md +12 -1
- package/Signal.js +1 -1
- package/llms.txt +28 -3
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,63 @@ 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-rc.2] -- 2026-09-20
|
|
8
|
+
|
|
9
|
+
Verification + docs increment over `1.6.0-rc.1`; **no engine change past the
|
|
10
|
+
version banner comment** (`Signal.js` byte-identical, banner line only). Ports
|
|
11
|
+
the standing perf-gate lane from the canonical 1.5.2 line onto this engine.
|
|
12
|
+
|
|
13
|
+
### Added -- perf-gate lane (`@zakkster/lite-perf-gate`, devDependency only)
|
|
14
|
+
|
|
15
|
+
- `test/33-perf-gate.test.mjs` + `npm run test:gate`
|
|
16
|
+
(`node --expose-gc --max-semi-space-size=4 --test test/33-perf-gate.test.mjs`),
|
|
17
|
+
chained into `test:all` after `test:zgc`. Where the existing `test:zgc` lane
|
|
18
|
+
(lite-gc-profiler) is the suite's bespoke zero-GC harness, this lane wires
|
|
19
|
+
`@zakkster/lite-perf-gate`'s `zgcSuite` as a standing, self-validating verdict:
|
|
20
|
+
five signals (scavenges / engine counters / retainedKB / oldGen /
|
|
21
|
+
arrayBuffersKB), two scales (N and k*N), positive+negative+large detector
|
|
22
|
+
controls on every run, and permanent `mustFail` negative controls.
|
|
23
|
+
- Seven claimed-zero steady-state scenarios, each anchored to its `llms.txt`
|
|
24
|
+
claim: `set-propagate` (1 signal -> 8 computeds -> 1 effect, sync flush),
|
|
25
|
+
`computed-cache-hit`, `computed-recompute-stable`, `effect-rerun-stable`,
|
|
26
|
+
`peek`, `batch-flush` (3 sets/batch), `box-set-propagate`. `statsOf` reads each
|
|
27
|
+
scenario's isolated registry ledger; `counters` pins
|
|
28
|
+
`totalAllocations`/`totalDisposals`/`poolGrowths` at 0-delta.
|
|
29
|
+
- Two `mustFail` controls that MUST trip the gate: a per-op `{x,y,z,w}` object
|
|
30
|
+
allocator, and the documented `signal()`+dispose churn (264 B/op on this
|
|
31
|
+
engine, per `[1.6.0-rc.1]`). lite-perf-gate DEFAULT thresholds, untouched
|
|
32
|
+
(maxScavenges 2, maxRetainedKB 64, maxOldGen 0, maxArrayBuffersKB 64).
|
|
33
|
+
- **Result on this engine (node v26.x): green and REAL, 10/10** -- all seven
|
|
34
|
+
claimed-zero paths pass under defaults, both `mustFail` controls trip. Plain
|
|
35
|
+
`npm test` is undisturbed (the in-glob file emits one loud named skip unless
|
|
36
|
+
BOTH `--expose-gc` and `--max-semi-space-size=4` are present).
|
|
37
|
+
|
|
38
|
+
## [1.6.0-rc.1] -- 2026-09-05
|
|
39
|
+
|
|
40
|
+
Verification + docs increment over `1.6.0-rc`; **no engine change past the
|
|
41
|
+
version banner comment** (shasum-verified). Ports the mint-cycle allocation
|
|
42
|
+
anatomy probe from the canonical 1.5.1 line and re-measures it on this engine.
|
|
43
|
+
|
|
44
|
+
### Added -- mint-cycle allocation anatomy probe (harness, ported from 1.5.1)
|
|
45
|
+
|
|
46
|
+
- `harness/mint-anatomy.mjs` + `node harness/run.mjs mint [--verify]`: per-op
|
|
47
|
+
all-space heap bytes for every creation primitive's mint+dispose cycle on a
|
|
48
|
+
pre-grown throw-policy registry (`maxNodes:1<<16, maxLinks:1<<18,
|
|
49
|
+
onCapacityExceeded:"throw"`), fresh child process per (variant, warmup) cell
|
|
50
|
+
(JIT tier state poisons same-process comparisons), relative pins P1..P5. See
|
|
51
|
+
the canonical CHANGELOG `[1.5.1]` for the full methodology: the LS-06
|
|
52
|
+
all-space accounting correction (a new-space-only witness undercounts the
|
|
53
|
+
callable mint by ~56 B/op of closure-feedback plumbing at pre-TurboFan tiers)
|
|
54
|
+
and the closure-pooling rejection rationale (reused accessor identity makes
|
|
55
|
+
the birthGen ABA guard undecidable -- fails open).
|
|
56
|
+
- **Measured on this engine (node v26.3.1 darwin/arm64): identical to the 1.5.x
|
|
57
|
+
line** -- `signal(1)`+dispose 264 B/op all-space (tier-invariant), `computed`
|
|
58
|
+
208, `effect` 160, `signalBox`/`computedBox` 56, dispose side 0 (mint-and-hold
|
|
59
|
+
equals the cycle to +-0.3 B); all pins PASS at both warmups (12k / 250k). The
|
|
60
|
+
1.6.0 additions (`createScope`, `flushPasses`, opcodes 6/7) sit outside the
|
|
61
|
+
creation path, and the measurement confirms it: creation economics carry over
|
|
62
|
+
from 1.5.x unchanged.
|
|
63
|
+
|
|
7
64
|
## [1.6.0-rc] -- 2026-09-05
|
|
8
65
|
|
|
9
66
|
The release-candidate hardening pass. **No engine change past the version banner
|
package/README.md
CHANGED
|
@@ -1045,6 +1045,16 @@ npm run test:zgc:report # human-readable standalone report (re-execs with
|
|
|
1045
1045
|
|
|
1046
1046
|
Both flags are required (`--expose-gc` for the explicit `gc()` calls in the meter, `--max-semi-space-size=4` for per-iteration sensitivity); the scripts set both so a caller cannot invoke the gate under-powered. Verified against 1.6.0-alpha: all seven scenarios pass, positive control forces scavenges well above the threshold, the churn scenario recycles 1.6M node allocations through the free list with 0 pool growths. The mutation-hook gate opcodes added in 1.6 do not perturb the zero-GC contract because they are hook-gated (`if (mutationHook !== null)`) -- with no profiler attached the gate is a no-op and the pool churn is unchanged.
|
|
1047
1047
|
|
|
1048
|
+
### `test/33-perf-gate.test.mjs` -- standing perf-gate lane (1.6.0-rc.2, ported from 1.5.2)
|
|
1049
|
+
|
|
1050
|
+
Where `test/zgc/` is the suite's own zero-GC harness, this lane wires **`@zakkster/lite-perf-gate`** (devDependency only) as a second, independent judge -- a standing, self-validating verdict built from library-owned detector controls rather than bespoke assertions. Its `zgcSuite` watches **five signals** (scavenges, engine `stats()` counters, retainedKB, oldGen, arrayBuffersKB) at two scales (N and k*N), runs positive+negative+large detector controls on every run, and carries permanent `mustFail` negative controls. Seven claimed-zero steady-state scenarios, each anchored to the `llms.txt` claim it enforces: `set-propagate` (1 signal -> 8 computeds -> 1 effect, sync flush), `computed-cache-hit`, `computed-recompute-stable`, `effect-rerun-stable`, `peek`, `batch-flush` (3 sets/batch), `box-set-propagate`. Each scenario's `statsOf` reads its own isolated registry ledger; `counters` pins `totalAllocations` / `totalDisposals` / `poolGrowths` at 0-delta. Two `mustFail` controls MUST trip the gate: a per-op `{x,y,z,w}` allocator and the documented `signal()`+dispose churn (264 B/op). Thresholds are lite-perf-gate DEFAULTS, untouched (maxScavenges 2, maxRetainedKB 64, maxOldGen 0, maxArrayBuffersKB 64) -- a claimed-zero path that cannot meet defaults is a finding, not a config knob.
|
|
1051
|
+
|
|
1052
|
+
```bash
|
|
1053
|
+
npm run test:gate # node --expose-gc --max-semi-space-size=4 --test test/33-perf-gate.test.mjs
|
|
1054
|
+
```
|
|
1055
|
+
|
|
1056
|
+
The lane runs REAL only when BOTH `--expose-gc` and `--max-semi-space-size=4` are present (the same young-gen sensitivity the `test:zgc` lane needs); the `test:gate` script sets both. Under plain `npm test` / `test:gc` the in-glob file emits one loud named skip -- never a silent pass, never a false red. Verified on this engine (node v26.x): green and REAL at 10/10 -- all seven claimed-zero paths pass under defaults, both `mustFail` controls trip.
|
|
1057
|
+
|
|
1048
1058
|
### `harness/burst-dag.mjs` and `harness/pull-stress.mjs` -- 1.6 profiling harnesses
|
|
1049
1059
|
|
|
1050
1060
|
Two standalone profiling harnesses that consume the new op 6/7 mutation-hook counters to characterise **shape**-specific engine behaviour that the throughput benches can only aggregate over. `pull-stress.mjs` imports `../Signal.js` and is dual-mode (standalone runner or mountable zero-GC scenario); `burst-dag.mjs` takes the engine path as an argument (`node --expose-gc harness/burst-dag.mjs <Signal.js>`) so the same contrast runs against any build. Wired as `npm run profile:burst` and `npm run profile:pull`.
|
|
@@ -1068,9 +1078,10 @@ These harnesses land in 1.6 alongside the mutation-hook opcodes they consume; th
|
|
|
1068
1078
|
|
|
1069
1079
|
### Notes
|
|
1070
1080
|
|
|
1071
|
-
- The hardening suite and the profiler integration do **not** run on `npm test` from the root. They opt in through the `test:hardening` / `test:harness` scripts (and `test:all`, which chains everything including `test:zgc`).
|
|
1081
|
+
- The hardening suite and the profiler integration do **not** run on `npm test` from the root. They opt in through the `test:hardening` / `test:harness` scripts (and `test:all`, which chains everything including `test:zgc` and `test:gate`).
|
|
1072
1082
|
- The **VersionMatrix gate**, by contrast, IS wired into `prepublishOnly` -- a regression on the four reference workloads blocks `npm publish`. Diagnostic runs (`node diff.mjs`) are opt-in from the harness directory.
|
|
1073
1083
|
- The **zero-GC gate** is wired into `test:zgc` and chained by `test:all` / `verify`; on 1.6 it also validates that the two new hook-gated opcodes have not perturbed the steady-state contract.
|
|
1084
|
+
- The **perf-gate lane** (`test:gate`, `@zakkster/lite-perf-gate`) is the second, library-owned zero-GC judge; it is chained by `test:all` after `test:zgc` and runs REAL only under `--expose-gc --max-semi-space-size=4` (one loud named skip otherwise).
|
|
1074
1085
|
- The **profiling harnesses** (`burst-dag.mjs`, `pull-stress.mjs`) are characterisation tools, not assertion gates; run them via `profile:burst` / `profile:pull` when investigating a specific shape's cost model.
|
|
1075
1086
|
- All harness subdirectories have their own `package.json` with local scripts where appropriate, so you can also `cd` in and run `npm test` directly -- the root scripts are just shortcuts.
|
|
1076
1087
|
- The `npm --prefix <dir> test` form used in the root scripts is the cross-platform replacement for `cd && npm test` -- works identically on Linux, macOS, and Windows.
|
package/Signal.js
CHANGED
package/llms.txt
CHANGED
|
@@ -16,7 +16,7 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
16
16
|
- **Signal**: root reactive cell. `signal(initial, { equals? })` returns a function. Call it to read (tracked), use `.peek()` to read without tracking, `.set(v)` to notify downstream, `.update(fn)` for read-modify-write, `.subscribe(fn)` for an effect-backed listener.
|
|
17
17
|
- **Computed**: lazy memoized derivation. `computed(fn, { equals? })`. Cache hits return in O(deps) (version comparison only). Cache misses re-run the body and refresh `evalVersion`. Errors are cached via `FLAG_HAS_ERROR` and re-thrown on every read until a dep changes.
|
|
18
18
|
- **Effect**: side-effect runner. `effect(fn, { scheduler? })`. Runs immediately on creation, then on any tracked dep change. Returns a dispose function. Optional scheduler defers execution (e.g., to rAF, microtask, custom frame loop).
|
|
19
|
-
- **Box (1.5.0)**: non-callable, allocation-light variants. `signalBox(initial, { equals? })` returns `{ get, set, peek, update, subscribe }`; `computedBox(fn, { equals? })` returns `{ get, peek, subscribe }` (no set/update -- derived). Same `ReactiveNode` and zero-GC read/write path as the callable forms, full interop in one graph (a callable can read `box.get()` and vice versa). Construction is ~1.7x cheaper than the callable (an `Object.create(proto)` handle, not a closure). Built on a shared prototype from the start -- never `setPrototypeOf` (which would deopt the method-call ICs to megamorphic). Exported as registry methods and top-level helpers.
|
|
19
|
+
- **Box (1.5.0)**: non-callable, allocation-light variants. `signalBox(initial, { equals? })` returns `{ get, set, peek, update, subscribe }`; `computedBox(fn, { equals? })` returns `{ get, peek, subscribe }` (no set/update -- derived). Same `ReactiveNode` and zero-GC read/write path as the callable forms, full interop in one graph (a callable can read `box.get()` and vice versa). Construction is ~1.7x cheaper than the callable (an `Object.create(proto)` handle, not a closure): measured at **56 B/op per mint+dispose cycle vs 264 B/op for the callable** (all-space, node v26.3.1, probed on this engine -- the 1.6 additions sit outside the creation path; see `harness/run.mjs mint`). The box guard stays DECIDABLE because each box is a fresh identity carrying its own `NODE_GEN`, so pooling closure identity is not needed to cut the cost. Built on a shared prototype from the start -- never `setPrototypeOf` (which would deopt the method-call ICs to megamorphic). Exported as registry methods and top-level helpers.
|
|
20
20
|
- **createRoot (1.5.0)**: `createRoot(fn)` runs `fn` in a detached ownership scope and returns `fn`'s value. Effects/computeds created directly in `fn` are NOT adopted by the enclosing owner, so they survive its re-runs/disposal (the caller owns their lifecycle). Both ownership and tracking are detached for `fn`'s direct body; inner effect/computed bodies still establish their own scopes. The escape hatch for lazily spawning a long-lived node from inside a consumer effect (e.g. `lite-query`'s query-watcher) -- without it, the consumer owns the watcher and cascade-disposes it on its next re-run. Mirrors Solid's `createRoot`.
|
|
21
21
|
- **getOwner / runWithOwner (1.5.0-beta.2, carried into 1.6)**: the re-attach companion. `getOwner()` returns the current lifecycle owner as an opaque gen-stamped handle (`undefined` outside any effect/computed body); `runWithOwner(handle, fn)` runs `fn` with that owner reinstated so effects/computeds created directly in `fn` are adopted by it (and cascade-dispose when it re-runs). Nulls the tracking observer for `fn`'s direct body (same pairing as `createRoot`). Handles are **safe to hold across async boundaries**: they use the `describeNode` / `liveNode` ABA-guard machinery (`NODE_GEN` stamp checked against the pool slot's current gen), so stale handles -- owner disposed, slot recycled by an unrelated effect via the LIFO free list -- degrade to rooted execution rather than corrupting the graph. A raw-pointer implementation would (i) silently adopt continuations into the recycled slot's new resident (measured: continuation dies with a stranger on its next disposal), or (ii) crash the engine with `RangeError: Maximum call stack size exceeded` on a corpse handle (owner disposed, slot not yet recycled -- the disposal walk recurses without termination). Both hazards pinned in `test/28-run-with-owner.test.mjs`, empirically reproduced via `harness/owner-hazard-repro.mjs`. Also exported as registry methods + top-level helpers.
|
|
22
22
|
- **createScope (1.6.0)**: `createScope(fn)` runs `fn(dispose)` in a detached, untracked scope and returns whatever `fn` returns, having handed `fn` a single `dispose` that cascade-disposes every effect and computed created inside `fn`. The lifecycle complement to `createRoot`: where `createRoot` only *detaches* (caller disposes each child by hand), `createScope` *adopts*, so one disposer tears down a subtree of unknown shape -- the per-item lifecycle a keyed-list or scene reconciler needs. Plain signals created directly in `fn` are NOT adopted (consistent with the 1.2.0 ownership rule); computeds and effects are. The scope owner is backed by a never-re-running effect node (counts as one effect in `stats()`), the pinned `signals + computeds + effects === activeNodes` invariant is untouched, and the disposer is the same gen-guarded ABA-safe handle `effect()` returns (`describe` / `nodeId` / `forEachOwned` resolve it to the owner). A scope created inside a consumer effect SURVIVES that consumer's re-run -- the reconciler-critical detach property.
|
|
@@ -54,7 +54,31 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
54
54
|
|
|
55
55
|
## Version notes
|
|
56
56
|
|
|
57
|
-
- **1.6.0-rc** (current):
|
|
57
|
+
- **1.6.0-rc.2** (current): verification + docs increment -- no engine change past
|
|
58
|
+
the banner comment (`Signal.js` byte-identical, banner line only). Ports the
|
|
59
|
+
standing **perf-gate lane** from the canonical 1.5.2 line:
|
|
60
|
+
`test/33-perf-gate.test.mjs` + `npm run test:gate`
|
|
61
|
+
(`node --expose-gc --max-semi-space-size=4`), chained into `test:all` after
|
|
62
|
+
`test:zgc`. Wires **`@zakkster/lite-perf-gate`** (devDependency only) as a
|
|
63
|
+
second, library-owned zero-GC judge beside the bespoke `test:zgc` harness:
|
|
64
|
+
`zgcSuite` watches five signals (scavenges / engine `stats()` counters /
|
|
65
|
+
retainedKB / oldGen / arrayBuffersKB) at two scales with positive+negative+large
|
|
66
|
+
detector controls, over seven claimed-zero steady-state scenarios (set-propagate,
|
|
67
|
+
computed-cache-hit, computed-recompute-stable, effect-rerun-stable, peek,
|
|
68
|
+
batch-flush, box-set-propagate) plus two permanent `mustFail` controls (per-op
|
|
69
|
+
`{x,y,z,w}` allocator; the documented `signal()`+dispose 264 B/op churn).
|
|
70
|
+
Thresholds are lite-perf-gate DEFAULTS, untouched. Green and REAL on this engine
|
|
71
|
+
(10/10); the in-glob file emits one loud named skip unless both flags are set,
|
|
72
|
+
so plain `npm test` is undisturbed. See CHANGELOG `[1.6.0-rc.2]`.
|
|
73
|
+
- **1.6.0-rc.1**: verification + docs increment -- no engine change past
|
|
74
|
+
the banner comment. Ports the mint-cycle allocation anatomy probe from the
|
|
75
|
+
canonical 1.5.1 line (`node harness/run.mjs mint [--verify]`) and re-measures it
|
|
76
|
+
on this engine: **identical to 1.5.x** -- callable mint+dispose 264 B/op
|
|
77
|
+
all-space (tier-invariant), computed 208, effect 160, `signalBox`/`computedBox`
|
|
78
|
+
56, dispose 0; all pins PASS. The 1.6 additions (`createScope`, `flushPasses`,
|
|
79
|
+
opcodes 6/7) sit outside the creation path, and the measurement confirms it.
|
|
80
|
+
See CHANGELOG `[1.6.0-rc.1]`.
|
|
81
|
+
- **1.6.0-rc**: the release-candidate hardening pass -- NO engine change past the banner comment (hot paths byte-identical to beta-1, shasum-verified). What moves is the verification surface, brought to full parity with the canonical 1.5.0 line and then extended for this engine: `bench/torture/` grows 22 -> **27 scenarios** (three-state skip protocol with ENFORCED version floors, `contract`/`interop`/`retrack-dispose`/`wraparound` ported, plus the new **`burst-profile-torture`** pinning the 1.6 op-6/7 flush lane engine-raw -- enqueue coalescing == 1.0x, exact pass accounting, `flushPasses`/op-6 agreement, BURST_BREAK self-tests); `zerogc-torture` gains a createScope churn lane and a zero-slack 4-node **bounded-scope** witness that covers the scope owner node no other lane touches (200k adopt+cascade-dispose cycles, ledgers exact); `contract-torture` pins `flushPasses` on the abnormal paths (throwing batch = exactly 1 pass, CycleError = exactly `maxFlushPasses`); the devtools pairing moves to **lite-devtools 1.6.2** (`test/25` pins the full 13-key capability fingerprint -- `scopes:T burst:T statsKeys:14`, `burstProfile()` live with exact stop()-summary coalescing -- plus the 1.6 `Symbol.dispose` stopper stamps); VersionMatrix carries the read + exact-counter creation lanes (creation-churn: 288 allocs/frame, 0 growths). The 2^31 dormancy band was re-verified at FULL distance on this engine (12/12 -- the version-compare expressions are byte-identical to 1.5.0). See CHANGELOG `[1.6.0-rc]`.
|
|
58
82
|
- **1.6.0-beta-1**: backports the **1.4.5 `createRegistry` input validation** (all four findings) onto the 1.6.0-beta engine. Only `createRegistry`'s *cold* path moved; hot paths stay byte-identical and `bench/torture/run.mjs` is unchanged at 22/22. Bad config now throws a named `TypeError` (unknown keys get a did-you-mean); an absurd eager capacity is refused before it can OOM the process; `stats()` grows to 14 keys (adds `nodePoolPopulation`/`linkPoolPopulation`, purely additive). New `test/*-config-validation.test.mjs` (matrix + ceiling + population + OOM child processes). See CHANGELOG `[1.6.0-beta-1]`.
|
|
59
83
|
- **1.6.0-beta**: promotes `1.6.0-alpha.0` to the `beta` dist-tag. One
|
|
60
84
|
behavioural fix over alpha.0 -- the dangling re-tracking cursor crash
|
|
@@ -830,7 +854,8 @@ function dumpOwnerTree(handle, depth = 0) {
|
|
|
830
854
|
- `bench/dispose-recycle.mjs` -- 1.2.2 targeted microbench: create/dispose/recreate cycle (the free-list invariant audit target).
|
|
831
855
|
- `bench/torture/` -- the complete **22-scenario superset (19 semantic + 3 soak)** behind one runner (`run.mjs`), two groups, forward-compatible through 1.9 -- full parity with the shipped 1.4.4 sibling (verification-only; the engine is UNCHANGED). Every scenario feature-detects and SKIPS cleanly below the engine version that introduces its feature, so the whole set is safe on the 1.6.0 engine and stays green from 1.4.x forward. `semantic` (deterministic, fast, asserts on MEANING; CI on every commit) -- the **16 that execute on 1.6.0**: `oracle-fuzzer` (every computed vs an independent uncached reference, 400 seeds x 120 ops), `glitch-hunter` (glitch freedom + exact wakeups), `work-accounting` (minimum body-execution counts over 10 topologies), `op-accounting` (structural work from the `onGraphMutation` opcode lane, not wall-clock), `introspect-torture` (1.6.0: the read-only introspection surface -- `describe`/`nodeId`/`hasObservers`/`isTracking`/`forEachObserver`/`forEachSource`/`forEachOwned`/`ownerOf`/`observeObservers` -- pinning walk-agreement against the reference dep set + op-3/op-4 lane, and the ABA gen-stamp guard on re-walkable descriptors), `lifecycle-torture` (1.5.0+: createRoot detachment + destroy registry reset -- runs natively here), `concurrent-storm` (8 reentrancy / flush-ordering contracts), `scheduler-storm` (gen-bound thunk ABA guard, FLAG_QUEUED coalescing, throwing-scheduler containment), `box-torture` (1.5.0: signalBox/computedBox interop -- the oracle differential fuzz with every node realised as callable OR box), `scope-torture` (1.6.0: `createScope` adoption contract + the disposal-crash repro and its 300-seed fuzz + `runWithOwner` re-attachment into a scope + pool balance over 200 rounds), `owner-torture` (1.6.0: getOwner / runWithOwner capture-restore + live-adoption cascade + stale-handle ABA degradation to rooted -- runs natively here), `async-torture` (watch / when / whenAsync contracts + a 300-seed projection-guard storm), `capacity-torture` (the fail-closed pool boundary + the 16x grow ceiling), `error-torture` (throwing effect bodies: per-effect buffering, single re-throw vs AggregateError, 4096-cycle buffer drain), `deep-chain-torture` (pullComputed recursion fail-closed with a RangeError vs the iterative push path), `zerogc-torture` (zero-GC hot path via `measureAllocs`/`measureOps` + `stats()` counters; ZEROGC_BREAK self-test; churn-box activates on 1.6.0); plus **3 that skip cleanly** as later-version features: `flush-torture` (1.7.0 `flushStrategy`), `cleanup-return-torture` (1.8.0 effect-return cleanup), `dispose-torture` (1.9.0 `Symbol.dispose`). `soak` (wall-clock bound, asserts on RESOURCES; nightly): `graph-fuzzer`, `scheduler-bench`, `torture-soak` -- each now carries a value-correctness oracle (a preallocated `Int32Array` shadow, rotating window per tick, full sweep at teardown) alongside the liveness assertions -- exit 0 iff zero errors AND value-oracle clean AND post-teardown pool at or below its leaf-only floor AND the JIT sink advanced. Runner spawns each scenario as a child process (several assert on global pool accounting) and passes `--expose-gc` unconditionally. Scripts: `npm run torture`, `torture:semantic`, `torture:soak`.
|
|
832
856
|
- `bench/run-all-bench.sh` -- cold-process-per-engine driver (`FW=<engine>` per child), fed to `aggregate.mjs` for medianing.
|
|
833
|
-
- `harness/run.mjs` -- dispatcher for the run-on-demand probes (field, dispose, churn, owner, creation, all).
|
|
857
|
+
- `harness/run.mjs` -- dispatcher for the run-on-demand probes (field, dispose, churn, owner, creation, mint, all).
|
|
858
|
+
- `harness/mint-anatomy.mjs` -- mint+dispose cycle allocation anatomy (`mint` / `mint --verify`): per-op all-space vs new-space heap bytes for every creation primitive on a pre-grown throw-policy registry, fresh child per (variant, warmup) cell. Documents the 264 B/op callable cycle vs 56 B/op signalBox and the ALL-space accounting rule (a new-space-only witness undercounts by ~56 B/op of pre-TurboFan closure-feedback -- the LS-06 correction). `--verify` applies relative pins P1..P5.
|
|
834
859
|
- `harness/fieldkit.mjs` -- single-file portable verify + cold-child A/B bench across six shapes.
|
|
835
860
|
- `harness/churnprobe.mjs` -- topology-churn-per-recompute via onGraphMutation opcodes 3/4 (link add/sever); the 1.11 cone-cache gate.
|
|
836
861
|
- `harness/burst-dag.mjs` -- 1.6 burst-shape characterization: Andrii's verbatim strided topology vs the contiguous guess it embeds (ROADMAP S5 closed); CLI, takes engine-path arg.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakkster/lite-signal",
|
|
3
|
-
"version": "1.6.0-rc",
|
|
3
|
+
"version": "1.6.0-rc.2",
|
|
4
4
|
"description": "Zero-GC reactive graph. Monomorphic object pool, versioned push-pull propagation, 32-bit modular versioning. Built for hot paths and long-running processes.",
|
|
5
5
|
"author": "Zahary Shinikchiev <shinikchiev@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"test:harness": "npm --prefix harness/ProfilerTools test",
|
|
36
36
|
"test:zgc": "node --expose-gc --max-semi-space-size=4 --test 'test/zgc/*.test.mjs'",
|
|
37
37
|
"test:zgc:report": "node --expose-gc test/zgc/zero-gc-gate.mjs",
|
|
38
|
-
"test:
|
|
38
|
+
"test:gate": "node --expose-gc --max-semi-space-size=4 --test test/33-perf-gate.test.mjs",
|
|
39
|
+
"test:all": "npm test && npm run test:hardening && npm run test:harness && npm run test:zgc && npm run test:gate",
|
|
39
40
|
"bench": "node --expose-gc bench/benchmark.mjs",
|
|
40
41
|
"harness": "node harness/run.mjs",
|
|
41
42
|
"harness:field": "node harness/run.mjs field",
|
|
@@ -89,6 +90,7 @@
|
|
|
89
90
|
"devDependencies": {
|
|
90
91
|
"@zakkster/lite-devtools": "^1.6.2",
|
|
91
92
|
"@zakkster/lite-gc-profiler": "^1.16.0",
|
|
93
|
+
"@zakkster/lite-perf-gate": "^1.4.2",
|
|
92
94
|
"@zakkster/lite-profiler": "^1.1.0",
|
|
93
95
|
"@zakkster/lite-profiler-signal": "^1.2.0",
|
|
94
96
|
"@zakkster/lite-signal": "^1.3.0 || >=1.4.0-beta.0 || >=1.6.0-preview.0",
|