Skip to content
Open
Show file tree
Hide file tree
Changes from 84 commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
d04d671
fix(javascript): preserve vite dependency values and indexes
evenafterallisaid Oct 11, 2026
215d21b
fix(javascript): merge main and track shared Vite cache mutations
morluto Oct 13, 2026
f029c24
style: format review corrections
morluto Oct 13, 2026
1bb4b1f
fix(javascript): retain Vite cache ownership across copies
morluto Oct 13, 2026
a282791
fix(javascript): preserve Vite cache ownership facts
Oct 13, 2026
df2fa18
fix(javascript): retain cache ownership for getter overrides
Oct 13, 2026
0412c78
fix(javascript): complete Vite cache ownership cases
Oct 13, 2026
48fa42b
fix(javascript): preserve Vite cache ownership facts
morluto Oct 13, 2026
3400d75
merge(main): refresh Vite checks against current source
morluto Oct 13, 2026
c4ebe5e
Merge branch 'main' into fix/vite-dependency-values
morluto Oct 13, 2026
effdc8e
Merge branch 'main' into fix/vite-dependency-values
morluto Oct 13, 2026
e1b4e33
fix(javascript): reconcile Vite analysis with current main
evenafterallisaid Oct 14, 2026
2c501ec
fix(javascript): complete Vite cache ownership regressions
evenafterallisaid Oct 14, 2026
3b09741
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid Oct 14, 2026
af3a1ad
fix(javascript): retain inline cache escapes and assign targets
evenafterallisaid Oct 14, 2026
a8c7631
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid Oct 15, 2026
3a8121d
fix(javascript): track restored Vite cache identities and method effects
evenafterallisaid Oct 15, 2026
a6d61ca
fix(javascript): preserve Vite container children and property identity
evenafterallisaid Oct 15, 2026
1fcace9
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid Oct 15, 2026
815c5d5
fix(javascript): preserve Vite cache identities and bounded projection
evenafterallisaid Oct 15, 2026
88ce916
fix(javascript): close Vite cache mutation and decoding gaps
evenafterallisaid Oct 16, 2026
b9f0f2a
fix(javascript): reconcile upstream analysis finalizers
evenafterallisaid Oct 16, 2026
7eaa00c
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid Oct 16, 2026
6222484
fix(javascript): retain cache effects across value transfers
evenafterallisaid Oct 17, 2026
51de9d4
fix(javascript): preserve shared values returned by Vite helpers
evenafterallisaid Oct 17, 2026
b4347a2
fix(javascript): keep helper supplied tables from invalidating the de…
evenafterallisaid Oct 17, 2026
41cc28e
chore(ci): align turbo lint inputs with upstream
evenafterallisaid Oct 17, 2026
548c232
Merge remote-tracking branch 'upstream/main' into fix/vite-dependency…
evenafterallisaid Oct 17, 2026
c6efc75
fix(javascript): require plain data slots for mapped helper arguments
evenafterallisaid Oct 17, 2026
157d76f
fix(javascript): expose unproven index protocols and inert index slots
evenafterallisaid Oct 17, 2026
b11b483
chore(ci): retrigger the required run for the launched-orphan lifecyc…
evenafterallisaid Oct 17, 2026
5ac739c
fix(javascript): expose only selected tables for unproven index proto…
evenafterallisaid Oct 17, 2026
92bf31a
fix(javascript): reuse selected tables for opaque Vite mapping
evenafterallisaid Oct 17, 2026
7ee46c0
fix(javascript): retain selected Vite table allocation on escape
evenafterallisaid Oct 17, 2026
38e5026
fix(javascript): scope escaped slots to reachable cache owners
evenafterallisaid Oct 17, 2026
9455a93
merge main and preserve Vite analysis integration
evenafterallisaid Oct 18, 2026
895c2b8
fix(javascript): retain exported and inherited Vite cache identities
evenafterallisaid Oct 18, 2026
a2749a8
fix(javascript): preserve supplied prototype ownership
evenafterallisaid Oct 18, 2026
e76ff97
fix(javascript): retain uncertainty after Vite table spreads
evenafterallisaid Oct 18, 2026
8c8d36b
fix(javascript): revisit prototype proofs after late effects
evenafterallisaid Oct 18, 2026
95577bd
merge main and preserve cooperative Vite analysis
evenafterallisaid Oct 19, 2026
62628b3
fix(javascript): stop Vite decoding after effectful reads
evenafterallisaid Oct 19, 2026
1b243e8
Merge branch 'main' into fix/vite-dependency-values
gensokyo-dev Oct 19, 2026
581f875
chore: merge main and preserve Vite integration proofs
evenafterallisaid Oct 21, 2026
8acd05f
fix: repair merged export and formatting checks
evenafterallisaid Oct 24, 2026
72ce50d
fix(javascript): propagate implicit Vite cache effects
evenafterallisaid Oct 24, 2026
6edb272
chore: merge main and preserve Windows Vite validation
evenafterallisaid Oct 24, 2026
52c2a97
chore: merge current main
evenafterallisaid Oct 24, 2026
09bf40f
test(javascript): distinguish cache reads from escapes
evenafterallisaid Oct 24, 2026
ffb83ef
fix(javascript): land deferred restrictions and skip constant escapes
evenafterallisaid Oct 24, 2026
80c1c72
fix(javascript): align cache ordering with current main
evenafterallisaid Oct 25, 2026
d8e0366
fix(javascript): retain cache ownership through created prototypes
evenafterallisaid Oct 25, 2026
be11ee8
fix(javascript): retain cache ownership in loop bindings
evenafterallisaid Oct 25, 2026
b875ccd
chore: use the upstream launcher fixture repair
evenafterallisaid Oct 25, 2026
e861441
fix(javascript): separate yielded elements from array ownership
evenafterallisaid Oct 25, 2026
727475a
fix(javascript): retain values from uncertain helper selections
evenafterallisaid Oct 25, 2026
aeeca27
Merge remote-tracking branch 'origin/main' into codex/vite-1840-prove…
morluto Oct 29, 2026
e6a3ce1
fix(javascript): retain Vite output markers after integration
morluto Oct 29, 2026
f03dc0d
fix: retain upstream behavior in Vite merge
morluto Oct 29, 2026
4f7a4d6
Merge commit 'refs/rea-audit/latest-main' into codex/vite-1840-main-m…
morluto Oct 29, 2026
a9507c7
fix(javascript)!: retain Vite table values as candidates
morluto Oct 29, 2026
ccc2dff
fix: preserve Vite index uncertainty in table defaults
morluto Oct 29, 2026
1a2d032
test: verify Vite default mutation at runtime
morluto Oct 29, 2026
353e301
fix(javascript): retain inherited Vite values and iteration identity
morluto Oct 29, 2026
6baf6a8
fix(javascript)!: preserve file occurrence identity in application gr…
morluto Oct 29, 2026
eb8e1ea
fix(javascript): classify Vite initializer identifier roles
morluto Oct 29, 2026
ffd0fd1
test(javascript): retain Vite candidates with harmless property keys
morluto Oct 29, 2026
6b31f3a
test(javascript): exercise Vite property keys through CLI and MCP
morluto Oct 29, 2026
374bcb4
fix(javascript): preserve selected Vite table value ownership
morluto Oct 29, 2026
26e5551
test(javascript): exercise selected Vite values through CLI and MCP
morluto Oct 29, 2026
64c7f0e
fix(javascript): scope intrinsic exposure to mapped values
morluto Oct 29, 2026
4893a9e
fix(javascript): retain intrinsic prototype escape effects
morluto Oct 29, 2026
37fe1e1
test(javascript): exercise intrinsic prototype escapes through CLI an…
morluto Oct 29, 2026
e183bb7
fix(javascript): retain unproven descriptor effects
morluto Oct 29, 2026
8ff9445
test(javascript): exercise unknown prototype descriptors through CLI …
morluto Oct 29, 2026
9dfe1ae
test(javascript): group Vite ownership regressions by behavior
morluto Oct 29, 2026
d063b37
fix(javascript): match URL source declarations across versions
morluto Oct 29, 2026
5476350
test(javascript): exercise URL source maps through CLI and MCP
morluto Oct 29, 2026
c2766e4
fix(javascript): preserve copied value provenance
morluto Oct 29, 2026
faf6e2b
fix(javascript): index copy hazards by semantic order
morluto Oct 29, 2026
8243462
test(javascript): exercise inherited prototype copies through CLI and…
morluto Oct 29, 2026
0578fbf
fix(javascript): include prototype writes in cache read proofs
morluto Oct 29, 2026
ab92e4d
fix(javascript): invalidate helper family for shared method effects
morluto Oct 29, 2026
9f6b470
test(javascript): group prototype effect regressions
morluto Oct 29, 2026
8ae2c13
fix(javascript): preserve primitive candidates through shared effects
evenafterallisaid Oct 29, 2026
697899a
test(javascript): verify source occurrence identities at boundaries
evenafterallisaid Oct 29, 2026
a9c9d68
fix(javascript): preserve own computed table values
evenafterallisaid Oct 29, 2026
7ce8a45
test(javascript): align resource and template identity assertions
evenafterallisaid Oct 29, 2026
59a948d
test(javascript): align occurrence and input diagnostic assertions
evenafterallisaid Oct 29, 2026
cdba1cc
fix(javascript): retain bundle correspondence across container versions
evenafterallisaid Oct 29, 2026
9c119b9
chore: merge current main into vite dependency fix
evenafterallisaid Oct 29, 2026
9888267
test(javascript): compare source maps using retained session evidence
evenafterallisaid Oct 29, 2026
217801b
test(javascript): verify source map occurrence identity
evenafterallisaid Oct 29, 2026
71d723f
test(javascript): select semantic chunks and preserve file occurrences
evenafterallisaid Oct 29, 2026
0587d9d
fix(javascript): preserve copied values and source occurrence compari…
evenafterallisaid Nov 3, 2026
3999f71
test(javascript): supply application view predicate
evenafterallisaid Nov 3, 2026
5e8dbeb
test(javascript): admit module item view requests
evenafterallisaid Nov 3, 2026
64a3bd0
fix(tests): find retained checkpoints by file occurrence
evenafterallisaid Nov 4, 2026
0a88ed2
fix(javascript): preserve Vite receiver facts and index ordered writes
evenafterallisaid Nov 5, 2026
3498d44
merge main and preserve shared JavaScript source facts
evenafterallisaid Nov 5, 2026
e1996f5
fix(javascript): guard changed constructors and yield indexed sorting
evenafterallisaid Nov 6, 2026
80711fc
test(javascript): bound the snapshot ordering regression fixture
evenafterallisaid Nov 6, 2026
ee6bd3c
merge main and preserve JavaScript loader identity
evenafterallisaid Nov 8, 2026
91a2db2
merge latest main and align Electron applicability tests
evenafterallisaid Nov 8, 2026
97e86f5
fix(javascript): retain call authority and match unchanged Electron s…
evenafterallisaid Nov 9, 2026
ae97bb1
merge main and retain Vite constructor and call authority
evenafterallisaid Nov 10, 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
4 changes: 2 additions & 2 deletions docs/javascript-application-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ necessarily changing the node ID.

| Strategy | Stability scope | Intended use |
| ------------------------- | -------------------------------- | ----------------------------------------------------------------- |
| `content-digest` | Globally exact bytes | Artifacts and byte-identical assets |
| `content-digest` | Globally exact bytes | Root artifacts and historical byte-identity nodes |
| `source-map-original` | One source-map commitment | Recovered original source modules |
| `canonical-path` | One artifact version | ASAR entries and assets at exact normalized paths |
| `artifact-local-key` | One artifact version | IPC channels, handlers, exports, and other named entities |
| `artifact-local-key` | One artifact version | File and nested archive occurrences, IPC channels, named entities |
| `structural-fingerprint` | Explicit cross-version inference | Modules whose relationship is hypothesized from bounded structure |
| `runtime-instance` | One capture only | Targets, frames, runtime scripts, and workers |
| `observation-fingerprint` | One observation scope | Facts with no stronger justified identity |
Expand Down
7 changes: 6 additions & 1 deletion docs/javascript-application-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ The tiers are exact content digest, exact module-source digest, exact node
identity, source-map identity, structural fingerprint, and a semantic key for
non-module entities. Lower tiers never override a higher unique match.

Source-map matching uses a unique artifact-relative source path when available.
For URL-backed declarations, it can instead match the exact source name and
root within a uniquely identified map path; this does not resolve the URL to a
local file. Multiple map paths or duplicate candidates remain ambiguous.

Module ordinals, stable minified names, and fuzzy text similarity are not
persistent identities. Duplicate candidates remain ambiguous. Source-map and
structural matches are high/medium-confidence inferences rather than exact
Expand Down Expand Up @@ -414,7 +419,7 @@ paths with exact identity to one current occurrence are merged. Fresh file
observations carry their container digest, inventory path, and content digest.
Their asset, source-module, and export-binding representations form one candidate,
which retains `current_file_occurrence` and `representation_node_ids`. Equal bytes
at two inventory paths remain two occurrences even when they share an asset node.
at two inventory paths remain two occurrences with distinct asset nodes.
Logical bundle modules and older observations without occurrence facts retain
their graph identities; matching does not infer common ownership from a label.
`removed` requires
Expand Down
45 changes: 36 additions & 9 deletions docs/javascript-artifact-reconstruction.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,12 @@ Selected bounded text is then parsed as inert data to recover:
relative to the calling module; string worker and service-worker paths use
the document base URL or Node's working directory, which static analysis
does not establish, so they keep their expression and stay unresolved);
- Vite preload dependency tables (`__vite__mapDeps`): `./` entries resolve
relative to the importing chunk; base-relative entries such as
`assets/chunk.js` carry a `vite-output:` specifier and resolve under the one
ancestor directory of the importer that holds them, the build output
directory. A file found there but not analyzed, such as a stylesheet, stays
`unavailable` with its path. Selecting only the assets directory leaves them
`not-found`;
- Vite dependency tables (`__vite__mapDeps`): selected literal entries retain
their original values as candidates. A matching local file may be reported as
a candidate path, but the table alone does not establish a load, runtime URL
base, or applicable import map. Candidate resolution stays unavailable and
graph coverage is partial; independently observed imports keep their own
resolution. Previously retained Evidence is not rewritten;
- route, network endpoint, storage, and vendor-marker observations;
- local source-map declarations and original
source names and content digests;
Expand All @@ -391,6 +390,32 @@ while locally shadowed receivers can still contribute network endpoint
candidates. A template recovered with a parser error and no cooked value stays
dynamic; its raw spelling is not treated as a valid JavaScript string.

Vite `__vite__mapDeps` dependency tables use decoded JavaScript string values,
so an escaped path such as `caf\u00e9.js` is retained as `café.js`. array positions
are preserved when entries are dynamic or missing; a spread of unknown length
makes subsequent indexes unknown. calls use their own lexical helper binding,
and unresolved dependencies retain the call expression and source evidence.
equivalent function/block helpers, including Babel's lowered `arguments`
defaults, retain the same table interpretation. explicit `undefined` defaults
are distinguished from overrides; visible or unproven argument effects remain
unknown. writes through helper/cache aliases and in-place cache mutations make
dependencies unknown, including mutations of shared cache values in shallow
copies. replacing a copied container's property leaves the original cache intact.
ordinary calls receiving the helper, cache, or a shared container keep possible
mutation explicit. inherited `f` overrides on `Function.prototype` or
`Object.prototype` also leave the table unknown. a proven fresh replacement in
the same straight-line block detaches a copied cache; conditional replacements
and aliases captured before the replacement retain possible sharing. compressed
return sequences preserve equivalent TypeScript default guards. chained calls
keep the helper invocation's exact source range.

cache ownership follows static object keys, array slots, `Object.assign` targets,
and `Object.create` prototypes. a later write through another name for the same
container can restore sharing after replacement. non-index metadata writes leave
dependency slots intact; unproven methods and callbacks keep possible mutation
explicit. table decoding, ownership propagation, and reference projection yield
cooperatively during large analyses.

RPC client syntax also contributes network endpoint candidates, in both
`analyze_javascript_application` and `analyze_web_bundle`, distinguished by
`mechanism`:
Expand Down Expand Up @@ -730,8 +755,10 @@ checked before and between bounded parsing and traversal phases; the synchronous
Babel and JSON parser calls cannot be preempted mid-call, so their input byte
bounds remain the hard protection for an individual call.

Byte-identical assets share a content-digest node. Every distinct observation
and inventoried containment edge is retained. If parsing or artifact safety
Inventoried files and nested archives retain separate nodes for each container
and path, even when their bytes are identical. Each node retains its content digest for exact-byte
matching. Source-map original declarations also retain their map occurrence.
Every distinct observation and inventoried containment edge is retained. If parsing or artifact safety
boundaries omit input, coverage reports that omission; when an exact omission
count is not knowable, `omitted_count` is `null` rather than a guessed value.

Expand Down
14 changes: 11 additions & 3 deletions src/application/javascript/ElectronBoundaryGraphWindows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type {
import type { JavaScriptArtifactFile } from "../../domain/javascript/javascriptArtifactFiles.js";
import {
artifactLocalIdentity,
artifactOccurrenceKey,
createElectronRoleNode,
javascriptAnalysisCoverage,
linkElectronRoleToAsset,
Expand Down Expand Up @@ -86,7 +87,7 @@ const addBrowserWindow = (
identity: artifactLocalIdentity(
file.sha256,
"electron-browser-window",
javascriptSourceRangeKey(value.location),
artifactOccurrenceKey(file, javascriptSourceRangeKey(value.location)),
Comment thread
evenafterallisaid marked this conversation as resolved.
Resolved
),
observations: [
{
Expand Down Expand Up @@ -203,7 +204,11 @@ const addContextBridge = (
identity: artifactLocalIdentity(
file.sha256,
"electron-context-bridge",
`${value.world}:${value.api_key ?? value.api_key_expression ?? "[missing]"}:${javascriptSourceRangeKey(value.location)}`,
artifactOccurrenceKey(file, [
value.world,
value.api_key ?? value.api_key_expression ?? "[missing]",
javascriptSourceRangeKey(value.location),
]),
),
observations: [
{
Expand Down Expand Up @@ -273,7 +278,10 @@ const addUtilityProcess = (
identity: artifactLocalIdentity(
file.sha256,
"electron-utility-process",
`${value.module_path ?? value.module_expression}:${javascriptSourceRangeKey(value.location)}`,
artifactOccurrenceKey(file, [
value.module_path ?? value.module_expression,
javascriptSourceRangeKey(value.location),
]),
),
observations: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function* buildJavaScriptArtifactGraphInputSteps(
sourceModuleNodes: new Map(),
chunkNodes: new Map(),
moduleNodes: new Map(),
containerNodes: new Map([[snapshot.manifest.root_sha256, root]]),
containerNodes: new Map(),
applicationRootsBySource: new Map(),
applicationOwnershipUnknownContainers,
applicationModuleGapSources,
Expand Down
13 changes: 8 additions & 5 deletions src/application/javascript/JavaScriptArtifactGraphBundlers.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ApplicationNode } from "../../domain/javascript/javascriptApplicationGraphSchemas.js";
import type { JavaScriptBundlerRegistration } from "../../domain/javascript/javascriptStaticAnalysisTypes.js";
import type { JavaScriptArtifactFile } from "../../domain/javascript/javascriptArtifactFiles.js";
import { compositeKey } from "../../domain/unicodeCodePointOrder.js";
import {
addAstContainsEdge,
artifactLocalIdentity,
artifactOccurrenceKey,
chunkLookupKey,
javascriptAnalysisCoverage,
moduleLookupKey,
Expand Down Expand Up @@ -84,7 +84,10 @@ const createBundlerChunkNode = (
identity: artifactLocalIdentity(
file.sha256,
"bundler-chunk",
compositeKey([registration.runtime, registration.chunk_keys]),
artifactOccurrenceKey(file, [
registration.runtime,
registration.chunk_keys,
]),
),
observations: [
{
Expand Down Expand Up @@ -127,7 +130,7 @@ const addBundlerModuleNodes = (
identity: artifactLocalIdentity(
file.sha256,
`${registration.runtime}:module`,
moduleValue.module_key,
artifactOccurrenceKey(file, moduleValue.module_key),
),
observations: [
{
Expand Down Expand Up @@ -263,7 +266,7 @@ const unresolvedBundlerModuleNode = (
identity: artifactLocalIdentity(
record.file.sha256,
`${record.registration.runtime}:unresolved-entry-module`,
moduleKey,
artifactOccurrenceKey(record.file, moduleKey),
),
observations: [
{
Expand Down Expand Up @@ -297,7 +300,7 @@ const unresolvedBundlerChunkNode = (
identity: artifactLocalIdentity(
record.file.sha256,
`${record.registration.runtime}:unresolved-async-chunk`,
chunkKey,
artifactOccurrenceKey(record.file, chunkKey),
),
observations: [
{
Expand Down
9 changes: 8 additions & 1 deletion src/application/javascript/JavaScriptArtifactGraphContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,12 @@ export const fileOccurrenceIdentity = (file: JavaScriptArtifactFile) => ({
sha256: file.sha256,
});

/** Key a derived fact to its source occurrence, independently of equal bytes. */
export const artifactOccurrenceKey = (
file: JavaScriptArtifactFile,
value: unknown,
): string => JSON.stringify([file.container_sha256, file.path, value]);

/** Stable identity for a fact scoped to one exact artifact. */
export const artifactLocalIdentity = (
sha256: string,
Expand Down Expand Up @@ -433,8 +439,9 @@ export const createElectronRoleNode = (
// Raw application-relative declarations keep their source occurrence even
// when identical source bytes appear under separate application prefixes.
const identityPath =
input.resolution.resolved_path === null ||
input.resolution.runtime_path_base === "application-root"
? compositeKey([input.anchor.path, target])
? artifactOccurrenceKey(input.anchor, target)
: target;
return context.accumulator.addNode({
kind: input.kind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
addArtifactContainsEdge,
addStaticInferenceEdge,
artifactLocalIdentity,
fileOccurrenceIdentity,
createElectronRoleNode,
linkElectronRoleToAsset,
type JavaScriptArtifactGraphContext,
Expand Down Expand Up @@ -132,12 +133,17 @@ export const addJavaScriptSourceMapOriginals = (
? artifactLocalIdentity(
mapFile.sha256,
"source-map-unnamed-declaration",
String(original.declaration_index),
JSON.stringify([
mapFile.container_sha256,
mapFile.path,
original.declaration_index,
]),
)
: {
strategy: "source-map-original",
stability: "source-map-exact",
source_map_sha256: mapFile.sha256,
map_occurrence: fileOccurrenceIdentity(mapFile),
original_source: reference.source_name,
source_root: reference.source_root,
source_sha256: original.content_sha256,
Expand All @@ -147,6 +153,7 @@ export const addJavaScriptSourceMapOriginals = (
label: reference?.source_name || null,
source_map_reference: reference,
properties: {
map_file_occurrence: fileOccurrenceIdentity(mapFile),
Comment thread
evenafterallisaid marked this conversation as resolved.
Resolved
section_path: [...original.section_path],
source_index: original.source_index,
declaration_index: original.declaration_index,
Expand Down
Loading
Loading