Repository navigation
perf(ghidra): omit redundant raw results - #5355
Conversation
Let the bridge parsers own independent raw representations and pass named execution metadata. Preserve overview details, attestation inputs, file-offset roles and derived-type source observations. Record real CLI/MCP verification, complete paired source facts, response capacity regression and measured task costs with explicit cold-analysis and failed-control limits. Fixes #5337. Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
The human owner explicitly authorized initial readiness, recording the Author readiness declarations on their behalf, and opening this PR ready for review in the current working session. These declarations are recorded at their direction; CI and automated reviews remain separate verification. |
[Medium impact] The PR appears safe to merge; no actionable regressions were found. SummaryRemoves duplicate Ghidra results from
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Java bridge reply] --> B[Ghidra parsers]
B --> C[Normalized facts and metadata]
B --> D{Distinct original facts?}
D -->|No| E[raw_result is null]
D -->|Yes| F[Keep original reply]
C --> G[Analysis execution]
E --> G
F --> G
G --> H[Session Evidence and snapshots]
H --> I[CLI and MCP]
Reviews (1) · Last reviewed commit: "perf(ghidra): omit redundant raw results" · Reviewed by Greptile |
main (morluto#5378) moved official tools onto shared Evidence registration with native-inventory summaries, and morluto#5355 stopped repeating raw results that equal the normalized observation. Resolve by: - adding procedure_pseudo_code to main's official summary operations; - registering the pseudocode summary schema in main's per-operation summary union and view projector table; - continuing pseudocode overflow to the native pseudocode page beside main's native-inventory continuation; - applying this branch's description wording to main's inspect_analysis_view text; - treating main's nullable view artifact when filtering scalar pseudocode locations; - dropping a duplicate analysisDetailSchema import; - expecting no raw_result copy and sizing the overflow fixture above the 10 MiB stdio budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem and change
Ghidra repeated complete inventories and function observations in
raw_result, despite preserving their facts innormalized_resultand canonical Evidence metadata. Let the bridge parsers own independent upstream representations and use named execution metadata. Ordinary results now haveraw_result: null; overview details, attestation inputs, file-offset roles and pre-overlay database types remain available. CLI/MCP share this implementation. Existing retained Evidence is not rewritten.Fixes #5337. Ordinary fix within existing analysis boundaries; no new capability or authority.
Evidence and validation
resource_constraintand passes completely on the candidate at the same 10 MiB budget. This uses a simulated bridge, not a real 30,000-function analysis.trueand official jq 1.8.2 preserve every selected normalized fact and provenance field, excluding only record ID/raw representation. Exported Evidence and unchanged source hashes validate. For jq, RPC replies are 2,375,466 → 1,264,884 bytes; catalog + arguments + replies are 5,639,932 → 4,529,351 bytes (19.7% lower). Actual model tokens are unmeasured.npm run check, finalnpm run check:fast, 247 source/MCP assertions andnpm run docs:checkpass. Real oversized-result retention/recovery and complete CLI readback pass; the public real file-offset/address-context CLI/MCP verifier also passes, with unchanged source and verified cleanup.Measurements, driver, receipt and limitations. Heavy work is serial under CPU/family-memory guards. Real Windows/macOS, other engine versions, real NativeAOT overlays and post-GC retained heap remain unqualified. Read function results from
normalized_result, rather thanraw_result.value.Author readiness
Human owner: @gensokyo-dev