Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix(javascript): invalidate helper family for shared method effects
  • Loading branch information
morluto committed Oct 29, 2026
commit ab92e4d54263c250cb0dd7f5af44c026708faf09
10 changes: 10 additions & 0 deletions src/domain/javascript/javascriptViteCacheOwnership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,11 @@ function* retainCallEffectsSteps(
) {
const identity = identities.read(direct.receiver);
invalidate(identity?.owner);
if (
identity?.allocation?.kind === "cache" &&
reads.sharedWriteAffects(direct.method)
)
invalidate(null);
if (
identity?.inheritedArrayPrototype === true ||
identity?.intrinsicPrototype === true
Expand Down Expand Up @@ -958,6 +963,11 @@ function* retainCallEffectsSteps(
))
) {
invalidate(receiver?.owner);
if (
receiver?.allocation?.kind === "cache" &&
reads.sharedWriteAffects(method, true)
)
invalidate(null);
if (
receiver?.inheritedArrayPrototype === true ||
receiver?.intrinsicPrototype === true
Expand Down
35 changes: 34 additions & 1 deletion src/domain/javascript/javascriptViteCacheReads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const ARRAY_READS = new Set([

export interface ViteCacheReadProof {
readonly recordWrite: (path: readonly (string | null)[]) => void;
readonly sharedWriteAffects: (
method: string | null,
capturedIntrinsic?: boolean,
) => boolean;
readonly isReadSteps: (
receiver: t.Node,
method: string | null,
Expand All @@ -42,13 +46,42 @@ export function* createViteCacheReadProofSteps(
if (dense) denseOwners.add(owner);
}
const writes = new SemanticPropertyPathCoverage();
const sharedWrites = new SemanticPropertyPathCoverage();
let hasSharedWrites = false;
let hasAmbientSharedWrites = false;
for (const { path } of state.ambientWriteEffects) {
if (examined++ % 1024 === 0) yield;
if (
(path[0] === "global" || path[0] === null) &&
(path[1] == null || path[1] === "Array" || path[1] === "Object") &&
(path[2] == null || path[2] === "prototype")
)
hasAmbientSharedWrites = true;
}
const ambientSharedWrite = (key: string): boolean =>
["Array", "Object"].some((namespace) =>
state.ambientWrites.covers(["global", namespace, "prototype", key]),
);
return {
recordWrite(path): void {
const [kind, owner, key] = path;
if (kind === "cache" || kind === "unknown")
writes.retain([owner ?? null, key ?? null]);
else if (kind === "inherited-array-prototype")
else if (kind === "inherited-array-prototype") {
writes.retain([null, key ?? null]);
sharedWrites.retain([key ?? null]);
hasSharedWrites = true;
}
},
sharedWriteAffects(method, capturedIntrinsic = false): boolean {
if (method === null) return hasSharedWrites || hasAmbientSharedWrites;
return (
(!capturedIntrinsic &&
(sharedWrites.covers([method]) || ambientSharedWrite(method))) ||
(method === "slice" &&
(sharedWrites.covers(["constructor"]) ||
ambientSharedWrite("constructor")))
);
},
*isReadSteps(
receiver,
Expand Down
8 changes: 8 additions & 0 deletions src/domain/javascript/javascriptViteInheritedValues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ describe("Vite inherited dependency values", () => {
}
const safe = `__vite__mapDeps([0]); const cache=__vite__mapDeps.f; const proto=cache.__proto__; proto.unrelated=function(){}; cache.slice(); __vite__mapDeps([0]);`;
expect(candidates(safe)).toEqual(["./first.js", "./first.js"]);
const nested = `__vite__mapDeps([0]); const cache=__vite__mapDeps.f; const proto=cache.__proto__; proto.slice=function(){this[0]='./last.js'}; {const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=['./second.js'])))=>i.map(i=>d[i]); __vite__mapDeps([0]); __vite__mapDeps.f.slice(); __vite__mapDeps([0]);}`;
expect(candidates(nested)).toEqual([null, null, null]);
expect(Array.from(runInNewContext(helper + nested))).toEqual(["./last.js"]);
const ambient = nested.replace(
"proto.slice=function()",
"Array.prototype.slice=function()",
);
expect(candidates(ambient)).toEqual([null, null, null]);
});
it("copies enumerable prototype values without copying prototype identity", () => {
const init = `const proto=__vite__mapDeps(['__proto__'])[0];`;
Expand Down