@zakkster/lite-signal 1.5.0-beta.8 → 1.5.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 +99 -0
- package/README.md +32 -7
- package/Signal.js +1 -1
- package/llms.txt +35 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,105 @@ 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.5.0-rc.1] -- 2026-07-27
|
|
8
|
+
|
|
9
|
+
Release candidate for 1.5.0. Promotes `1.5.0-beta.8` with **no engine change** --
|
|
10
|
+
`Signal.js` and `Signal.d.ts` are FROZEN: byte-identical to beta.8, hot paths
|
|
11
|
+
byte-identical to 1.4.0. What this RC finalises is the *torture surface*: it is
|
|
12
|
+
brought to full **parity with 1.4.4** at **22 scenarios (19 semantic + 3 soak)**.
|
|
13
|
+
This work is **verification-only** -- the added test/bench material OBSERVES the
|
|
14
|
+
frozen engine and pins its ACTUAL behaviour; nothing in the engine moved.
|
|
15
|
+
|
|
16
|
+
### Changed -- the torture suite is now at full 1.4.4 parity (22 scenarios)
|
|
17
|
+
|
|
18
|
+
The `bench/torture/` runner (`run.mjs`) now registers **22** scenarios in two
|
|
19
|
+
groups -- **19 semantic + 3 soak** -- up from the sixteen (13 semantic + 3 soak)
|
|
20
|
+
the earlier RC listed. Six scenarios are finalised here, ported from 1.4.4 and
|
|
21
|
+
re-pointed / re-targeted to the surface 1.5.0 actually ships:
|
|
22
|
+
|
|
23
|
+
- `owner-torture` -- getOwner/runWithOwner capture-restore, live adoption +
|
|
24
|
+
cascade-dispose, ABA stale-handle -> rooted degradation, dep isolation. 1.5.0
|
|
25
|
+
has no `createScope`, so every owner scope is built from an **effect as the
|
|
26
|
+
unit of ownership** (getOwner() inside an effect body captures that effect;
|
|
27
|
+
its stop() cascade-disposes adopted children).
|
|
28
|
+
- `error-torture` -- throwing effect bodies: per-effect buffering, exact-order
|
|
29
|
+
`AggregateError`, single-throw re-thrown unwrapped, buffer drain flat over
|
|
30
|
+
4096 throw/clean cycles. Confirmed byte-identical to 1.4.4 (Signal.js :816 /
|
|
31
|
+
:823-825 / :829-839).
|
|
32
|
+
- `deep-chain-torture` -- `pullComputed` recursion fails closed with a
|
|
33
|
+
**RangeError** at depth; the iterative push path stays open at equal depth.
|
|
34
|
+
- `zerogc-torture` -- the zero-GC hot path made falsifiable via
|
|
35
|
+
`@zakkster/lite-gc-profiler` (a **dev-only** dependency; `dependencies` stays
|
|
36
|
+
empty). `ZEROGC_BREAK=1` self-test confirmed to reject a planted allocation.
|
|
37
|
+
- `introspect-torture` -- describe/forEach*/hasObservers/ownerOf + the ABA
|
|
38
|
+
gen-stamp guard. Section 7 (ownerOf/forEachOwned) re-targeted off `createScope`
|
|
39
|
+
onto an effect-body owner.
|
|
40
|
+
- `lifecycle-torture` -- createRoot detachment + destroy registry reset; the
|
|
41
|
+
root-vs-owner scenario nests `createRoot` inside an effect body so detachment
|
|
42
|
+
is observable. `destroy()` leaves `stats().activeNodes === 0`.
|
|
43
|
+
|
|
44
|
+
**First-time execution on the 1.5.0 engine.** Several lanes that only ever
|
|
45
|
+
SKIPPED on earlier cuts now EXECUTE here for the first time: `box-torture`
|
|
46
|
+
(signalBox/computedBox), the **`churn-box`** lane inside `zerogc-torture`
|
|
47
|
+
(signalBox create+dispose churn -- retains 0 B/call, `poolGrowths` delta 0,
|
|
48
|
+
`activeNodes` back to baseline), and the owner/root lifecycle scenarios
|
|
49
|
+
(`lifecycle-torture` + `owner-torture` via getOwner/runWithOwner/createRoot).
|
|
50
|
+
|
|
51
|
+
Every scenario feature-detects and **skips cleanly** below the version that
|
|
52
|
+
introduces its feature. On the 1.5.0 engine the runner executes **15 semantic
|
|
53
|
+
scenarios** and reports a clean SKIP for the four feature-gated later-version
|
|
54
|
+
ones: `scope-torture` (1.6.0 `createScope`), `flush-torture` (1.7.0
|
|
55
|
+
`flushStrategy`), `cleanup-return-torture` (1.8.0 effect-return cleanup), and
|
|
56
|
+
`dispose-torture` (1.9.0 `Symbol.dispose`). Each of the three soaks now carries
|
|
57
|
+
an `Int32Array` value-correctness oracle (allocated once, a rotating sampled
|
|
58
|
+
window per tick with zero per-tick allocation, a full sweep at teardown).
|
|
59
|
+
|
|
60
|
+
**Final verification for this RC (`--expose-gc`):**
|
|
61
|
+
|
|
62
|
+
| group | result |
|
|
63
|
+
| ----- | ------ |
|
|
64
|
+
| `torture:semantic` | 19/19 pass -- 15 executed, 4 clean skips (scope/flush/cleanup-return/dispose) |
|
|
65
|
+
| `torture:soak` | 3/3 pass -- zero errors, every pool back to its leaf-only floor, oracle sweeps 0 mismatches |
|
|
66
|
+
|
|
67
|
+
The mutation-evidence table in `bench/torture/README.md` is unchanged and still
|
|
68
|
+
holds: the soaks catch 1 of 5 injected engine defects, the semantic files catch
|
|
69
|
+
5 of 5, and each of the feature-scoped mutants is caught only by its dedicated
|
|
70
|
+
scenario.
|
|
71
|
+
|
|
72
|
+
### Changed -- README and llms.txt torture sections corrected
|
|
73
|
+
|
|
74
|
+
Both root docs now describe the **22-scenario suite (19 semantic + 3 soak)**, the
|
|
75
|
+
15-run / 4-skip split on the 1.5.0 engine, the six scenarios finalised in this RC,
|
|
76
|
+
and the feature gates -- matching `bench/torture/run.mjs`. The unit test count is
|
|
77
|
+
updated for the new `test/29-throwing-equals` (7 tests).
|
|
78
|
+
|
|
79
|
+
### Added -- test/29-throwing-equals
|
|
80
|
+
|
|
81
|
+
A new `test/29-throwing-equals.test.mjs` (7 `it()` across three call sites)
|
|
82
|
+
pins the behaviour of a user `equals` predicate that THROWS at each of the three
|
|
83
|
+
LOGICAL sites the engine invokes it on the callable surface: signal-set pre-check
|
|
84
|
+
(Signal.js :1096), batch-revert check (:1103), and computed re-eval (:977). A
|
|
85
|
+
raw grep shows five physical `eq()` calls because 1.5.0's `signalBox` mirrors the
|
|
86
|
+
callable set path with its own pre-check/revert pair (:1201 / :1208); they
|
|
87
|
+
collapse to the same three logical sites and are byte-identical in logic. No
|
|
88
|
+
behavioral divergence from 1.4.4 was observed -- every assertion holds identically.
|
|
89
|
+
|
|
90
|
+
### Notes -- unit suite and the devtools real-boot rig
|
|
91
|
+
|
|
92
|
+
The unit suite is **461 tests: 460 pass + 1 skip, 0 fail** (the architectural SSR
|
|
93
|
+
N/A in `17-reactivity`) in the full workspace, i.e. with the sibling
|
|
94
|
+
`@zakkster/lite-devtools` resolvable, and now includes the 7-test
|
|
95
|
+
`test/29-throwing-equals`. `test/25-devtools-real-boot.test.mjs` is a 10-test
|
|
96
|
+
real-rig that boots the installed Devtools against the local engine; a bare
|
|
97
|
+
checkout without that sibling cannot resolve the specifier and reports 10 fewer.
|
|
98
|
+
No engine test regressed; the gap is purely the sibling package's presence.
|
|
99
|
+
`@zakkster/lite-gc-profiler` is added to `devDependencies` for `zerogc-torture`;
|
|
100
|
+
it is dev-only and `dependencies` stays empty (zero runtime deps).
|
|
101
|
+
|
|
102
|
+
Nothing new ships in the tarball: `files[]` still excludes `bench/`, so this RC's
|
|
103
|
+
publishable surface (`Signal.js`, `Signal.d.ts`, `Watch.js`, docs) is identical
|
|
104
|
+
in bytes to beta.8 apart from the version strings. Drop-in over 1.5.0-beta.8.
|
|
105
|
+
|
|
7
106
|
## [1.5.0-beta.8] -- 2026-07-22
|
|
8
107
|
|
|
9
108
|
### Added -- `box-torture`, and the torture suite reaches the box surface
|
package/README.md
CHANGED
|
@@ -792,6 +792,7 @@ Four tiers, all reproducible.
|
|
|
792
792
|
- **`28-run-with-owner.test.mjs`** -- `getOwner` / `runWithOwner` (1.5.0-beta.2), the re-attach companion. 16 tests, structured in three groups: basic shape (7 tests: undefined outside, effect/computed inside, restore-on-return, throw-safety, nesting), degradation (3 tests: null / undefined / signal-handle all fall through to rooted execution), and the three **hazard pins** that a raw-pointer implementation fails: (i) recycled-slot cascade -- capture, dispose owner, allocate an effect that reuses the pool slot, `runWithOwner(captured)` must not adopt into the recycled slot's new resident; (ii) corpse adoption -- capture, dispose owner but not-yet-recycled, `runWithOwner(captured, () => effect(...))` must not crash with `RangeError` in the cleanup recursion; (iii) composed -- both together, continuation must survive stranger re-runs AND disposal. All three fail against the naive `getOwner() { return currentOwner; }` shape (empirically verified against a 1.5.0-beta engine patched with the raw-pointer alternative -- `harness/owner-hazard-repro.mjs`); all three pass with the `describeNode` gen-stamped handle + `liveNode` ABA guard that ships.
|
|
793
793
|
- **`25-devtools-real-boot.test.mjs`** -- Devtools/Studio contract (10 tests). Boots the actual `Devtools.js` against the 1.5.0 engine and exercises all 19 Devtools exports plus the 10 symbols Studio imports from Devtools. Pins the ghost contract: heavy introspection (graph walk, owner-tree, observer descriptors) adds **zero** nodes to the live graph. Catches the real-rig failure mode where importing the package by its own name from a repo whose `package.json` declares `name: "@zakkster/lite-signal"` resolves to the published build instead of the local engine.
|
|
794
794
|
- **`26-free-list-invariant.test.mjs`** -- the 1.2.2 audit's cleanliness pins (3 invariant tests + 1 targeted coverage test). Asserts directly -- by inspecting freshly-allocated nodes through the documented `describe()` -> `NODE_PTR` introspection protocol -- that the `ReactiveNode` constructor and the fresh-pool-growth path initialize the ten fields the audit removed from `createNode` to identical values, so the deleted writes were defending against a state the engine cannot produce on a clean free list. The 4th test covers the swallow-on-self-dispose-then-throw branch in `pullComputed` (the path that lifted branch coverage from 98.07% to 98.43%).
|
|
795
|
+
- **`29-throwing-equals.test.mjs`** -- a user `equals` predicate that THROWS (7 tests across three call sites). Pins the fail-predictably behaviour at each of the three LOGICAL sites the engine invokes `equals` on the callable surface: signal-set pre-check (propagates the original error, leaves the signal unmutated, fires no downstream), batch-revert check (PINNED: the throw lands after the value write, strands the version bump so downstream fires, and the registry recovers on the next batch), and computed re-eval (caches the throw as `FLAG_HAS_ERROR`, re-throws the same error until a dep change re-evaluates cleanly). 1.5.0's `signalBox` mirrors the callable set path with its own pre-check/revert pair, so a raw grep shows five physical `eq()` calls collapsing to the same three logical sites -- byte-identical in logic, no divergence from 1.4.4.
|
|
795
796
|
|
|
796
797
|
```bash
|
|
797
798
|
npm test
|
|
@@ -822,10 +823,24 @@ npm run bench
|
|
|
822
823
|
|
|
823
824
|
### Tier 4 -- Torture (correctness and resources under chaos)
|
|
824
825
|
|
|
825
|
-
`bench/torture/` holds
|
|
826
|
-
|
|
826
|
+
`bench/torture/` holds the complete **22-scenario suite (19 semantic + 3
|
|
827
|
+
soak)** in two groups, behind one runner -- full parity with 1.4.4. They are not
|
|
828
|
+
perf benchmarks: the ops/sec figures reflect random workload composition, not
|
|
827
829
|
engine throughput -- `bench/benchmark.mjs` remains the canonical perf harness.
|
|
828
830
|
|
|
831
|
+
Every scenario feature-detects and **skips cleanly** below the engine version
|
|
832
|
+
that introduces its feature, so the whole set is safe to ship on the 1.5.0 engine
|
|
833
|
+
and stays green from 1.4.x forward. On this engine the runner executes **15
|
|
834
|
+
semantic scenarios** -- including `owner-torture`, `error-torture`,
|
|
835
|
+
`deep-chain-torture`, `zerogc-torture` (its `churn-box` signalBox lane),
|
|
836
|
+
`introspect-torture` and `lifecycle-torture`, which EXECUTE here for the first
|
|
837
|
+
time via signalBox and the getOwner/runWithOwner/createRoot surface -- and
|
|
838
|
+
reports a clean SKIP for the four later-version ones (`scope-torture` 1.6.0,
|
|
839
|
+
`flush-torture` 1.7.0, `cleanup-return-torture` 1.8.0, `dispose-torture` 1.9.0).
|
|
840
|
+
Each soak carries an `Int32Array` value-correctness oracle: one allocation up
|
|
841
|
+
front, a rotating sampled window per tick (zero per-tick allocation), a full
|
|
842
|
+
sweep at teardown. Verified green: **22/22 passed**.
|
|
843
|
+
|
|
829
844
|
```bash
|
|
830
845
|
npm run torture # everything
|
|
831
846
|
npm run torture:semantic # correctness only, ~10s, CI-shaped
|
|
@@ -847,7 +862,10 @@ asserting nothing.
|
|
|
847
862
|
|
|
848
863
|
#### `semantic` -- deterministic, fast, asserts on **meaning**
|
|
849
864
|
|
|
850
|
-
Run these on every commit. They pin values, wakeups, work and ordering.
|
|
865
|
+
Run these on every commit. They pin values, wakeups, work and ordering. The nine
|
|
866
|
+
without a version tag run on the 1.5.0 engine; the four tagged `1.6.0+`/`1.7.0+`/
|
|
867
|
+
`1.8.0+`/`1.9.0+` feature-detect and report a clean SKIP here, then activate on
|
|
868
|
+
the engine version that introduces their feature.
|
|
851
869
|
|
|
852
870
|
| scenario | pins |
|
|
853
871
|
| -------- | ---- |
|
|
@@ -857,16 +875,23 @@ Run these on every commit. They pin values, wakeups, work and ordering.
|
|
|
857
875
|
| `concurrent-storm` | eight reentrancy and flush-ordering contracts: self-write, `CycleError` on mutual loops, nested-batch boundaries, cascade ordering, cleanup writes, dispose-mid-flush, self-disposal, async interleaving |
|
|
858
876
|
| `scheduler-storm` | deferred execution under 10,000 effects: the gen-bound thunk's ABA guard, `FLAG_QUEUED` coalescing, a throwing scheduler not taking the pass down |
|
|
859
877
|
| `box-torture` (1.5.0) | `signalBox` / `computedBox` interop: the oracle differential fuzz with every node realised as **either** a callable or a box, plus the box-only surface (`subscribe`, `update`) and the allocation-light representation contract |
|
|
878
|
+
| `async-torture` | `watch` / `when` / `whenAsync` contracts: the `Object.is` projection guard, correct `oldValue`, stop-from-callback, once-then-auto-dispose, plus a 300-seed differential storm against an independent shadow |
|
|
879
|
+
| `capacity-torture` | the fail-closed pool boundary: exact node/link ceilings, `CapacityError` on both pools, re-throw-on-read after a mid-build overflow (no partial value escapes), and `grow` crossing the same boundary without throwing |
|
|
880
|
+
| `op-accounting` | structural work counted from the engine's own `onGraphMutation` opcode lane (op 1-5) instead of wall-clock: op5 identity, equality cutoff, link/node balance across rewiring, laziness, and a 400-seed op5-vs-wrapper differential |
|
|
881
|
+
| `scope-torture` (1.6.0+) | `createScope` adoption + the disposal-crash repro and its 300-seed fuzz; `runWithOwner` re-attachment into a scope; pool balance over 200 scope rounds |
|
|
882
|
+
| `flush-torture` (1.7.0+) | `flushStrategy` eager/sab/manual convergence via a cross-strategy differential, per-strategy scheduling, and the `.subscribe()` contract under each |
|
|
883
|
+
| `cleanup-return-torture` (1.8.0+) | an effect's returned cleanup: timing, compose order after imperative `onCleanup`, the self-dispose guard, and a 400-seed differential vs `onCleanup(fn)` as the last statement |
|
|
884
|
+
| `dispose-torture` (1.9.0+) | `Symbol.dispose` / `using` on lifecycle objects: the five stamped sites, the callable-exclusion assertion, per-site equivalence, idempotence, prototype-stamping for boxes |
|
|
860
885
|
|
|
861
886
|
Why this group exists: the resource soaks below pass green on an engine whose
|
|
862
887
|
computeds return stale values. Flipping the clean short-circuit in `pullComputed`
|
|
863
888
|
from `<= 0` to `<= 1` keeps the pool perfectly balanced and throws nothing --
|
|
864
889
|
`oracle-fuzzer` catches it on 400/400 seeds, and all three soaks report PASS.
|
|
865
890
|
Separately, removing the `node.gen === gen` guard from the cached scheduler thunk
|
|
866
|
-
is caught by `scheduler-storm` and **missed by
|
|
867
|
-
`computedBox` that silently downgrades its default equality from
|
|
868
|
-
`===` is caught by `box-torture` alone -- the box unit suite and
|
|
869
|
-
callable-only oracle both pass it, because only a graph mixing both
|
|
891
|
+
is caught by `scheduler-storm` and **missed by every unit test** (462 in the full
|
|
892
|
+
workspace). And a `computedBox` that silently downgrades its default equality from
|
|
893
|
+
`Object.is` to `===` is caught by `box-torture` alone -- the box unit suite and
|
|
894
|
+
the callable-only oracle both pass it, because only a graph mixing both
|
|
870
895
|
representations exercises the divergence.
|
|
871
896
|
|
|
872
897
|
Where no contract is documented, these files pin the *observed* behaviour and say
|
package/Signal.js
CHANGED
package/llms.txt
CHANGED
|
@@ -53,7 +53,40 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
53
53
|
|
|
54
54
|
## Version notes
|
|
55
55
|
|
|
56
|
-
- **1.5.0-
|
|
56
|
+
- **1.5.0-rc.1** (current): release candidate for 1.5.0. **No engine change** --
|
|
57
|
+
`Signal.js` and `Signal.d.ts` are FROZEN: byte-identical to beta.8, hot paths
|
|
58
|
+
byte-identical to 1.4.0. This RC brings the torture surface to full **parity
|
|
59
|
+
with 1.4.4**: `bench/torture/run.mjs` now registers the complete **22-scenario
|
|
60
|
+
suite (19 semantic + 3 soak)**, up from the sixteen (13 semantic + 3 soak) the
|
|
61
|
+
earlier RC listed. Six scenarios are finalised here -- `owner-torture`
|
|
62
|
+
(getOwner/runWithOwner capture-restore + ABA degradation), `error-torture`
|
|
63
|
+
(throwing effect bodies: per-effect buffering, exact-order AggregateError,
|
|
64
|
+
buffer drain over 4096 cycles), `deep-chain-torture` (pullComputed recursion
|
|
65
|
+
fail-closed with a RangeError vs the iterative push path), `zerogc-torture`
|
|
66
|
+
(the zero-GC hot path made falsifiable via `@zakkster/lite-gc-profiler` --
|
|
67
|
+
a **dev-only** dependency), `introspect-torture` (describe/forEach*/ownerOf +
|
|
68
|
+
the ABA gen-stamp guard), and `lifecycle-torture` (createRoot detachment +
|
|
69
|
+
destroy registry reset). This is **verification-only**: the new files OBSERVE
|
|
70
|
+
the frozen engine and pin its actual behaviour; nothing in the engine moved.
|
|
71
|
+
A notable milestone -- several lanes that only ever SKIPPED on earlier cuts
|
|
72
|
+
EXECUTE on the 1.5.0 engine for the FIRST TIME: `box-torture`
|
|
73
|
+
(signalBox/computedBox), the `churn-box` lane inside `zerogc-torture`
|
|
74
|
+
(signalBox create+dispose churn retains 0 B/call), and the owner/root
|
|
75
|
+
lifecycle scenarios `lifecycle-torture` + `owner-torture` (via
|
|
76
|
+
getOwner/runWithOwner/createRoot). On the 1.5.0 engine the runner executes
|
|
77
|
+
**15 semantic** scenarios and reports a clean SKIP for the four feature-gated
|
|
78
|
+
later-version ones (`scope-torture` 1.6.0, `flush-torture` 1.7.0,
|
|
79
|
+
`cleanup-return-torture` 1.8.0, `dispose-torture` 1.9.0) -- verified green:
|
|
80
|
+
**22/22 passed** (19 semantic + 3 soak, zero errors, pools back to their
|
|
81
|
+
leaf-only floor; each soak now carries an Int32Array value-oracle sweep with
|
|
82
|
+
zero mismatches). Unit suite is **461 tests: 460 pass + 1 skip** (SSR N/A in
|
|
83
|
+
`17-reactivity`) with the sibling `@zakkster/lite-devtools` present, including
|
|
84
|
+
the new 7-test `test/29-throwing-equals` that pins the three `equals()` call
|
|
85
|
+
sites. Nothing new ships: `files[]` excludes `bench/` and `dependencies` stays
|
|
86
|
+
empty (zero runtime deps), so the publishable surface is byte-identical to
|
|
87
|
+
beta.8 apart from version strings. Drop-in over 1.5.0-beta.8.
|
|
88
|
+
|
|
89
|
+
- **1.5.0-beta.8**: the **torture-surface bump**. No engine change --
|
|
57
90
|
the only edit to `Signal.js` is the version string in its banner. The torture
|
|
58
91
|
suite (one runner `bench/torture/run.mjs`, `semantic` / `soak` groups, shared
|
|
59
92
|
`helpers/`) gains a sixth semantic scenario, **`box-torture`**, for the
|
|
@@ -738,7 +771,7 @@ function dumpOwnerTree(handle, depth = 0) {
|
|
|
738
771
|
- `bench/benchmark.mjs` -- anti-DCE throughput harness (ops/s; results.txt).
|
|
739
772
|
- `bench/benchmarkReactive.mjs` -- cross-framework reactivity suite vs alien-signals, preact, vue-reactivity, solid (resultsReactive.txt).
|
|
740
773
|
- `bench/dispose-recycle.mjs` -- 1.2.2 targeted microbench: create/dispose/recreate cycle (the free-list invariant audit target).
|
|
741
|
-
- `bench/torture/` --
|
|
774
|
+
- `bench/torture/` -- the complete **16-scenario superset (13 semantic + 3 soak)** 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.5.0 engine and stays green from 1.4.x forward. `semantic` (deterministic, fast, asserts on MEANING; CI on every commit) -- the **9 that execute on 1.5.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), `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, plus box-only subscribe/update and the allocation-light representation contract), `async-torture` (watch / when / whenAsync contracts + a 300-seed projection-guard storm), `capacity-torture` (the fail-closed pool boundary -- exact ceilings, re-throw-on-read, `grow` crossing the same boundary), `op-accounting` (structural work counted from the engine's own `onGraphMutation` opcode lane, not wall-clock); plus **4 that skip cleanly** as later-version features: `scope-torture` (1.6.0 `createScope`), `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` -- exit 0 iff zero errors 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`.
|
|
742
775
|
- `bench/torture/helpers/index.mjs` -- shared torture infrastructure: seeded `mulberry32` (failures replay from their seed), `soakRegistry` / `fixedRegistry`, `createReport` (collects failures rather than throwing on the first), and `VALUE_POOL`, the adversarial value domain carrying the pairs where candidate equality definitions disagree (`Object.is` vs `===` on NaN and -0/0; `===` vs `==` on 0/""/false/"0" and null/undefined). Dependency-free and side-effect-free by contract: importing it must not touch the default registry.
|
|
743
776
|
- `bench/run-all.sh` + `bench/aggregate.mjs` -- cold-process-per-engine protocol + per-scenario aggregation.
|
|
744
777
|
- `harness/run.mjs` -- dispatcher for the run-on-demand probes (field, dispose, churn, owner, creation, all).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakkster/lite-signal",
|
|
3
|
-
"version": "1.5.0-
|
|
3
|
+
"version": "1.5.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",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"sideEffects": false,
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@zakkster/lite-devtools": "^1.2.0",
|
|
88
|
+
"@zakkster/lite-gc-profiler": "^1.15.0",
|
|
88
89
|
"@zakkster/lite-profiler": "^1.1.0",
|
|
89
90
|
"@zakkster/lite-profiler-signal": "^1.2.0",
|
|
90
91
|
"@zakkster/lite-signal": "^1.3.0 || >=1.4.0-beta.0 || >=1.6.0-preview.0",
|