Skip to content

fix(ghidra): say byte-search pages read match metadata live - #10684

Merged
N0zoM1z0 merged 1 commit into
morluto:mainfrom
Davmunrey:fix/byte-search-live-metadata
Nov 21, 2026
Merged

N0zoM1z0 merged 1 commit into
morluto:mainfrom
Davmunrey:fix/byte-search-live-metadata

Conversation

@Davmunrey

Copy link
Copy Markdown
Contributor

Summary

Refs #8365. This takes the issue's first option: say that match metadata is live. Binding or qualifying pages to a metadata version is left open.

A search_bytes cursor resumes the same target, profile and query, and the limitation said only that. The issue's real session showed the gap: after set_address_name renamed entry between pages, the next page from the same first-page cursor reported renamed_entry. Both pages' Evidence had the same target and profile digest, and no limitation explained the difference.

Change and scope

  • The Ghidra search_bytes limitation in GhidraProviderCapabilities.ts now says that the cursor does not pin match metadata. Procedure names and other match metadata are read live on each page, so a rename made in the session between pages appears on later pages.
  • No behavior change and no schema change.

Evidence and regression coverage

Validation performed

  • npm run test:local -- src/ghidra/GhidraProvider.behavior.test.ts: 296 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.

A search_bytes cursor resumes the same target, profile and query, and
the limitation said only that. In a real session, renaming a function
between pages changed the procedure name on the next page from the same
cursor, while the page Evidence kept the same target and profile digest
and no limitation explained the difference.

The search_bytes limitation now states that the cursor does not pin
match metadata: procedure names and other match metadata are read live
on each page, so a rename in the session between pages appears on later
pages. This takes the issue's "identify that match metadata is live"
option; binding or qualifying pages to a metadata version is left open.

No prose-asserting test was added, following the direction in morluto#10508.
Validation: src/ghidra/GhidraProvider.behavior.test.ts 296/296;
check:fast passes.

Refs morluto#8365
@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:24:11.334139Z
We couldn’t complete this review. Comment @codex review to try again.
9919619 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; the added wording matches how byte-search pages read metadata.

Summary

Clarifies that Ghidra search_bytes cursors do not freeze match metadata.

  • Ghidra byte-search notes explain that match details are read live.

Reviews (1) · Last reviewed commit: "fix(ghidra): say byte-search pages read ..." · 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: main's search_bytes limitation still says only that the cursor resumes target, profile and query. The added sentence states the live-metadata behavior shown in #8365. Thanks.

@N0zoM1z0
N0zoM1z0 merged commit e7a0232 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