Repository navigation
fix(mcp): plan and start refusals name doctor, not CLI - #1318
Merged
Merged
Conversation
When MCP plan, start, resume, or algorithm_spec returns a refusal, error now names Path A tools and fields (doctor, algorithm_spec with model and base_url, force=true), instead of CLI verbs or flags (see `agentdescent doctor`, pass --force). The CLI wording is unchanged. Closes #1317
Collaborator
Author
|
Self-review (Birfy) Tip SHA: e990f52
|
Birfy
enabled auto-merge (squash)
November 29, 2026 22:31
This was referenced Nov 30, 2026
Birfy
added a commit
that referenced
this pull request
Nov 30, 2026
) Closes #1319 Base: fb519a6 Tip SHA: ff534ed ## What changed On tip `fb519a67` (after #1318), MCP `describe_algorithm` / `list_algorithms` already name `algorithm_spec` with `model` and `base_url`, and a successful `algorithm_spec` (those fields passed) already points `next` at `plan(..., probe=true)` and a capped `start`. #1317 rewrites one different shared error phrase into tool language. The leftover a host actually reads is the placeholder refusal from `algorithm_spec` itself, when `model` / `base_url` were omitted. That path still spoke CLI, and its `next` told the host to hand-edit the written spec and then `plan`. MCP `algorithm_spec` placeholder refusals in `warnings`, `error`, and `next` now name Path A fields: re-call `algorithm_spec` with `model` and `base_url` (never guess those), and do not start. They no longer contain `--model` / `--base-url`, or attribute the placeholders to `init`. The CLI `algorithms run` / `init` wording is unchanged. The `algorithm_spec` tool description mentions this wording. `changelog.d/1319-mcp-algorithm-spec-placeholder-wording.md`. ## Verification Tip SHA: ff534ed Ran: - `pytest -q -o addopts='' tests/test_mcp_algorithm_spec_placeholder_wording.py tests/test_mcp_plan_start_wording.py tests/test_mcp_algorithm_spec.py tests/test_mcp.py tests/test_missing_cli_kind_remedy.py tests/test_resume_quota_exhausted.py` → 74 passed - `python -m tools.changelog_fragments check` → 65 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 #1317
Base: ca769cf
Tip SHA: e990f52
What changed
On tip
ca769cfb(after #1316), MCPdemo/plan(nextafter a probe) /algorithm_spec/diagnose/describe_algorithm/apply/showalready rewrite host-facingnext,recommendations, cardrun, and apply/show refusals into Path A tool language. MCPplan,start,resume, andalgorithm_specstill returned the shared CLI wording inerrorwhen a worker CLI is missing or a spent-quota resume is refused, so a host was told a CLI verb or flag it may not have.A missing-CLI MCP
planorstart(andalgorithm_specwhen the written spec then fails plan, andresumewhen a plugin host is missing) now sayscall \doctor`, notsee `agentdescent doctor`. MCPresumeof aQuotaExhaustedrun now sayspass force=true, notpass --force. A bare isolatedopencodeplus a gateway key now namesalgorithm_specwithmodelandbase_url, notinit/algorithms runwith--model/--base-url. A kind-guess refusal nameskind, not--kind`.The CLI
plan/evolve/resume/algorithms runwording is unchanged. Theplan,start, andresumetool descriptions mention this tool-language wording.changelog.d/1317-mcp-plan-start-wording.md.Verification
Tip SHA: e990f52
Ran:
pytest -q -o addopts='' tests/test_mcp_plan_start_wording.py tests/test_missing_cli_kind_remedy.py tests/test_resume_quota_exhausted.py tests/test_mcp_plan_probe.py tests/test_mcp.py→ 72 passedpython -m tools.changelog_fragments check→ 64 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: