Skip to content

fix(rizin): report the output cap instead of a provider signal - #9033

Merged
gensokyo-dev merged 2 commits into
morluto:mainfrom
cpruijsen:fix/rizin-output-cap-limitation
Nov 6, 2026
Merged

gensokyo-dev merged 2 commits into
morluto:mainfrom
cpruijsen:fix/rizin-output-cap-limitation

Conversation

@cpruijsen

@cpruijsen cpruijsen commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #9031. Rizin and objdump command Evidence now attributes the 16 MiB capture limit to REA and suggests narrowing or paging the command. The raw signal, output prefix, unknown completion, and any cleanup failure remain available. This integrates @cpruijsen's existing proposal and addresses its incomplete-cleanup review finding: requesting termination does not establish that a process exited.

Scope

The shared ReverseEngineeringService owns failure classification and guidance for CLI/MCP. The capture cap, concurrency, supervision and result schemas are unchanged; this is a diagnostic correction within existing authority. Guidance has one owner reused by delivery tests. No generated output is committed.

Validation

  • 134 focused composition/CLI/MCP tests pass, including owned Rizin/objdump output-limit failures with incomplete cleanup, raw signal, retained prefix/resources and unknown post-run artifact state. Existing successful truncation remains independent of process completion.

  • Real Rizin 0.9.1 public CLI before/after controls use an owned ELF and actual /usr/bin/ls (151,344 bytes; SHA-256 cb30d69b24245bf2ecdc9e7f53bbad19159999970b6d82c0c00c7d32d9e37aa4). p8 32 completes; p8 0x900000 reaches exactly 16,777,216 combined captured bytes and retains unknown completion. Prefix bytes match before/after; input hashes remain unchanged. The corrected result carries the shared cap/recovery guidance.

  • /usr/bin/ls two-call controls: before 13.4 s wall / 11.6 s CPU / 428.1 MiB sampled process-family RSS; after 14.7 s / 11.4 s / 402.9 MiB. Two CPUs and heap/RSS/time guards; no resource stop. These are correctness controls, not a speedup or token-use claim.

  • One earlier probe overlapped a runtime rebuild and failed to import a removed build artifact. That failed harness attempt is retained and excluded from provider claims; all native comparisons above were rerun serially after the build.

  • Real forced cleanup failure and real objdump overflow were not exercised; their combined failure semantics use the production owned-runner boundary with injected observations. CLI uses the actual Rizin binary; MCP adapter coverage uses controlled providers. No target program was executed.

  • check:fast, targeted formatting and git diff --check pass.

Author readiness

Human owner: @cpruijsen

  • 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.

When a rizin or objdump command exceeds REA's 16 MiB combined output cap,
the captured output is a prefix and REA stops the process itself. The
envelope said the provider process terminated by signal with unknown
completion, so an agent read it as a provider crash and retried the same
command. Name the cap and the prefix in the limitation instead, and keep
the signal fact in the captured output.
@chatgpt-codex-connector

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 ⚠️ Failed 2026-11-05T17:00:52.666372Z
We couldn’t complete this review. Comment @codex review to try again.
0bc76ee PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the diagnostic correction preserves the underlying command and cleanup facts.

Summary

The shared reverse-engineering service now attributes output-limit stops to REA and suggests narrowing or paging the command.

  • Rizin and objdump results now name REA's cap when output collection stops.

Reviews (2) · Last reviewed commit: "fix(reverse): attribute capture limits w..." · Reviewed by Greptile

Integrate PR morluto#9033 on current main. Keep one shared guidance owner and cover incomplete owned cleanup for both Rizin and objdump. Preserve raw signals, partial output and unknown completion.

Assisted-by: Reimu (gensokyo-skills:reimu-incident-triage)
@gensokyo-dev gensokyo-dev reopened this Nov 6, 2026
@gensokyo-dev
gensokyo-dev merged commit abdbaa5 into morluto:main Nov 6, 2026
70 of 102 checks passed
@morluto morluto added area: providers Provider and capability discovery, including provider proposal triage bug Something isn't working provider: rizin Analysis provider / engine: rizin labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: providers Provider and capability discovery, including provider proposal triage bug Something isn't working provider: rizin Analysis provider / engine: rizin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] execute_rizin_command reports its own 16 MiB output cap as a provider SIGKILL with unknown completion

3 participants