Repository navigation
refactor(javascript): name heap and deadline flags from the bound limit, not remediation text - #11448
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Medium impact] The PR appears safe to merge, with the existing non-blocking comparison flag-hint issue still open.
|
…from the limit, not remediation text The CLI projection now also names the flag of a registered setting limit that carries a request parameter (javascript.max_heap_mb, javascript.analysis_timeout_ms). The JavaScript worker heap and timeout remediation and the web bundle heap remediation no longer name CLI flags; a web bundle heap exhaustion that a larger max_heap_mb raises now binds max_heap_mb as its per-call control.
16c7e77 to
924bf6a
Compare
|
@greptileai review |
…worker order audit
… a managed snapshot refusal (#11453)
|
@greptileai review |
Summary
JavaScript application and web bundle failures now name their per-call heap and deadline controls only through
details.limit, and the CLI renders the flag.projectCliInputFields(#11413) also names the flag of a registered setting limit that carries a requestparameter(such asjavascript.max_heap_mb→max_heap_mb,javascript.analysis_timeout_ms→analysis_timeout_ms). Structural audit plan W1, item 4, group 1, JavaScript analysis family (analyze_javascript_application,analyze_web_bundle). Follows #11413 (merged).Problem and expected behavior
The worker heap and timeout remediation and the web bundle heap remediation wrote
rea analyze-javascript-application <input_path> --max-heap-mb ...,--analysis-timeout-msand--max-heap-mbtext into output MCP clients receive. The JavaScript worker already bound registered setting limits withparameter, but #11413's renderer only handledcontrol_kind: "parameter"limits, so removing the text would have dropped the CLI flag. A web bundle heap exhaustion carried no limit at all.Change and scope
projectCliAnalysisResult.ts:flaggedLimitaccepts a parameter control or a registered setting limit that names aparameter; other limits (environment controls, setting limits without a parameter, non-limit objects) are unchanged.javascriptAnalysisResourceControls.ts,JavaScriptAnalysisWorker.ts: remediation namesmax_heap_mb/analysis_timeout_msonly.webBundleAnalysis.ts: newwebBundleHeapLimit(exhaustion)bindsmax_heap_mb(control_kind: "parameter", web bundle range and default) when a larger value raises the exhausted allowance (V8 heap, Windows Bun commit limit) and nothing for a Bun allocation exit, whichmax_heap_mbdoes not change.WebBundleAnalysisWorkerattaches it; remediation drops the CLI sentence.cli-option-text-outside-clibaseline:javascriptAnalysisResourceControls.ts5 → 4,webBundleAnalysis.ts1 → 0.--semantic-precision, thesource_pathsselection hint in the timeout remediation (group 3), and the browser deadline helper (browserDeadlineIncrease, browser family).Ordinary refactor within existing boundaries; maintainer scope decision not applicable.
Contract and boundary impact
projectCliInputFieldsrenders the flag for both limit kinds that name a parameter.details.limitof a parameter-selectable setting gainscli_flag; a web bundle heap exhaustion gainsdetails.limit(additive); remediation prose no longer names CLI flags.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
javascriptAnalysisLimits.test.ts(acceptance, built CLI):rea analyze-javascript-application <root> --analysis-timeout-ms 1now assertsdetails.limit{setting: "javascript.analysis_timeout_ms", parameter: "analysis_timeout_ms", cli_flag: "--analysis-timeout-ms"}and that the remediation no longer names the flag.cliControlFlag.test.ts: a setting limit with a parameter gains the flag; a bare{parameter}object still does not.webDeadlineControls.test.ts,WebBundleAnalysisWorker.test.ts: the web bundle heap limit for V8 and Windows commit exhaustion, none for a Bun allocation exit, and no--in remediation.javascriptAnalysisResourceControls.test.ts: heap remediation names no flag.details.limit={setting: "javascript.analysis_timeout_ms", effective_value: 1, unit: "ms", ..., update_mode: "parameter", parameter: "analysis_timeout_ms", cli_flag: "--analysis-timeout-ms"}; MCP the same withoutcli_flag.Validation performed
npm run test:focused --javascriptAnalysisLimits(acceptance),cliControlFlag,projectCliAnalysisResult,webBundleContainmentCli,webDeadlineControls,WebBundleAnalysisWorker,javascriptAnalysisResourceControls— all passed.node scripts/verify/architecture-guards.mjs --shrink-baselinesandnpm run check:fast— passed.Compatibility, safety, and release
cli_flag/details.limit; remediation prose changes).Author readiness
Human owner:
Before merge
type(scope): outcome.