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.
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.
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.
* 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
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.
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.
"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.
* 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
* 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.
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>
* 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
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>