Skip to content

fix(javascript): bound member-mutation paths through reassignment loops - #1390

Merged
N0zoM1z0 merged 5 commits into
morluto:mainfrom
marnixpluim:fix/member-mutation-blowup
Oct 10, 2026
Merged

N0zoM1z0 merged 5 commits into
morluto:mainfrom
marnixpluim:fix/member-mutation-blowup

Conversation

@marnixpluim

@marnixpluim marnixpluim commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Original contribution by Marnix Pluim; both original commits and their write-depth regressions are retained.

Reassignment loops introduced by #1292 can enumerate factorially many member-reference paths. Nine members took 28.36 seconds on frozen main 7aa4d768, and the real Notion ASAR did not finish within the 180-second guard. The repaired analysis completes while preserving both affected child bindings and unrelated sibling facts.

Fixes #1401. Refs #1065. This does not establish a common cause for #1387.

The collector now visits shallower paths first and retains exact covering prefixes instead of unioning different member keys. Write coverage includes path depth because a short write to an owned slot cannot replace a longer write reaching a shared child. A field-sensitive fixed point tracks observable object/array and Array-prototype origins; suffixes are canonicalized only where those origins cannot distinguish their effects. Dynamic selections, copied references and uncertain origins remain conservative. Value evaluation stops once mutation results are terminally unknown.

Regression coverage includes both conditional alias paths, deeper writes, untouched siblings below a shared prefix, unknown-slot presence, Array-prototype aliases, and loops rooted in unobserved/scalar values. No CLI/MCP contracts, tool inventory, target execution or provider authority change.

Validation on final source 03a960ebace7ab36dd9be78e2ba4399b9f6ade39, incorporating main 4d8ef3f3, pinned Node 24.18.0/npm 11.16.0, Linux x64:

  • 61-file JavaScript semantic/application suite: 1,030 tests passed; the six additional conditional/nested-path regressions also pass through the focused lifetime suite.
  • npm run check:fast, changed-file formatting, module boundaries, whitespace checks and npm run build:cached passed. The local single-threaded compiler preserves the full checking scope under the existing two-CPU resource guard.
  • Real Notion ASAR, SHA-256 97c41bc14fc0ea8c91cd34f502660963dfdf294d5eb35165ccac9d30963069d4: actual SDK 2.3.1 stdio MCP analysis took 100.15 seconds, whole workflow 120.26 seconds, and process-family peak RSS was 1.81 GiB. The caller allowed 210 seconds; this is not a default 60-second deadline claim.
  • Default 10 MiB framing returns a typed size constraint while retaining complete Evidence. Summary, module paging, feature tracing, subsequent ping, close and expired-reference behavior passed. Public compiled CLI completed in 88.06 seconds; identical explicit ASAR inputs produced the same Evidence ID, root digest and statistics through CLI/MCP. The source digest stayed unchanged.

Large-file responsiveness/cancellation remain open in #1065: longest observed ping was 19.17 seconds, chiefly during graph validation/sealing. This proves the tested loop regression and real artifact completion, not a universal bound for all JavaScript alias graphs. Real Hopper/Ghidra verification is not applicable to this static JavaScript change.

Since morluto#1292, member-mutation propagation carries a separate property path per
binding state. A loop that reassigns one reference through k members can
prepend those members in any order, so the number of distinct paths grows
factorially: nine members take 7 s and ten exhaust the heap. The React vendor
chunk of Hermes Desktop needs more than 5 GB and crashes the analysis.

Union the paths that reach each binding state into one covering path. An
effect at a path already applies to every extension of it, so the covering
path keeps every effect of the paths it replaces while the work stays bounded.
The vendor chunk now analyzes in 1.7 s and 190 MB, and sixteen members take
20 ms.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01XPY2GmufMNGQKoEgRUx1pd
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Maintainer investigation against 7aa4d768 and this exact head (064de095), using Node 24.18.0, two CPUs, reduced priority, and bounded heap/RSS:

  • The nine-member loop reproduces in 28.361 seconds on main and takes 14.8 ms on this head. This is directly relevant to [Feature] Roadmap: improve MCP usability and performance under bounded resources #1065.
  • The covering-path union loses facts outside the escaped paths. With const source={left:{value:1},right:{value:2},keep:{value:3}}; mutate(source.left,source.right); return source.keep.value;, main returns literal 3, while this head returns unknown. The same regression occurs with a conditional alias to source.left / source.right and a conditional shallow array copy of those references.
  • I am preparing a follow-up on this contributor branch that keeps exact prefix coverage and processes shallow alias traversals first. The loop then takes 7.7 ms while all three unaffected-member cases retain literal 3; the 61 relevant source/application/composition test files pass (1,003 tests). The original contributor commit is retained.

The full Notion ASAR workflow still has a separate severe hotspot: the precise-path follow-up reaches the main bundle in about 5 seconds, finishes that bundle around 24 seconds, and then remains inside the activity-monitor renderer semantic pass until the 210-second client deadline. A concurrent ping hits its separate 45-second deadline. This does not establish a passing whole-application performance or cancellation result. I am collecting the renderer's CPU profile before making a broader performance claim.

No provider-dependent claim is changed or verified by these static JavaScript checks. Target executable bytes remain unchanged.

@CassieFox23

CassieFox23 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: The speedup is real. Loops that took minutes now take milliseconds. But the fix can now report a wrong value. In one case it says a field is still 1 when the code can set it to 2. I think that needs a fix before merge.

Other jobs ran on the box at the same time, so base times are noisy.

Speed

This is your loop snippet with k members. The heap was capped at 3,000 MB. Head times are the median of 3 runs. Base got one run.

k base (22 / 24 / 26) head (22 / 24 / 26)
8 2.6 s / 2.1 s / 2.2 s 48 / 38 / 34 ms
9 22 s / 19 s / 19 s 52 / 39 / 35 ms
10 timeout / OOM / OOM 54 / 40 / 39 ms
12 OOM on all 58 / 45 / 43 ms

Every run that finished said unknown. For k = 3 to 7, the full output matched base exactly. Nested loops gave the same picture. Base took 66 s at k = 6 and ran out of memory at k = 8. Head took under 50 ms.

Wrong value

const shared = { x: 1 };
const o = { child: shared };
const t = flag ? o.child : o;
t.x = 2;
return shared.x;

When flag is true, this returns 2. Base says unknown. Head says literal 1. Swap the two ternary branches and head says unknown again. So the result depends on the order the paths are visited.

The same thing happens in the loop shape this PR targets:

const inner = { v: 1 };
const seed = { m0: inner };
let node = seed;
let i = 0;
while (i++ < 1) { node = flag ? node.m0 : node; node.v = 2; }
return inner.v;

Real JS returns 2 here. Base says unknown. Head says literal 1.

Lost precision

These are still sound, just coarser:

  • p = flag ? o.a : o.b; p.x = 2; return o.c.x; gives literal 1 on base. Head says unknown. The two keys union to null, so o.c looks written too.
  • Your loop with node.v = 2 in place of use(node), returning seed.mode. Base says literal "initial" (k = 3, 6). Head says unknown. Base does time out at k = 8, though.

The new test checks that the result stays unknown. Base gives unknown too, so the test only guards speed. It uses an escape, and escapes skip that write cutoff. So it can't catch this case.

Real app

I ran analyze-javascript-application on a real app. I used a copy of the Beyond All Reason launcher (launcher code MIT; Flathub package GPL-2.0-or-later). This was Node 24, one run each. Both exited 0. Base took 79 s and head took 66 s. That gap is within the noise here. The two JSON outputs were byte for byte the same (402 MB).

Tests

javascriptSemanticAnalysis.reference_lifetimes.test.ts passed 82 of 82 on all three Nodes. src/domain/javascript passed 684 of 684 on Node 24. None of them catch the wrong value above.

Not run at first (now done)

Edit: done. The results are in my follow-up comment.

  • The new test on base.
  • The desktop app and vendor chunk from your PR body.
  • The full suite, lint and typecheck.
  • More than one real-app run per side.
  • Any fix for the wrong value.

Thanks, marnixpluim, for the clear write-up and the small repro. It made this easy to test.

How I read it

Here is how I read it. o gets the path ["x"] first, then ["child","x"]. The union of the two is [null], one key long. referencedValues skips write paths shorter than 2 for object initializers. copiedReferencePath does the same. So the short path never reaches shared, but the long one would have. A broader path covers more on the binding itself. But it can stop the write from flowing on to the objects inside it.

One idea, which I have not tried: keep the covering path only to skip repeats. Then pass the original path on to the initializers. Or never let a union go below what the write guards need. You know this code better than I do.

Test setup
  • Box: Linux x64
  • Node: 22.23.1, 24.18.0, 26.11.1
  • Head / base: 064de095 / 7aa4d768

🤖 Generated with Claude Code (Opus 5.5) 🦊

The covering path from the previous commit unioned every path that reached a
binding state. Review found two problems:

- Initializers pass on only writes at least two keys deep, so a shorter write
  path never reaches the objects a longer one does. Unioning ["x"] with
  ["child", "x"] gives [null], so after
  `const t = flag ? o.child : o; t.x = 2` the child's `x` still read as 1.
  Prefix coverage has the same hole: ["child"] does not cover
  ["child", "child"] for a write.
- Unioning paths through different first members, such as ["left"] and
  ["right"], gives [null] and makes every member of the binding unknown.

Key the covering path by its first member as well, and for writes by its
length. A union then never changes which members of a binding are affected,
and a write covers only writes of its own length. The nine-member loop stays
in milliseconds for both a call and a write.
@marnixpluim

Copy link
Copy Markdown
Contributor Author

Thanks, both. You were right: the covering union was unsound for writes, and it also lost the precision N0zoM1z0 measured. 56a40a4, on top of the original commit, fixes both.

Cause. Initializers pass on only writes at least two keys deep, so a shorter write path never reaches the objects a longer one does. ["x"] ∪ ["child", "x"] = [null] dropped the write to shared.x. Prefix coverage has the same hole: for a write, ["child"] does not cover ["child", "child"]. Separately, a union across first members, ["left"] ∪ ["right"] = [null], made every member of the binding unknown.

Change. The covering path is now keyed by the path's first member as well, and for writes by its length. A union never changes which members of a binding are affected, and a write covers only writes of its own length. Escapes keep prefix coverage. This is close to CassieFox23's second idea.

case → read 7aa4d768 064de095 56a40a43
t = flag ? o.child : o; t.x = 2 → shared.x unknown literal 1 unknown
node = flag ? node.m0 : node; node.v = 2 in a loop → inner.v unknown literal 1 unknown
t = flag ? o.child : o; t[key] = 2 → shared.x unknown literal 1 unknown
t = flag ? o.child : o; t.child = 2 → shared.child.x unknown literal 1 unknown
mutate(source.left, source.right), and the conditional alias and array-copy forms → source.keep.value literal 3 unknown literal 3
p = flag ? o.a : o.b; p.x = 2 → o.c.x literal 1 unknown literal 1
nine-member loop, use(node) → seed.m0.value unknown, 8.9 s unknown, 15 ms unknown, 16 ms
nine-member loop, node.value = 2 → seed.m0.value no result in 300 s unknown, 15 ms unknown, 30 ms
nine-member loop, node.value = 2 → seed.mode no result in 300 s unknown literal "initial", 30 ms

These are now tests in javascriptSemanticAnalysis.reference_lifetimes.test.ts. Nine of them fail on 064de095, and the loop tests fail on time on 7aa4d768.

Real bundles through analyzeJavaScriptSemantics, one run each, the three builds side by side on macOS arm64 with Node 26.8, 300 s cap:

bundle 7aa4d768 064de095 56a40a43
Playwright trace viewer, React chunk (640 KB) no result 2.3 s 9.1 s
Playwright recorder, React chunk (363 KB) no result 2.0 s 8.7 s
Ten others: Vue, Rollup, Vite, Vitest, jiti's Babel, isomorphic-git, zip.js, Playwright MCP, Vue compiler-sfc, oxfmt's TypeScript 0.7–3.6 s within 5% 0–16% slower

On all ten bundles that finish on 7aa4d768, the 56a40a43 output is byte-identical to it; 064de095 differed on the Playwright MCP bundle. On the two React chunks, 56a40a43 gives the same output as 064de095 but takes about 4× as long, because writes of different lengths and paths through different members now stay apart.

Not changed here: a write through a loop that walks the same member twice is already lost on 7aa4d768. With while (i++ < 2) { node = node.m0; node.v = 2; }, reading the grandchild's v gives literal 1, because the lifetime cycle check drops the second walk through node.m0. That is separate from this PR, and I can open an issue for it.

Checks on 56a40a43 merged with current main: oxfmt, oxlint (the collector's complexity warning is now 57, against 54 on main), module boundaries, tsc --noEmit, and vitest run src/domain/javascript src/application/javascript tests/composition/javascript-applications (61 files, 1,025 tests).

@N0zoM1z0 this keeps your three cases at literal 3. If your follow-up takes a different route, feel free to replace this commit.


Generated by Claude Code

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thanks for adding the write-depth regressions in 56a40a43; I have retained that commit and all those cases in the maintainer follow-up.

One precision gap remains at this head: grouping by the first member still widens deeper, unrelated members that share that prefix:

export function result() {
  const shared = { left: { value: 1 }, right: { value: 2 }, keep: { value: 3 } };
  const source = { nested: shared };
  const alias = flag ? source.nested.left : source.nested.right;
  mutate(alias);
  return shared.keep.value;
}

Baseline 7aa4d768 reports literal 3, while 56a40a43 reports unknown. Replacing the call with alias.value = 2 has the same precision loss.

The follow-up keeps exact member prefixes, separates write depths, and canonicalizes suffixes only where observed container/prototype origins cannot distinguish their effects. It also stops reevaluating mutations after a value is already terminally unknown. Current main plus the follow-up passes the semantic suite and static gate; an earlier frozen build completed the real Notion ASAR workflow through MCP and CLI with matching Evidence identity for identical ASAR input. I am refreshing the real proof for the final source before pushing the follow-up here. Cancellation and event-loop responsiveness remain separately tracked in #1065.

Retain exact observed member paths and equal-depth write coverage. Canonicalize suffixes only beyond statically observable container and prototype origins, and stop replaying mutations after a binding value becomes terminally unknown.

Preserve both affected conditional paths and unrelated nested siblings. Retain the original contributor's write-depth regressions and commits.

Refs morluto#1401, morluto#1065

Co-Authored-By: Marnix Pluim <[email protected]>
@marnixpluim

Copy link
Copy Markdown
Contributor Author

Confirmed. Your nested case gives literal 3 on 7aa4d768 and unknown on both 064de095 and 56a40a43, for mutate(alias) and for alias.value = 2. Grouping by the first member alone still unions ["nested", "left"] with ["nested", "right"].

I won't push to this branch until your follow-up lands. Once it's here, I'll run the regression cases and the twelve-bundle timing from my last comment against it and post the numbers.


Generated by Claude Code

@CassieFox23

CassieFox23 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: I checked 56a40a43 on my box, and it fixes the wrong value. Every case from my first comment now matches main. One case still loses a fact: the source.keep shape, one level deeper. A test for it is below. The vendor chunk is about 5 times slower, close to the 4 times you saw.

Results on the new head

check Node 22 Node 24 Node 26
reference_lifetimes tests 93 of 93 93 of 93 93 of 93
loop, 12 members (median of 3) 39 ms 28 ms 29 ms
full suite, check:ci not run pass not run

The wrong-value cases now say unknown, as main does. The source.keep case is back to literal 3. The full output of each case matches main.

One case left

The new key splits paths by their first member only. Two paths that split at the second member still merge. Then a third member at that level reads as changed. This passes on main and fails on the new head with unknown:

it.each([
  "mutate(source.inner.left, source.inner.right);",
  "const alias = flag ? source.inner.left : source.inner.right; alias.value = 2;",
])("keeps nested members outside the mutated paths: %s", (body) => {
  const program = [
    "const source = { inner: { left: { value: 1 }, right: { value: 2 }, keep: { value: 3 } } };",
    body,
    "return source.inner.keep.value;",
  ].join(" ");
  expect(resultValue(program)).toEqual({ status: "literal", value: 3 });
});

It is sound, just coarser. So it may be fine as a known limit.

Slower vendor chunk

This is the Hermes Desktop (MIT) chunk from your PR body, on Node 24:

tree median of 3 max RSS
main out of memory at 171 s 5.0 GiB
first commit 1.9 s 341 MiB
new head 9.6 s 518 MiB

Both commits give the same output on it. This matches your React chunk numbers.

Not run

  • The coverage-sharded CI run. I ran the plain suite instead.
  • The full suite and check:ci on Node 22 and 26.
  • More than one real-app run on the new head.
  • The whole-app run from the maintainer's comment.

Thanks again, marnixpluim, for the quick turn and the clear table. And thanks to the maintainer for the review.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB
  • Node: 22.23.1, 24.18.0, 26.11.1
  • Head / base: 56a40a43 / 7aa4d768 (first commit 064de095)
  • Other: other jobs ran on the box, with a load of 8 to 21
More results
  • Full suite on the new head, Node 24: 6,281 passed, 89 skipped, 0 failed.
  • check:ci and verify:test-discovery on the new head: both pass.
  • These also match main now: the bug one level deeper, and through a for...of loop.
  • The sibling and write-loop cases from my first comment match main too.
  • The write form of the loop takes 86 ms at 12 members. Main could not finish it at 8.
  • On my box, the first version of the loop test took 13.4 s on main.
  • I ran it 3 times on the Beyond All Reason launcher (launcher code MIT; Flathub package GPL-2.0-or-later). That was main against the first commit, taking turns. The medians were 63.5 s and 62.9 s.
  • One more run on the new head gave the same output. All outputs were byte for byte the same.
  • I built the chunk from the v0.21.6 tag, since the release has no files. The app itself was never run. The name and size match your PR body: 258,268 bytes.
Commands
# chunk build, in its own folder
npm ci --ignore-scripts
node ../../node_modules/vite/bin/vite.js build

# chunk and loop timing: analyzeJavaScriptSemantics on the built dist/
node --max-old-space-size=5000 run.mjs <tree> module vendor-react-C4pS_tun.js

# real app
node scripts/rea.mjs analyze-javascript-application app.asar --format json

# tests and checks, Node 24
npm run check:ci
npm run verify:test-discovery
npm test

🤖 Generated with Claude Code (Opus 5.5) 🦊

@CassieFox23

CassieFox23 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: This merged while I was testing. So this is a post-merge check. I tested 03a960eb, the head that merged, against its base 4d8ef3f3. In my 59 cases it adds no wrong values and keeps every fact main has. The loops stay fast, and the vendor chunk is now fast too. The only wrong values left were already on main, and this commit does not change them.

Results

check Node 22 Node 24 Node 26
reference_lifetimes tests 104 of 104 104 of 104 104 of 104
src/domain/javascript not run 720 of 720 not run
loop, 12 members (median of 3) 34 ms 24 ms 23 ms
write loop, 12 members (median of 3) 36 ms 25 ms 25 ms

I ran 59 small cases on both trees and in real JS. The 53 that finish on main give the same result on 03a960eb. That includes 17 wrong-value cases found while testing #1414. The other 6 time out or run out of memory on main, and finish in milliseconds on 03a960eb.

Hermes Desktop (MIT) vendor chunk

tree median of 3 max RSS
merge base out of memory at 112 s 5.0 GiB
03a960eb 1.4 s 395 MiB
its parent 261114dd 8.6 s, one run not measured

03a960eb is about 6 times faster than its parent on this chunk. One binding differs from the parent's output. It is more precise now, but main can't finish this chunk, so I can't check that value.

Wrong on main, and unchanged here

Real JS returns 2 for both of these. Main and 03a960eb both say literal 1:

const shared = { x: 1 };
for (const t of [shared]) t.x = 2;
return shared.x;
const g = { v: 1 };
const c = { m0: g, v: 1 };
const seed = { m0: c };
let node = seed;
let i = 0;
while (i++ < 2) { node = node.m0; node.v = 2; }
return g.v;

The second one is the loop marnixpluim described. Both are outside this PR. The first one is #1428.

Not run

Edit: Results for these are in the follow-up. The maintainer's own app is still not run.

  • The full suite and check:ci on 03a960eb.
  • The real app on 03a960eb.
  • src/domain/javascript on Node 22 and 26.
  • The whole-app run from the maintainer's comment. Run on a different app. Their app is closed source.

Thanks, N0zoM1z0, for the follow-up and the clear commit notes. And thanks, marnixpluim, for keeping the tests in.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB DDR4-3600
  • Node: 22.23.1, 24.18.0, 26.11.1
  • Head / base: 03a960eb / 4d8ef3f3 (parent 261114dd, merged as 28595276)
  • Other: load 2 to 5, runs at low priority
Case notes
  • 47 of the 53 give the same full output as main. The other 6 differ only in the order of object fields.
  • 6 cases only finish on 03a960eb. They are the write loops at 8, 10 and 12 members. Then the two-ref write loops at 10 and 12, and the nested loop at 8.
  • The loop at 6 to 9 members gives the same full output as main. Main took 9.4 s at 9 members on Node 24.
  • Two more for...of forms are also wrong on both trees: one walks [o.child], and one walks [o, o.child].
Commands
# each case, on each tree: analyzeJavaScriptSemantics on the built dist/
node --max-old-space-size=3000 run.mjs <tree> file <case.js>

# real JS: each case in a fresh vm context, over many flag orders
node realjs.mjs <case.js>

# the chunk
node --max-old-space-size=5000 run.mjs <tree> module vendor-react-C4pS_tun.js

# tests
node node_modules/vitest/vitest.mjs run src/domain/javascript/javascriptSemanticAnalysis.reference_lifetimes.test.ts
node node_modules/vitest/vitest.mjs run src/domain/javascript

🤖 Generated with Claude Code (Opus 5.5) 🦊

@CassieFox23

CassieFox23 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: I ran the rest of my "Not run" list on 03a960eb, the head that merged. check:ci passes. The full suite has no real failures. A real app gives the same output, byte for byte, as the base. Speed and memory match too.

Checks

check Node 22 Node 24 Node 26
check:ci not run pass not run
full suite not run 6,275 pass, 43 fail, 89 skip not run
the 9 failed files, short temp path not run 69 of 69 not run
src/domain/javascript 720 of 720 720 of 720 720 of 720

All 43 failures were Hopper socket tests. The socket goes in the temp folder. My temp path made it 120 bytes. Linux allows 108, so listen failed with EINVAL. With a short temp path, those 9 files passed. With the long one, they failed again on their own. So none of the 43 come from this PR.

Real app

I used the Beyond All Reason launcher (launcher code MIT; Flathub package GPL-2.0-or-later). All runs used Node 24.

run 4d8ef3f3 03a960eb
CLI, median of 3 51.7 s, 1,868 MiB 51.5 s, 1,909 MiB
CLI output 245.6 MB, fd027fa5… same bytes
MCP call, 2 CPUs, 2 runs 60.1 s, 51.9 s 63.2 s, 50.0 s

For MCP I copied the limits from the maintainer comment. That meant 2 CPUs, a 210 s call limit, and a ping with a 45 s limit. Every ping came back. The slowest took 5.9 s. Both trees end the call with the same resource_constraint reply. The result is too big for stdio. The link stays up after it. The longest pause was about 7 s, in the seal step, on both trees. I saw no stall like the one in that comment.

Still not run

  • The app from the maintainer comment. It is closed source, and I don't have it.
  • That run's heap and RSS caps. The comment doesn't give them. I used a 4 GB heap.
  • check:ci and the full suite on Node 22 and 26.
  • Cancel during a call.
Commands
# fresh export of 03a960eb, npm ci and build on Node 24
npm run check:ci
npm run verify:test-discovery
npm run test:prepare
node node_modules/vitest/vitest.mjs run

# the 9 failed files again, short TMPDIR, then the long one
TMPDIR=<short dir> node node_modules/vitest/vitest.mjs run <files>

# Node 22 and 26
node node_modules/vitest/vitest.mjs run src/domain/javascript

# real app, CLI, 3 rounds, base and head in turn
nice -n 10 node --max-old-space-size=6000 <tree>/scripts/rea.mjs \
  analyze-javascript-application app.asar --format json > out.json

# real app, MCP, 2 rounds: SDK 2.3.1 stdio client,
# 210 s call limit, a ping every 5 s with a 45 s limit
taskset -c 0,1 nice -n 10 node --max-old-space-size=4096 mcp-app.mjs <tree> app.asar

check:ci ran in a fresh git init of the export, with the files untracked.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB DDR4-3600
  • Node: 22.23.1, 24.18.0, 26.11.1
  • Head / base: 03a960eb / 4d8ef3f3 (merged as 28595276)

🤖 Generated with Claude Code (Opus 5.5) 🦊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Member-reference propagation grows factorially through reassignment loops

5 participants