Repository navigation
feat(analysis-view): add native inventory summaries and pages - #5378
Conversation
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. |
Retain complete native inventories while projecting selected rows through the shared CLI/MCP analysis-view layer. Preserve source identity, string qualifications, provenance and unknown discovery coverage; provide actionable overflow recovery. Verify real Ghidra true/jq workflows, old Evidence full-page reconstruction and actual CLI/MCP parity. Record tokenizer proxies, added call/catalog costs, slower large warm queries and higher family memory peaks. Co-authored-by: Kaoru0822 <[email protected]>
[Medium impact] The reviewed changes appear safe to merge; no blocking issue was found. SummaryAdds opt-in summaries and selected pages for native procedure, name, and string inventories while retaining the complete source Evidence.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Native inventory call] --> B[Complete provider result]
B --> C[Create original Evidence]
C --> D{Requested detail}
D -->|complete| E[Deliver complete Evidence]
D -->|summary| F[Retain complete Evidence]
F --> G[Return summary with parent ID]
G --> H[inspect_analysis_view]
E -->|oversized and retained| H
H --> I[Page retained rows and selected fields]
Reviews (2) · Last reviewed commit: "feat(analysis-view): add native inventor..." · Reviewed by Greptile |
a165fc6 to
59bd2d2
Compare
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
…ansition-view Resolve conflicts with main's native inventory view (morluto#5378). Main now gives each parent operation its own summary result schema, joined by a union on parent_operation. Add browserScenarioSummaryViewResultSchema in that style for this branch's summary instead of keeping the old shared summary-body union. The inspect_analysis_view and CLI descriptions and the generic unsupported-parent message are main's text plus this branch's browser scenario additions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 <[email protected]>
Summary
Fixes #4249. Native procedure/name/string inventories can exceed the MCP response budget or flood context when only counts and a few rows are needed. Five existing tools now accept opt-in summaries;
inspect_analysis_viewreturns selected fields and stable pages while preserving complete source Evidence.Change and scope
Evidence and validation
Real Ghidra 12.1.4 on Debian
trueand official jq 1.8.2 completed the count/first-four-row question through production stdio MCP. Actual old Evidence was imported, every row reconstructed, original records reexported unchanged, and 20 actual CLI file-source/MCP comparisons returned identical Evidence. Source artifacts stayed unchanged.In the frozen 58d-based pairs, including discovery, arguments, replies, retries and export recovery, the cl100k serialization proxy changes 306,496→208,002 (
true) and 590,032→208,302 (jq). These are estimates, not actual model usage. The catalog grows ~30 KB and selected delivery adds RPCs. jq warm task time regresses 2.521→6.916 s; both family peaks increase. No general latency/CPU/memory improvement is claimed.The small pair's complete original Evidence matches exactly. Independent jq analyses vary alias-primary/generated-label observations, so the large pair compares requested facts; old-source full-page equivalence is verified separately. Failed/guard-stopped attempts and resource/coverage limits remain in the measurement record.
npm run test:focused -- …— 24 files / 305 tests passed; exact executed paths are in the receipt.npm run check— passed, including module/architecture guards.npm run docs:check— passed.npm run checkandnpm run docs:checkpassed. Both actual old-source CLI/MCP full-page verifiers passed again against the final build.Final main adds Protobuf schemas: its observed complete 209-tool catalog is 3,317,414 bytes. Earlier fixed-runtime performance samples retain their original pins; final-main timing/token pairs were not rerun.
Linux x86-64 Ghidra metadata workflows are qualified here. Other providers/platforms, actual model-host gains and complete application reconstruction remain unverified. Complete source/export access and unknown-artifact semantics are preserved. Source contracts and authored packaged-skill guidance are updated; ignored generated catalogs/build outputs are not committed.
Latest main synchronization: preserved
4eaf3a117oversized-error protocol framing. Three affected files/11 tests, real old-source CLI/MCP verification andnpm run docs:checkpassed again. Latest-head pre-push typecheck/lint passed (two tasks).Author readiness
Human owner: @gensokyo-dev
The owner explicitly dictated these readiness declarations and authorized publication and merge in the working session; they are not inferred from CI or automated review.
Before merge
type(scope): outcome.