@zakkster/lite-signal 1.7.0-alpha.4 → 1.7.0-alpha.5
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 +71 -0
- package/README.md +26 -16
- package/llms.txt +22 -8
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,77 @@ 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.7.0-alpha.4] -- 2026-08-18
|
|
8
|
+
|
|
9
|
+
**Torture-suite and test parity with the shipped 1.4.4 canonical suite.** This is
|
|
10
|
+
a **verification-only** cut: `Signal.js` and `Signal.d.ts` are **UNCHANGED**
|
|
11
|
+
(shasum-identical to alpha.3). Nothing in the engine, the public surface, or the
|
|
12
|
+
runtime behaviour moved. Every number below was verified against the real 1.7.0
|
|
13
|
+
engine and pins its ACTUAL behaviour -- no assertion was softened, no budget
|
|
14
|
+
widened.
|
|
15
|
+
|
|
16
|
+
### Added -- five torture scenarios ported to full 1.4.4 parity (17 -> 22)
|
|
17
|
+
|
|
18
|
+
`bench/torture/` now carries the complete **22-scenario superset (19 semantic +
|
|
19
|
+
3 soak)**. The five ported scenarios all target primitives 1.7.0 already ships,
|
|
20
|
+
so they **run natively -- no SKIP**:
|
|
21
|
+
|
|
22
|
+
- `lifecycle-torture` -- `createRoot` detachment (detached children survive and
|
|
23
|
+
stay reactive, deps isolated) + `destroy` registry reset (stales every handle,
|
|
24
|
+
returns `stats().activeNodes` to 0). Both halves native.
|
|
25
|
+
- `owner-torture` -- `getOwner` / `runWithOwner` capture-restore via `createScope`:
|
|
26
|
+
live-owner adoption cascade-disposes, a STALE handle degrades to ROOTED, deps
|
|
27
|
+
stay isolated, plus a 300-seed capture/dispose/recycle/restore fuzz. Native.
|
|
28
|
+
- `error-torture` -- throwing effect bodies under flush: a single throw re-thrown
|
|
29
|
+
UNWRAPPED, 2+ aggregated into an `AggregateError` carrying EXACTLY those errors,
|
|
30
|
+
a survivor between two throwers still runs, and the error buffer drains flat
|
|
31
|
+
(`activeNodes`/`activeLinks` unchanged) over 4096 throw/clean cycles.
|
|
32
|
+
- `deep-chain-torture` -- `pullComputed` recursion fails CLOSED with a `RangeError`
|
|
33
|
+
beyond the stack budget (ramp 2000/2000/100000, depth never pinned) while the
|
|
34
|
+
iterative push path stays open; the registry that threw stays usable and the
|
|
35
|
+
re-throw is deterministic.
|
|
36
|
+
- `zerogc-torture` -- the zero-GC claim made falsifiable via `@zakkster/lite-gc-profiler`:
|
|
37
|
+
`measureAllocs`/`checkAllocs` at `maxBytesPerCall: 0` + `measureOps`/`checkNoGc`
|
|
38
|
+
at `maxMajor: 0` / `maxPauseMs: 2` + engine `stats()` deltas across steady and
|
|
39
|
+
create/dispose churn, with the `churn-box` signalBox path active on 1.7.0 and a
|
|
40
|
+
`ZEROGC_BREAK=1` self-test that must fail the gate.
|
|
41
|
+
|
|
42
|
+
`run.mjs` registers all five in the 1.4.4 order (owner after scope; error +
|
|
43
|
+
deep-chain after capacity; zerogc after dispose; lifecycle after introspect).
|
|
44
|
+
`node bench/torture/run.mjs --list` -> 22.
|
|
45
|
+
|
|
46
|
+
### Added -- `test/30-throwing-equals.test.mjs`
|
|
47
|
+
|
|
48
|
+
Pins the behaviour of a user `equals` predicate that THROWS at all five engine
|
|
49
|
+
sites: the three callable sites (signal `set` pre-check, batch-revert check,
|
|
50
|
+
computed re-eval) and signalBox `boxSet`'s two (pre-check, revert). Includes the
|
|
51
|
+
CONTRAST anti-tautology test (a clean set-X-then-back suppresses the re-run,
|
|
52
|
+
proving the throw is the cause) plus the a-box / b-box cases.
|
|
53
|
+
|
|
54
|
+
### Changed -- capacity section 9, tighter introspection, soak value-oracles
|
|
55
|
+
|
|
56
|
+
- `capacity-torture` gains section 9: the 16x link-grow ceiling (`maxLinks * 16`),
|
|
57
|
+
pinning `err.kind === "links"`, `err.capacity === maxLinks * 16`, growth
|
|
58
|
+
terminating AT the ceiling, and a fail-closed re-throw. Sections 1-8 untouched.
|
|
59
|
+
- `introspect-torture`'s `forEachOwned` assertion tightened from `>= 2` to
|
|
60
|
+
EXACTLY 2 owned children (deterministic count).
|
|
61
|
+
- The three soaks (`graph-fuzzer`, `scheduler-bench`, `torture-soak`) gained a
|
|
62
|
+
once-allocated `Int32Array` shadow value-oracle -- a rotating fixed window per
|
|
63
|
+
tick with zero per-tick allocation and a full sweep at teardown; a mismatch
|
|
64
|
+
exits 1 with seed + index. The reachable magic-constant JIT sink was replaced
|
|
65
|
+
with a module-scoped int32 sink read under an `if (ops > 0 && sink === 0)`
|
|
66
|
+
teardown guard.
|
|
67
|
+
|
|
68
|
+
### Dev dependency
|
|
69
|
+
|
|
70
|
+
`@zakkster/lite-gc-profiler` (`^1.15.0`) added as a **dev-only** dependency for
|
|
71
|
+
`zerogc-torture`. `dependencies` stays empty; `package.json` `files[]` still
|
|
72
|
+
excludes `bench/`.
|
|
73
|
+
|
|
74
|
+
Verified green: torture **22/22** (20 execute + 2 later-version skips --
|
|
75
|
+
`cleanup-return-torture` 1.8.0, `dispose-torture` 1.9.0); unit **490 tests, 489
|
|
76
|
+
pass, 0 fail, 1 skip** (SSR N/A).
|
|
77
|
+
|
|
7
78
|
## [1.7.0-alpha.3] -- 2026-07-27
|
|
8
79
|
|
|
9
80
|
Rolls up the post-`1.7.0-alpha.0` changes into the `alpha.3` tag. The
|
package/README.md
CHANGED
|
@@ -841,7 +841,7 @@ npm run bench
|
|
|
841
841
|
|
|
842
842
|
## Testing strategy
|
|
843
843
|
|
|
844
|
-
Four tiers, all reproducible. The full suite is **
|
|
844
|
+
Four tiers, all reproducible. The full suite is **498 tests across 30 files**: 497 pass, 1 skipped (the architecturally-N/A SSR case in `17-reactivity` -- lite has no DOM layer), 0 failing. Plain `npm test` runs **490** of them; **8 are gated on `--expose-gc`** (3 in `04-zero-gc`, 4 in `09-conformance`, 1 in `11-adopted-reactive`) and need `npm run test:gc` or `npm run test:coverage`. Engine coverage under `c8` is **100% statements / 100% functions / 100% lines / 100% branches**; the two residual branch arms are provably unreachable defensive code carrying `/* c8 ignore */`, itemised at the end of this section.
|
|
845
845
|
|
|
846
846
|
### Tier 1 -- Behavior (unit tests, fast)
|
|
847
847
|
|
|
@@ -875,13 +875,14 @@ Four tiers, all reproducible. The full suite is **485 tests across 29 files**: 4
|
|
|
875
875
|
- **`27-create-root.test.mjs`** (7) -- `createRoot` (1.5.0), the ownership escape hatch. A watcher spawned inside a consumer effect via `createRoot` survives the consumer's re-run (the exact `lite-query` lazy-watcher pattern); the contrast case confirms an *unwrapped* spawn is cascade-disposed; `createRoot` returns `fn`'s value, detaches tracking in `fn`'s direct body while inner effect bodies still track, and composes with box handles. Includes the top-level-export binding case.
|
|
876
876
|
- **`28-run-with-owner.test.mjs`** (16) -- `getOwner` / `runWithOwner` (1.7.0). 7 basic-shape tests (capture inside an effect and inside a computed, `undefined` outside any body, adoption, tracking-observer nulling, return-value pass-through, state restoration on return *and* on throw, nested restore). 3 degradation tests (`null` / `undefined` / a signal handle all fall through to rooted execution). 3 **hazard pins**, run with allocation pressure applied so the ABA guard is genuinely exercised: **recycled-slot cascade** (a stale handle must not adopt into the recycled slot's new resident), **corpse adoption** (adopting into a dead-but-unrecycled owner must not send the next disposal walk into unbounded recursion), and the two composed. Both hazards fail against a raw-pointer sketch and pass on the shipped gen-guarded implementation.
|
|
877
877
|
- **`29-scope.test.mjs`** (4) -- `createScope` (1.6.0), the adopting counterpart to `createRoot`. The scope owner runs exactly once on creation; direct-body signal reads in `fn` are untracked while inner effect/computed bodies track normally; `dispose()` cascade-disposes the owned subtree (effects + computeds) while a directly-allocated signal correctly survives (the engine never owner-adopts signals); a scope created inside a consumer effect SURVIVES that consumer's re-run -- the reconciler-critical detach property; `dispose()` is idempotent; the disposer is introspection-stamped to its owner effect; and `totalAllocations - totalDisposals === activeNodes` holds across the entire lifecycle.
|
|
878
|
+
- **`30-throwing-equals.test.mjs`** (9) -- a user `equals` predicate that THROWS, pinned at all five engine sites it is called from: the three callable sites (signal `set` pre-check, batch-revert check, computed re-eval) and `signalBox` `boxSet`'s two (pre-check, revert). A pre-check throw propagates the ORIGINAL error unwrapped and leaves the handle unmutated with no downstream firing; a batch-revert throw is PINNED to the engine's actual behaviour (net value written, version left bumped, downstream fires -- not an atomic rollback the engine never provided), with a CONTRAST anti-tautology test proving a clean set-X-then-back suppresses the re-run so the throw is the demonstrated cause; a computed re-eval throw is cached as an error and re-thrown until a dep change re-evaluates cleanly. The box cases (`a-box`/`b-box`) confirm `boxSet` behaves identically to `read.set`.
|
|
878
879
|
|
|
879
880
|
> **Known housekeeping:** `28-run-with-owner` and `29-scope` share the numeric prefix `28`. Both files are live and both run; one of them should be renumbered to `29-` on the next touch.
|
|
880
881
|
|
|
881
882
|
```bash
|
|
882
|
-
npm test #
|
|
883
|
-
npm run test:gc # all
|
|
884
|
-
npm run test:coverage # all
|
|
883
|
+
npm test # 490 tests, 30 files, ~5s (8 gc-gated tests skipped)
|
|
884
|
+
npm run test:gc # all 498 (497 pass) -- adds --expose-gc
|
|
885
|
+
npm run test:coverage # all 498 under c8
|
|
885
886
|
```
|
|
886
887
|
|
|
887
888
|
**Coverage (`c8`, engine files only):**
|
|
@@ -927,15 +928,16 @@ npm run bench
|
|
|
927
928
|
|
|
928
929
|
### Tier 4 -- Torture (correctness and resources under chaos)
|
|
929
930
|
|
|
930
|
-
`bench/torture/` holds the complete **
|
|
931
|
-
soak)**
|
|
931
|
+
`bench/torture/` holds the complete **22-scenario superset (19 semantic + 3
|
|
932
|
+
soak)** -- at full parity with the shipped 1.4.4 canonical suite -- behind one
|
|
933
|
+
runner (`run.mjs`), the forward-compatible set through 1.9.
|
|
932
934
|
They are not perf benchmarks: the ops/sec figures reflect random workload
|
|
933
935
|
composition, not engine throughput -- `bench/benchmark.mjs` remains the canonical
|
|
934
936
|
perf harness. Every scenario feature-detects and **skips cleanly** below the
|
|
935
937
|
engine version that introduces its feature, so on the 1.7.0 engine the runner
|
|
936
|
-
executes **
|
|
937
|
-
SKIP for the two
|
|
938
|
-
`dispose-torture` 1.9.0).
|
|
938
|
+
executes **20 of the 22** (17 semantic + 3 soak, including `flush-torture` and the
|
|
939
|
+
four lifecycle scenarios that run natively) and reports a clean SKIP for the two
|
|
940
|
+
later-version ones (`cleanup-return-torture` 1.8.0, `dispose-torture` 1.9.0).
|
|
939
941
|
|
|
940
942
|
```bash
|
|
941
943
|
npm run torture # everything
|
|
@@ -946,10 +948,11 @@ node bench/torture/run.mjs --list
|
|
|
946
948
|
|
|
947
949
|
#### `semantic` -- deterministic, fast, asserts on **meaning**
|
|
948
950
|
|
|
949
|
-
Run these on every commit. The
|
|
950
|
-
`box-torture` (1.5.0), `
|
|
951
|
-
|
|
952
|
-
and SKIP on this
|
|
951
|
+
Run these on every commit. The untagged scenarios run on any 1.4.x+ engine;
|
|
952
|
+
`box-torture` (1.5.0), `lifecycle-torture` (1.5.0), `scope-torture` (1.6.0),
|
|
953
|
+
`owner-torture` (1.6.0), and `flush-torture` (1.7.0) run here because their
|
|
954
|
+
features exist; the two tagged `1.8.0+`/`1.9.0+` feature-detect and SKIP on this
|
|
955
|
+
engine.
|
|
953
956
|
|
|
954
957
|
| scenario | pins |
|
|
955
958
|
| -------- | ---- |
|
|
@@ -962,9 +965,14 @@ and SKIP on this engine.
|
|
|
962
965
|
| `scheduler-storm` | deferred execution under 10,000 effects: gen-bound thunk ABA guard, `FLAG_QUEUED` coalescing, a throwing scheduler contained |
|
|
963
966
|
| `box-torture` (1.5.0) | `signalBox`/`computedBox` interop: the oracle differential fuzz with every node realised as **either** a callable or a box |
|
|
964
967
|
| `scope-torture` (1.6.0) | `createScope` adoption contract, the disposal-crash repro + a 300-seed fuzz, `runWithOwner` re-attachment into a scope, pool balance over 200 rounds |
|
|
968
|
+
| `owner-torture` (1.6.0) | `getOwner`/`runWithOwner` capture-restore: live-owner adoption cascade-disposes, a STALE handle degrades to ROOTED, dep-isolation holds, + a 300-seed capture/dispose/recycle/restore fuzz |
|
|
965
969
|
| `async-torture` | `watch`/`when`/`whenAsync` contracts + a 300-seed projection-guard storm |
|
|
966
|
-
| `capacity-torture` | the fail-closed pool boundary: exact ceilings, re-throw-on-read, `grow` crossing the same boundary |
|
|
970
|
+
| `capacity-torture` | the fail-closed pool boundary: exact ceilings, re-throw-on-read, `grow` crossing the same boundary, and the `maxLinks * 16` grow ceiling terminating AT the wall |
|
|
971
|
+
| `error-torture` | throwing effect bodies under flush: a single throw re-thrown UNWRAPPED, 2+ into an `AggregateError` carrying EXACTLY those errors, a survivor still runs, buffer drains flat over 4096 throw/clean cycles |
|
|
972
|
+
| `deep-chain-torture` | `pullComputed` recursion fails CLOSED with a `RangeError` beyond the stack budget while the iterative push path stays open; the registry stays usable, the re-throw is deterministic |
|
|
967
973
|
| `flush-torture` (1.7.0) | the three `flushStrategy` modes by cross-strategy differential (same graph + op sequence under eager/sab/manual settling to identical values), per-strategy scheduling, re-entrant/empty `flush()`, and the `.subscribe()` contract under each |
|
|
974
|
+
| `zerogc-torture` | the zero-GC claim made falsifiable via `@zakkster/lite-gc-profiler`: `measureAllocs`/`checkAllocs` at `maxBytesPerCall: 0` + `measureOps`/`checkNoGc` at `maxMajor: 0`/`maxPauseMs: 2` + engine `stats()` deltas across steady + churn, `churn-box` active, `ZEROGC_BREAK=1` self-test |
|
|
975
|
+
| `lifecycle-torture` (1.5.0) | `createRoot` detachment (children survive, deps isolated) + `destroy` registry reset (stales every handle, returns `stats().activeNodes` to 0) |
|
|
968
976
|
| `cleanup-return-torture` (1.8.0+) | an effect's returned cleanup: timing, compose order, self-dispose guard -- SKIP on 1.7.0 |
|
|
969
977
|
| `dispose-torture` (1.9.0+) | `Symbol.dispose` / `using` on lifecycle objects -- SKIP on 1.7.0 |
|
|
970
978
|
|
|
@@ -976,8 +984,10 @@ effect rewires, nested-batch + untrack reads, and microtask-scheduled async
|
|
|
976
984
|
flushes -- for 5-10 seconds. What they assert, with a non-zero exit code on
|
|
977
985
|
failure:
|
|
978
986
|
|
|
979
|
-
- zero thrown exceptions during the run,
|
|
980
|
-
- after teardown, `activeNodes` / `activeLinks` return to the leaf-only baseline (the dispose path is sound under sustained churn)
|
|
987
|
+
- zero thrown exceptions during the run,
|
|
988
|
+
- after teardown, `activeNodes` / `activeLinks` return to the leaf-only baseline (the dispose path is sound under sustained churn),
|
|
989
|
+
- **value-correctness** via a once-allocated `Int32Array` shadow oracle -- a rotating fixed window checked per tick (zero per-tick allocation, a scalar cursor) plus a full sweep at teardown; a mismatch exits 1 with the seed and index, and
|
|
990
|
+
- the module-scoped int32 JIT sink advanced (an `if (ops > 0 && sink === 0)` teardown guard proves the work loops were not optimised away).
|
|
981
991
|
|
|
982
992
|
```bash
|
|
983
993
|
node --expose-gc bench/torture/graph-fuzzer.mjs # 10s random-DAG fuzz, 1500 nodes
|
package/llms.txt
CHANGED
|
@@ -59,17 +59,31 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
59
59
|
|
|
60
60
|
## Version notes
|
|
61
61
|
|
|
62
|
-
- **1.7.0-alpha.
|
|
62
|
+
- **1.7.0-alpha.4** (current): **torture-suite + test parity with the shipped 1.4.4
|
|
63
|
+
canonical suite** -- verification-only, the `Signal.js`/`Signal.d.ts` engine is
|
|
64
|
+
UNCHANGED (shasum-identical). Five scenarios were ported to bring `bench/torture/`
|
|
65
|
+
from 17 to **22** (19 semantic + 3 soak): `lifecycle-torture`, `owner-torture`,
|
|
66
|
+
`error-torture`, `deep-chain-torture`, `zerogc-torture` -- all four lifecycle
|
|
67
|
+
scenarios (`createRoot`, `createScope`, `getOwner`/`runWithOwner`, `destroy`) and
|
|
68
|
+
the flush scenario RUN NATIVELY on this engine, no SKIP; each was VERIFIED and
|
|
69
|
+
pins 1.7.0's actual behaviour, no assertion softened. `capacity-torture` gained a
|
|
70
|
+
section 9 pinning the 16x link-grow ceiling; `introspect-torture`'s `forEachOwned`
|
|
71
|
+
was tightened to assert EXACTLY 2 owned children; the three soaks (`graph-fuzzer`,
|
|
72
|
+
`scheduler-bench`, `torture-soak`) gained a once-allocated `Int32Array` shadow
|
|
73
|
+
value-oracle (zero per-tick allocation, full sweep at teardown) plus the int32 JIT
|
|
74
|
+
sink guard. A new `test/30-throwing-equals.test.mjs` pins all five engine `equals`
|
|
75
|
+
sites (3 callable + signalBox boxSet's 2). `@zakkster/lite-gc-profiler` is a
|
|
76
|
+
dev-only dependency for `zerogc-torture`; `files[]` still excludes `bench/`.
|
|
77
|
+
Verified green: torture **22/22** (20 execute + 2 later-version skips);
|
|
78
|
+
unit **490 tests, 489 pass, 0 fail, 1 skip** (SSR N/A).
|
|
79
|
+
- **1.7.0-alpha.3**: the **flush-strategy minor**. Two engine additions and
|
|
63
80
|
one large tooling correction (all shipped in alpha.0, below); `alpha.3` rolls up
|
|
64
81
|
the dangling-cursor crash fix (a one-line `disposeNode` cursor repair; the
|
|
65
82
|
`freeLink` `-1` fallbacks it made dead were removed and branch coverage on
|
|
66
|
-
`Signal.js` closed to **100%**), `flush-torture` now executing on this engine
|
|
67
|
-
|
|
68
|
-
`dispose` 1.9.0 -- of the 17-scenario suite), and the removal of a byte-identical
|
|
83
|
+
`Signal.js` closed to **100%**), `flush-torture` now executing on this engine,
|
|
84
|
+
and the removal of a byte-identical
|
|
69
85
|
duplicate `test/28-scope.test.mjs` (the scope suite had been running twice; the
|
|
70
|
-
correctly-numbered `29-scope.test.mjs` remains).
|
|
71
|
-
unit **485 tests, 465 pass, 0 fail, 1 skip** (SSR N/A) -- 484 pass with the
|
|
72
|
-
sibling `@zakkster/lite-devtools` the 19-test `test/25` rig needs.
|
|
86
|
+
correctly-numbered `29-scope.test.mjs` remains).
|
|
73
87
|
|
|
74
88
|
**1) `flushStrategy` + `r.flush()`** -- per-registry control over *when* effects
|
|
75
89
|
deliver (`"eager"` default | `"sab"` | `"manual"`), plus an explicit `flush()` on
|
|
@@ -780,7 +794,7 @@ function dumpOwnerTree(handle, depth = 0) {
|
|
|
780
794
|
- `bench/benchmark.mjs` -- anti-DCE throughput harness (ops/s; results.txt).
|
|
781
795
|
- `bench/mirror.mjs` + `bench/sweep.mjs` -- Andrii's canonical adapter verbatim, cross-framework rows diffing 1:1 against his log; aggregate output `rb.txt` (lite vs alien across 47 shapes, isolated-per-row).
|
|
782
796
|
- `bench/dispose-recycle.mjs` -- 1.2.2 targeted microbench: create/dispose/recreate cycle (the free-list invariant audit target).
|
|
783
|
-
- `bench/torture/` -- the complete **
|
|
797
|
+
- `bench/torture/` -- the complete **22-scenario superset (19 semantic + 3 soak)** at FULL PARITY with the shipped 1.4.4 canonical suite, behind one runner (`run.mjs`), two groups, forward-compatible through 1.9. Every scenario feature-detects and SKIPS cleanly below the engine version that introduces its feature, so the whole set is safe on the 1.7.0 engine and stays green from 1.4.x forward. On the 1.7.0 engine **20 of the 22 execute** (17 semantic + 3 soak) and **2 skip cleanly** as later-version features. `semantic` (deterministic, fast, asserts on MEANING; CI on every commit) -- the **17 that execute on 1.7.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: read-only introspection surface -- `describe`/`nodeId`/`hasObservers`/`isTracking`/`forEach*`/`ownerOf`/`observeObservers` -- walk-agreement + the ABA gen-stamp guard, `forEachOwned` pinned to EXACTLY 2 owned children), `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 + disposal-crash fuzz + `runWithOwner` re-attachment), `owner-torture` (1.6.0: `getOwner`/`runWithOwner` capture-restore -- live-owner adoption cascade-disposes, a STALE handle degrades to ROOTED, dep-isolation holds, plus a 300-seed capture/dispose/recycle/restore fuzz; native on 1.7.0), `async-torture` (watch / when / whenAsync contracts + a 300-seed projection-guard storm), `capacity-torture` (the fail-closed pool boundary + `CapacityError` + the 16x link-grow ceiling, growth terminating AT `maxLinks * 16` with a fail-closed re-throw), `error-torture` (throwing effect bodies under flush -- a single throw re-thrown UNWRAPPED, 2+ aggregated into an `AggregateError` carrying EXACTLY those errors, a survivor between two throwers still runs, and the error buffer drains flat over 4096 throw/clean cycles), `deep-chain-torture` (`pullComputed` recursion fails CLOSED with a RangeError beyond the stack budget while the iterative push path stays open; the registry that threw stays usable and the re-throw is deterministic), `flush-torture` (1.7.0: the three `flushStrategy` modes by cross-strategy differential -- same graph + op sequence under eager/sab/manual reaching identical settled values -- plus per-strategy scheduling, re-entrant/empty `flush()`, and the `.subscribe()` contract under each), `zerogc-torture` (the zero-GC claim made falsifiable via `@zakkster/lite-gc-profiler`: `measureAllocs`/`checkAllocs` at `maxBytesPerCall: 0` + `measureOps`/`checkNoGc` at `maxMajor: 0`/`maxPauseMs: 2` + engine `stats()` deltas across steady + create/dispose churn, with the `churn-box` signalBox path active on 1.7.0 and a `ZEROGC_BREAK=1` self-test that must fail the gate), `lifecycle-torture` (1.5.0 `createRoot` detachment -- detached children survive and stay reactive, deps isolated -- + 1.4.0 `destroy` registry reset that stales every handle and returns `stats().activeNodes` to 0; native on 1.7.0); plus **2 that skip cleanly** as later-version features: `cleanup-return-torture` (1.8.0 effect-return cleanup), `dispose-torture` (1.9.0 `Symbol.dispose`). `soak` (wall-clock bound, asserts on RESOURCES AND value-correctness via a once-allocated `Int32Array` shadow oracle -- a rotating fixed window per tick with zero per-tick allocation, a full sweep at teardown, mismatch -> exit 1 with seed+index; nightly): `graph-fuzzer`, `scheduler-bench`, `torture-soak` -- exit 0 iff zero errors AND post-teardown pool at or below its leaf-only floor AND every shadowed value matched 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`.
|
|
784
798
|
- `bench/run-all.sh` + `bench/aggregate.mjs` -- cold-process-per-engine protocol + per-scenario aggregation.
|
|
785
799
|
- `harness/run.mjs` -- dispatcher for the run-on-demand probes (smoke, field, dispose, churn, owner, creation, perf, burst, pull, toe, all).
|
|
786
800
|
- `harness/smoke.mjs` -- 1.7 flushStrategy semantics (eager/sab/manual) + `flush()`; ASSERTS, so it fails loudly on a regression. First in `harness:all` and `verify`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakkster/lite-signal",
|
|
3
|
-
"version": "1.7.0-alpha.
|
|
3
|
+
"version": "1.7.0-alpha.5",
|
|
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",
|
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"sideEffects": false,
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@zakkster/lite-devtools": "^1.2.0",
|
|
89
|
+
"@zakkster/lite-gc-profiler": "^1.15.0",
|
|
89
90
|
"@zakkster/lite-profiler": "^1.1.0",
|
|
90
91
|
"@zakkster/lite-profiler-signal": "^1.2.0",
|
|
91
92
|
"@zakkster/lite-signal": "^1.3.0 || >=1.4.0-beta.0 || >=1.6.0-preview.0",
|