Repository navigation
fix(ghidra): explain literal search candidate evidence - #8816
Merged
Merged
Conversation
6 of 22 tasks
Contributor
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryExplains that Ghidra case-insensitive literal searches retain bridge candidates in
Reviews (3) · Last reviewed commit: "style(test): format CLI help default ann..." · Reviewed by Greptile |
morluto
marked this pull request as ready for review
November 4, 2026 03:59
Codex Review Summary: ✅ CompletedThis 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. |
5 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A Ghidra case-insensitive literal search can return an unrelated Unicode row in
raw_resultwhilenormalized_resultcorrectly has no matches. The raw row is a broad bridge candidate, but REA did not explain that distinction. This change labels the raw candidates in fresh Evidence and in the search tool descriptions. Fixes #8815.Problem and expected behavior
The bridge intentionally retains non-ASCII candidates to avoid missing matches across runtime Unicode versions. REA applies its own final matcher. Preserve both observations and identify the normalized rows as matches; do not describe case-sensitive or regex responses as candidate sets.
Change and scope
The Ghidra literal-search owner provides one limitation, attached at the filtering boundary for procedure and string searches. The catalog and native guide explain the same contract, including for readers of historical Evidence. Raw rows, normalized rows, matching, and provider selection are unchanged. Contribution scope decision: not applicable; the change explains an existing static analysis result.
Contract and boundary impact
Expected effects:
Evidence and regression coverage
Before the fix, real Ghidra 12.1.4 with a temporarily renamed
Ωprobefunction returned that raw candidate for an unrelated ASCII literal, while the normalized result was empty and no limitation explained the difference. The extended provider-boundary regression failed before the fix for both search operations and passes now, preserving raw and normalized rows and checking that other modes do not get the limitation.After the fix, compact and full real stdio MCP controls validated their advertised schemas and confirmed the candidate, empty normalized result, limitation, search-mode distinction, and retained view. Export/import into a fresh server retained the exact Evidence and the explanation; closing and reopening Ghidra discarded the test rename. Target and bundle digests were unchanged.
Real CLI
rea searchwith Ghidra exposed the limitation for string search. Its fixture had no non-ASCII string recognized by Ghidra, so this does not establish a real strings candidate/match difference; the shared boundary regression covers that branch. Other hosts and Ghidra versions remain unverified.Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Current-main integration
Merged main through
2e2f981c. Kept the newer search guidance and checkpoint/reference limitations while adding the literal-candidate limitation to the same execution metadata owner. Node 24.22.1 focused provider and literal-search suites passed 277 tests; the simulated-provider MCP inventory boundary passed 4 tests.build:cachedpassed (3 tasks, 1 cached),check:fastpassed uncached; fullformat:checkpassed after integrating upstream #9280. No real Ghidra run was performed on this merged head; the earlier real-provider evidence below is historical.Validation performed
npm run test:focused -- src/ghidra/GhidraProvider.behavior.test.ts src/ghidra/GhidraLiteralSearch.test.ts tests/boundary/mcp/nativeInventoryViewsMcp.test.ts— 251 passed.npm run check:ci:fastandnpm run docs:check— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.