Repository navigation
fix(objdump)!: preserve unknown executable identity - #8824
Conversation
[Medium impact] The reviewed changes appear safe to merge. SummaryNew objdump observations use
Acknowledged follow-ups:
Review limits: Tests were not run during this review. Whether another PR supersedes this one could not be checked because GitHub access was unavailable. Reviews (3) · Last reviewed commit: "test(objdump): align launch failure expe..." · Reviewed by Greptile |
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. |
Upstream's morluto#8824 reworded the limitation for an executable that REA does not identify: its implementation, version and supported formats are unknown because no reliable identity probe was performed. This branch builds that limitation per call from the reason identification failed, so keep the per-call limitations and apply upstream's wording to that template. objdump's limitation then matches upstream's text exactly, and Rizin's unidentified outcomes use the same wording.
Problem and outcome
inspect_with_objdumplabels every selected executable as GNU objdump, including Apple's LLVMobjdump. New observations identify the GNU-style command profile asobjdump.command, retain the selected executable and arguments, and explicitly leave implementation, version and supported formats unknown. CLI and MCP descriptions no longer promise GNU-specific results from an unverified executable.Fixes #8823.
Contract and boundary impact
This is a breaking Evidence/provider-catalog identity change: new results use
objdump.commandinstead ofgnu.objdump. Historical Evidence is not rewritten. REA still sends the same GNU-style arguments; this does not assert that other implementations support all operations, probe an executable's identity, or install software. Target execution and provider authority are unchanged.Validation
Real Apple LLVM 21
/usr/bin/objdumpon macOS arm64: CLI and compact/full MCP disassembly of an owned x86-64 Mach-O succeeded, retained the executable and returned the neutral identity. The target hash stayed unchanged.An old
gnu.objdumpEvidence bundle from the baseline imported into fresh servers in both schema profiles with its original record and ID unchanged.Public CLI regression uses a real caller-selected non-objdump executable and checks the neutral identity and unknown implementation; its nonzero child result remains observed command Evidence.
50 focused CLI, composition and MCP tests passed;
check:fast,docs:check, andgit diff --checkpassed.Pathless Apple LLVM control:
list-objdump-architecturesretained the actual-ierror and nonzero child exit without claiming the output listed BFD targets. The CLI regression covers the pathless result; 8 focused CLI/MCP tests andcheck:fastpassed after this follow-up.Real GNU objdump 2.47 on macOS arm64, supplied from a temporary Homebrew bottle without installing it: CLI and compact/full MCP symbol-scoped disassembly of a self-built x86-64 ELF object succeeded with the neutral provider identity and unchanged target hash. This is one GNU operation and host.
The same GNU executable also succeeded on target-free
architecturesthrough CLI and both MCP profiles; the Evidence was subjectless and retained the command output. Its 423,472-byte stdout motivates a separate bounded-view discussion in [Design] Bound inspection of retained command output #8825.CLI summary handoff control: real GNU symbol disassembly (child exit 0) and Apple LLVM
-i(child exit 1) each wrote a bundle and reportedobjdump.commandas the source provider. Importing both bundles into a target-free server preserved their complete records and child exit codes unchanged.Launch-failure identity control: a missing selected executable returned
capability_unavailablewithprovider_id: objdump.commandandprovider-launch/ENOENTdiagnostics in real CLI and both MCP profiles. Focused CLI and composition tests andcheck:fastpassed on the follow-up.Review follow-up: the CLI identity regression now asserts structured provider and launch facts without matching limitation prose or banning text anywhere in output. It passed after a temporary harmless wording change and again on the restored source. Discovery readiness after an observed launch failure is a separate pre-existing issue, [Bug] Objdump discovery remains available after executable launch failure #8826.
CI failure follow-up: source and reverse-tools tests on prior head
f5986a10cexposed failure-path expectations still using the oldobjdumpprovider ID. Updated those expectations to the command-profile identity; 89 affected local tests and the full reverse-tools coverage suite (758 passed, 23 skipped) passed. Hosted CI on the new head is pending.Linux, Windows and broader GNU/LLVM operations were not tested.
Hosted run 41683916119, shard 4:
bundleComparisonCli.test.tstimed out after 30 seconds on the removedcompare-bundlescommand; 215 test files passed and 7 were skipped in that shard. A focused local rerun of that file on the same PR head passed all 3 tests, including the timed-out case (macOS arm64, 531 ms for that case). The cause of that hosted timeout remains unestablished. Rerun attempt 2 of the same hosted run completed successfully.Author readiness
Human owner:
Before merge
type(scope): outcome.