Skip to content

fix(mcp): algorithm_spec worker notes name agent, not --agent - #1326

Merged
Birfy merged 1 commit into
mainfrom
fix/1325-mcp-algorithm-spec-agent-wording
Dec 1, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1325-mcp-algorithm-spec-agent-wording

Conversation

@Birfy

@Birfy Birfy commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

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

algorithm_spec auto-picked-worker notes and no-worker-CLI warnings
now name Path A fields (re-call algorithm_spec with agent, doctor)
instead of CLI --agent / agentdescent doctor.

The CLI init / algorithms run wording is unchanged.

Closes #1325
@Birfy

Birfy commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Self-review (Birfy)

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 → pass (99 passed)
  • python -m tools.changelog_fragments check → pass (68 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) December 1, 2026 04:21
@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 Dec 1, 2026
@Birfy
Birfy merged commit 32a92cd into main Dec 1, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1325-mcp-algorithm-spec-agent-wording branch December 1, 2026 04:47
Birfy added a commit that referenced this pull request Dec 1, 2026
Closes #1327

Base: 32a92cd
Tip SHA: 1c0c80f

## What changed

On tip `32a92cd698` (after #1326), MCP `show` / `status` / `diagnose` /
`apply` / `cancel` / `resume` already rewrite many shared CLI hints into
Path A tools. The leftover a host actually reads is the shared
`resolve_run_id` empty-store refusal, which still named CLI
`agentdescent demo` / `agentdescent evolve`.

MCP empty-store `latest` / `last` refusals now name Path A tools
(`demo`, and `start` with a spec). `status` / `diagnose` / `cancel`
error paths run the rewrite; `_mcp_apply_wording` and
`_mcp_gate_wording` also apply it so `show` / `apply` / `resume` are
covered. The CLI wording is unchanged.

`changelog.d/1327-mcp-empty-store-latest-wording.md`.

## Verification

Tip SHA: 1c0c80f

Ran:
- `pytest -q -o addopts='' tests/test_latest_run_alias.py
tests/test_mcp_apply_wording.py tests/test_mcp_diagnose.py
tests/test_mcp_plan_start_wording.py tests/test_mcp.py
tests/test_mcp_resume_ticket_label.py` → 77 passed
- `python -m tools.changelog_fragments check` → 69 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: algorithm_spec worker-selection notes/warnings still name CLI --agent / agentdescent doctor

1 participant