Repository navigation
fix(mcp): kind refusals name Path A fields, not CLI --kind - #1324
Merged
Merged
Conversation
Plan, start, and algorithm_spec text-directory refusals, plus algorithm_spec / demo invalid-kind and unknown-demo-card errors, now name `kind`, `algorithm`, and list_algorithms instead of CLI --kind / --algorithm / agentdescent algorithms list. The CLI plan / algorithms run / demo wording is unchanged. Closes #1323
Collaborator
Author
|
Self-review (Birfy) Tip SHA: de577dc
|
Birfy
enabled auto-merge (squash)
November 30, 2026 22:22
This was referenced Dec 1, 2026
Birfy
added a commit
that referenced
this pull request
Dec 1, 2026
Closes #1325 Base: 500cdc9 Tip SHA: 497d785 ## What changed On tip `500cdc9b83` (after #1324), MCP `algorithm_spec` already rewrites `error`, `warnings`, and `next` through `_mcp_gate_wording` for placeholders, kind flags, and `see \`agentdescent doctor\``. The leftover a host actually reads is the shared init reporter's worker-selection copy, which still named CLI `--agent` / `agentdescent doctor`. `algorithm_spec` now runs `_mcp_gate_wording` over `notes`, and `_mcp_gate_wording` rewrites the auto-picked-worker note and the no-worker-CLI warning into Path A fields (`agent`, `doctor`, re-call `algorithm_spec` with `agent`). The CLI `init` / `algorithms run` wording is unchanged. `changelog.d/1325-mcp-algorithm-spec-agent-wording.md`. ## Verification Tip SHA: 497d785 Ran: - `pytest -q -o addopts='' tests/test_mcp_algorithm_spec_agent_wording.py tests/test_mcp_algorithm_spec_placeholder_wording.py tests/test_mcp_kind_flag_wording.py tests/test_mcp_plan_start_wording.py tests/test_mcp_algorithm_error_wording.py tests/test_mcp_algorithm_spec.py tests/test_init_default_agent.py tests/test_mcp.py tests/test_missing_cli_kind_remedy.py` → 99 passed - `python -m tools.changelog_fragments check` → 68 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 #1323
Base: 8d47530
Tip SHA: de577dc
What changed
On tip
8d47530e(after #1322), MCPdescribe_algorithm/algorithm_specunknown-name and kind-mismatch refusals already name Path A tools, and_mcp_gate_wordingalready rewritespass --kind.The leftover a host actually reads is a kind refusal that still named CLI flags:
plan/start/algorithm_specon akind=textdirectory saiduse --kind skill_dir / …;algorithm_spec(..., kind="nope")said--kind must be; anddemokind / unknown-card refusals still saiddemo --kind/demo --algorithm/see \agentdescent algorithms list`.planalso returned a rawSpecError`, so the text-directory message never went through the rewriter.MCP
plan/start/algorithm_spec/demokind and unknown-demo-card refusals now name Path A fields (kind,algorithm) andlist_algorithms. The CLIplan/algorithms run/demowording is unchanged.changelog.d/1323-mcp-kind-flag-wording.md.Verification
Tip SHA: de577dc
Ran:
pytest -q -o addopts='' tests/test_mcp_kind_flag_wording.py tests/test_mcp_plan_start_wording.py tests/test_mcp_algorithm_error_wording.py tests/test_mcp.py tests/test_mcp_algorithm_spec.py tests/test_mcp_algorithm_spec_placeholder_wording.py tests/test_mcp_describe_run.py tests/test_missing_cli_kind_remedy.py tests/test_resume_quota_exhausted.py tests/test_demo.py→ 131 passedpython -m tools.changelog_fragments check→ 67 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: