Skip to content

fix(mcp): kind refusals name Path A fields, not CLI --kind - #1324

Merged
Birfy merged 1 commit into
mainfrom
fix/1323-mcp-kind-flag-wording
Nov 30, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1323-mcp-kind-flag-wording

Conversation

@Birfy

@Birfy Birfy commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Closes #1323

Base: 8d47530
Tip SHA: de577dc

What changed

On tip 8d47530e (after #1322), MCP describe_algorithm / algorithm_spec unknown-name and kind-mismatch refusals already name Path A tools, and _mcp_gate_wording already rewrites pass --kind.

The leftover a host actually reads is a kind refusal that still named CLI flags: plan / start / algorithm_spec on a kind=text directory said use --kind skill_dir / …; algorithm_spec(..., kind="nope") said --kind must be; and demo kind / unknown-card refusals still said demo --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 / demo kind and unknown-demo-card refusals now name Path A fields (kind, algorithm) and list_algorithms. The CLI plan / algorithms run / demo wording 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 passed
  • python -m tools.changelog_fragments check → 67 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

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
@Birfy

Birfy commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Self-review (Birfy)

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 → pass (131 passed)
  • python -m tools.changelog_fragments check → pass (67 changelog fragment(s) OK)
  • python -m tools.gen_api_docs --check → pass (docs/api.md is up to date)
    Not run:
  • Full offline suite locally — the CI test matrix is the line
    Findings:
  • none
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 30, 2026 22:22
@github-actions github-actions Bot added the risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff label Nov 30, 2026
@Birfy
Birfy merged commit 500cdc9 into main Nov 30, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1323-mcp-kind-flag-wording branch November 30, 2026 22:54
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp: plan, start, algorithm_spec, and demo kind refusals still name CLI --kind / --algorithm

1 participant