Commit Graph
8496 Commits
Author SHA1 Message Date
Vincent Koc 866dac2e9b refactor(browser): share captured-script resource ownership (#15537) 2026-12-01 17:02:17 +00:00
gensokyo-devandgensokyo-dev 630ce39c22 fix(target): name the raw-binary load when no route recognizes a header
When header detection admitted no route for a file, open_binary and
inspect_artifact refused it with the generic "select a supported,
well-formed target", leaving no next step for a headerless firmware or
memory image. The explicit raw-binary load is the only route that admits
such a file, so the producer now names it with its required architecture
and entry_point. inspect_artifact shares the same detection, so it is
not offered as a way to identify the file.

Refs #15319

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 00:52:36 +08:00
Vincent Koc a7039c73e5 refactor(contracts): share Evidence example construction (#15526) 2026-12-01 16:51:16 +00:00
morluto 1f47a2ca16 test(domain): assert the specific refusal behind each bare toThrow (#15521)
* test(domain): assert the specific refusal behind each bare toThrow

Replace bare toThrow() in domain tests with the Zod issue path and code, the AnalysisInputError issue path and reason, the parse failure kind and message, or the contract message each refusal reports. Make the Evidence admission loop state which candidates the schema accepts so its rejection branch is known to run.

* test(domain): assert the BigInt serialization refusal message

* test(domain): assert the failing union branch behind root union refusals
2026-12-01 16:46:35 +00:00
morluto 8e4e06704f fix(apktool): name apktool.yml when an Apktool 3 string escape is invalid (#15530)
An invalid escape in an unquoted Apktool 3 string reached JSON.parse and surfaced as a bare SyntaxError ("Bad Unicode escape in JSON at position 10") that did not name apktool.yml. Report it as the parser's existing invalid Apktool 3 string refusal, keeping the JSON error as its cause, and assert each malformed-field case's refusal.
2026-12-01 11:43:39 -05:00
Vincent Koc a7000d5088 test(ubi): share volume table padding fixture (#15529) 2026-12-01 16:40:39 +00:00
morluto 8ca74c46c7 fix(deb)!: deliver inspect_deb_package within the agent result budget (#15432)
* fix(deb)!: deliver inspect_deb_package within the agent result budget

inspect_deb_package registered a retained summary view but declared no
detail selector and no summary delivery, so a large .deb inventory was
always inlined whole (about 790 KB for 5000 files).

The tool now takes detail like inspect_nuget_nupkg: omitted detail returns
complete Evidence within delivery.agent_result_budget_bytes and the retained
summary otherwise, and the CLI gains --detail and --evidence_output.

BREAKING CHANGE: inspect_deb_package with detail omitted now returns its
retained summary when complete Evidence exceeds the agent result budget in
a session that can page it. Pass detail "complete" (CLI --detail complete)
for complete inline delivery.

Refs #15326

* test(deb): read the retained parent without reopening the package
2026-12-01 16:15:36 +00:00
morluto 38215cdf5b test: read project registrations on the host platform and assert every unchanged loader history (#15520)
The desktop doctor test injected platform linux, but project registrations
are read only for the platform REA runs on, so on macOS the project
opencode.json was skipped and the test failed; Linux CI matched by chance.
Use the host platform, as the file's other project tests do.

The Electron loader-history case without a proven first loader asserted
nothing. Every unchanged history leaves the frame tree attach-limited, so
assert it for all of them.
2026-12-01 11:10:08 -05:00
Afloat 4e4ad4cba3 fix(adb): validate resolved launcher identity before starting apps (#15420) 2026-12-02 00:05:15 +08:00
Vincent Koc 2426bb6383 refactor(capture): share JSON delimiter handling (#15517) 2026-12-01 16:04:35 +00:00
hhangandhhang 2c78ff1f75 fix(cli): reject non-integer output filter indices (#15491)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-12-02 00:01:25 +08:00
Vincent Koc 7f548808cb test(binary-layout): reuse shared report fixture (#15516) 2026-12-01 16:00:34 +00:00
Vincent Koc c72115f803 refactor(kernel-module): share section admission (#15511)
* refactor(kernel-module): share section admission

* fix(kernel-module): preserve section report literal types
2026-12-01 15:55:11 +00:00
Vincent Koc 8535d82158 refactor(elf): share version table admission (#15514) 2026-12-01 15:53:40 +00:00
morluto 6ac87697e7 fix(errors)!: make retry_class the only retry field of a target failure (#15450)
* fix(errors)!: make retry_class the only retry field of a target failure

A target failure reported two retry fields: its own `retry` hint
(`none | backoff | after_change`) and the `retry_class` every error
carries. They mapped one to one, so readers had to reconcile both.
`retry_class` is now the single owner: the target-failure table declares
it directly, the projection no longer emits `retry`, the error schema no
longer accepts it, and the CLI recovery rewrite reads `retry_class`.

BREAKING CHANGE: target failures no longer include `retry`, and the
error schema rejects it. Read `retry_class` instead: `backoff` is
`same_call`, `after_change` is `change_first` and `none` is `never`.

* test(errors): readers reject the removed target-failure retry field
2026-12-01 10:36:15 -05:00
morluto 6549264a54 fix(errors): name the next step for schema-valid refusals, including missing files (#15435)
* fix(errors): report a missing selected file with its next step, not the schema

Nine readers hand-built their own copy of the selected-file refusal
(access denied, or an input issue for ENOENT, ENOTDIR, ELOOP and the
other path errnos) instead of using the shared
projectSelectedArtifactFileFailure. The copies left out the conforming
outcome and next step, so a well-formed path to a missing file was
presented as a schema mismatch with inspect_input_contract.

API contract, APK signature, byte entropy, Electron fuse, Playwright
trace, NTFS journal, release exposure, Android mapping and web capture
reads now use the shared owner. A missing OCI image-layout directory
names a directory as its next step.

The first-contact sweep lists none of these as known failures any more;
#15372 already fixed the other 35 entries and the stale-revision replay.

Refs #15312

* fix(errors): give the remaining schema-valid refusals their next step

These refusals accepted a well-formed request and still sent the caller
back to the input schema:

- update_analysis_settings with a stale expected_revision now names
  inspect_analysis_settings and the current revision.
- inspect_electron_fuses on an app or file that is not Electron names
  what to select; capture_electron_scenario reports the same refusal
  on executable_path instead of path.
- inspect_analysis_view on a multi-record Evidence bundle without
  source.evidence_id, or with an absent one, says to pick a listed id.
- extract_uefi_firmware with an unmapped or ambiguous target names
  inspect_uefi_firmware or target.source_stream.
- inspect_labview_artifact on a file without LabVIEW RSRC data names
  what to select.

Refs #15312
2026-12-01 10:36:08 -05:00
Vincent Koc 77b97e009b refactor(flutter): share snapshot hash scan loop (#15500) 2026-12-01 15:33:21 +00:00
morluto 82613c0ace fix(session): never overwrite the open target with a snapshot or bundle (#15449)
* fix(session): never overwrite the open target with a snapshot or bundle

* test(session): cover a hard-linked target and own the test directory cleanup
2026-12-01 15:29:12 +00:00
Vincent Koc 569c4fbe96 test(environment-state): share timestamp-order fixtures (#15498) 2026-12-01 15:29:03 +00:00
Vincent Koc 2cb2c80ce0 refactor(macos-pkg): report XAR recovery at refusal (#15497) 2026-12-01 15:28:42 +00:00
morluto d958391201 fix(mcp): serve refinement-only input rules agents need before the first call (#15437)
* fix(mcp): serve refinement-only input rules agents need before the first call

- UEFI paths use the shared absolute-path schema, so the served schema
  carries the absolute-path pattern instead of a refinement.
- Blank-text checks (guided workflow ids, prompt arguments, guidance
  queries, residual-unknown text) are a served `\S` pattern, not a trim
  refinement.
- Input groups name the selector values that open them, for example
  `operation=architectures` for inspect_with_objdump.
- inspect_native_data_type states its one-of rule in the tool description,
  from the same constant the refusal uses.
- The served-schema parity sweep credits a cross-field rule when the
  description states the refusal or the selecting input group, with
  controls, and drops the fixed refinement gaps.

Refs #15311

* fix(mcp): serve endpoint and literal rules on reduced schemas; state wider patterns

- A reduced schema over budget drops name-derived fallback descriptions
  before its scalar rules, so analyze_web_bundle keeps its bounds.
- Reduced root properties that are unions of literals serve their values
  as one enum (detail, format).
- CDP and Inspector endpoint schemas declare the explicit-port envelope
  that explicitEndpointAuthority reads, as their pattern.
- A pattern the portable grammar can only serve wider (`\S`, the adb
  serial) is also stated exactly in guidance.
- The parity sweep drops the endpoint and literal gaps; the generated
  property accepts the host-independent absolute-path envelope.

Refs #15311
2026-12-01 15:28:35 +00:00
Vincent Koc 5a1dddb701 refactor(go): share metadata page projection (#15496) 2026-12-01 15:26:34 +00:00
Vincent Koc 5becc3e7b2 refactor(plist): share binary copy planning (#15495) 2026-12-01 15:16:27 +00:00
Vincent Koc e62fb2cf49 refactor(artifacts): share stored record comparison (#15493) 2026-12-01 15:07:15 +00:00
Vincent Koc 57167985fa refactor(shortcuts): share LinkInfo string reading (#15492) 2026-12-01 15:06:15 +00:00
morluto 184e371e04 fix(ida): bound each MCP HTTP reply message like stdio frames (#15436)
* fix(ida): bound each MCP HTTP reply message like stdio frames

IDA over stdio refuses a reply message above 64 MiB with max_response_bytes,
but IDA over HTTP read a successful JSON reply whole with readText() and
JSON.parse, and an SSE stream without any limit. JEB and the agentenv driver
share the same HTTP response validator and were equally unbounded.

validateMcpHttpResponse, which already owns the accepted reply bytes for
UTF-8 validation, now also counts each message (the whole JSON body, or each
SSE event) and refuses one over the consumer's limit before the SDK buffers
or parses it, closing the transport as it does for malformed UTF-8. IDA uses
one message limit for stdio and HTTP and reports the HTTP refusal exactly as
the stdio one: a non-retryable transport resource constraint attributed to
the operation with max_response_bytes. JEB and agentenv use the same 64 MiB
default.

Refs #15326

* fix(ida): count SSE events across CR, LF and CRLF line endings

The per-event counter only recognized LF, so a valid CR-only SSE stream was
counted as one message and could be refused although every event fit.

* fix(ida): count a CRLF event separator with its event and register the HTTP message ceiling

A blank line ended by CR reset the event count before its LF, so that LF
was charged to the next event and an event exactly at the limit was
refused. The reset now waits for the possible LF.

The message allowance is declared through fixedAllowanceOptions so the
fixed-ceiling guard sees it, and is registered as a protocol ceiling.
2026-12-01 10:05:13 -05:00
Vincent Koc 54e6bbdd20 refactor(unityfs): share compressed block decoding (#15490) 2026-12-01 14:56:03 +00:00
Vincent Koc a260cac020 test(macos-pkg): reuse gzip CPIO fixture (#15489) 2026-12-01 14:51:29 +00:00
Vincent Koc ee3f887967 refactor(elf): share note table scanning (#15488) 2026-12-01 14:51:07 +00:00
Vincent Koc 5a3380839a refactor(vsix): share top-level manifest reads (#15487) 2026-12-01 14:49:03 +00:00
Vincent Koc 16b91f3e67 refactor(image4): share fixed-limit failure projection (#15484)
* refactor(image4): share fixed-limit failure projection

* refactor(image4): retain named ceiling declarations
2026-12-01 14:37:31 +00:00
Vincent Koc e233afbe50 refactor(pyinstaller): share PYZ container projection (#15485) 2026-12-01 14:36:02 +00:00
Vincent Koc f2e7bb43d7 test(elf): share binary record fixtures (#15486) 2026-12-01 14:32:09 +00:00
Vincent Koc 3e565f4bf6 refactor(javascript): share Electron graph edge projection (#15479) 2026-12-01 14:17:07 +00:00
Vincent Koc 43e69a3984 test(nds): share directory-chain fixture (#15480) 2026-12-01 14:06:03 +00:00
Vincent Koc be4cdec7ca refactor(nuget): share manifest report construction (#15483) 2026-12-01 14:05:47 +00:00
Vincent Koc d9b98366d8 refactor(javascript): share semantic fingerprint commitments (#15481) 2026-12-01 13:58:21 +00:00
Vincent Koc 0f372680a3 refactor(setup): share registration inspection preflight (#15477) 2026-12-01 13:39:55 +00:00
Vincent Koc 5d004504f3 refactor(snapshot): share content digest projection (#15478) 2026-12-01 13:39:18 +00:00
Vincent Koc 14b006a517 test(n64): reuse the artifact reader fixture (#15471) 2026-12-01 13:20:49 +00:00
Vincent Koc 9bce30bd20 test(keyed-archive): share XML and bundle fixtures (#15475) 2026-12-01 13:17:25 +00:00
Vincent Koc 97364a1bda refactor(ota): share partition metadata projection (#15473) 2026-12-01 13:07:57 +00:00
Vincent Koc 9c6fd8a5ba refactor(javascript): share semantic discovery page projection (#15474) 2026-12-01 13:07:53 +00:00
Vincent Koc 6625dc153b refactor(artifacts): share Android parser limit projection (#15469)
* refactor(artifacts): share Android parser limit projection

* fix(artifacts): accept specialized parser failure facts

* fix(artifacts): use the resources entry point

* fix(verify): register the shared Android ceiling forwarder
2026-12-01 12:54:30 +00:00
Vincent Koc 976f865290 refactor(vbmeta): share hash descriptor field decoding (#15470) 2026-12-01 12:48:37 +00:00
Vincent Koc 48f7362628 test(artifacts): share reader contents fixture (#15466) 2026-12-01 12:31:24 +00:00
Vincent Koc 773903d90f refactor(errors): reuse nested input issue traversal (#15467) 2026-12-01 12:26:13 +00:00
Vincent Koc eac728f39d refactor(views): share parent Evidence identity fields (#15465) 2026-12-01 12:11:07 +00:00
Vincent Koc 0e7bb9e18e test(macho): reuse lipo output fixtures (#15461) 2026-12-01 11:58:03 +00:00
Afloat dfc987577e fix(cli): honor index and open-ended output selectors (#15417)
* fix(cli): honor index and open-ended output selectors

* test(cli): count tokens for the selected array-shaped output
2026-12-01 19:57:18 +08:00