Repository navigation
fix(mcp): plan probe refusal next names tools, not CLI verbs - #1310
Merged
Merged
Conversation
When plan(..., probe=true) is refused for a provider-config or generic error, next (and the failed row's next) now names doctor and plan with probe=true instead of the shared CLI repair. Subscription and quota refusals stay shared. The CLI plan --probe next is unchanged. Closes #1309
Collaborator
Author
|
Review (Birfy) Tip SHA: 8c37208
|
Birfy
enabled auto-merge (squash)
November 28, 2026 22:25
This was referenced Nov 29, 2026
Birfy
added a commit
that referenced
this pull request
Nov 29, 2026
Closes #1311 Base: c5de234 Tip SHA: 788ca42 ## What changed On tip `c5de2343` (after #1310), MCP `demo` / `plan` / `algorithm_spec` already rewrite host-facing `next` into Path A tool language. MCP `diagnose` still returned the shared `diagnose_payload` recommendations untouched, so a host was told to run CLI verbs it may not have, including `agentdescent watch` though Path A has no `watch` tool. A solved MCP `diagnose` now returns: ``` review the diff: call show with this run_id preview the write: call apply with this run_id and dry_run=true, then call apply without dry_run ``` A still-running run is followed with `status`, then `diagnose` when it ends. Cancelled / run-failed / reflector-error / partial-improvement / unknown / scoring-mismatch recommendations name the matching Path A tools (`resume`, `show`, `doctor`, `plan`). Verdict, summary, and evidence stay the same. The CLI `diagnose` / `diagnose --json` recommendations are unchanged. The `diagnose` tool description mentions this tool-language `recommendations`. `changelog.d/1311-mcp-diagnose-recommendations.md`. ## Verification Tip SHA: 788ca42 Ran: - `pytest -q -o addopts='' tests/test_mcp_diagnose.py tests/test_diagnose.py tests/test_mcp.py` → 76 passed - `python -m tools.changelog_fragments check` → 61 changelog fragment(s) OK - `python -m tools.gen_api_docs --check` → docs/api.md is up to date Not run: - Full offline suite locally — the CI test matrix is the line
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.
Closes #1309
Base: 8062018
Tip SHA: 8c37208
What changed
On tip
8062018, MCPplanalready rewrites a successfulprobe=truenextinto a cappedstart(#1303), and a no-probe success already namesplan(..., probe=true)then that start (#1296). A refused probe still returned the shared CLI repair sentence untouched:The same leftover was on each failed
probe.rows[].next. A host that followedalgorithm_specor a no-probeplannextwould callplan(..., probe=true); when that refused for a config or generic error, it was told to run CLI verbs it may not have.A ProviderConfigError refusal on MCP
plan(..., probe=true)now returns:A generic probe refusal now returns:
The failed row's
nextis rewritten the same way. Subscription and quota refusals stay on the shared tool-neutral sentences.ok: false/ready: falsestay the same contract on both surfaces (#1175). No model name is guessed. The tool still does not start a run. The CLIplan --probenext is unchanged. Theplantool description mentions this tool-language refusalnext.changelog.d/1309-mcp-plan-probe-failed-next.md.Verification
Tip SHA: 8c37208
Ran:
pytest -q -o addopts='' tests/test_mcp_plan_probe.py tests/test_plan_probe.py tests/test_mcp.py tests/test_mcp_algorithm_spec.py tests/test_first_run_caps.py→ 105 passedpython -m tools.changelog_fragments check→ 60 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: