Repository navigation
fix(browser): report semantic limits reached by captured scripts - #11755
Conversation
Codex Review Summary: ❌ FailedThis 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. |
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryThe PR carries reached evaluator budgets from captured-script analysis into the bundle report.
No actionable issues were found. Review checks were source-based; tests were not rerun. Whether another PR supersedes this one could not be checked because GitHub authentication was unavailable. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Captured script] --> B[Static analysis and route recovery]
B --> C[Snapshot reached evaluator limits]
C --> D[Validated per-script worker result]
D --> E[Bundle report]
E --> F[Script-attributed unknowns]
E --> G[Partial completeness]
E --> H[Retained findings and capture gaps]
Reviews (1) · Last reviewed commit: "fix(browser): retain captured-script sem..." · Reviewed by Greptile |
Summary
Captured scripts can exhaust getter or alias expansion under
semantic_precisionwhileanalyze_web_bundledrops that fact during result assembly. For example, a router path read through a getter withgetter_expansions: 1produces no budget recovery control and the bundle can report complete analysis.Fixes #11565. Qualified against main
3676ec632bfbe4fde2f5303daa0d9261072ce04a.Change
Collect the evaluator-owned value/getter exhaustion facts after route recovery finishes, retaining their effective precision. Carry these typed facts through the strict per-script worker result and emit script-attributed
unknowns[]with the existing parameter-limit schema and next-call recovery. A reached budget makes the bundle partial while preserving established findings and independent capture gaps.The existing CLI control projector can then name
--semantic-precisionin--full-outputmetadata; shared/MCP Evidence keeps contract field names. Unreached low budgets produce no invented limitation, sufficient precision clears the limitation on the next call, and a failed parse cannot carry evaluator-budget facts. No target script is executed and no new authority or provider capability is introduced.Executed validation
Linux, Node 24.22.1 / npm 11.9.0, locked dependencies:
meta.cli_controlsmapping.npm run check:fast, normal commit/pre-push hooks,git diff --check, and discovery of all 3734 test/spec files passed.npm run docs:check: six tasks and eight README consistency tests passed. Scoped typed lint: seven files, zero errors, eleven advisory warnings.Focused commands executed:
Native Chrome, Windows/macOS and the complete monolithic suite were not run. Getter and alias exhaustion were reproduced; the unused expression-depth case verifies that a selected control is not mistaken for an exhausted one. Hosted CI remains pending for the published revision.
Author readiness
Human owner: @ShuaixinHuang