Repository navigation
feat(errors): name a deadline's parameter or environment control in details.limit - #11172
Merged
Merged
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. |
Contributor
[Medium impact] The reviewed changes appear safe to merge. SummaryAdds structured parameter and environment controls to deadline errors through
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
P[Native deadline owner] --> C[Parameter limit]
S[Ownership-helper compiler] --> E[Environment limit]
C --> A[AnalysisTimeoutError]
E --> A
A --> L{Caller lifetime}
L -->|Continuing| K[Keep application point]
L -->|One-shot| I[Environment becomes next_invocation]
K --> D[details.limit]
I --> D
Reviews (1) · Last reviewed commit: "feat(errors): name a deadline's paramete..." · Reviewed by Greptile |
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #10508 (Phase 6.1). Deadlines whose control is a per-call parameter or a launch environment variable now name that control in
details.limit, so agents and tests read it from a field instead of the remediation sentence.Problem and expected behavior
details.limitcould only name a registered analysis setting. The macOS native command (native_command_timeout_ms), native UI (native_ui_deadline_ms), pwntools (pwntools_timeout_ms) and swiftc ownership-helper compile (REA_SWIFTC_COMPILE_TIMEOUT_MS) deadlines have no registered setting, so their control existed only in prose and tests matched it by substring.Change and scope
AnalysisLimit = AnalysisSettingLimit | AnalysisControlLimit. The new arm hascontrol_kind: "parameter"(parameter,cli_flag,applies_at: "next_call") orcontrol_kind: "environment"(environment,applies_at: "next_startup", re-scoped to"next_invocation"for a one-shot caller).nativeDeadlineRecoveryreturns the limit with its text, so all three per-call native deadlines bind it from one place; the swiftc compile timeout binds the environment limit.adjustable_budgetrefusals still come only from registered-setting limits.AnalysisTimeoutErrorsites without a limit (most have no caller-adjustable control).docs/design/limits-and-recovery.md.Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the readiness and merge checklists
unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
AnalysisLimit(src/domain/analysisSettings.ts) is the shareddetails.limitowner;nativeDeadlineRecovery(domain/native/nativeDeadlines.ts) now returns the parameter limit with its recovery text, andDarwinProcessOwnershipInspectionError.compileTimeoutreturns the environment limit.invocationLimit(analysisSettingDefinitions.ts) re-scopes both kinds for one-shot callers and replaces the setting-onlyinvocationSettingLimitexportdetails.limitnow present on these deadline errors; no schema or catalog change (error details are untyped JSON)update_analysis_settingsgains no settingsdocs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): noneExpected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
NativeCommandAnalysisError.test.ts(swiftc compile deadline: environment limit, plusnext_invocationfor an invocation caller; native command deadline: parameter limit, replacing remediation substring checks),PwntoolsFailures.test.ts,NativeUiObservation.test.ts(parameter limit instead of message/remediation substrings),tests/boundary/process/darwinProcessRunTokenReader.test.ts(compileTimeout.limitinstead of five message matches; compiler diagnostics stay asserted)details.limit: {"control_kind":"parameter","parameter":"native_command_timeout_ms","cli_flag":"--native-command-timeout-ms","effective_value":60000,"unit":"ms","minimum":1,"maximum":2147483647,"default_value":60000,"applies_at":"next_call"}; remediation text is unchangedFor boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
For evidence-bearing changes:
Validation performed
npm run test:focused -- src/native/NativeCommandAnalysisError.test.ts src/native/pwntools/PwntoolsFailures.test.ts src/native/NativeUiObservation.test.ts tests/boundary/process/darwinProcessRunTokenReader.test.ts: 99 passed (base: 99). Warm wall / CPU (user+sys): before 18.4 / 9.3 s, after 20.1 / 9.1 s (includes focused-build prerequisite checks; no test-count change).npm run typecheck,npm run check:fast: passed.npm run docs:check: passed.command— resultCompatibility, safety, and release
details.limitwithcontrol_kindhas nosetting,agent_editable,scope,update_modeorpending_restart; existing setting limits are unchanged and have nocontrol_kind. TypeScript consumers ofAnalysisError.limitnarrow with"control_kind" in limitAuthor readiness
Human owner:
Before merge
type(scope): outcome.