Repository navigation
fix(process): give process-command failures their own recovery instead of doctor - #11101
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
[Low impact] The PR appears safe to merge; no blocking issues remain. SummaryGives unexpected process-command failures recovery advice that does not send users to
Reviews (3) · Last reviewed commit: "test(process): check the delivered proce..." · Reviewed by Greptile |
Merged
11 tasks
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
An unexpected process-command failure (
capture_process_scenario,compare_process_captures) told the agent to have the user "check the input files, then runrea doctor". Doctor does not check process commands, so that step cannot help. This follows the doctor-scope rule from #10565: name doctor only where it can check the failing part. The recovery now says what to do instead: tell the user the reported reason, check the scenario or capture files it read, and report the failure with its diagnostics if those files are valid.Problem and expected behavior
PROCESS_UNEXPECTED_FAILURE_REMEDIATIONinsrc/application/process/ProcessCli.tsended with "then runrea doctor". Expected: no doctor advice for a scope doctor cannot inspect, and a concrete next step instead.Change and scope
ProcessCli.ts: the remediation names the reported reason, the scenario or capture files, and reporting the failure. It still says not to repeat the command, and it still never asks for a retry.docs/user-visible-errors.csv(hand-written onmain; its process row is asserted by the test) anddocs/design/limits-and-recovery.mdare updated to match.rea doctoradvice insrc/(MCP startup insrc/main/messages.ts, provider selection inproviderSelectionError.ts, invalid configuration and Hopper diagnostics inanalysisErrorPresentation.ts) points at something doctor does check, so those are unchanged.Contract and boundary impact
execution_failure), non-retryable; onlyremediation.actiontext changes.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
tests/boundary/filesystem/processCliFileInput.test.tsnow also requires the projected action not to mention doctor, for both operations.ProcessCli.tsand CSV restored, the 2 "projects an unexpected ... failure canonically" tests fail on the new assertion.remediation.action= "Do not repeat this command. Tell the user the process command could not complete, give them the reported reason, and ask them to check the scenario or capture files it read. If those files are valid, report the failure with its diagnostics."Validation performed
npm run test:focused -- tests/boundary/filesystem/processCliFileInput.test.ts: 39 passed; with the old code restored, 2 failed.npx oxfmt --checkon the changed files: passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.