Skip to content

fix(cli): leftover algorithms run refusal recipes name --model and --base-url - #1292

Merged
Birfy merged 1 commit into
mainfrom
fix/1291-run-refusal-model-flags
Nov 26, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1291-run-refusal-model-flags

Conversation

@Birfy

@Birfy Birfy commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Closes #1291

Base: ffae7bc
Tip SHA: d30191c

What changed

On tip ffae7bcd, #1276 already named --model <model> [--base-url <url>] on first-run algorithms run recipes, including the plugin-quickstart refusal line. Two live CLI refusal recipes a user would copy were left behind:

  • demo --algorithm NAME (and MCP demo, which uses the same demo_payload) when NAME is registered but not an offline demo card now names those flags on the "run it for real" command.
  • kind_mismatch_message now names the same flags on the one-file retarget hint (algorithms run … --kind text and the init form).
  • Tests pin both recipes. The live-model path is exercised by shrinking OFFLINE_ALGORITHMS so a built-in card takes it.
  • changelog.d/1291-run-refusal-model-flags.md.

No change to the placeholder-refusal behaviour of init / algorithms run / plan. No model name is guessed.

Verification

Tip SHA: d30191c

Ran:

  • pytest -q -o addopts='' tests/test_demo.py tests/test_cli_algorithms_run.py tests/test_mcp.py tests/test_first_run_caps.py → 124 passed, 6 skipped
  • python -m tools.changelog_fragments check → 51 changelog fragment(s) OK
    Not run:
  • Full offline suite locally — the CI test matrix is the line

…base-url

The demo --algorithm live-model refusal and the kind-mismatch one-file
hint now name --model and --base-url, so a copied command can plan
instead of exiting on placeholders. Closes #1291.
@Birfy Birfy added bug Something isn't working area:cli The agentdescent command line (cli.py, doctor, plan/evolve/status/apply) labels Nov 26, 2026
@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 26, 2026
@Birfy

Birfy commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: d30191c
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1292 → T2 (package CLI and algorithm error text, plus tests and the changelog fragment)
  • pytest -q -o addopts='' tests/test_demo.py tests/test_cli_algorithms_run.py tests/test_mcp.py tests/test_first_run_caps.py at this tip → 124 passed, 6 skipped
  • python -m tools.changelog_fragments check → 51 changelog fragment(s) OK
    Not run:
  • Full offline suite locally — the CI test matrix on this tip is the line
    Findings:
  • No actionable defects. The leftover demo --algorithm live-model refusal and the kind-mismatch one-file hint now name --model and --base-url in the same shape fix(plugins): first-run algorithms run recipes name --model and --base-url #1276 already put on first-run algorithms run recipes. A bare algorithms run without those flags still refuses placeholders. No model name is guessed.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 26, 2026 16:37
@Birfy
Birfy merged commit d7dccf5 into main Nov 26, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1291-run-refusal-model-flags branch November 26, 2026 16:59
Birfy added a commit that referenced this pull request Nov 26, 2026
…l and --base-url (#1294)

Closes #1293

Base: d7dccf5
Tip SHA: eeb4342

## What changed

On tip `d7dccf5`, #1292 already named `--model <model> [--base-url
<url>]` on leftover `algorithms run` refusal and kind-mismatch hints.
The card a user or host looks at *before* running a method still did
not:

- `algorithms show NAME` (and `--json`) printed summary, kinds, params
and docs, but no copyable `algorithms run` line.
- MCP `describe_algorithm` (and `list_algorithms`, which already uses
`describe()`) returned the same object, so a host that listed a card
still had to invent the Path A verb and the flags `plan` requires.

`Algorithm.describe()` now carries `run`, in the same recipe shape #1276
/ #1292 already use, with a kind-aware target placeholder
(`<your-prompt.txt>` for text-only cards, `<your-skill-library>` for a
skill-library-only card, `<your-skill-dir>` when every kind is a
directory, `<path>` when kinds mix text and directories).
`_algorithm_card_text` prints it as a `run:` line. The
`describe_algorithm` tool description names the field. No model name is
guessed.

`changelog.d/1293-show-run-recipe.md`.

No change to the placeholder-refusal behaviour of `init` / `algorithms
run` / `plan`.

## Verification

Tip SHA: eeb4342

Ran:
- `pytest -q -o addopts='' tests/test_algorithms.py tests/test_mcp.py
tests/test_cli_algorithms_run.py tests/test_first_run_caps.py
tests/test_demo.py` → 128 passed, 6 skipped
- `python -m tools.changelog_fragments check` → 52 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

area:cli The agentdescent command line (cli.py, doctor, plan/evolve/status/apply) bug Something isn't working 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.

cli: leftover algorithms run refusal recipes still omit --model / --base-url that plan requires

1 participant