mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[PR #4922] [CLOSED] fix(javascript): recover Electron identity through esbuild require shims #6676
Closed
opened 2026-11-01 21:42:14 +00:00 by bsakaguchi
·
0 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#6676
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/morluto/rea/pull/4922
Author: @Y0UW1SH
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:fix/esbuild-require-shim-3535📝 Commits (10+)
a6bfda7fix(javascript): recover Electron identity through esbuild require shims5b0b609fix(javascript): prove shim initialization and retain prototype write uncertaintya33074dfix(javascript): preserve require shim binding identity5fe55f2chore: merge main and resolve shim analysis conflicte160205fix(javascript): preserve shim aliases and eval uncertainty1783e4btest: fix verifier prerequisites and asynchronous cleanup fixtures33f6f75chore: reconcile upstream CI fixture fixese6beb7cfix(javascript): retain module identity through projected aliases6ddf321fix(javascript): preserve alias and export capture integrity0428390fix(javascript): preserve ordered alias effects📊 Changes
107 files changed (+30473 additions, -1127 deletions)
View changed files
📝
docs/testing.md(+25 -0)➕
src/domain/javascript/accessorAssignmentTargetReceivers.test.ts(+72 -0)➕
src/domain/javascript/allocatedReceiverIdentity.test.ts(+288 -0)➕
src/domain/javascript/arrayElementCaptureIntegrity.test.ts(+116 -0)➕
src/domain/javascript/boundClassHelperCapture.test.ts(+180 -0)➕
src/domain/javascript/callableClassValues.test.ts(+162 -0)➕
src/domain/javascript/callableDefaultTargets.test.ts(+65 -0)➕
src/domain/javascript/callableReferenceDefaults.test.ts(+142 -0)➕
src/domain/javascript/capturedDefaultSlotIntegrity.test.ts(+197 -0)➕
src/domain/javascript/constructedReceiverIdentity.test.ts(+846 -0)➕
src/domain/javascript/constructorParentMutationIdentity.test.ts(+120 -0)➕
src/domain/javascript/descriptorReturnedValueIdentity.test.ts(+112 -0)➕
src/domain/javascript/destructuringDefinedSlots.test.ts(+175 -0)➕
src/domain/javascript/destructuringReferenceOrder.test.ts(+366 -0)📝
src/domain/javascript/electronModuleInterop.test.ts(+161 -3)➕
src/domain/javascript/electronSavedExports.test.ts(+168 -0)📝
src/domain/javascript/electronWrappedCallPaths.ts(+4 -2)➕
src/domain/javascript/inheritedDefaultDataSlots.test.ts(+88 -0)➕
src/domain/javascript/inheritedGetterEscapeIdentity.test.ts(+68 -0)📝
src/domain/javascript/javascriptAstValues.ts(+103 -6)...and 80 more files
📄 Description
Summary
Fixes #3535. Recover BrowserWindow, webPreferences and IPC findings through esbuild's guarded require helper while keeping analyzed application code inert. Builds on DeryFerd's closed, unmerged #3596 and preserves the original co-author credit.
Published commit:
d195ebb4. Tested Git tree:6ef791833f5785d23da6444b7d83ce31bf238200. Parent:3deab802.The full PR retains the shared loader, callable, storage, prototype and capture owners, including target-version uncertainty, native result provenance, synchronous invocation bounds and independent CommonJS/global bindings.
Latest corrections (2026-10-19 follow-up)
main(5199c672) and resolved the conflict with theupstream projection-widening rewrite (
e4c3d723, fixes #4348/#5138). Theshared callable-reference owner now exposes upstream's
precisioncontract and feeds
returnedReferenceWidenings, so the widening limitationand coverage fields are reported through the same channel as
main.branch still carried per-path initializer histories (cycle blockers and
memoized contexts) that upstream removed for exhausting the heap on React
bundles. On this branch the same reassignment webs grew exponentially:
8 swap writes took 830 ms and 12 timed out at 15 s; a 24-arm React-shaped
switch mesh timed out. A source reached again under another projection now
joins projections (differing keys widen to
null, differing depths to anydepth), pending call-result selections are bounded, and widening never
drops represented targets while refusing exact captures. Every probed size
now completes in about 2 ms with identical results. Upstream's projection,
bounding and coverage tests pass; the full JavaScript domain suite got
faster (224 s to 157 s, local).
array iterator, which earlier source can replace through
Array.prototype[Symbol.iterator]or the array iterator prototype(Codex,
213d4c0creview). The expansion helper is removed;applykeepsindex-read literal arrays.
Reflect.set(...args),Reflect.apply(Reflect.set, Reflect, args),Object.assign.apply(null, arguments)and the spread forms above were classified as harmless by boththe loader-delegate owner and the ambient owner (no target, no write). They
now record an unknown-identity write once the enclosing code can run; a
function declaration that is never referenced is excluded, so uncalled
generic helpers keep their findings.
3deab802review):Q = Qcannot introduce a value the binding does not hold, so the shim owner
removes such writes (initializer, reference initializer and assignment
definition) before selecting the value at a read. Copies through another
binding, a bound helper or
withstay refused.3deab802review): native Getruns the selected getter with its explicit receiver, or the target when
omitted, mirroring the existing Reflect.set setter handling. A local
receiver no longer suppresses a real endpoint; a global or unknown receiver
still does.
explored only accessor results for an escaped object; the whole object also
exposes the accessor callable through its descriptor, which the returned
receiver-exposure cases need.
Hardening
loaderDelegateDifferential.test.ts: 82 CommonJS cases run throughNode's real CommonJS loader in a fresh worker thread (only the
electronpackage stubbed) and through the production analyzer. Agreement is required except for two
explicit lists the file owns: known precision limits (runtime keeps the
original API, analyzer stays conservative) and known false findings
(runtime replaces the loader, analyzer still reports it). An entry that
starts agreeing fails until removed.
loaderDelegateFuzz.test.ts: seeded random compositions of the samemutation fragments; fails only on a false finding and logs agreed,
conservative and skipped counts.
REA_LOADER_FUZZ_CASESandREA_LOADER_FUZZ_SEEDscale and reseed it. Local: seeds 1 and 2 at 1,500compositions each produced 0 false findings (1,277 and 1,230 agreed, 223
and 269 conservative).
docs/testing.mdunder the JavaScript lanes.Follow-up validation (local)
resolves repeated native bulk storestakes 42 s alone, see Remaining limits. Upstream's projection, bounding and coverage tests pass.tsc --noEmit,npm run lint(0 errors, warnings only), module boundaries (2,241 files), architecture guards (1,558 files) and test discovery (1,729 files) pass.knipreports only two pre-existing unresolved worker aliases.oxfmt --check .is clean after restoring three upstream files that the merge commit's lint-staged hook had rewritten (a06775dd); the CI static-check failure on429baa55was that formatting.429baa55failed on a GitHub API 503 and needs a rerun. CI fora06775ddwas queued at push time; no CI pass is claimed here. No built CLI/MCP run and no real application were executed in this follow-up.CI follow-up (after the first full CI run on
a06775dd)Context: this PR had never had a CI run before 2026-10-19 (PR readiness was
pending, so the CI workflow never started). The first run exposed four
kinds of failures; three are addressed below, one stays open.
the Worker URL resolution for the acceptance fixture
Object.defineProperty(...[import.meta, "unrelated", ...]). The firstversion of the gate was a source-wide name scan; the review follow-up below
replaces it with the ambient mutation facts. Spreads of bindings stay opaque.
syntactic taint marked enumeration uncertain on any read of
.prototype,__proto__,constructororgetPrototypeOf, so the harmlessObject.setPrototypeOf({}, Object.prototype)in upstream'sreferenceSourceShadowedRequirefixture lost itsrequireedge. It nowtaints only a captured selection (stored, returned, or passed where it may
be retained), a
getPrototypeOfresult that is captured, a write through aphysical or computed prototype chain, or a mutator whose target reaches one.
All fixtures of that upstream test now produce the same static facts as
main.compiled CLI and stdio MCP server cannot fit the default 30 s.
34f3163a). Bulkcopies from a static object literal are indexed by key at the
iteration-source boundary instead of the unknown-key bucket, a copy whose
literal has no own
__proto__key is never a possible prototype store,escape expansions are recorded once per resolver pass and replayed, and the
global-root-store receiver and own-slot presence proofs are keyed by an
ambient facts generation. In-process on Windows (tsc build, fresh process):
300 bulk stores 61 s to 1.8 s cold, 300 getter stores 17.9 s to 1.9 s, the
40-step member alias chain 116 s to 5.5 s; split and entry variants
unchanged; results unchanged (bulk stores 0 windows, getter stores 1 window,
14 hand-checked copy forms identical). This was a pre-existing regression of
this branch against
main(0.45 s there), independent of thereturned-reference port.
Review follow-up on
8ea91c52(facts instead of spellings; real loader)Three findings on the CI follow-up commit were right: the iteration gate and
the reachability bound were spelling checks, and the differential oracle was
a hand-written module wrapper rather than Node's loader. All three now
consume owner facts.
semanticArrayIterationMayBeReplacedBefore(site, facts, state)refuses theproof while the facts are incomplete, after any opaque effect site that
precedes the spread, and when any ambient write effect that precedes it may
match
Array.prototype.values(a computed or template key, awhole-prototype write and an unknown-identity write all match). The
source-wide name scan is gone. A known-mutator call with a literal spread is
recorded in two marked readings, provisional (opaque recipient) and expanded
(elements as positions); the refinement with the completed facts keeps
exactly one per call. Reviewer case:
Array[\prototype`][Symbol[`iterator`]]=...;Reflect.set(...[{},"x",0])
now keeps the spread opaque (0 windows, runtime replacement);Array.prototype.extra=1; Reflect.set(...[module,'require',module.require])` expands (1 window, runtime original).
write. When the ambient path resolver resolves the object a member write
goes to and reaches the prototype of a call result that no owner attributes
(no reference source, bound allocation, builtin origin or returned
reference), or of a parameter or catch value, it records
[null]. SoObject.getPrototypeOf([].values()).next = fn, its alias, boxed,helper-return and helper-parameter forms all refuse the spread proof, while
const o = {}; o.__proto__.x = 1andObject.getPrototypeOf(Object.create(p))stay attributed and keep it. Read queries of a prototype are unchanged. An
interim collector rule that made every
__proto__/getPrototypeOfwriteopaque broke 17 prototype-identity cases and was dropped.
semanticSiteMayExecuteindexes each binding's resolved uses (through thereference-role owner) plus the property keys read off
globalThis,window,self,globalor a sloppy script-levelthis. A script-levelfunction declaration is reachable through its name, through such a key (or
an unknown key), through an export, or whenever an opaque effect site
exists.
globalThis['change']()andglobalThis[name]()reach it in aclassic script; a same-named key on a local object does not, in a script or
a module. The identifier occurrence count is gone.
tests/support/javascript/loaderDelegateOracle.tswrites each case asbundle.cjsbeside anode_modules/electronstub and requires it from afresh worker thread (a separate isolate: own globals, own
Module, owncache), so
require,module.require,Module.prototype.requireandModule._loadare genuine and one case's prototype mutations never reachthe next. The record is a primitive string, since a case may replace array
iteration. The corpus grew to 82 cases: shared loader writes
(
module.constructor._load,require('module')._load,Module.prototype.require), prototype reflection forms, string-keyed globalreach and an exported helper.
Object.prototype.extra=1; Reflect.set(...[{}, 'x', module.require])left the precision list because the facts prove thatspread intact; the exported helper joined it (reachable, never called here).
seed=20261019 cases=150 agreed=134 conservative=16 skipped=0 false=0;tsc --noEmit,oxfmt --checkandoxlint(warnings only)clean. No built CLI/MCP run. CI for this head not yet reported.
Previous corrections (
3deab802)at,pop,sliceorreversecall could incorrectly inherit Array result aliases and hide a valid Electron finding. The interop producer now uses complete source-call/result coverage to supersede the nominal alternative. This proof is queried separately from cached invocation syntax; incomplete calls keep their possible aliases.Reflect.set({__proto__:null},"require",module.require,module)now preserves the initial delegate. The copy proof consumes the shared descriptor/prototype walk to establish that an ordinary lookup cannot invoke a setter, while retaining the independent receiver, exact value, native-helper and preceding-effect checks. Target and prototype-value captures keep their original evaluation times.Added 40 runtime-backed regression/control cases and four shared CLI/MCP fixture cases. Controls cover captured callables, actual native methods, bound/changed helpers, returned module/this values, independent Reflect receivers, getter/data descriptors, setter/prototype installation in later arguments and alias rebinding. Existing assertions, resource limits and timeouts were retained.
Validation at
3deab802capability_unavailable/unsupported_provider, providerprocess-ownership, operationprepare_owned_process:ps -axo pid=,ppid=,pgid=,uid=,stat=,command=fails withfatal library error, lookup self. Parsing cannot start; end-to-end adapter semantics remain unverified.GOMAXPROCS=2 GOMEMLIMIT=512MiB UV_THREADPOOL_SIZE=2 NODE_OPTIONS=--max-old-space-size=1536; optional telemetry disabled.Current performance evidence
Two serialized pairs compare the final tree with exact parent
213d4c0con twelve source workloads, reversing process order. Each fresh runtime has a first pass and warm repeat. All input hashes match. Eight unaffected results match; both custom-result workloads and the single-copy lookup now produce corrected output. The fifty-copy lookup output remains unchanged and incorrect, as recorded under Remaining limits.213d4c0cFirst wall/CPU and peak Node RSS increased; warm wall decreased. Peak Node RSS rose about 9–11%. These synthetic shared-host measurements do not establish a general speedup. Imports are outside analyzer timing and filesystem caches are warm. Agent tokens, cold-cache behavior, target-application/full-CLI costs and peak process-family RAM remain unmeasured; Node RSS is not process-family RSS.
Historical performance: parent
213d4c0cCompared with exact parent
871cfccaon eight equivalent source workloads: stable/truncated arrays, inherited getters and native result selection, each at one and fifty repetitions. Two serialized pairs reverse process order; each fresh runtime has a first pass and warm repeat. All inputs match. Six unchanged workloads retain their result hashes; the two native-result workloads change as expected because replaced loaders are no longer reported as Electron.871cfcca213d4c0cAggregate results are mixed, with paired warm wall 3–14% higher. Native-result selection at fifty repetitions costs 68.9–84.1→142.2–160.1ms first / 48.8–56.0→119.7–138.8ms warm. Tracking the previously lost aliases adds work; this is not a general speedup. Timing begins after imports with existing filesystem caches. Agent tokens, cold-cache behavior, target-application/full-CLI cost and peak process-family RAM remain unmeasured; Node RSS is not process-family RSS.
Historical performance: concurrent parent
871cfccaTwenty equivalent super method/getter workloads, two serialized before/after pairs against parent
894c6969. Each fresh runtime runs a first pass and warm repeat. All twenty source/result hashes match in all eight measured passes.894c6969871cfccaResults are mixed: paired first wall ranges from roughly 1% lower to 6% higher; whole-command wall from 2% lower to 1% higher. No general speedup is established.
Inherited deep-super/getter performance regressions remain. Historical first/warm totals from
3156a7e4to73a4c834grew approximately 0.7–0.9→9.4–9.6s / 0.5–0.6→8.5–8.8s; these are earlier revisions, not current-tree comparisons. Broader reuse still needs dependency/invalidation proof.Timing starts after imports and uses existing filesystem caches. Cold-cache behavior, target-application performance, agent tokens, completed full-CLI costs and peak process-family memory remain unmeasured. Node RSS is not process-family RSS.
Historical performance: prior parent
894c6969Compared the combined tree with parent
901a67ffon twenty equivalent super method/getter workloads. Two serialized before/after pairs each use a fresh runtime first pass and warm repeat. All twenty source/result hashes match in every pass.901a67ff894c6969First-pass wall increased 4–9% and Node CPU increased 5–6%. Warm wall fell about 3%; whole-command wall/CPU and peak Node RSS increased. These synthetic shared-host measurements do not establish a general speedup.
Inherited performance regressions remain. Historical super measurements from
3156a7e4to73a4c834showed first wall 0.719–0.891→9.352–9.550s, warm 0.490–0.573→8.521–8.831s, and whole-process wall 1.929–2.087→18.429–18.858s. Depth-20/read-20 instance/static getter first passes grew 67→2,831ms / 151→4,863ms. Earlier six-workload results from8a688acbto3156a7e4grew 0.304→0.853s first / 0.239→0.677s warm. These describe historical revisions. Broader reuse still needs dependency/invalidation proof; the previous empty-store optimization showed no consistent benefit and was reverted.Analyzer timing starts after imports and uses existing filesystem caches. Cold-cache behavior, target-application performance, agent tokens, completed full-CLI costs and peak process-family memory remain unmeasured. Node RSS is not process-family RSS. Process-family CPU above uses child resource accounting.
Remaining limits
Writes through helper parameters are not connected to call sites.
function F(a){a.require=other} F(module)andfunction F(a,b,c){Reflect.set(a,b,c)} F(module,'require',other)replacethe loader at runtime while analysis still reports the window. These are
listed as known false findings in the differential corpus; they are open
soundness gaps that predate this follow-up and need argument-to-parameter
identity flow in the ambient path resolver. The prototype of a parameter is
the exception: a write to
Object.getPrototypeOf(a)ora.__proto__inside a helper records an unknown-identity write (conservative), so it
refuses the spread proof; the
.requirewrites themselves stay listed.An unknown recipient inside a function that is referenced anywhere counts
as a write even when every call passes fresh objects, for example
function F(){Object.assign.apply(null,arguments)} F({}, {}). This is aprecision limit, listed in the corpus.
Object.assignsource getters,definePropertydescriptor getters, theimplicit key-coercion receiver and sloppy
arguments/callerslots remainopen as recorded in the review threads.
The repeated bulk-store capacity test now completes in about 2 s locally;
see the CI follow-up section.
Implicit key-coercion receivers still lose a valid fetch finding: the final VM comparison has one original call while analysis reports zero. A coercion hook that throws its callable and is later called without a receiver correctly invalidates the endpoint. No receiver-only narrowing is included; activation and outward/abrupt references need separate coverage.
Incomplete generic call/apply/bind result paths remain conservative. A preexisting overwritten
callproperty holding Array.prototype.at can still produce a false Electron finding; the exact-parent differential reproduces it. An unused getter body with direct delegate effects can still suppress a real finding.Repeated delegate-copy provenance remains incomplete. In the fifty-copy null-prototype lookup workload, isolated Node executes the original window once but current analysis reports zero, even with the initial delegate saved first. This is a recorded mismatch, not a passing accuracy case.
Native result provenance is still incomplete for standalone array mutation followed by a separate read, iterator results, callback-produced values, parameter-to-argument return flow and custom Array species. Explicit Reflect.get getter receivers, descriptor-reflection captures, factory-parameter closure flow and generic opaque escapes also have baseline gaps. These were reproduced against the parent and are not claimed fixed here.
Possible child/element aliases are intentionally broader than exact identity. Same-value copies through an ambiguous child selection can suppress a valid finding; the new reference candidates do not authorize a preservation proof.
The older-runtime regression uses separate VM realms with a deleted initial method to model absent target inventory. No actual Node 18 or historical Electron runtime was executed.
Repeated writes to arbitrary global slots retain possible aliases: the model lacks initial descriptor guarantees for those custom names. An apparent replacement with an unrelated object is not a strong proof that the old owner is unreachable.
Projected legacy
B.prototype.__proto__=passignments can still miss the changed prototype. Safely classifying them needs shared class-prototype descriptor facts to distinguish native setters from own/inherited shadows. Explicit Object/Reflect.setPrototypeOf changes are covered.Async/await and generator returned-object flow has a preexisting invalidation gap. Six diagnostic runtime comparisons reproduce the baseline mismatch; they are not passing accuracy cases and no synchronous timing bound is applied to those returned expressions.
Object.assign source-getter finding: a local getter writing
this.fetchcan suppress the real global endpoint. A safe fix needs shared facts separating getter activation, copied values and thrown/outward references across copy phases. Subtracting accessor identities from generic escapes was unsafe.Descriptor-getter finding: Object.defineProperty/defineProperties descriptor reads still use an overly broad escaped-callable receiver. They need distinct activation and outward-reference evidence, including abrupt completion, before narrowing.
Sloppy caller/arguments finding: Node reproduces the missed finding, but these own slots are engine extensions. The generic JavaScript model has no engine-provenance fact authorizing universal null-slot assumptions.
The prior known-limit diagnostic reproduced those five missing-finding cases (source getter, two descriptor forms, caller, arguments). Four returned/thrown-accessor safety controls agree with runtime. This diagnostic is not a passing nine-case accuracy claim.
A preexisting classic/unknown-script soundness gap remains:
var Q=(e=>typeof require<"u"?require:e)(function(){}); external(globalThis);can retain Electron identity after unknown code replaces global Q. Both attempted corrections remain rejected.Mixed early/late class getter reads conservatively union activations; the static self-field-alias variant remains unresolved. Early prototype-capture uncertainty is deliberately broad. Some nested fallback/callable paths also remain conservative. Other limits include nested skipped-RHS shim assignments, some sequence-return projections, shared-prototype Object.assign delegate copies, restoration after prior delegate effects, repeated bind with globalThis, prebound Reflect.set targets and unused-callable/private-slot paths.
The inherited-slot fix remains conservative after potentially effectful code and for modules, nested default allocations and constructor defaults. Wrapper metadata aliases/nested discard expressions and effectful descriptors can also lose otherwise valid provenance.
No target Joplin/Electron application was executed. CLI/MCP contracts, provider authority, process ownership, dependencies and analysis budgets remain intact. Other module families through the shim remain unsupported. Upstream
559af3d3and date fixtures' known/unknown coverage are retained.Expected effects:
The process above is REA's existing parsing worker.
For evidence-bearing changes:
Author readiness
Human owner: @Y0UW1SH
Before merge
type(scope): outcome.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.