Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
cf850ca
fix(buffer): close four Node divergences in size validation and inspe…
claude Nov 15, 2026
c5fd268
fix(buffer): close the pr-gate findings on Buffer inspect extras (#391)
claude Nov 15, 2026
49bc489
fix(inspect): bound cyclic custom-inspect hooks; pin the rethrow path…
claude Nov 15, 2026
efa16de
docs(test): park the 22 recorded mutations for #391 until a human can…
claude Nov 15, 2026
960670e
refactor(buffer): reduce the #391 change to its three simple items
claude Nov 15, 2026
6eaf6c8
test(compat): drop case 71, it belongs to the deferred inspect work (…
x-ror Nov 15, 2026
921bcbd
Merge remote-tracking branch 'origin/master' into claude/wizardly-cer…
claude Nov 15, 2026
ef88308
Merge pull request #405 from x-ror/claude/wizardly-cerf-eqzmwa
x-ror Nov 15, 2026
8239f1f
build(gates): record the #389/#391 mutations and run the matrix check…
x-ror Nov 15, 2026
4df256c
Merge pull request #409 from x-ror/build/issue-397-manifest-entries
x-ror Nov 15, 2026
139ee25
ci(gates): pin Node 24, per-case timeouts, honest gate runner, and be…
x-ror Nov 15, 2026
ed468bd
Merge pull request #410 from x-ror/ci/gate-infrastructure
x-ror Nov 15, 2026
bdfaae0
feat(compat): move the Node oracle to 26+ and match its four observab…
x-ror Nov 15, 2026
5810038
build(md): bump markdownlint-cli2 to 0.24.1 and format markdown with …
x-ror Nov 15, 2026
4139a71
Merge pull request #411 from x-ror/build/md-fmt
x-ror Nov 15, 2026
2b474ea
fix(compat): drop SlowBuffer, fail closed on a non-numeric oracle maj…
x-ror Nov 15, 2026
138a551
docs(compat): drop SlowBuffer from the coverage matrix
x-ror Nov 15, 2026
60c6229
test(https): drop the IP servername node 26 rejects in the graceful-e…
x-ror Nov 15, 2026
ae1fb6b
bench(gate): recalibrate four UTF-8 caps for the node 26 oracle
x-ror Nov 15, 2026
8619888
Merge pull request #412 from x-ror/feat/node-26-oracle
x-ror Nov 15, 2026
bc7ff71
fix(runtime): align buffer, events, assert, and typed_array allocator…
x-ror Nov 15, 2026
f16b22c
fix(runtime): close PR #413 review findings
x-ror Nov 15, 2026
85a2319
fix(runtime): close PR #413 pr-gate findings
x-ror Nov 15, 2026
b81f812
perf(buffer): recover atob/btoa and fill cost from PR #413 validation
x-ror Nov 16, 2026
f7b608e
Merge pull request #413 from x-ror/fix/stdlib-buffer-events-assert-alloc
x-ror Nov 16, 2026
dd62797
docs(compat): retarget node 24 verification citations to node 26
x-ror Nov 16, 2026
fbc2bb8
Merge pull request #414 from x-ror/docs/node-26-citations
x-ror Nov 16, 2026
5ebfe30
refactor(runtime): derive embedded-JS module identity and visibility …
x-ror Nov 16, 2026
1de56c0
fix(test): repoint the unreachable-module mutation at the formatted s…
x-ror Nov 16, 2026
f106ab4
Merge pull request #421 from x-ror/refactor/js-layout
x-ror Nov 16, 2026
f9f0cf8
perf(runtime): compile builtin JS factories on first require
x-ror Nov 16, 2026
9079ff1
Merge pull request #425 from x-ror/perf/lazy-builtins
x-ror Nov 16, 2026
633cca3
build(js): count module-eval global reads in lazy builtin modules
x-ror Nov 16, 2026
46fddda
Merge pull request #427 from x-ror/build/ratchet-lazy-captures
x-ror Nov 16, 2026
0213331
harden(runtime): take lazy builtins' module-eval globals from primord…
x-ror Nov 16, 2026
567333e
fix(util): guard the promisify.custom SymbolFor call like the inspect…
x-ror Nov 16, 2026
ee68eca
Merge pull request #430 from x-ror/harden/lazy-module-captures
x-ror Nov 16, 2026
c4f90b6
refactor(runtime): build every builtin coded error through internal/e…
x-ror Nov 16, 2026
978abd7
fix(test): pin case-76 and 62 mutations to what the runner reports
x-ror Nov 16, 2026
d1ac1c8
Merge pull request #438 from x-ror/refactor/internal-errors
x-ror Nov 16, 2026
249157a
refactor(runtime): split Blob, File and the blob: URL registry out of…
x-ror Nov 16, 2026
99954d7
Merge pull request #441 from x-ror/refactor/split-blob
x-ror Nov 16, 2026
e2a2eb5
refactor(runtime): tidy internal/blob.js and take its live reads from…
x-ror Nov 16, 2026
f0361d4
refactor(runtime): split stream.js into internal/streams like node
x-ror Nov 16, 2026
0532f25
fix(test): keep crypto's eager root single so the lazy_builtins mutat…
x-ror Nov 16, 2026
563f174
fix(test): retarget the lazy-os mutation off the removed bare req('cr…
x-ror Nov 16, 2026
d744298
Merge pull request #448 from x-ror/refactor/split-streams
x-ror Nov 16, 2026
223318d
Merge remote-tracking branch 'origin/master' into refactor/blob-cleanup
x-ror Nov 16, 2026
bff6562
Merge pull request #446 from x-ror/refactor/blob-cleanup
x-ror Nov 16, 2026
cb87479
refactor(runtime): split stream/web.js into internal/webstreams like …
x-ror Nov 16, 2026
9922f55
Merge pull request #452 from x-ror/refactor/split-webstreams
x-ror Nov 16, 2026
8be9b8d
refactor(http): split node:http into internal/http/{common,incoming,o…
x-ror Nov 16, 2026
4628eb6
Merge remote-tracking branch 'origin/master' into refactor/split-http
x-ror Nov 16, 2026
4a6bf35
Merge pull request #457 from x-ror/refactor/split-http
x-ror Nov 16, 2026
6aaa5cc
refactor(fetch): split internal/fetch into internal/fetch/{headers,bo…
x-ror Nov 16, 2026
ddedddb
Merge pull request #462 from x-ror/refactor/split-fetch
x-ror Nov 16, 2026
a85ac6d
refactor(crypto): split node:crypto into internal/crypto/{util,hash,r…
x-ror Nov 16, 2026
5f86bb1
Merge pull request #467 from x-ror/refactor/split-crypto
x-ror Nov 16, 2026
6fa09a6
refactor(util): split node:util into internal/util{,/inspect,/compari…
x-ror Nov 16, 2026
aea9da8
Merge pull request #471 from x-ror/refactor/split-util
x-ror Nov 16, 2026
b91fee2
refactor(buffer): move node:buffer's codecs and numeric read/write to…
x-ror Nov 16, 2026
1f4272d
Merge pull request #473 from x-ror/refactor/split-buffer
x-ror Nov 16, 2026
e6b18a6
refactor(os): move os.constants tables to internal/os/constants
x-ror Nov 16, 2026
2d0cb93
Merge pull request #476 from x-ror/refactor/split-os
x-ror Nov 16, 2026
5228c42
refactor(url): move the WHATWG URL implementation to internal/url
x-ror Nov 16, 2026
1165a72
Merge pull request #480 from x-ror/refactor/split-url
x-ror Nov 16, 2026
33c2d95
refactor(url): move punycode and IDNA out of internal/url
x-ror Nov 16, 2026
230b541
Merge pull request #483 from x-ror/refactor/split-url-idna
x-ror Nov 16, 2026
e0968ef
test(primordials): pin the eager/lazy classification on a fixture tree
x-ror Nov 17, 2026
2579be6
fix(scripts): move the ratchet scan to lib so the CLI runs unguarded
x-ror Nov 17, 2026
efa53bc
test(primordials): record the fail-open entry-point guard as a mutation
x-ror Nov 17, 2026
b6b7742
harden(gates): protect scripts/lib/primordials-scan.mjs from agent wr…
x-ror Nov 17, 2026
f146fb6
harden(runtime): lock Function.prototype.call/apply/bind before user …
x-ror Nov 17, 2026
f707936
fix(scripts): move the graph check to lib so the CLI runs unguarded
x-ror Nov 17, 2026
5cf1899
Merge pull request #485 from x-ror/harden/lock-function-call
x-ror Nov 17, 2026
19a8692
test(scripts): pin the graph CLI's failing branch on a one-defect tree
x-ror Nov 17, 2026
19dd2ad
docs(scripts): name lib/js-graph-check.mjs as the graph rules' home
x-ror Nov 17, 2026
f30b9ee
Merge pull request #484 from x-ror/fix/eager-ratchet-mutation
x-ror Nov 17, 2026
0784f7a
test(scripts): run the graph CLI spawn tests under bun as well as node
x-ror Nov 17, 2026
80cac00
test(scripts): prove each graph CLI arm runs the runtime it names
x-ror Nov 17, 2026
adfe585
refactor(events): rewrite node:events in the new JS design (pilot)
x-ror Nov 17, 2026
661ef56
Merge remote-tracking branch 'origin/master' into refactor/events-new…
x-ror Nov 17, 2026
c3b35ab
Merge pull request #493 from x-ror/refactor/events-new-design
x-ror Nov 17, 2026
2cf0187
build(js): ratchet exempts only provably private function-declaration…
x-ror Nov 17, 2026
4c3da29
Merge pull request #495 from x-ror/build/ratchet-captured-invoke
x-ror Nov 17, 2026
77cdab3
Merge pull request #486 from x-ror/fix/js-graph-cli-guard
x-ror Nov 17, 2026
d179293
Merge pull request #487 from x-ror/fix/js-graph-cli-bun
x-ror Nov 17, 2026
84e3911
test(scripts): bound CLI spawns, pin clean stderr and ratchet OK figures
x-ror Nov 17, 2026
b854f7b
test(scripts): name spawn errors before signals; narrow the ratchet O…
x-ror Nov 17, 2026
ac9e124
Merge pull request #496 from x-ror/test/graph-ratchet-cli-nits
x-ror Nov 17, 2026
f9eb1b8
test(scripts): pin the ratchet CLI's echo, self-test and compare bran…
x-ror Nov 17, 2026
a55a4b0
test(scripts): SIGKILL bounded CLI spawns; clean up and guard the rat…
x-ror Nov 17, 2026
327daad
Merge pull request #497 from x-ror/test/ratchet-cli-residuals
x-ror Nov 17, 2026
87688b0
bench(gate): widen the url-parse-ipv4 cap to 22.5 for bimodal CI runners
x-ror Nov 17, 2026
d3fce98
bench(gate): set the url-parse-ipv4 cap to 20.0 and mark the url caps…
x-ror Nov 17, 2026
6622a78
Merge pull request #498 from x-ror/bench/url-parse-ipv4-cap
x-ror Nov 17, 2026
8f5db09
harden(js): lock call/apply/bind and wrapped intrinsics against own-p…
x-ror Nov 17, 2026
68ee7b8
docs(claude): state what the #494 lock protects and what it still doe…
x-ror Nov 17, 2026
e14b53d
Merge pull request #499 from x-ror/harden/lock-captured-invoke
x-ror Nov 17, 2026
e102d0d
merge: sync lava master (e14b53d)
x-ror Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .claude/agents/gate-runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ five that CI does not run.

The brief's `phase:` picks one.

- **`compile`** — `make check`; `make check-js` if any JS changed; `make
check-md` if any `.md` changed; `make check-actions` if a workflow changed;
- **`compile`** — `make check`; `make check-js` if any JS changed;
`make check-md` if any `.md` changed; `make check-actions` if a workflow changed;
`make build`. Fast, and the conductor waits on it: reviewers are not spawned
on code that does not compile. Stop at the first failure of `make check` or
`make build`.
Expand All @@ -54,8 +54,8 @@ Before the first target, compare the toolchain with what CI pins — `node
--version` against `.node-version` (and `node-version:` in `ci.yml`), `odin
version` if the brief names one. On a mismatch:

- Look for the pinned version before saying it is absent: `ls /opt`, `type -a
node`, the version manager on the box. "Not on `PATH`" is not "not
- Look for the pinned version before saying it is absent: `ls /opt`, `type -a node`,
the version manager on the box. "Not on `PATH`" is not "not
installed".
- Found → run every gate with it first on `PATH` and report
`ENV MISMATCH: default node <x>, pinned <y> — ran with <y> from <path>`.
Expand Down
32 changes: 16 additions & 16 deletions .claude/agents/oracle-test-auditor.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: oracle-test-auditor
description: Judges a diff against its oracle (the project's first ranking criterion) and whether its tests would catch a revert — real Node 22+/24 for the Node profile, recorded Chrome output for the Window profile; oracle cases, Odin tests for what no oracle can see, recorded mutations, and gates wired into CI. Use on every code change under review; it is the owner of criterion 1 and of the test-coverage gate, including any moved `known-lava-gaps.txt`, deleted or skipped test, or declared deviation.
description: Judges a diff against its oracle (the project's first ranking criterion) and whether its tests would catch a revert — real Node 26+ (the `.nvmrc` floor) for the Node profile, recorded Chrome output for the Window profile; oracle cases, Odin tests for what no oracle can see, recorded mutations, and gates wired into CI. Use on every code change under review; it is the owner of criterion 1 and of the test-coverage gate, including any moved `known-lava-gaps.txt`, deleted or skipped test, or declared deviation.
tools: Read, Grep, Glob, Bash
model: opus
---
Expand All @@ -23,11 +23,11 @@ or tooling change), say so, skip Part 1, and do Part 2 only.

## Step 0 — classify every touched surface

| Profile | What lives there | Oracle |
| ------- | ---------------- | ------ |
| **Node** | `process`, `require`, `Buffer`, `node:*` modules, the `lava` CLI | real `node` 22+/24, run now |
| Profile | What lives there | Oracle |
| ---------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| **Node** | `process`, `require`, `Buffer`, `node:*` modules, the `lava` CLI | real `node` 26+ (`.nvmrc`), run now |
| **Window** | anything a page can reach: DOM, `window`/`document`, page `fetch`/XHR, `location`, storage, events | recorded Chrome output (roadmap stage 0); real Chrome when available |
| **Shared** | Web API code both profiles load (`url.js`, `encoding.js`, streams, timers, `fetch` core) | **both** — each profile's oracle on its own entry point |
| **Shared** | Web API code both profiles load (`url.js`, `encoding.js`, streams, timers, `fetch` core) | **both** — each profile's oracle on its own entry point |

How Window differs, so you do not grade it against Node by habit:

Expand All @@ -46,8 +46,8 @@ risk in `docs/LARVA.md`, not a finding — unless the diff makes them worse.

## Node profile method

1. Pin the oracle: `NODE="${NODE_BIN:-node}"; "$NODE" -v`. CI runs 24; a major
outside 22/24 makes the result advisory. Report the version you ran.
1. Pin the oracle: `NODE="${NODE_BIN:-node}"; "$NODE" -v`. CI runs the `.nvmrc` pin; a major
below the `.nvmrc` floor makes the result advisory. Report the version you ran.
2. Write a probe and run it under both:

```sh
Expand Down Expand Up @@ -194,15 +194,15 @@ name the missing tests concretely.
deny.

10. **Would a mutation fail it?** For every test the diff adds or changes, name
the mutation it should not survive — the line to delete or invert — and say
whether it actually would. This is where decorative tests are caught, and
presence of a test is not evidence: in #320 two new tests with confident
comments both survived the mutation they claimed to pin. Ask specifically
whether the assertion would still hold with the code under test removed, and
whether it observes state it can actually reach (allocations made under
`runtime.default_context()` are invisible to a caller's tracking allocator;
the runner does not fail on leaks — `ODIN_TEST_FAIL_ON_BAD_MEMORY` is false;
`/proc/self/fd` is noise under the default thread-per-core runner).
the mutation it should not survive — the line to delete or invert — and say
whether it actually would. This is where decorative tests are caught, and
presence of a test is not evidence: in #320 two new tests with confident
comments both survived the mutation they claimed to pin. Ask specifically
whether the assertion would still hold with the code under test removed, and
whether it observes state it can actually reach (allocations made under
`runtime.default_context()` are invisible to a caller's tracking allocator;
the runner does not fail on leaks — `ODIN_TEST_FAIL_ON_BAD_MEMORY` is false;
`/proc/self/fd` is noise under the default thread-per-core runner).
11. **Contract comments** (`CLAUDE.md` §4/§5) on new user-visible surfaces: is
the `Node:` line backed by a real probe, and does `Deviates:` name the test
that pins it? A contract asserting behavior no test holds is a finding.
Expand Down
2 changes: 1 addition & 1 deletion .claude/agents/quality-docs-auditor.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Ask of each structural change: _is there a version of this with zero new concept
## Lens 3 — altitude and size

- **Layer**: engine/string/view/host ABI → `pkg/jsc`; Node Buffer codecs →
`pkg/runtime/buffer*.odin`; HTTP → `http.odin` + `js/internal/http.js`; loop
`pkg/runtime/buffer*.odin`; HTTP → `http.odin` + `js/node/http.js`; loop
mechanics → `pkg/runtime/eventloop`; VM pooling and page/VM lifecycle →
`vm_pool.odin` and the page layer, not sprinkled through `eval`. Logic in the
wrong package is a P1 even if it works — `environment.odin` accumulating a
Expand Down
2 changes: 1 addition & 1 deletion .claude/agents/regression-hunter.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ to ship, because the diff shows what arrived and hides what left.
refactor — a dual path that outlives its migration becomes permanent.
- **JS ↔ Odin contract drift**: shared constants, array index layouts, property
names, encoding assumptions must move together
(`pkg/runtime/http.odin` ↔ `js/internal/http.js` parse layouts are the classic
(`pkg/runtime/http.odin` ↔ `js/node/http.js` parse layouts are the classic
case; `ORDER_*` in `dns.odin` ↔ `dns.js` is another).
- A registration/inject path that misses a platform branch or a backend
(proactor vs readiness; io_uring vs epoll).
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y libjavascriptcoregtk-6.0-dev libsqlite3-dev libssl-dev pkg-config

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '24'
node-version-file: .nvmrc

# Bun runs the JS gates (`bun fmt`, `bun run js:*`) and installs the dev
# dependencies. The version comes from package.json's packageManager so CI
Expand All @@ -78,6 +78,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
llvm-version: '18'
release: 'dev-2026-11a'

- name: Type-check
if: needs.scope.outputs.scope == 'code' || needs.scope.outputs.scope == 'full'
Expand Down Expand Up @@ -115,9 +116,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y libjavascriptcoregtk-6.0-dev libsqlite3-dev libssl-dev pkg-config

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '24'
node-version-file: .nvmrc

# Bun runs the JS gates (`bun fmt`, `bun run js:*`) and installs the dev
# dependencies. The version comes from package.json's packageManager so CI
Expand All @@ -134,6 +135,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
llvm-version: '18'
release: 'dev-2026-11a'

- name: Build
run: make build
Expand Down Expand Up @@ -216,12 +218,10 @@ jobs:
- name: Pages bench smoke
run: make test-bench-pages-smoke

# Benchmarks: print the node-vs-Lava ratio table in the job log. Report-only for
# now (never fails) because the bench/thresholds.json caps are uncalibrated
# starters — once the ratios here are observed and the caps tightened, flip this
# to `make bench-gate` to enforce regressions. See bench/README.md.
- name: Benchmarks (report-only)
run: make bench
# Benchmarks: enforce the per-benchmark lava/node ratio caps in
# bench/thresholds.json (median of 3 launches per side via --gate, #362).
- name: Benchmark gate
run: make bench-gate

# MUTATION GATE. Breaks the code each recorded test claims to pin and requires
# the test to go red. It exists because three tests in #321 passed for the
Expand Down Expand Up @@ -255,9 +255,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y libjavascriptcoregtk-6.0-dev libsqlite3-dev libssl-dev pkg-config

- uses: actions/setup-node@v4
- uses: actions/setup-node@v7
with:
node-version: '24'
node-version-file: .nvmrc

# Bun runs the JS gates (`bun fmt`, `bun run js:*`) and installs the dev
# dependencies. The version comes from package.json's packageManager so CI
Expand All @@ -274,6 +274,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
llvm-version: '18'
release: 'dev-2026-11a'

- name: Test (mutation gate)
run: make test-mutation SHARD=${{ matrix.shard }}/3 ${{ needs.scope.outputs.scope != 'full' && 'CHANGED=1' || '' }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
26.13.0
Loading
Loading