Commit Graph
11108 Commits
Author SHA1 Message Date
Vincent Koc 4e07d98636 refactor(views): reuse native reference page selection (#15604) 2026-12-01 20:26:18 +00:00
Vincent Koc 90c07a92d7 test(javascript): share worker source fixtures (#15606) 2026-12-01 20:24:45 +00:00
Vincent Koc c04b064945 refactor(artifacts): reuse signature word readers (#15603) 2026-12-01 20:12:47 +00:00
Vincent Koc 135356a750 refactor(zstd): share prepared frame finalization (#15600) 2026-12-01 20:10:29 +00:00
Vincent Koc 122d23a224 refactor(views): share Android component page selection (#15601) 2026-12-01 20:08:14 +00:00
Vincent Koc 980e1ddfd8 test(uefi): reuse NVRAM GUID encoding fixture (#15602) 2026-12-01 20:05:16 +00:00
Vincent Koc 86a56f23c2 refactor(evidence): share unknown history grouping (#15599) 2026-12-01 19:57:20 +00:00
Vincent Koc a6c2ab8efc refactor(views): share web bundle page selection (#15596) 2026-12-01 19:51:16 +00:00
Vincent Koc 6e8265ab57 test(elf): reuse architecture header fixtures (#15598) 2026-12-01 19:50:34 +00:00
Vincent Koc 67a348e60e refactor(setup): share registration path containment (#15597) 2026-12-01 19:50:28 +00:00
Vincent Koc a4a80763cc refactor(views): share native feature trace pagination (#15592) 2026-12-01 19:38:38 +00:00
Vincent Koc ba5d56dcfc test(gpu): reuse CUDA resource fixtures (#15594) 2026-12-01 19:37:23 +00:00
Vincent Koc 7acd2e68a1 refactor(audit): share Kubernetes record object resets (#15593) 2026-12-01 19:34:36 +00:00
Vincent Koc 5d7a3422ae test(setup): reuse Windows npm shim fixtures (#15587) 2026-12-01 19:20:35 +00:00
Vincent Koc 5f226de4ae refactor(setup): share Kiro agent selection (#15586) 2026-12-01 19:18:43 +00:00
Vincent Koc 14971020db refactor(dwarf): reuse file inspection evidence (#15585) 2026-12-01 19:08:26 +00:00
Vincent Koc 823981d1c5 test(plist): reuse binary object table fixtures (#15584) 2026-12-01 19:04:04 +00:00
morluto 6991e735a2 test: require a matcher for every toThrow assertion (#15577)
A bare toThrow() or rejects.toThrow() passes on any error, including one
from a broken fixture or a refusal for the wrong reason. The suite's 429
bare sites now assert the specific refusal, so turn on
vitest/require-to-throw-message as an error to keep it that way.

Tighten the one site added since (malformed TOML now asserts smol-toml's
line and column). The two sites whose refusal cannot be observed outside
Linux or without a native capture bound keep a bare matcher with a
disable comment saying why.
2026-12-01 14:03:47 -05:00
morluto 65499cd329 fix(call-graph)!: report each node's coverage limits once, in relationship_coverage (#15582)
get_call_graph copied each node's relationship coverage into the node's
limitations: a partial coverage's limitations, an unknown coverage's
reason (including the synthesized "Provider did not report relationship
coverage."), and its diagnostics. Every ok node therefore repeated what
its relationship_coverage already said, which costs tokens on every node
of a large graph.

A node now keeps limitations only for the provider's own caveats that no
coverage classified, when the provider reported no relationship coverage.
Graph-wide limitations are unchanged.

BREAKING CHANGE: get_call_graph nodes no longer repeat
relationship_coverage limitations, reason or diagnostics in their
limitations field. Read relationship_coverage for a node's coverage
limits; node limitations now hold only unclassified provider caveats.
2026-12-01 14:03:38 -05:00
Vincent Koc ab426d590b refactor(artifacts): share exact preparation reads (#15579) 2026-12-01 18:55:05 +00:00
Vincent Koc 38de12c9b9 refactor(desktop): reuse withheld export refusal helper (#15580) 2026-12-01 18:42:25 +00:00
Vincent Koc d3544eb95d refactor(guidance): share token envelope decoding (#15578) 2026-12-01 18:40:36 +00:00
Vincent Koc 7c02d53b1f test(dos): share padded MZ image fixture (#15575) 2026-12-01 18:27:39 +00:00
Vincent Koc 7e6092fb0a refactor(views): share managed member page selection (#15576) 2026-12-01 18:23:32 +00:00
morluto 86d2585f68 test: assert structured refusal facts where the error carries them (#15573)
Follow-up to #15528's review. The Ghidra checkpoint refusal carries the
rejected setting and its constraint, so assert those instead of the
message. The Windows private runtime size refusal already asserts reason
limit; drop its message. The environment server's port check fetched
after close and accepted any fetch failure, but fetch reused its pooled
socket and failed with "other side closed", which does not show the port
was freed; open a new connection and expect ECONNREFUSED.
2026-12-01 13:21:23 -05:00
Vincent Koc cb9e54afbb refactor(evidence): reuse canonical manifest ordering (#15574) 2026-12-01 18:17:51 +00:00
morluto a69837647b test: fix false-pass assertions, consolidate suites, and close coverage gaps (#15519)
* test: fix false-pass assertions, consolidate suites, and close coverage gaps

* test: finish signal-0, unchecked close_binary, and vacuous .every() audit

* test(registration): run shared capture inside test so child inherits scaled deadline

* test(artifacts): bind final verification fault to reader source and post-read phase
2026-12-01 18:10:12 +00:00
morluto a1a0f4287c fix(guidance): report an oversized guide file as over its allowance (#15568)
readSkillFile refused a file larger than the caller's allowance with
RegularFileChangedError (ESTALE, "Selected input changed while being
read"), so search_guidance and read_guidance reported an oversized
packaged guide as missing or unreadable. Throw SkillFileTooLargeError with
the measured size and the allowance, and report it as the 1 MiB per-file
allowance, as the bundle and index allowances already are.
2026-12-01 18:08:47 +00:00
Vincent Koc 07a7135762 refactor(desktop): share XML member position analysis (#15572) 2026-12-01 18:05:42 +00:00
morluto c082574efc fix(desktop): refuse an invalid withheld-file handle as invalid, not as no free handle (#15571)
DesktopBuildSecrets.keep stops at the first candidate handle that is not a
secret's handle. When that was the computer's own handle, such as
../escaped, the refusal said REA had no handle free and told the person to
delete old secret files. Refuse the invalid handle up front and say so.
2026-12-01 18:04:48 +00:00
morluto 751b97ad12 test: assert the CLI-only option and DOL detection cases that checked nothing (#15570)
"keeps its CLI-only options out of the contract input" ran for every
contract command, but 121 commands have no CLI-only options, so their loop
asserted nothing. Run it only for commands that have them, and assert that
list is not empty.

"never auto-detects a DOL without the caller's format selection" only
asserted when parsing succeeded. Without a selection the DOL is refused as
an unsupported binary format; assert that refusal.
2026-12-01 13:04:26 -05:00
Vincent Koc 4b8364581b refactor(mbn): share ELF hash segment selection (#15569) 2026-12-01 18:00:30 +00:00
Vincent Koc 3b73422004 refactor(json): centralize input read failure handling (#15567) 2026-12-01 17:59:51 +00:00
morluto 9fabd0323f test(providers): assert the specific refusal behind each bare toThrow (#15528)
* test(providers): assert the specific refusal behind each bare toThrow

Replace bare toThrow() in adapter, artifact, parser and server tests with the errno code of a removed path or closed descriptor, the Zod issue path and code per case, the parse failure kind and message or reason per case, the cleanup retry failure and the resources it still holds, or the contract message each refusal reports.

* test(artifacts,ghidra): assert retained cleanup resources instead of their message

* test(artifacts): assert the keyed-archive truncation as its parse failure facts
2026-12-01 12:49:19 -05:00
Vincent Koc 58bd0febff refactor(views): share artifact summary fields (#15554) 2026-12-01 17:48:16 +00:00
Vincent Koc 11cbd62d11 refactor(capabilities): share configured provider availability (#15555) 2026-12-01 17:44:11 +00:00
Vincent Koc fa1970fd78 test(ntfs): reuse resident attribute fixture (#15556) 2026-12-01 17:41:11 +00:00
morluto 182cca1cbe test(providers): name the refusal behind bare toThrow assertions (#15525)
* test(providers): name the refusal behind bare toThrow assertions

Replace argument-less toThrow()/rejects.toThrow() in provider boundary
tests with the observed refusal: ENOENT/ESRCH codes for removed roots and
stopped processes, retained cleanup reason and resources for retry
failures, stop-failed debugger cleanup, cancellation tags, input issue
paths, and the fixture scripts' diagnostics.

* test(ida): give the verifier's containment-reason refusal a stable message

The assertion had no message, so Node copied its source expression into
the error and the test could only match that text. Name the reference
and the rejected reason instead, as the sibling assertions already do.
2026-12-01 17:34:24 +00:00
Vincent Koc 78bd463b3e refactor(macho): share image table declaration checks (#15551) 2026-12-01 17:26:06 +00:00
Vincent Koc 787fa92757 test(zip): share member name rewrite fixture (#15552) 2026-12-01 17:22:45 +00:00
gensokyo-devandgensokyo-dev 7ff5e7fa71 test(browser): ask for one comparison pair when neither is supplied
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:20:05 +08:00
gensokyo-devandgensokyo-dev ac9561d264 test(managed): ask for one managed Evidence source when none is supplied
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:20:05 +08:00
gensokyo-devandgensokyo-dev daf6a8e21c fix(errors): require one of the argument sets that alternatives each require
A union whose alternatives each require different arguments expresses
"provide one of these". When the input supplied none of them, issue
projection merged every alternative's missing-argument issues, so
project_managed_application_graph {} reported managed_artifact,
managed_members and managed_native_boundaries as each required, and
compare_web_captures {} reported both comparison pairs.

When every remaining alternative fails only because arguments are
missing, and no argument is missing from two alternatives, report one
missing_argument issue at the union's path. Its expected value lists
each alternative's arguments, and its message names them, for example
"Provide before and after, or before_scenario and after_scenario." Any
other failure in an alternative keeps the per-alternative issues.

Refs #15319

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:20:05 +08:00
morluto 08db65115f test(application/desktop/browser/process): assert the specific refusal behind each bare toThrow (#15524)
* test(application,desktop,browser,process): assert the specific refusal behind each bare toThrow

Replace bare toThrow() with the errno code of a removed or occupied path, the Zod issue path and code, the YAML parser error code, the cleanup retry failure and the resources it still holds, the analysis error tag and reason, or the contract message each refusal reports.

* test(desktop,process): assert retained cleanup resources and the nested metadata issue
2026-12-01 12:19:11 -05:00
2f92d2699b fix(views)!: refuse an unsupported parent's view kind and name evidence-json (#15535)
inspect_analysis_view refused a view that no projector of the parent
operation serves as an unsupported target: "the selected target's
evidence form is outside what inspect_analysis_view reads",
retry_class never, pointing to get_evidence_bundle. The evidence-json
view reads every parent, so the same call with view
{"kind": "evidence-json"} succeeds on that record within the response
budget; the refusal contradicted it.

The refusal is now a schema-conforming input error at view.kind that
names the requested view kind, with retry_class change_first and a
recovery naming the evidence-json view and the summary receipt's
parent_evidence_id. It does not claim evidence-json is the only view,
because parent-independent views such as recorded-array may apply. The
recovery names no adapter-specific tool, because the CLI shows it too.

Refs #15319

BREAKING CHANGE: inspect_analysis_view on a parent Evidence operation
without a projector for the requested view now fails with code
invalid_request (category invalid_input, retry_class change_first) and a
view.kind issue, instead of unsupported_target with
details.failure_kind "unsupported", format "evidence" and
related_operations.

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:16:03 +08:00
Vincent Koc 6efdece1bf refactor(contracts): share indexed schema traversal (#15540) 2026-12-01 17:13:42 +00:00
Vincent Koc 91a6856c07 refactor(capture): share JSON value dispatch (#15539) 2026-12-01 17:04:40 +00:00
morluto fb5b6d4abb test: assert the refusal each MCP, boundary and verifier check expects (#15531)
Replace bare toThrow() across the MCP, CLI and other boundary tests, the
Hopper and fixture conformance verifiers, the evaluation guards and the
process-global tests with the SDK cancellation code and reason, schema
issue paths, tagged error reasons, cleanup facts, errno codes and
verifier messages each case is meant to refuse.
2026-12-01 17:02:41 +00:00
gensokyo-devandgensokyo-dev 8be56fc609 test(electron): report no issue for an omitted include_script_sources
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:02:36 +08:00
gensokyo-devandgensokyo-dev 37000bb737 test(api-contract): report only the invalid field when format is omitted
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 01:02:36 +08:00