Skip to content

fix(cli): algorithms run --probe success next is the capped evolve - #1302

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

Birfy merged 1 commit into
mainfrom
agent/1301-algorithms-run-probe-next

Conversation

@Birfy

@Birfy Birfy commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1301

Base: a52a247
Tip SHA: 57c18b4

What changed

On tip a52a2470, a successful plan --probe already names only the
capped evolve (#1217):

next: agentdescent evolve <spec> --max-calls N

algorithms run --probe runs that same preflight on the spec it just
wrote, but on success it left the flagless-run advice in place:

next: agentdescent plan <spec> --probe, then agentdescent evolve <spec> --max-calls N

--json next was the same string. Following it probed a second time.

After a successful --probe, both the human next: line and --json
next are now the capped evolve only, the same string plan --probe
already prints. A refused probe still exits 1 with ok: false /
ready: false, a repair next, and then: agentdescent plan <spec> --probe.
Flagless algorithms run still teaches plan --probe, then the cap.
No model name is guessed.

changelog.d/1301-algorithms-run-probe-next.md.

No change to the probe itself, or to flagless algorithms run / MCP
algorithm_spec next lines.

Verification

Tip SHA: 57c18b4

Ran:

  • pytest -q -o addopts='' tests/test_cli_algorithms_run.py tests/test_first_run_caps.py tests/test_plan_probe.py tests/test_mcp_algorithm_spec.py tests/test_cli_json_errors.py tests/test_cli_init_policy_slot.py → 113 passed
  • python -m tools.changelog_fragments check → 56 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

Closes #1301

When algorithms run --probe succeeds, next is now the capped evolve
only, the same advice plan --probe already prints, instead of asking
to probe again. A refused probe and a flagless algorithms run are
unchanged.

changelog.d/1301-algorithms-run-probe-next.md
@Birfy

Birfy commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: 57c18b4
Ran:

  • .github/scripts/risk_gate.py --repo ThinkFlowLab/agentdescent --pr 1302 → T2 (package CLI 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_plan_probe.py tests/test_mcp_algorithm_spec.py tests/test_cli_json_errors.py tests/test_cli_init_policy_slot.py at this tip → 113 passed
  • python -m tools.changelog_fragments check → 56 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 --probe succeeds, the human next: line and --json next now name only the capped evolve, the same advice plan --probe already prints, instead of asking to probe again. A refused probe still exits 1 with ok: false / ready: false and a repair next. Flagless algorithms run still teaches plan --probe, then the cap. No model name is guessed. The probe itself and MCP algorithm_spec next lines are unchanged.
    Verdict: PASS

@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 enabled auto-merge (squash) November 27, 2026 22:24
@Birfy
Birfy merged commit 521a879 into main Nov 27, 2026
12 checks passed
@Birfy
Birfy deleted the agent/1301-algorithms-run-probe-next branch November 27, 2026 22:45
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 --probe success next still says plan --probe, unlike plan --probe

1 participant