Commit Graph
6032 Commits
Author SHA1 Message Date
morluto a394686328 test(artifacts): consolidate Node SEA comparison coverage (#13417) 2026-11-22 12:51:42 +00:00
morluto 6895a9e860 test(artifacts): consolidate Node SEA carrier and wire contracts (#13415)
* test(artifacts): consolidate Node SEA admission checks at the wire boundary

* test(artifacts): check Node SEA fuse states on physical carriers
2026-11-22 12:37:14 +00:00
morluto 466c552d16 test(deno): consolidate remote paths and region limits (#13410)
* test(deno): consolidate remote paths and region limits

* test(deno): check collision outcomes without matching diagnostic copy
2026-11-22 12:22:05 +00:00
morluto 3d3e7db5b5 fix(ghidra): report incomplete language catalogs at the file size limit (#13407) 2026-11-22 12:08:44 +00:00
morluto 94088c9677 test(environment): consolidate replay timing and write evidence checks (#13403) 2026-11-22 11:50:09 +00:00
morluto 1d85f680f9 fix(ghidra): name invalid installed language definition files (#13401) 2026-11-22 11:46:19 +00:00
morluto 103e1a71f2 fix(java): enforce format-specific metadata reports at the Evidence boundary (#13400) 2026-11-22 11:42:13 +00:00
morluto 8ee0ffe086 fix(ghidra): preserve cancellation and failure order in language discovery (#13399) 2026-11-22 11:38:04 +00:00
morluto 232bd1181c fix(java): refuse nested XML in Maven text declarations (#13398) 2026-11-22 11:31:47 +00:00
morluto d0f3a4858e fix(java): preserve Gradle declaration spelling in Evidence (#13397) 2026-11-22 11:26:19 +00:00
morluto c45decb70b test(nuget): consolidate filename provenance and retained Evidence checks (#13396) 2026-11-22 11:25:14 +00:00
morluto 048213525a fix(java): classify Maven BOM imports by declaration scope (#13393) 2026-11-22 11:14:16 +00:00
morluto 16732c6b72 fix(release): bind checkpoint references to frozen history (#13392) 2026-11-22 11:14:02 +00:00
morluto 9fee59e418 test(nuget): distinguish metadata budget and cancellation phases (#13394) 2026-11-22 11:11:28 +00:00
morluto 5b2bc6c43d fix(desktop): explain unavailable dconf descriptor paths (#13391) 2026-11-22 11:01:35 +00:00
morluto de0679e2c0 fix(desktop): recover acknowledged checkpoint after screenshot cancellation (#13390) 2026-11-22 11:01:19 +00:00
morluto 0b62db4d63 fix(desktop): keep automatically named checkpoints distinct (#13387) 2026-11-22 10:53:22 +00:00
morluto 1a613fd0d5 test(release): consolidate immutable checkpoint fixtures (#13388) 2026-11-22 10:52:15 +00:00
morluto 2fdf3d61d9 test(managed): consolidate observed member matching proofs (#13386) 2026-11-22 05:39:41 -05:00
morluto 6154c610a6 test(managed): exercise both comparison snapshot admissions (#13384) 2026-11-22 05:27:57 -05:00
morluto c001100e57 test(firmware): consolidate OTA integrity and transport proof (#13381) 2026-11-22 10:14:53 +00:00
morluto 64d42d2971 test(ghidra): consolidate raw profile and packaged producer proof (#13379) 2026-11-22 05:04:48 -05:00
morluto 7aa15c4ac7 test(firmware): consolidate HEX wire limits and public inspection (#13376) 2026-11-22 09:55:47 +00:00
morluto 0c0130ce50 test(dotnet): consolidate malformed metadata and table stream proofs (#13374) 2026-11-22 04:48:44 -05:00
morluto fb6e0dc6e8 refactor(ghidra): require an owned committed project copy (#13363) 2026-11-22 09:38:42 +00:00
morluto 7c8493d41d test(ghidra): synchronize import descriptor finalization (#13370) 2026-11-22 09:31:31 +00:00
morluto da6f89808d test(dotnet): consolidate managed PE and field constant contracts (#13365) 2026-11-22 09:31:27 +00:00
morluto 2209acc824 test(firmware): consolidate staging and resource recovery checks (#13358)
* test(firmware): consolidate staging and resource recovery checks

* test(firmware): preserve the cumulative staging-byte limit
2026-11-22 09:27:13 +00:00
4f43d7422f feat(browser): accept mitmproxy 12.3.1 for native capture decode (#8088)
* feat(browser): accept mitmproxy 12.3.1 for native capture decode

Bump the offline adapter profile, provider identity, Linux verification archive, and docs so callers can use mitmproxy 12.3.1 instead of the 12.2.3 pin that blocks patched Brotli/cryptography. Keep SaveHar null postData admission for both producer versions.

Fixes #8078

* test(web): regenerate published HAR example identities

The HAR limitation now names both admitted mitmproxy profiles, which
changes the decoded capture's Evidence ID and both views' parent and
view digests. Update the published API surface and environment manifest
examples to the identities reproduced from their fixture bytes.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 09:26:35 +00:00
morluto 3a36311004 fix(process): retain synchronous command launch failures (#13350) 2026-11-22 09:26:24 +00:00
morluto 0ecb6dde4b fix(audit): bind Electron fuse reads to the inventoried file (#13348) 2026-11-22 09:10:16 +00:00
RRFZ 9a6ee71886 fix(cli): reject nonnumeric output slice bounds (#13344) 2026-11-22 03:54:12 -05:00
RRFZ d4f78cb592 fix(cli): preserve explicit null output (#13342) 2026-11-22 03:53:17 -05:00
morluto 5b3ef76e4d perf(ghidra): fuse project snapshot I/O, parallelize language catalog, drop double validation, and add callTool progress heartbeats (#13310) 2026-11-22 08:46:18 +00:00
morluto 2f171faa9f perf(search/kuna): optimize regex worker dispatch and Kuna inventory validation (#13320)
perf(search,kuna): optimize RegexMatcher worker dispatch and Kuna inventory validators
2026-11-22 03:46:02 -05:00
23970fc63f feat(web): deduplicate bundle findings across scripts by value and mechanism (#11354)
* feat(web): deduplicate bundle findings across scripts by value and mechanism

Per-script findings were deduplicated only within one script, so the same
endpoint or route observed in N scripts appeared N times in the merged
bundle, inflating the finding list and overstating the inventory.

Merge now deduplicates routes and endpoints across scripts by
(value, mechanism). The first occurrence keeps its location and order;
later occurrences fold into optional occurrences/script_keys on the
retained entry, so no script is silently dropped and single-script
findings keep their original shape. The key uses the existing compositeKey
helper (JSON) instead of a NUL join. bundleLimitations gains a line
describing the cross-script merge.

* fix(web): address Greptile review on cross-script bundle dedup

- Accept merged endpoint occurrences/script_keys in the web-bundle
  view row schema so unfiltered pages no longer throw.
- Match endpoint script_keys filters against retained script_keys,
  falling back to location.script_key for older records.
- Generate distinct finding keys in the wide-result capacity fixtures
  so routes/endpoints still exercise a 130,000-entry merged result.
- Append later script keys in place instead of rebuilding the list.
- Compare the dedup limitation against its owning constant instead
  of freezing the explanatory sentence in the test.
- Update the route-inventory guide for merged endpoints.

* test(web): expect the cross-script endpoint merge in the semantic budget case

Main added a regression where two budget-limited scripts both report
/health. With findings merged across scripts, it is one entry whose
occurrences and script_keys name both scripts, which keeps the case's
per-script attribution.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 16:33:22 +08:00
b57671cb42 feat(evidence): find direct referrers by linked Evidence ID (#11709)
* feat(evidence): find direct referrers by linked Evidence ID

* docs(evidence): record real APK referrer verification

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 16:30:29 +08:00
morluto 23af000299 test(audit): consolidate release exposure evidence checks (#13341) 2026-11-22 03:23:26 -05:00
7b6e816b0b feat(javascript): inventory Expo Router require.context route keys (#10624)
* feat(javascript): inventory Expo Router require.context route keys

Problem: Expo Router (Metro) web exports register file routes through a
bundled require.context map whose keys are literal route filenames such as
"./(app)/<section>/[id]/edit.tsx", "./_layout.tsx" and "./+not-found.tsx".
The route scan did not recognise that map, so the javascript-routes view of
analyze_javascript_application returned an empty inventory for these apps.

Fix: the route scan owner recognises Metro's context template,
Object.defineProperties({}, {"./file.tsx": getter, ...}). When every key is a
./-relative .js/.jsx/.ts/.tsx file and the map holds at least one _layout or
"+" file, each other key becomes a candidate with the new
expo-router-context-key mechanism, located at the key literal, with low
confidence and inferred derivation. The route-path owner converts keys with
Expo Router file conventions: groups (including group arrays) contribute no
segment, [id] -> :id, [...rest] -> :rest+, a trailing index names its
directory, platform extensions select the same route, and +api files keep
their API path. Layouts and other "+" files are not URL patterns.
Classification stays unknown; a bundled key does not establish platform,
navigator, server or reachability. A file map without a layout or "+" file
retains an interpretation unknown instead of becoming routes. Other
defineProperties calls are not read. The route inventory guide documents this.

Validation: new scan, inventory and CLI acceptance cases with a synthetic
Metro-style module. On the base, the scan and inventory cases failed with
empty candidates and routes; they pass now. Ran test:local for the route
scan, inventory, view, delivery-contract, result-budget and advertised
schema tests (378 passed), test:focused for
tests/acceptance/javascriptRoutesCli.test.ts (13 passed), docs:check and
check:fast. The conventions were checked against the published metro 0.88.0
context template and expo-router 58.0.31 matchers, not a real Expo export.

Refs morluto/rea#7510

* fix(javascript): admit Expo Router context keys within the fact budget

Review follow-up for Expo Router route keys.

The context-map reader converted every key and kept each derived path
in a local array before emission. Only a location per property was
charged, so a map with many long filenames retained route text beyond
the fact budget, including text later discarded at capacity. The reader
now establishes applicability in a first pass without keeping derived
paths. A second pass converts and admits one key at a time through the
budgeted fact owner. Emitted facts and their order are unchanged.

The route inventory guide said Expo keys stay classified unknown, but
the existing path-name heuristic still applies: ./login.tsx becomes
/login, classified system by path-name-heuristic. The guide now says a
bundled key adds no classification of its own.

Tests: a budgeted case with 80 long keys admits a key-ordered prefix and
stays within the limit. The route scan and inventory tests (355) and the
routes CLI acceptance tests (13) pass. check:fast and docs:check pass.

* docs(specs): record the Expo Router route key feature

The documentation guide asks each feature for a spec.md, plan.md and
tasks.md under docs/specs/. Add the record for reading Expo Router
require.context keys in the JavaScript route inventory, and index it.

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 16:15:33 +08:00
morluto 297630cbf3 perf(ghidra): eliminate non-ASCII search flood, compact bridge inventories, and stream JSON responses (#13305)
* perf(ghidra): eliminate non-ASCII search flood, compact bridge inventories, and stream JSON responses

* fix(ghidra): resolve :: in procedure leaf and add checked-in bridge helper tests

* fix(ghidra): handle CRLF line endings in bridge helper tests
2026-11-22 03:15:15 -05:00
morluto 9e379c9589 perf(evidence): eliminate redundant bundle re-validation, cloning, and nested generator yields (#13257)
* perf(evidence): eliminate redundant bundle re-validation, cloning, and nested generator yields

* fix(evidence): detach exported snapshots and preserve equalJsonText validation
2026-11-22 03:14:49 -05:00
morluto 38bc4fe907 perf(cli): keep single-command discovery lazy and skip throwaway Zod parses (#13254)
* perf(cli): keep single-command discovery lazy and skip throwaway Zod parses

* fix(cli): test all five lazy discovery flags and update loading guide
2026-11-22 03:14:21 -05:00
morluto dcb36f66c7 fix(ci): retry release history reads after transport disconnects 2026-11-22 03:09:31 -05:00
Jaws 460d77176e fix(evidence): evaluate unchanged artifact members in correlation
correlate_static_and_runtime searched only an artifact comparison's
`changes` rows, which by contract omit unchanged paths, and rejected any
selector without exactly one row. A unique member that compare_artifacts
counted unchanged could therefore never reach the advertised
`runtime_only` or `both_unchanged` patterns.

The artifact comparison owner now classifies a path without a change row
against the exact inventories it compared, after checking their manifests
match the retained result. Only a path observed once on each side of a
fully covered comparison is unchanged, matching `summary.unchanged`. A
path neither inventory observed is still invalid caller input, and a path
without full coverage or without resolvable source inventories stays an
unresolved branch with a limitation. Several rows for one path remain
rejected.

Fixes #13211
2026-11-22 16:05:53 +08:00
morluto 0437d74bd0 perf(javascript): group renderer scripts without repeated copies (#13328) 2026-11-22 03:05:15 -05:00
Xiangfang Chen 3d1f11a612 test(android): stop hand-copying the engine version in tests
Boundary tests derive the jadx engine version from JADX_RELEASE,
matching the fixture convention this branch already established.
Domain view tests cannot import the provider layer without inverting
dependency flow, so their synthetic engine metadata uses a neutral
version instead of the stale pin.

Validation: check:fast, and the five touched test files (114 tests).
2026-11-22 16:01:00 +08:00
Xiangfang Chen 3ca89d8272 feat(android): pin jadx-headless-mcp 0.8.0
Move the audited engine release and its submodule gitlink from v0.7.1 to
v0.8.0 (commit 2b2a560e, sha256 4b9a01c2...). Upstream only changed
source-window paging and metadata-only field reads, so the six tools REA
consumes and the bridge identity stay unchanged.

Hand-copied version numbers now derive from JADX_RELEASE: the fixture
download name, the metadata-bridge workflow path and the fake MCP
server's reported engine version. The composition fallback availability
text no longer names a release, because the Android boundary owns the
versioned remediation.

Validation: build:cached, check:fast, docs:check, test:focused over the
16 Android test files (296 tests), and verify:android against the real
0.8.0 JAR and ApiDemos 6.0.18.
2026-11-22 16:01:00 +08:00
Afloat 7e158843b3 feat(elf): inspect exports without section headers (#9083)
* feat(elf): inspect exports without section headers

Use the dynamic segment and hash tables to enumerate exports when an ELF image has no dynamic symbol section. Preserve symbol coverage, version qualifications, and typed failures through the existing native export path.

* test(elf): cover dynamic exports with retained sections

* test(setup): retain a valid lowercase Kimi schema profile

Use the supported compact profile in the Windows environment-spelling regression. Keep the exact environment assertion so a duplicate uppercase key still fails, and retain separate coverage rejecting the removed full profile.

---------

Signed-off-by: Afloat <ShuffleMonkey@163.com>
2026-11-22 15:55:16 +08:00
Abhishek SharmaandClaude Sonnet 5.5 3c7ea1ce85 feat(browser): count credential-named members in HAR capture inspection (#8708)
* feat(browser): count credential-named members in HAR capture inspection

inspect_web_network_capture now runs the credential-name scan that
environment-build already applies over the selected HAR records and
reports matches as limitations by pointer, never by value, together with
the bodies the scan could not read. Values the decoder already excluded
are not counted, and nothing is excluded on a name.

Refs #8207

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(browser): bound the listed credential-name pointers

The limitation lists the pointers that fit within 1 KiB of text and says
how many counted names are not listed, so one long body member name
cannot inflate the limitation that summaries and record pages repeat.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(environment): bound the credential scan's values before parsing a body

A body under the scan's 4 MiB text limit could still expand into millions
of JSON values or form fields when parsed in the application process, and
the inspection now runs the scan on every HAR capture. The scan counts the
characters that can start a value (`[`, `{`, `,` for JSON, `&` for forms)
before parsing and skips a body that could hold more than 524288, reporting
it like a body over the text limit. Both consumers' messages and docs name
the bound.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(web): charge every body and name/value list to one credential-scan budget

The credential-name scan bounded each body's values on its own, so a
capture of many compact bodies still expanded millions of values in the
application process, and HAR header, query and form-parameter lists were
copied twice without any bound. One 524288-value budget now covers the
whole scan: a body's values are bounded from its text before it is parsed
and a list is charged by its length before it is read in place, so what
would pass the budget is reported as not scanned instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(web): read credential names in place and charge nothing for empty text

The credential-name scan split each member, header and query name with
two regex replacements, a lowercase copy and a split into a segment
array before matching. A near-4 MiB alternating-case member name
(`x-aAaA…`) therefore expanded into about two million segments: more
than 192 MiB of heap in the application process after the decoder's
containment had ended. `credentialNamed` now reads the name once in
place with the same segmentation (case changes, digits, separators, and
`toLowerCase`'s KELVIN SIGN and dotted capital I), keeping at most two
segments no longer than the longest credential word, so a name of any
length allocates no copies.

`valueBound` started every text at one value, so an empty query, a bare
`?`, an empty form and whitespace-only JSON were each charged a value
they do not hold; once earlier content spent the budget, they were
reported as unscanned in `credential-scan-incomplete`. JSON now holds its
first value only after a non-whitespace character, and a form holds one
field per non-empty `&`-separated piece after an optional leading `?`,
as `URLSearchParams` and the query reader split it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(browser): point the environment build link at the physical guide

The guide lives at docs/agent-environments.md, so the relative link from
docs/guides/web must climb two levels. The Documentation job failed on the
dead link; vitepress build now completes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test: drop the hard-coded timeout from the heap-bound name test

The test finishes in about half a second, so the shared test deadline is
enough, and a literal 60_000 bypasses the CI and coverage deadline scaling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web-network-capture): name an unavailable response source in the scan limitation

The credential-name scan counts a response body whose retained source is
unavailable as not scanned, and WebNetworkCaptureService reuses that scan. Its
limitation text still listed only a cut body, text over 4 MiB, or past the value
budget, so CLI and MCP reports gave none of those reasons for such a body.

Name the unavailable source in the text, matching the environment-build warning,
and cover it with a test that fails on the old wording.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-22 15:42:13 +08:00
Afloat a16669ab2a feat(evidence): paginate retained evidence discovery summaries (#9084)
* feat(evidence): paginate retained evidence discovery summaries

Let callers page summary metadata in canonical Evidence ID order without loading record payloads into the response. Keep filter and link totals global to all matches and preserve the unpaged response for existing clients.

* test(evidence): use the supported compact schema profile

* docs(evidence): explain the summary pagination request default

* test: align verification fixtures with current public contracts

Keep the production changes from upstream and update the verification consumers that still asserted their retired contracts:

- assert unknown workflow identity structurally and retain the bounded provider caveats;
- observe the process capture's partial-error delivery while preserving live cleanup ownership assertions;
- use the package's declared imports in the isolated release controller;
- refresh the replay card digest after the Evidence subject identity migration;
- use the supported compact Kimi profile while testing case-insensitive environment keys;
- assert each public interface's own capture issue path.

These are shared test and verifier compatibility repairs. The evidence summary pagination and config-printer feature changes remain separate.

* test: observe the session close result in Kuna retry coverage

* test: follow the persisted DOL snapshot target identity

* test: align CLI and progress fixtures with shared owners

Reuse the core registrar for decompile-all instead of registering it twice
after upstream #11680. Assert the outer MCP start/completion notifications
separately from provider cleanup progress introduced by #11637, retaining
cleanup, rate, timeout, cancellation, and evidence assertions.

* docs: link CLI paging guidance to its canonical contract
2026-11-22 15:42:02 +08:00