Skip to content

test(artifacts): cover fixed input-size recovery for Rust and IL2CPP - #6148

Merged
morluto merged 2 commits into
morluto:mainfrom
mpratsaki:fix/input-size-recovery-advice
Oct 21, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
mpratsaki:fix/input-size-recovery-advice

Conversation

@mpratsaki

@mpratsaki mpratsaki commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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-binary and inspect-il2cpp-metadata refusing a 257 MiB input must not suggest raising an evidence-reply file-size allowance. On current main they 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.
  • The matrix's negative assertion 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: adds inspect-rust-binary and inspect-il2cpp-metadata to the public CLI matrix. Each entry asserts the allowance it names, and the absence of the old /allowance for the evidence reply/ advice.
  • Not included: no production change. An earlier revision of this PR also moved Go and WASM onto the shared helper; fix(engines): keep format ceilings fixed and recover the EVMole deadline #6088 has since extended their bespoke advice (exact byte count, no runtime override, 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

  • Semantic owner and earliest changed stage: tests only; the producers (fixedAllowanceOptions for Rust/IL2CPP, provider-specific text for Go/WASM) are unchanged.
  • Contribution scope fit and linked maintainer decision: fix within existing boundaries; not applicable.
  • CLI and MCP/tool-catalog contract: unchanged.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged.
  • Target selection, authority, upstream behavior, and cleanup details: not applicable.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

Linux (Ubuntu 24.04, Node 24.18.0, head 2ce1fda after merging main d2015e9):

  • 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 --noEmit and the pre-push npm run check:fast: passed.

Windows 11 (Node 24.18.0, earlier head 1b80650):

  • Same focused command: 3 files passed, 24 tests passed, 4 skipped. The CLI matrix is skipIf(win32).
  • npm run check:fast: 2/2 successful.
  • npx oxfmt --check on the changed files: clean.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable; Linux and Windows as above.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: no new authority or side effects.

Author readiness

Human owner: @mpratsaki

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

🤖 Generated with Claude Code

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]>
@mpratsaki
mpratsaki marked this pull request as ready for review October 21, 2026 19:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T19:55:29.722194Z 2ce1fda New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The test-only change appears safe to merge.

Summary

Adds public CLI coverage for fixed input-size refusals from inspect-rust-binary and inspect-il2cpp-metadata.

  • CLI input-size checks now cover Rust and IL2CPP refusals.

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]>
@morluto
morluto merged commit 7ffae5a into morluto:main Oct 21, 2026
5 checks passed
@morluto

morluto commented Oct 25, 2026

Copy link
Copy Markdown
Owner

@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!

@morluto morluto added area: evidence Evidence, artifacts, and reconstruction provider: il2cpp Analysis provider / engine: il2cpp provider: rust Analysis provider / engine: rust labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction provider: il2cpp Analysis provider / engine: il2cpp provider: rust Analysis provider / engine: rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Rust and IL2CPP input-size refusals recommend increasing evidence-output limits

2 participants