Skip to content

fix(cli): algorithms run failed-plan next names plan --probe - #1300

Merged
Birfy merged 1 commit into
mainfrom
agent/1299-algorithms-run-retry-probe
Nov 27, 2026
Merged

Birfy merged 1 commit into
mainfrom
agent/1299-algorithms-run-retry-probe

Conversation

@Birfy

@Birfy Birfy commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

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

@github-actions github-actions Bot added risk:T2 Risk tier T2 (package code or an unnamed path), set by the controller from the diff agent-pr Pull request opened by an agent labels Nov 27, 2026
@Birfy

Birfy commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 560b5b3
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1300 → T2 (package CLI/MCP next-line plus tests and the changelog fragment)
  • 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 at this tip → 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 on this tip is the line
    Findings:
  • No actionable defects. When algorithms run writes a spec and plan refuses it, the human next: line and --json next now name plan <spec> --probe, the same preflight a successful run already teaches, instead of a bare plan. The retry still does not recommend evolve. MCP algorithm_spec keeps inheriting that payload next on the failed path. No model name is guessed. Pre-stage failures and the successful algorithms run / algorithm_spec next lines are unchanged.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 27, 2026 16:25
@Birfy
Birfy merged commit a52a247 into main Nov 27, 2026
12 checks passed
@Birfy
Birfy deleted the agent/1299-algorithms-run-retry-probe branch November 27, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-pr Pull request opened by an agent 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: algorithms run failed-plan next still says plan <spec>, omitting --probe

1 participant