Repository navigation
fix(rizin): report the output cap instead of a provider signal - #9033
Conversation
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.
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge; the diagnostic correction preserves the underlying command and cleanup facts. SummaryThe shared reverse-engineering service now attributes output-limit stops to REA and suggests narrowing or paging the command.
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)
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
ReverseEngineeringServiceowns 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-256cb30d69b24245bf2ecdc9e7f53bbad19159999970b6d82c0c00c7d32d9e37aa4).p8 32completes;p8 0x900000reaches 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/lstwo-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 andgit diff --checkpass.Author readiness
Human owner: @cpruijsen