Repository navigation
perf(javascript): query selected source-to-bundle facts - #6128
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 reviewed changes appear safe to merge, with no new blocking issue found. SummaryAdds file-backed historical graphs and selected source-to-bundle views while keeping the complete comparison available.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Inline graph or selected JSON file] --> B[Authenticate historical graph]
C[Application Evidence] --> D[Compute complete comparison]
B --> D
D --> E[Prepare full reply or selected view]
E --> F{Request cancelled?}
F -->|Yes| G[Return without session writes]
F -->|No| H[Retain source and complete parent]
H --> I[Retain and return selected view or full parent]
H --> J[Later inspect_analysis_view calls]
Reviews (4) · Last reviewed commit: "fix(javascript): preserve reference file..." · Reviewed by Greptile |
|
@codex review Final follow-up |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. 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". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b66135e2a
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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". |
Summary
Fixes #6112. Compare a committed historical graph from a local JSON file and request selected mappings/candidates without sending the full graph or receiving every row. Existing inline requests retain their complete Evidence; file requests preserve the same normalized facts and record the selected file origin.
Change and scope
inspect-analysis-viewprojector.parameters.reference_sourcepreserves it and the exact requested path. POSIX../symlink semantics remain intact. Distinct chosen files have distinct Evidence IDs, while normalized facts/mapping IDs remain composable.Evidence and measured costs
Public Redux Toolkit 2.2.7: 180 source files, 99 embedded source nodes, 210 candidate relations, checked independently with Python JSON/SHA-256/path joins. Every requested fact agrees with its full retained parent: 33 split, 147 unknown. All embedded source strings differ from the published sources; no semantic-equivalence or removal claim.
Three alternating complete-task pairs per output-profile configuration include catalog, arguments, all replies, preparation, extra candidate query and Evidence export. Archived full-output estimates are 152,592 → 54,765 cl100k tokens (64.1% less), with a cold SDK tradeoff: wall median 11.899 → 14.733 s, CPU 11.551 → 14.377 s, process-family peak 666.6 → 950.7 MiB. With the existing explicit output-schema off setting on both sides, estimates are 152,668 → 54,841; wall 11.597 → 10.890 s, CPU 11.244 → 10.569 s, peak 628.7 → 626.0 MiB. Ranges overlap, so no stable speedup claim. Server canonical validation remains enabled; defaults are unchanged.
Final post-provenance verifications estimate 54,896 tokens, retain all oracle facts and the new origin metadata, and preserve legacy inline Evidence exactly. Same-origin CLI and MCP file Evidence agree exactly. Historical paired medians predate later guard/provenance fixes; final source hashes and separate receipts are explicit in
experiments/analysis-efficiency/source-to-bundle*.json/.md.Both cohorts explicitly select the existing semantic cap of one for source/map correspondence. Comparison facts agree with a separately observed default-semantic run; semantic coverage does not. Reference import is separately measured; acquisition/build are excluded. All measured tasks release their processes with no OOM/resource stop. Actual model usage is unmeasured; the verified existing CLI/code-composition control can already select locally, so there is no universal native-client saving claim.
Validation performed
npm run build:cached,npm run check,npm run docs:check— passed.mapped: false), preserve relative caller paths, and give identical graphs at different chosen paths distinct provenance.Linux verified. Final-head CI/review remain the merge gate. Windows runtime and actual model/native-client context usage are unmeasured; no GUI/deep provider or cross-provider qualification is claimed.
Contract and boundary impact
Matching/scoring stay in the domain owner; both adapters share file resolution, Evidence construction and view projection. Contracts are additive: reference-file transport, optional MCP view and completed-comparison views; complete output remains the default. File origin is provenance metadata, not a change to mapping semantics. Contribution scope: existing static analysis/Evidence boundaries; maintainer execution/mutation decision not applicable.
Effects: read selected files, existing REA static helper processes and caller-selected Evidence export. No target execution, attachment, instrumentation, configuration changes, network access or protection recovery. Owning docs updated; generated catalogs/skills/build outputs remain untracked.
Author readiness
Declarations entered under the user's explicit direction and authorization in this session.
Human owner: @gensokyo-dev
Before merge
type(scope): outcome.