Skip to content

fix(cli): default demo and bare plan name --probe and --max-calls (#1217) - #1218

Merged
Birfy merged 1 commit into
mainfrom
fix/1217-demo-plan-caps
Nov 22, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1217-demo-plan-caps

Conversation

@Birfy

@Birfy Birfy commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Closes #1217

What changed

#1212 already taught algorithms run and demo --algorithm to follow a successful first run with plan <spec> --probe, then evolve <spec> --max-calls N. The path a new user actually takes from the README (agentdescent demo, then "your own run") still ended at plan spec.json, and a successful bare plan printed next: agentdescent evolve <spec> with no cap (--json had no next key at all).

Verification at the tip

Tip SHA: aef8fbd
Ran:

  • pytest -q tests/test_first_run_caps.py tests/test_demo.py tests/test_plan_text_output.py tests/test_plan_probe.py tests/test_plan_headroom_shape.py tests/test_cli_algorithms_run.py tests/test_cli_json_errors.py tests/test_mcp_plan_probe.py → 156 passed, 0 failed
  • python -m tools.changelog_fragments check → 18 changelog fragment(s) OK
    Not run:
  • full pytest -q — targeted the first-run / plan / demo surfaces this change touches; the CI matrix is the line

)

The README demo path and a successful bare `plan` still recommended an
uncapped, un-probed evolve after #1212 closed that gap for
`algorithms run` / `demo --algorithm`. The default and
`--kind skill_library` footers now end with `plan --probe` and
`evolve --max-calls <N>`, and `plan` prints the same contract (capped
evolve only after a successful `--probe`), with `--json.next` matching
the human line.

Closes #1217
@Birfy

Birfy commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: aef8fbd
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1218 → T2 (184 lines / 7 files)
  • pytest -q tests/test_first_run_caps.py tests/test_demo.py tests/test_plan_text_output.py tests/test_plan_probe.py tests/test_plan_headroom_shape.py tests/test_cli_algorithms_run.py tests/test_cli_json_errors.py tests/test_mcp_plan_probe.py at this tip → 156 passed
  • python -m tools.changelog_fragments check → 18 changelog fragment(s) OK
  • Required CI at this tip → still running; --auto --squash armed
    Not run:
  • Full offline suite locally — the CI test matrix is the line
  • mkdocs build --strict — no docs page changes in this diff
    Findings:
  • No actionable defects. After docs(cli): name the probe and the per-call cap on the first-run surfaces #1212, the README demo path and a successful bare plan still recommended an uncapped, un-probed evolve. The default / --kind skill_library demo footers now name plan spec.json --probe and evolve spec.json --max-calls <N> (placeholder: no user estimate yet). Bare plan uses the same contract as algorithms_run_payload (plan --probe, then evolve --max-calls N, or the capped evolve only after a successful --probe), and --json.next matches the human line. A refused probe still prints the repair plus then: plan --probe. demo --algorithm / algorithms run next text is unchanged.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 22, 2026 04:30
@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 22, 2026
@Birfy
Birfy merged commit 6accc70 into main Nov 22, 2026
12 checks passed
@Birfy
Birfy deleted the fix/1217-demo-plan-caps branch November 22, 2026 04:53
Birfy added a commit that referenced this pull request Nov 23, 2026
…1229)

Closes #1228

Base: 29d49ce
Tip SHA: 7d28808

## What changed

#1212 / #1218 updated the first-run surfaces a CLI user follows
(`SKILL.md`, demo footers, `plan` / `algorithms run` `next:`) so they
name `plan --probe` and `evolve --max-calls N`. The slash-command files
a host actually follows on `/evolve` and `/algorithms run` still skipped
both, and the MCP `algorithm_spec` description still said to pass its
`spec` straight to `start`.

- `EVOLVE_COMMAND` and `ALGORITHMS_COMMAND` (the single source `install`
writes for Claude / Codex / OpenCode) now name the same preflight and
per-call cap as `SKILL.md`: `plan` with `--probe` / `probe=true`, no
`start` on a refused probe, and `max_calls` / `--max-calls` (plus
`max_usd` beside `usd_per_call` when a price is known) on the first real
`start` / `evolve`, starting at the plan's `agent_calls_upper_bound`.
- The `algorithm_spec` tool is unchanged (it still only builds and
plans). Its description now requires the follow-up `plan(spec,
probe=true)` and `start(..., max_calls=N)` instead of a bare `start`.
- Shared `SKILL.md`, demo footers, and CLI `next:` are untouched.

## Verification at the tip

Tip SHA: `7d28808843942be83b5e48dc070ef17de14a44a8`

Ran:
- new assertions against main `29d49ce4` command files and the
`algorithm_spec` description: no `probe` / `max_calls`, and the run
branch still said “then `evolve` after yes”
- `pytest -q -o addopts='' tests/test_first_run_caps.py
tests/test_slash_command_parity.py tests/test_mcp_algorithm_spec.py
tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package`
at the tip → 30 passed
  - `python -m tools.gen_api_docs --check` → docs/api.md is up to date
- `python -m tools.changelog_fragments check` → 24 changelog fragment(s)
OK

Not run:
  - Full offline suite locally — the CI test matrix is the line
  - `mkdocs build --strict` — no `docs/` page or `mkdocs.yml` change
Birfy added a commit that referenced this pull request Nov 23, 2026
#1233)

Closes #1232

Base: 761eb4c
Tip SHA: 5095228

## What changed

#1212 / #1218 / #1229 updated the first-run surfaces a CLI user or a
slash-command host follows so they name `plan --probe` and `evolve
--max-calls N`. The copy-paste command lists a new user or a no-MCP host
actually types were still the shorter uncapped form.

- README and `docs/start.md`: the `init ./my-skill` bash block now
includes `plan --probe` and `evolve --max-calls N --detach`.
- `docs/plugin-quickstart.md`: the same block already had `--probe`; the
`evolve` line now takes `--max-calls N` too (it was only in a later
habits paragraph).
- The host skill's `## Without MCP` cheatsheet names both flags. The
checked-in Claude `SKILL.md` and dsh plugin `CONTENT` were re-rendered
from that body and stay byte-identical with it.
- `grok_bot_host_md()` "Drive AgentDescent" now names `plan --probe` and
`evolve --max-calls N` after `algorithms run`, and no longer says to
`evolve` the written spec after yes with no cap.

Slash commands, demo footers, and CLI `next:` are untouched.

## Verification at the tip

Tip SHA: `509522826fde8b7c5f27da6775e4e6412970d98c`

Ran:
- new assertions against main `761eb4cb`: the four lists omitted
`--probe` and/or `--max-calls`, and HOST.md still said "evolve the
written spec after yes"
- `pytest -q -o addopts='' tests/test_first_run_caps.py
tests/test_slash_command_parity.py
tests/test_integrations.py::test_checked_in_claude_plugin_matches_the_package
tests/test_integrations.py::test_checked_in_dsh_plugin_matches_the_package
tests/test_changelog_fragments.py tests/test_grok_bot_user_skill.py` at
the tip → 81 passed
- `python -m tools.gen_api_docs --check` → docs/api.md is up to date
- `python -m tools.changelog_fragments check` → 25 changelog fragment(s)
OK

Not run:
  - Full offline suite locally — the CI test matrix is the line
- `mkdocs build --strict` — start.md / plugin-quickstart.md wording
only; no `mkdocs.yml` change
Birfy added a commit that referenced this pull request Nov 27, 2026
…1297)

Closes #1295

Base: 23b1b1e
Tip SHA: a7dc87a

## What changed

On tip `23b1b1eb`, #1294 and earlier first-run work already named `plan
<spec> --probe` on `algorithms run`, a successful `plan`, the demo
footers, and the README / start / plugin-quickstart blocks. A successful
`init` — the command those footers tell a new user to run — still ended
with the short follow-up:

```
then: agentdescent plan /path/spec.json
```

`--json` `next` was the same short line. Following it skipped the
preflight every other first-run surface has been teaching since #1218 /
#1232. When `--model` / `--base-url` were omitted, `init` exited 0,
warned that `plan` would refuse the placeholders, and then immediately
recommended that failing `plan`.

`write_starter_spec` now appends `then: agentdescent plan <spec>
--probe` when the written spec is plan-ready, and a repair line (`re-run
with --model / --base-url, or fill the placeholders in <spec>, then
agentdescent plan <spec> --probe`) when placeholders remain.
`policy_slot` / missing-cases `next:` lines are unchanged. No model name
is guessed. `init` still does not plan.

`changelog.d/1295-init-then-probe.md`.

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

## Verification

Tip SHA: a7dc87a

Ran:
- `pytest -q -o addopts='' tests/test_cli_init_policy_slot.py
tests/test_cli_json_errors.py tests/test_first_run_caps.py` → 59 passed
- `pytest -q -o addopts='' tests/test_init_default_agent.py
tests/test_init_key_aware_reflect.py
tests/test_init_doctor_opencode_ark.py
tests/test_guess_kind_skill_library.py tests/test_skill_library_kind.py
tests/test_cli_skill_library_seed.py tests/test_init_data_columns.py
tests/test_init_honor_agent.py` → 141 passed
- `python -m tools.changelog_fragments check` → 53 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
Birfy added a commit that referenced this pull request Nov 27, 2026
Closes #1299

Base: b5980f8
Tip SHA: 560b5b3

## What changed

On tip `b5980f8b`, a successful `algorithms run` already names `plan
<spec> --probe`, then a capped `evolve`. When the verb writes a spec and
`plan` refuses it (too few tasks, a missing cases path, leftover
placeholders), the retry was still the short line:

```
next: fix <spec>, then agentdescent plan <spec>
```

`--json` `next` was the same short command. Following it skipped the
preflight every other first-run surface has been teaching since #1218 /
#1232. MCP `algorithm_spec` uses the same payload and only rewrites
`next` on success, so a failed call returned that short CLI line too.

The failed-plan retry is now `agentdescent plan <spec> --probe` on both
the human `next:` line and `--json` `next`. The line still does not
recommend `evolve`. No model name is guessed. Pre-stage failures are
unchanged.

`changelog.d/1299-algorithms-run-retry-probe.md`.

No change to the plan-refusal behaviour itself, or to the successful
`algorithms run` / `algorithm_spec` next lines.

## Verification

Tip SHA: 560b5b3

Ran:
- `pytest -q -o addopts='' tests/test_cli_algorithms_run.py
tests/test_first_run_caps.py tests/test_mcp_algorithm_spec.py
tests/test_cli_json_errors.py tests/test_cli_init_policy_slot.py` → 95
passed
- `python -m tools.changelog_fragments check` → 55 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.

After #1212, the default demo footer and bare plan next: still omit --probe and --max-calls

1 participant