Repository navigation
fix(cli): init then: names plan --probe, or the placeholder repair - #1297
Merged
Merged
Conversation
Collaborator
Author
|
Review (Birfy) Tip SHA: a7dc87a
|
Birfy
enabled auto-merge (squash)
November 27, 2026 04:43
Birfy
added a commit
that referenced
this pull request
Nov 27, 2026
…art (#1298) Closes #1296 Base: 224e552 Tip SHA: ae85e51 ## What changed On tip `224e5521`, #1294 / #1297 and earlier first-run work already named `plan --probe` then a capped `evolve` on the CLI (`algorithms run`, a successful `plan`, `init`, the demo footers, and the host skills). MCP `algorithm_spec` — documented as the same verb as `algorithms run` — still ended a successful call with: ``` next: show the user this estimate; after their yes, call start with `spec` ``` A host that follows the tool's own `next`, rather than the skill / slash-command prose, would start the run unprobed and uncapped. A related gap on the same Path A surface: MCP `plan(spec)` with the default `probe=false` returned `ok: true` and no `next` field at all, while the CLI counterpart already names `plan --probe`, then `evolve --max-calls N`. A successful `algorithm_spec` now returns a `next` that names `plan(spec, probe=true)` and `start` with `max_calls` from `estimate.agent_calls_upper_bound` (or `<N>` when no bound is known). A successful MCP `plan` without `probe` returns a `next` in the same shape. The plan tool description mentions this `next`. No model name is guessed. `algorithm_spec` still does not probe itself. `changelog.d/1296-mcp-algorithm-spec-next.md`. No change to the probe-refusal contract (`ok: false`, `ready: false`, repair `next`). CLI `algorithms run --json` is unchanged. ## Verification Tip SHA: ae85e51 Ran: - `pytest -q -o addopts='' tests/test_mcp_algorithm_spec.py tests/test_mcp_plan_probe.py tests/test_mcp_algorithm_spec_default_out.py tests/test_mcp_algorithm_spec_target_dir.py tests/test_first_run_caps.py tests/test_mcp.py` → 95 passed - `pytest -q -o addopts='' tests/test_mcp_call_limit.py tests/test_connection_kwargs.py tests/test_cli_algorithms_run.py` → 81 passed (together with the algorithm_spec file already counted above) - `python -m tools.changelog_fragments check` → 54 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 #1295
Base: 23b1b1e
Tip SHA: a7dc87a
What changed
On tip
23b1b1eb, #1294 and earlier first-run work already namedplan <spec> --probeonalgorithms run, a successfulplan, the demo footers, and the README / start / plugin-quickstart blocks. A successfulinit— the command those footers tell a new user to run — still ended with the short follow-up:--jsonnextwas the same short line. Following it skipped the preflight every other first-run surface has been teaching since #1218 / #1232. When--model/--base-urlwere omitted,initexited 0, warned thatplanwould refuse the placeholders, and then immediately recommended that failingplan.write_starter_specnow appendsthen: agentdescent plan <spec> --probewhen 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-casesnext:lines are unchanged. No model name is guessed.initstill 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 passedpytest -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 passedpython -m tools.changelog_fragments check→ 53 changelog fragment(s) OKpython -m tools.gen_api_docs --check→ docs/api.md is up to dateNot run: