Repository navigation
perf(go): summarize build identity and query retained metadata - #5524
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 blocking issues remain from this review. SummaryAdds optional Go build summaries and selected dependency/settings pages while preserving complete Evidence.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Inspect Go binary] --> B[Create complete Evidence]
B --> C{Requested detail}
C -->|complete| D[Return complete Evidence]
C -->|summary| E[Retain complete parent]
E --> F[Return summary and parent ID]
E --> G[Select retained Go metadata]
G --> H[Filter fields and page original rows]
Reviews (5) · Last reviewed commit: "docs(experiments): record latest-main Go..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea29b81829
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
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".
d67ebf9 to
20eea6c
Compare
20eea6c to
99003cf
Compare
…ansition-view Resolve the description conflicts with main's Go build metadata view (morluto#5524). The inspect_analysis_view and inspect-analysis-view descriptions keep main's text and add this branch's browser scenario additions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Fixes #5499. A Go compiler/main-module question currently receives raw encodings and every dependency. Add opt-in summary delivery and selected retained metadata views through the shared application/domain layer. Default complete replies and their Evidence identity remain unchanged.
Problem and expected behavior
GitHub CLI v2.102.0 produces 63,544 bytes of complete Go Evidence with 165 dependencies. A summary returns embedded identity, source ranges, counts and unknowns; dependency/settings pages select exact paths/keys, original indices and fields without reopening the target. Every row keeps its original index and parent identity. Complete bytes remain accessible in the retained parent or a CLI Evidence bundle.
Change and scope
The existing Go reader still owns all parsing. Shared views validate immutable parent facts once for their Evidence lifetime; mutable inputs are revalidated. CLI uses the existing non-overwriting bundle publisher; MCP retains the complete parent before projection. Scope decision: not applicable to this projection of existing read-only metadata.
Contract and boundary impact
detail: summary; Go views support dependency/settings filtering, fields and paging. Default complete delivery stays compatible.Expected effects:
Evidence and regression coverage
Native
go version -m, original byte ranges and before/after full exports agree for all 165 dependencies. Real CLI complete output is identical; summary bundles retain it, and file-based selected CLI queries match the native oracle. Fixtures cover duplicate paths, empty selections, field omissions, identity conflicts, unavailable metadata, mutable/malformed parents and bounded messages.In the pinned pre-rebase cohort, actual Codex 0.163.0 with a deterministic local SSE backend captures every request, including repeated catalogs. No AI inference or paid model service is used. Whole captured-request JSON token proxies:
Summary helps questions it directly answers; a follow-up round can cost more context. Repeated direct-SDK compound/export tasks also get slower: 4.855–4.952 → 6.370–6.564 s wall, 4.682–4.725 → 6.175–6.400 s CPU, 671–680 → 846–869 MiB family peak. Small tasks remain about 4.3 s; warm selected reads take 33 ms. No universal speed/memory gain or actual model usage is claimed. Methods, complete measurements and reproduction.
Validation performed
Current head is rebased onto
main@cf5194f68, retaining its new IL2CPP contract and the Go additions. All 258 focused tests in 12 files pass, including the 32 IL2CPP view tests and 13 CLI path tests. Fullnpm run check,npm run docs:checkplus five README tests, and a rebuilt-runtime real SDK selected query/full export pass. The original complete parent identity and all 165 dependencies remain exact. Duplication passes at 3.49018% (baseline 3.49743%, gate 3.5%). The frozen timing cohorts below are not timings of this rebase.After rebasing onto
main@c374c2fe7: 10 files / 202 focused tests pass;npm run checkandnpm run docs:checkpass (including five README consistency tests). A real rebuilt-runtime SDK selected query and complete export pass again with the original parent identity and all 165 dependencies. Eight frozen matched SDK tasks plus a warm diagnostic, six actual-client task variants, and real CLI complete/summary/bundle/file-view verification also pass. All qualified payload exits and owned cleanup are verified, with zero observed OOM events. Two qualification attempts stopped at the host-memory guard, including a latest-main build; owned scopes were verified inactive and unchanged-guard retries passed after headroom recovered. Final whole-scope counters are unavailable.Review qualification: the shared benchmark finalizer now cleans owned resources before optional transcript publication. All 11 receipt-failure tests pass; a real selected SDK task/export passes, and an injected transcript-write failure exits 1 with a recorded failure and verified process-family cleanup.
Architecture review: Go domain now owns the existing report-to-subject architecture mapping. Production Evidence and every Go view share it, rejecting inconsistent inline/file parents, including conflicts between known and unknown architectures. All 213 focused tests and full
npm run checkpass after this correction.The initial path-message/duplication failures disappeared on new main. Current CI shard 4 has four
filteredFailureOutput.test.tsassertions expecting the old generic remediation text; all four reproduce on untouchedmain@cf5194f68(npm run test:focused -- tests/boundary/cli/filteredFailureOutput.test.ts: 4 failed, 1 passed). Actual output uses the contract-aware recovery guidance added by main. The Go PR does not change that workflow. The control run used the pinned toolchain, bounded resources, verified cleanup and zero observed OOM events. Runtime/platform checks, including the Windows lane, passed. Matrix fail-fast cancelled shards 3 and 5; a direct shard-3 rerun was cancelled again because the original shard-4 failure remains. Their complete CI coverage is unverified; changed Go/Rust/CLI/MCP paths are covered by the 258 focused local tests and real SDK/CLI tasks. The owner explicitly authorized bypass for a verified PR blocked by unrelated CI; the bypass is for this reproduced baseline failure and its resulting aggregates/cancellations.Compatibility, safety, and release
No default reply or complete Evidence identity change. Real verification covers Linux ELF; PE/Mach-O use authored fixtures. Metadata observes embedded claims and does not authenticate a compiler or establish complete runtime dependencies. Actual model reasoning, backend schema acceptance, rendering and billing are unmeasured. REA never executes an input. The installed Go tool is also invoked as the trusted native verifier.
Author readiness
Human owner: @gensokyo-dev
The owner explicitly dictated these declarations and initial readiness in the working session; the assistant entered them under that instruction.
Before merge
type(scope): outcome.