Repository navigation
test(artifacts): cover fixed input-size recovery for Rust and IL2CPP - #6148
Conversation
morluto#5633 gave Rust and IL2CPP input-size refusals input-allowance recovery through fixedAllowanceOptions, but no public CLI check covered either command, and IL2CPP had no remediation assertion at all. Add both commands to the CLI input-limit matrix. Go and WASM still carried a duplicated hand-written copy of the same advice. They now use the shared "input" allowance recovery, so all four commands name their fixed allowance from one owner. The matrix also asserted not.toContain("evidence reply"), which the new "evidence-reply" wording passes only because of the hyphen. Assert the absence of the old advice text instead. Fixes morluto#5405 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The test-only change appears safe to merge. SummaryAdds public CLI coverage for fixed input-size refusals from
Reviews (2) · Last reviewed commit: "Merge origin/main; keep upstream Go and ..." · Reviewed by Greptile |
morluto#6088 deliberately extended the Go and WASM input-size advice with the exact byte count, the absence of a runtime override, and (for WASM) that command_timeout_ms does not raise the allowance. Take main's versions of GoBinaryProvider, WabtFailures and WabtFailures.test.ts instead of moving them onto the shared helper, and let the CLI matrix expect each command's own recovery text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@mpratsaki, thank you for adding CLI regression coverage for the Rust and IL2CPP input-size refusals. Checking the recovery text as well as the error helps keep the advice useful when a file exceeds the fixed allowance. Welcome to REA! |
Summary
#5633 (
ef59174c1) already fixed the wording reported in #5405: Rust and IL2CPP input-size refusals now recommend selecting an artifact within the fixed input allowance. That PR referenced #5405 without closing it, and no public CLI check covers either command. This PR locks the fix in with public CLI regression coverage.Fixes #5405
Problem and expected behavior
inspect-rust-binaryandinspect-il2cpp-metadatarefusing a 257 MiB input must not suggest raising an evidence-reply file-size allowance. On currentmainthey don't, but only Rust has a provider-level remediation assertion (rustBinaryBudget.test.ts). IL2CPP has none, and neither command is in the CLI input-limit matrix.not.toContain("evidence reply")passes the current wording only because it says "evidence-reply" with a hyphen. It would not catch the old advice if a writer were reworded.Change and scope
tests/boundary/cli/artifactInputLimits.test.ts: addsinspect-rust-binaryandinspect-il2cpp-metadatato the public CLI matrix. Each entry asserts the allowance it names, and the absence of the old/allowance for the evidence reply/advice.command_timeout_ms), so this PR now keeps main's wording and expects each command's own recovery text.Contribution scope: ordinary fix within existing boundaries; maintainer scope decision not applicable.
Contract and boundary impact
fixedAllowanceOptionsfor Rust/IL2CPP, provider-specific text for Go/WASM) are unchanged.Expected effects:
Evidence and regression coverage
artifactInputLimits.test.ts(+2 commands, per-command expected recovery, stronger negative assertion).main6d356b8, confirms fix(errors): name fixed allowances in resource-constraint recovery #5633 already fixed Rust and IL2CPP:inspect-rust-binary:Select a suitable complete artifact within the fixed Rust input allowance. Increasing an evidence-reply file-size allowance does not admit this input. Do not truncate required bytes. Repeating the unchanged request fails the same way.inspect-il2cpp-metadata: the same, naming the fixed IL2CPP input allowance.code: resource_constraint,retryable: false,details.resource: file-size,maximum_input_bytes: 268435456./allowance for the evidence reply/). MCP was not exercised; it uses the same producers.For evidence-bearing changes:
Validation performed
Linux (Ubuntu 24.04, Node 24.18.0, head 2ce1fda after merging
maind2015e9):npm run test:focused -- tests/boundary/cli/artifactInputLimits.test.ts src/wasm/WabtFailures.test.ts tests/boundary/rust/rustBinaryBudget.test.ts: 3 files, 20 passed, 0 skipped. All four matrix commands (go, rust, il2cpp, wasm) ran.Windows 11 (Node 24.18.0, head 2ce1fda):
npx tsc --noEmitand the pre-pushnpm run check:fast: passed.Windows 11 (Node 24.18.0, earlier head 1b80650):
skipIf(win32).npm run check:fast: 2/2 successful.npx oxfmt --checkon the changed files: clean.Compatibility, safety, and release
Author readiness
Human owner: @mpratsaki
Before merge
type(scope): outcome.🤖 Generated with Claude Code