Commit Graph
1150 Commits
Author SHA1 Message Date
Davi Lopes Rosa de Oliveira fe8e571f78 test(javascript): pin the external-script loads edge to its HTML source
The new inline-scripts CLI case asserted the external <script src> survived
by matching a "loads" edge on resolved_path alone. The fixture's package.json
also declares "main":"main.js", which produces its own "loads" edge with the
same resolved_path, so the assertion could pass through the package entrypoint
even if the HTML script edge regressed. Also require script_path === "main.js"
to pin the assertion to the HTML-derived edge, matching the reference-html case
in the same file. Tests-only.
2026-11-21 22:29:41 +01:00
Davi Lopes Rosa de Oliveira 3eae4de89f test(javascript): cover the inline-HTML unavailable scope through the public CLI
The analyzer already reports valid HTML containing inline <script> bodies
through an explicit "parse-html-inline-scripts" unavailable scope, so an
application whose endpoints, storage, or imports live in inline scripts is
surfaced as not-analyzed rather than silently empty. That contract was asserted
only at the filesystem boundary (javascriptHtmlEntrypoints.test.ts); the public
CLI acceptance surface had no scenario proving it survives transport.

Add one acceptance case to the existing unavailable-HTML CLI suite. No source change.
2026-11-21 22:29:41 +01:00
morluto 587cca5c5c fix(capture): keep credential checks independent of body filters (#13215) 2026-11-21 21:27:18 +00:00
morluto 1e89bcc216 test(capture): consolidate Protobuf descriptor identity checks (#13214) 2026-11-21 16:24:24 -05:00
morluto 6152c02f3f fix(capture): retain credential checks across MIME conflicts (#13209) 2026-11-21 21:12:50 +00:00
morluto 62d836a630 test(capture): retain independent Playwright trace coverage checks (#13208) 2026-11-21 21:09:37 +00:00
morluto 339f0ace57 test(capture): consolidate Playwright trace contracts (#13207) 2026-11-21 20:55:20 +00:00
morluto a2faf4cc34 test(capture): prove retained summaries survive source deletion (#13206) 2026-11-21 20:48:19 +00:00
morluto 286d599e9f test(web): consolidate passive capture comparison coverage (#13200) 2026-11-21 20:10:41 +00:00
morluto 9230f698b3 fix(web): retain Chromium navigation kind in session evidence (#13194)
* fix(web): retain Chromium navigation kind in session evidence

* test(web): use native reload event shape in the shared timeline fixture
2026-11-21 19:47:52 +00:00
ShuaixinHuangandShuaixinHuang ae72c30e2c fix(bun): keep budget refusals out of layout selection (#12763)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-21 20:39:31 +01:00
Vinícius DS Andrade 978cc6d46b test(v8): cover the six-word code cache header
No V8 8.8 through 11.7 producer runs in the test environment, so the
fixture is synthetic, as it already is for the narrow header: a real
cache without its build-constant word and its alignment word, which is
the container those releases define.

Cover the admitted layout through the parser and the public CLI, the
bit 31 module flag, a truncated six-word container, a container that
fits both layouts, and the word-table rule for a 24-byte header. The
short-header case now also covers the new 24-byte minimum.

The CLI case is the recorded lifecycle coverage of the provider, so its
new title is updated there as well.
2026-11-21 20:02:30 +01:00
morluto 1587b46a9f fix(setup): keep MCP launchers usable after session cleanup (#13185) 2026-11-21 18:50:36 +00:00
morluto b5ba2f0f6e test(web): consolidate scenario process and cleanup coverage (#13165) 2026-11-21 12:37:58 -05:00
morluto 03795d55b3 test(web): consolidate wide scenario reference admission (#13163) 2026-11-21 17:33:20 +00:00
morluto 07225b8b3e test(sourcemap): consolidate point lookup and CLI parity (#13067)
test(sourcemap): consolidate point lookup and original location cases
2026-11-21 10:37:04 +00:00
morluto 66d1bb13dc test(javascript): consolidate source map acceptance fixtures (#13056) 2026-11-21 04:31:30 -05:00
morluto e4d3861756 test(artifacts): consolidate summary replay coverage (#12942) 2026-11-20 22:39:03 +00:00
morluto 12ac0541f6 test(apple): consolidate bundle resource CLI coverage (#12936) 2026-11-20 17:13:13 -05:00
morluto 6cd055bfca test: restore audited startup, launcher, and BEAM contracts (#12884) 2026-11-20 16:48:32 +00:00
morluto 6dde865ccf test(model): consolidate historical layout and retained views (#12878) 2026-11-20 16:06:43 +00:00
morluto b38438bab4 test(sqlite): consolidate retained views and journal coverage (#12876) 2026-11-20 16:02:40 +00:00
morluto cfc1644238 test(il2cpp): consolidate retained metadata projection coverage (#12870) 2026-11-20 15:51:59 +00:00
morluto 75908cc1fa test(rust): consolidate carrier budgets and retained views (#12872)
* test(rust): consolidate authenticated dependency views

* test(rust): consolidate carrier and report budget checks
2026-11-20 10:50:58 -05:00
morluto aa1651311d test(v8): consolidate relative CLI and source-byte checks (#12867) 2026-11-20 15:36:03 +00:00
morluto 7e2e4d41f5 test(il2cpp): consolidate section geometry and prefix checks (#12863) 2026-11-20 10:22:15 -05:00
morluto ae449a3021 test(zip): consolidate archive coverage and name checks (#12857)
* test(zip): consolidate member extent and empty archive checks

* test(zip): reuse Unicode path fixture framing
2026-11-20 15:13:19 +00:00
morluto aa5d1a8281 fix(asar): preserve lazy listing configuration errors (#12854)
fix(asar): preserve typed inventory configuration errors
2026-11-20 14:34:06 +00:00
morluto 7b8ddab284 test(process): consolidate capture finalization and timer checks (#12852)
test(process): consolidate native capture finalization proof
2026-11-20 14:28:16 +00:00
morluto c9caa0aa5b test(formats): consolidate BEAM and DOL boundary checks (#12832)
* test(erlang): consolidate BEAM path and atom budget checks

* test(dol): prove session contracts through the MCP client
2026-11-20 13:44:28 +00:00
morluto 01895d33ef test(erlang): consolidate BEAM budget and truncation coverage (#12830)
test(erlang): consolidate BEAM limit and truncation checks
2026-11-20 08:30:16 -05:00
morluto 53a23c0f0d test(cli): consolidate launcher alias readiness checks (#12827)
test(cli): consolidate cross-alias registration readiness checks
2026-11-20 08:28:17 -05:00
morluto 68ed9b0e67 test(android): consolidate OTA partition metadata order coverage (#12826)
test(firmware): consolidate split OTA partition order coverage
2026-11-20 13:24:16 +00:00
morluto f718e17caa test(cli): consolidate automatic client setup journeys (#12807)
test(setup): consolidate manual-client selection coverage
2026-11-20 12:44:55 +00:00
morluto 7f411078a3 test(native): consolidate keyed archive scalar journeys (#12799)
test(artifacts): consolidate keyed archive scalar delivery coverage
2026-11-20 12:42:22 +00:00
morluto d21636ae07 test(sqlite): consolidate inventory column capacity checks (#12798)
test(sqlite): consolidate inventory column capacity coverage
2026-11-20 12:41:55 +00:00
morluto 98c3fad24d test(erlang): consolidate Beam atom layout coverage (#12795)
test(erlang): consolidate BEAM atom layout coverage
2026-11-20 12:41:43 +00:00
morluto d766ab56dc test(apk): consolidate signature capacity checks at their boundaries (#12789)
test(apk): consolidate signature refusal coverage
2026-11-20 12:37:00 +00:00
e58c60b36e test(limits): reference limit constants instead of repeating their values (#12715)
* test(limits): reference limit constants instead of repeating their values

Point duplicated default literals at their owner constants and replace
recovery-wording locks with the setting name, units, and those constants.
Keep the single default pins that guard shipped values.

* test(limits): pin the shipped Ghidra value-flow defaults

Consumer checks follow the owner constants, so they no longer catch a
change to 3000, 64, or 12000. One owner pin keeps those shipped values.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-20 04:22:32 +00:00
morlutoandCursor Agent bb8e6833eb test: assert structured recovery facts instead of recovery wording in tests/ (#12723)
Drop recovery-sentence locks when a structured field or the owning
formatter already carries the fact, and own this batch's per-test
temporary directories through createTestTempDirectory. Keep setting
names, caller data, and prose that has no structured carrier.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-19 23:03:53 -05:00
8c7977f174 fix(native)!: require separate inspection for plists outside bundles (#9754)
* fix(native): record inspected plist bytes and refuse files outside the bundle

An open app session keeps the executable as the Evidence subject for
inspect_plist, same as the other bundle-resource tools, but the result had
no digest of the plist bytes and any absolute path was sealed under that
subject. Record source_sha256 for the bytes read, and refuse a selection
that resolves outside the opened bundle.

Fixes #9479

* fix(native)!: scope plist selection to the opened bundle

BREAKING CHANGE: To inspect a plist outside an opened app bundle or resource root, open the plist as a separate target.

* fix(native): report plist snapshot filesystem effects

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 21:35:17 -05:00
morluto ea26a4a46c fix(elf): retain mapped leading GNU symbol version slots (#12685)
* fix(elf): retain mapped leading GNU symbol version slots

* fix(elf): report short version tables during admission
2026-11-20 02:19:55 +00:00
morluto 68604b7e95 fix(elf): distinguish exhausted string tables from capped scans (#12693)
fix(elf): distinguish exact string-table ends from scan limits
2026-11-20 02:15:34 +00:00
morluto 0fcbfe83dc fix(elf): retain readable build IDs beside compressed notes (#12674) 2026-11-20 02:02:45 +00:00
morluto c6f86cce57 fix(elf): preserve dynamic string diagnostic provenance (#12678)
* fix(elf): preserve DT_NEEDED diagnostic source offsets

* fix(elf): distinguish missing dynamic strings from invalid indices
2026-11-20 02:01:09 +00:00
morluto bd887a96be refactor(apk): project signing block pair limits from the parser (#12670)
* refactor(apk): project the signing-block pair limit from the parser

* test(apk): compare the pair refusal with the parser-owned reason
2026-11-20 01:58:07 +00:00
morluto 0ab693fe81 fix(maven): match declarations in the project namespace (#12672) 2026-11-20 01:54:59 +00:00
RRFZ 25f6adffdc test(setup): keep literal Hermes profiles distinct from named homes (#12658) 2026-11-19 20:52:32 -05:00
morluto a3df11ebf5 refactor(apk): project the v1 directory entry limit from the parser (#12665)
* refactor(apk): project the v1 directory entry limit from the parser

* test(apk): compare v1 refusal with the parser-owned reason
2026-11-20 01:51:02 +00:00
吴佳浩Albenandmorluto ea4baaf6de fix(v8): read the code cache header size from the container (#10279)
* fix(v8): read the code cache header size from the container

V8 sizes the header with `kHeaderSize = POINTER_SIZE_ALIGN(kUnalignedHeaderSize)` and
`kUnalignedHeaderSize` is 28, so the header is padded *after* its words: a 64-bit producer writes
32 header bytes and a 32-bit one writes 28. The reader pinned 32 and required the declared payload
to equal `bytes.length - 32`, so every container from a 32-bit producer failed as "truncated or
corrupt".

Measured here on Node 24.22.1 (V8 in x64): take a real cache and drop the four alignment bytes at
offset 28. V8 loads it unchanged — `cachedDataRejected === false` — while the reader refused it:

    before: Header declares a 392-byte payload but 388 bytes follow the 32-byte header
    after:  ACCEPT header_bytes=28 words=7 payload.offset=28

The payload-length word sits at byte 20 in both layouts, so the declared length already states how
much trailing padding the container carries. The header size is derived from it now: `28` and `32`
are admitted, the reported word table covers exactly the header the container holds (7 or 8 words),
and the schema requires that table to agree with `header_bytes`.

Nothing is loosened. A header that is neither 28 nor 32 bytes is still `malformed`, and the
16 existing cases pass unchanged — dropping only the derivation back to the constant fails exactly
the new narrow-header case.

`src/v8` — 26 passing. `npm run lint` and `tsc --noEmit` clean.

* fix(v8): refuse a wide cache that is only four bytes short

A review finding on the previous commit, and a real one: deriving the header size from the declared
payload length makes a 32-byte-header container truncated by four bytes resolve to 28, because
`bytes.length - declaredPayload` loses exactly those four bytes. The reader then accepted a
truncated cache and read its payload one word long.

The wide header's last word is `POINTER_SIZE_ALIGN` padding that V8 leaves zero, and a narrow
container has payload where that word sits. Measured on Node 24.22.1 across six different sources:
the padding word is always `0x00000000` and the first payload word is always non-zero. So the zero
word is the only evidence that separates the two, and it is now required to be non-zero for the
28-byte layout:

| container | before this commit | after |
| --- | --- | --- |
| real 32-byte header | accept | accept, `header_bytes=32` |
| real 28-byte header | accept | accept, `header_bytes=28` |
| 32-byte header truncated by 4 | **accept** | refused as `malformed` |

The guide also described one pinned 32-byte header; it now describes both layouts, how the size is
resolved, and why an ambiguous container is refused.

`src/v8` — 27 passing. Removing the guard accepts the truncated container again.

* fix(v8): read the padding word through the header accessor

A Static checks finding: `verify/architecture-guards.mjs` counts raw Buffer reads in parser folders
and allows only a shrinking baseline, and the previous commit added one:

```
raw Buffer or DataView numeric read (use BinaryReader ...); new copies are not allowed:
  src/v8/V8CodeCacheParser.ts: 2 (baseline 1)
```

The read is the narrow-header discriminator — the alignment word a 64-bit producer leaves zero at
offset 28. It now goes through the file's existing `field(index)` accessor instead of calling
`bytes.readUInt32LE` directly, so the count returns to the baseline while the check itself is
unchanged: `field(7)` is byte 28, and `V8_CODE_CACHE_NARROW_HEADER_BYTES / 4` spells that index.

`node scripts/verify/architecture-guards.mjs` — passed across 2 843 source files.
`src/v8` + `tests/boundary/rust` — 68 passing. `tsc --noEmit` 0 errors.
Setting the condition to `false` fails "refuses a wide container that is only four bytes short",
so the check is still load-bearing.

* fix(v8): ground the narrow-header rule in the producer, and test the word table

Two review findings.

**The rule was stated as measurement, not as format.** The previous comment justified the zero-word
discriminator with "measured on Node 24.22.1 every real payload begins with a non-zero word", which
makes support for other producers depend on one host. The producer zeroes that padding rather than
copying payload over it: `SerializedData::AllocateWithPayload` in `src/snapshot/snapshot-data.cc`
runs `std::fill_n(data_, header_size, 0)` before writing any header word, and
`kHeaderSize = POINTER_SIZE_ALIGN(kUnalignedHeaderSize)` in `src/snapshot/code-serializer.h` puts the
four padding bytes inside `header_size`. So a zero word at byte 28 is a fact about the producer, not
about one Node build.

The refusal is now worded as the reservation it is: a narrow container whose payload happened to
begin with four zero bytes would match the same test, and no reading of the header alone separates
the two cases. The message says both readings instead of asserting corruption.

**The word-table rule had no test that could fail.** `header.fields.length * 4 === header.header_bytes`
cannot disagree on a parsed container — the parser derives both from `payloadOffset` — so it is only
reachable through the schema, which is what a stored or projected report also goes through. The new
case builds four reports directly: seven words with 32 bytes and eight words with 28 are refused on
`header.fields`, while the two consistent pairs are accepted. Setting the rule to `false` fails it
with `7 words / 32 bytes: expected true to be false`.

`node scripts/verify/architecture-guards.mjs` — passed across 2 843 source files.
`src/v8` + `tests/boundary/rust` — 69 passing. `tsc --noEmit` 0 errors, `npm run lint` 0 errors.

* refactor(v8): share decoded code cache header words

* fix(v8): validate narrow header evidence without assuming runtime compatibility

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-20 01:41:01 +00:00