Repository navigation
perf(rust): query selected dependency facts from retained Evidence - #5815
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. |
[Medium impact] The PR appears safe to merge; no actionable issue was found in the changed paths. SummaryAdds optional Rust package and edge selection, summaries, and retained queries through the existing CLI and MCP workflows.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Inspect selected binary"] --> B["Complete Rust Evidence"]
B --> C["Default: return complete Evidence"]
B --> D["Compact delivery"]
D --> E["MCP: retain complete parent"]
D --> F["CLI: write exclusive Evidence bundle"]
E --> G["Shared Rust view projector"]
F --> G
H["Later retained or portable Evidence"] --> G
G --> I["Summary or selected package/edge page"]
Reviews (1) · Last reviewed commit: "docs(perf): record Rust dependency task ..." · Reviewed by Greptile |
|
Final-head CI triage (
The human owner explicitly authorized merging verified PRs with admin bypass when necessary. This merge bypasses the unrelated base assertion and consequent incomplete aggregate checks; it does not claim full CI success or fix WASM in this Rust change. |
…ansition-view Resolve the inspect_analysis_view description conflict with main's Rust dependency view (morluto#5815). The description keeps main's text and adds this branch's capture_browser_scenario additions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Fixes #5802. A question about two embedded Rust crates previously returned every package and edge. Add opt-in first-call package/edge selection, summary delivery and retained queries to the existing CLI/MCP workflows; complete delivery and original Evidence identity stay unchanged.
For shipped Alpine Zellij (422 packages/1,063 edges), selecting
serdeandserde_derivereturns their exact versions/sources/direct references in one call. The complete MCP inspect response shrinks 185,833 → 9,261 bytes, with the full parent still exportable.Change and scope
The Rust domain owns exact intersecting filters, fields and matching-row pagination; both adapters use the shared Evidence projection/application layer. Indices retain original identity within the parent. Dependency vectors require explicit field selection. The small pager is shared with Go. Successful immutable-Evidence interpretation is reused only for that object's lifetime; mutable imports revalidate and every view checks subject identity.
Existing read-only ELF/PE/thin-Mach-O scope; maintainer decision not applicable. Missing sections, inferred compiler facts and unknown runtime coverage remain explicit. CLI compact delivery requires an exclusive Evidence output bundle. Existing provider limits/admission, complete graph construction and full-file reads remain. No new provider/tool, target execution, installation or dependency change. Authored guide/skill/contracts updated; generated catalogs/skills stay ignored.
Expected effects:
Evidence and regression coverage
Measured task, corpus, raw-receipt hashes and limitations: official Alpine ripgrep 14.1.1 and Zellij 0.40.0, independently checked with GNU section extraction and Python zlib/JSON. Every package/edge, root/cycle result, section range, digest and complete exported parent matches. Applications were not executed.
Both lanes use two actual stdio SDK calls: inspect and export. Three alternating pairs per binary, bounded to one CPU/4 GiB. Offline cl100k estimates including all 212 input definitions once and all calls: Zellij 223,755 → 199,584 (−10.8%); ripgrep 200,603 → 199,584 (−0.5%). Full transport/output-schema accounting makes the small case more expensive. These are estimates, not model usage or a measured agent-host prompt.
Whole-task Zellij wall/CPU medians rise 4.957/4.782 → 5.671/5.441 seconds; diagnostic complete/selected controls show startup variation and do not isolate persistent compact-projection overhead. Peak family memory 610.3 → 604.3 MiB; ripgrep 569.0 → 587.3 MiB. No stable speedup or memory improvement claimed. All measured runs qualify exit/cleanup with zero resource events. The speculative JSON-sizing change was reverted after inconsistent results.
Tests exercise duplicate versions, both endpoint filters, empty selection, field omission, pagination, portable/retained reads after source deletion, immutable-cache trust, subject mismatch, malformed imports, missing metadata and delivery validation. Real shipped PE/Mach-O, larger graphs, warm retained-query performance and actual AI inference remain unmeasured.
Validation performed
npm run build:cachedandnpm run check— passed on measured source and the final rebased integration branch (typecheck, lint, format, knip, module/architecture guards).npm run docs:checkandnpm run verify:test-discovery— passed on the integration branch.GitHub CI: static, source tests, build, docs, tool quality, package baseline and six integration shards passed. Shard 4 fails the existing WASM CLI schema assertion below; shard 7 was cancelled. No full-CI-green claim. The same sole assertion reproduces on untouched base
a5f982de8and PR head; Rust changed paths are outside that producer/test. Codex reports no findings and Greptile scores 5/5. All Rust CLI/MCP/format and new view acceptance specifications passed in CI. Merge uses the owner-authorized admin bypass for the unrelated base failure.Author readiness
Human owner: @gensokyo-dev
The following owner declarations are transcribed at the human owner's explicit standing instruction in this session. This records that instruction, not an independently witnessed human review by the agent.
Before merge
type(scope): outcome.