Skip to content

fix(objdump)!: preserve unknown executable identity - #8824

Merged
morluto merged 5 commits into
mainfrom
codex/objdump-evidence-identity
Nov 3, 2026
Merged

morluto merged 5 commits into
mainfrom
codex/objdump-evidence-identity

Conversation

@morluto

@morluto morluto commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Problem and outcome

inspect_with_objdump labels every selected executable as GNU objdump, including Apple's LLVM objdump. New observations identify the GNU-style command profile as objdump.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.command instead of gnu.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/objdump on 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.objdump Evidence 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, and git diff --check passed.

  • Pathless Apple LLVM control: list-objdump-architectures retained the actual -i error and nonzero child exit without claiming the output listed BFD targets. The CLI regression covers the pathless result; 8 focused CLI/MCP tests and check:fast passed 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 architectures through 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 reported objdump.command as 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_unavailable with provider_id: objdump.command and provider-launch / ENOENT diagnostics in real CLI and both MCP profiles. Focused CLI and composition tests and check:fast passed 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 f5986a10c exposed failure-path expectations still using the old objdump provider 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.ts timed out after 30 seconds on the removed compare-bundles command; 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:

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

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: apex

[Medium impact] The reviewed changes appear safe to merge.

Summary

New objdump observations use objdump.command without claiming a verified executable implementation. CLI delivery, launch errors, descriptions, and tests now use that identity.

  • Objdump evidence identifies the selected command without claiming it is GNU.

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

@morluto
morluto marked this pull request as ready for review November 3, 2026 18:01
@morluto
morluto merged commit c3647ad into main Nov 3, 2026
84 of 96 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-11-03T18:03:21.951167Z 6ec64d2 Draft marked ready
ℹ️ 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.

@morluto
morluto deleted the codex/objdump-evidence-identity branch November 3, 2026 18:01
@greptile-apps greptile-apps Bot mentioned this pull request Nov 3, 2026
3 tasks done
Entrpi added a commit to Entrpi/rea that referenced this pull request Nov 3, 2026
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.
@morluto morluto added bug Something isn't working provider: objdump Analysis provider / engine: objdump labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working provider: objdump Analysis provider / engine: objdump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Objdump evidence claims GNU identity for Apple LLVM executable

1 participant