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: retain upstream behavior in Vite merge
  • Loading branch information
morluto committed Oct 29, 2026
commit f03dc0d0dcc55233cac6fcdd21e7003f4cd601a6
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ names), coverage and per-collection counts. Page rows with
`view: {kind: "managed-members", collection: "call_edges", offset: 0, limit: 64}`
over `types`, `exported_types`, `fields`, `methods`, `member_refs`, `call_edges`,
`field_accesses` or `user_strings`.
Use exact `names` and `declaring_types` filters before paging supported
collections. For a compact method lookup, request `fields: ["name",
"declaring_type", "signature"]`; omit `body` to avoid anchors. Identity tokens,
original `source_index`, module/MVID and source coverage remain. Check
`unresolved_filter_rows` before interpreting an empty match as absence.

### .NET NativeAOT

Expand Down
8 changes: 6 additions & 2 deletions docs/browser-observation.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ observations may omit the coverage field; treat omission as `unknown` rather
than inferring completeness from the array.

Passive DOM comparison checks complete node inventories and complete frame
parent/child structure independently. Frame IDs and sibling enumeration order
parent/child structure independently. Node value lengths are comparable only
when both nonempty snapshots declare the same `node_value_length_unit`.
Missing or different units leave length comparison unknown; independent node
or frame structural differences can still prove change. Empty inventories have
no value lengths to compare. Frame IDs and sibling enumeration order
are capture-local and do not establish a change; duplicate IDs, missing parents,
and cyclic ancestry remain unknown. A complete frame difference can still prove
change when DOM nodes are incomplete, and vice versa. Partial DOM or metadata
Expand Down Expand Up @@ -461,7 +465,7 @@ not bound the whole process heap.
REA retains local observation data and removes only URL userinfo credentials, explicitly declared scenario secrets, and values from structured credential/storage fields:

- URL observations preserve the complete local URL, including query values, fragments, duplicate parameters, and their order. Only username/password userinfo is removed; malformed original URL strings remain available with `origin: null`.
- DOM snapshots retain node types, node names, value lengths, and attribute names, but not text or attribute values.
- DOM snapshots retain node types, node names, value lengths, and attribute names, but not text or attribute values. `dom.node_value_length_unit` is `utf16-code-units` for web observations and applies to every node's `node_value_length`; it counts JavaScript string code units, not Unicode code points or UTF-8 bytes. Electron observations declare `utf8-bytes` instead. Historical captures without the unit leave it unknown; reading them does not infer a unit or convert their stored lengths.
- Supported DOM URL attributes are projected separately as resolved destinations. Empty `action` on HTML or XHTML forms and empty `formaction` on HTML or XHTML submit controls resolve to the document URL; other relative URL attributes resolve against the captured document base.
- Accessibility structure and reported roles are retained by default, while names and descriptions require `include_accessibility_text: true`. The browser protocol may omit an individual role; that role remains unknown for comparison. Other observed accessibility differences can still establish a change.
- Network observations retain method, status, MIME type, size, type, initiator stack location, and complete URLs with userinfo credentials removed. Redirects reported by CDP are attached as ordered `redirects` on the one request ID, with the prior request URL, CDP response URL, method/type, response status/MIME/encoded length, request timestamp, and the next `requestWillBeSent` event timestamp. CDP delivers `redirectResponse` with that next request event, so the latter is an event boundary rather than an exact response timestamp. Redirect response headers and bodies are discarded; hops outside the selected origins are discarded with the request chain. Headers are discarded after an allowlisted projection of length/encoding, structured CSP/Link/policy fields, and untrusted agent hints. Cookies and authorization headers are never retained.
Expand Down
7 changes: 7 additions & 0 deletions docs/electron-observation.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ DOM node indices retain their snapshot positions. Invalid rows are omitted with
completeness diagnostics, so `total_nodes` can exceed the retained node count
and a parent index can refer to an omitted source node.

`dom.node_value_length_unit` is `utf8-bytes`: each node's `node_value_length`
counts the bytes needed to encode its value as UTF-8, not characters. Web
observations instead declare `utf16-code-units`. These existing measurements
are preserved; the unit is reported once for the whole DOM, without retaining
text values. Historical captures without the unit leave it unknown; reading
them does not infer a unit or convert their stored lengths.

Script metadata retains its execution-context frame ID when CDP supplies one and
records admission separately in `frame_scope`. An `authorized` scope refers to
the observed document generation; `unknown` retains the known frame ID without
Expand Down
44 changes: 44 additions & 0 deletions docs/managed-code-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,50 @@ literal pool's own coverage. Older Evidence that never examined exported types
or user strings reports a null count and refuses those pages rather than
returning an empty one.

To find specific retained members without returning their IL anchors, select
exact names and defining types, then project columns:

```json
{
"source": {
"kind": "retained-evidence",
"evidence_id": "<parent_evidence_id>"
},
"view": {
"kind": "managed-members",
"collection": "methods",
"names": ["ParseNumber", "ParseReadNumber"],
"declaring_types": ["Newtonsoft.Json.JsonTextReader"],
"fields": ["name", "declaring_type", "signature"],
"offset": 0,
"limit": 64
}
}
```

Filters are exact and case-sensitive; lists are alternatives and filters
intersect. An empty list matches nothing. Names select `name` in types,
exported types, fields, methods and member references; in call edges they select
`target_name`, and in field accesses `field_name`. Declaring-type filters select
`declaring_type` in fields/methods, `parent_name` in member references,
`target_declaring_type` in call edges and `field_declaring_type` in field accesses.
Types, exported types and user strings do not accept a declaring-type filter;
user strings do not accept a name filter. No display strings are reparsed.

`fields` accepts only columns of that collection. Omitting it preserves full
rows, including method bodies. Selecting `body` explicitly returns the full
recorded body and anchors; selecting no columns (`[]`) returns identity fields.
Projected or filtered rows add their original `source_index`; tokens and source
byte offsets remain, with defining/parent tokens or IL-site endpoints where
applicable. The page retains module/MVID, artifact digest, parent Evidence,
producer selection and source coverage. Full facts remain in the parent.

Paging offsets and totals count known matches in original order. `source_count`
counts the producer-returned collection; `unresolved_filter_rows` counts rows
that could match but lack a requested name/type. Those candidates remain unknown
and are excluded from the matched total. Exhausting the known matches does not
prove absence among unresolved or unexamined source rows.

#### CLI summary and saved member rows

The CLI accepts the same `complete` and `summary` detail choices. Omitted or
Expand Down
2 changes: 2 additions & 0 deletions src/browser/CdpCaptureDocuments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ interface DomMetadataCapture {

export interface DomCapture extends DomMetadataCapture {
readonly total: number;
readonly nodeValueLengthUnit: "utf16-code-units";
readonly nodes: WebPageInspection["dom"]["nodes"];
}

Expand Down Expand Up @@ -420,6 +421,7 @@ export function* captureDom(
}
return {
total,
nodeValueLengthUnit: "utf16-code-units",
nodes,
urls,
agentHints,
Expand Down
13 changes: 11 additions & 2 deletions src/browser/CdpElectronInspection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ const captureDom = async (
context: ElectronContext,
completeness: CdpCaptureCompleteness,
): Promise<ElectronPageInspection["dom"]> => {
const nodeValueLengthUnit = "utf8-bytes";
const result = requiredRecord(
await context.connection.send(
"DOMSnapshot.captureSnapshot",
Expand All @@ -728,7 +729,11 @@ const captureDom = async (
completeness.exclude("dom", "invalid_protocol_value", count);
if (!Array.isArray(result.strings)) {
invalid(null);
return { total_nodes: 0, nodes: [] };
return {
total_nodes: 0,
node_value_length_unit: nodeValueLengthUnit,
nodes: [],
};
}
const strings = result.strings.map(cdpStringValue);
const nodes: ElectronPageInspection["dom"]["nodes"] = [];
Expand Down Expand Up @@ -779,7 +784,11 @@ const captureDom = async (
});
}
}
return { total_nodes: total, nodes };
return {
total_nodes: total,
node_value_length_unit: nodeValueLengthUnit,
nodes,
};
};

const mainFilePath = async (
Expand Down
6 changes: 5 additions & 1 deletion src/browser/CdpPageCapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,11 @@ const normalizedInspection = (
},
completeness: state.events.completeness.snapshot(),
frames: [...captured.frames],
dom: { total_nodes: captured.dom.total, nodes: [...captured.dom.nodes] },
dom: {
total_nodes: captured.dom.total,
node_value_length_unit: captured.dom.nodeValueLengthUnit,
nodes: [...captured.dom.nodes],
},
accessibility: {
total_nodes: captured.accessibility.total,
text_capture: captured.accessibility.textCapture,
Expand Down
Loading