Skip to content

fix(ghidra): name the code seed recovery for addresses outside the listing - #10682

Merged
N0zoM1z0 merged 1 commit into
morluto:mainfrom
Davmunrey:fix/ghidra-not-in-listing
Nov 21, 2026
Merged

N0zoM1z0 merged 1 commit into
morluto:mainfrom
Davmunrey:fix/ghidra-not-in-listing

Conversation

@Davmunrey

Copy link
Copy Markdown
Contributor

Summary

Refs #3767. Follows up #10623. inspect_native_instruction reports not-in-listing when an address lies in Ghidra's memory but the listing has no instruction or defined data there. No decode is attempted, so the answer does not show that the bytes are data, yet it named no way forward. This is the instruction-level sibling of #10623's recovery: a code seed applies here.

Change and scope

  • GhidraProviderCapabilities.ts: adds ghidraNotInListingLimitation(source). It names a code seed, or a function seed for an entry point, in REA_GHIDRA_SEED_FILE. Like fix(ghidra): name the declared-seed recovery when no function covers an address #10623, it reuses the same session-source restriction, naming the setting to unset first for a selected project or checkpoint. It does not assert that the address holds code.
  • GhidraProviderClient.ts: a not-in-listing answer gets that limitation through the same absence-caveat path. decoded, data and other statuses are unchanged.
  • installation.md: the seed section lists the new carrier.

Evidence and regression coverage

Validation performed

  • npm run test:local -- src/ghidra/GhidraProvider.behavior.test.ts: 298 passed.
  • npm run check:fast passed.

Author readiness

Human owner: @Davmunrey

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

…sting

inspect_native_instruction reports `not-in-listing` when an address lies
in Ghidra's memory but the listing has no instruction or defined data
there. No decode is attempted, so the answer does not show the bytes are
data, yet the result named no way forward. morluto#10623 added the declared-seed
recovery for procedure_not_found and not_in_procedure; this is the
instruction-level sibling, where a `code` seed applies.

A not-in-listing answer now carries ghidraNotInListingLimitation(source).
It names a `code` seed (or a `function` seed for an entry point) in
REA_GHIDRA_SEED_FILE, says which setting to unset first for a selected
project or checkpoint, and does not assert that the address holds code.
decoded, data and other statuses are unchanged. The installation guide's
seed section lists the new carrier.

Validation: src/ghidra/GhidraProvider.behavior.test.ts fails 1/298 with
the caveat removed and passes 298/298 with it; check:fast passes. No
real Ghidra run.

Refs morluto#3767
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T23:23:34.660458Z
We couldn’t complete this review. Comment @codex review to try again.
8791342 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 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds seed recovery guidance to inspect_native_instruction replies with status not-in-listing.

  • Instruction queries outside Ghidra's listing now name a seed path.

No actionable correctness, security, or repository-rule violations were found. Tests were inspected but not run during this review; real Ghidra behavior was not exercised. Supersession could not be checked because GitHub access required authentication.

Reviews (2) · Last reviewed commit: "fix(ghidra): name the code seed recovery..." · Reviewed by Greptile

@Davmunrey

Copy link
Copy Markdown
Contributor Author

Ready to merge: full CI is green on this head, Greptile's latest review is 5/5 with no open threads, and it merges into main 42cab26 without conflicts.

@gensokyo-dev gensokyo-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified: the Ghidra behavior suite passes (298), and the not-in-listing limitation follows the existing seed-recovery wording and per-source restriction. It is added only for inspect_native_instruction's not-in-listing status. Thanks.

@N0zoM1z0
N0zoM1z0 merged commit 33ecda0 into morluto:main Nov 21, 2026
49 checks passed
@morluto morluto added bug Something isn't working provider: ghidra Analysis provider / engine: ghidra 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: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants