Skip to content

fix(cli): drop the unwritten evolve spec from demo --algorithm next - #1151

Merged
Birfy merged 1 commit into
mainfrom
fix/1145-demo-algorithm-next-evolve
Nov 17, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/1145-demo-algorithm-next-evolve

Conversation

@Birfy

@Birfy Birfy commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

demo --algorithm NAME (and the MCP demo tool / --json next) ended with agentdescent evolve agentdescent.NAME.spec.json. That file does not exist until the user later runs algorithms run, which writes it into the cwd at that time. Following the suggested command therefore exits 2.

This removes that evolve step from the shared own_steps list (human footer, --json next, and MCP demo). The footer still points at algorithms run NAME … --rounds 1 --workers 1, which plans and then prints evolve with the absolute path it just wrote. demo without --algorithm is unchanged (init → doctor → plan).

Closes #1145.

Tests

  • tests/test_demo.py: test_demo_algorithm_next_steps_keep_the_algorithm now asserts the unwritten evolve path is absent from the human footer and --json next, while algorithms run NAME remains. The evoskill human and JSON rows pin the same.
  • tests/test_mcp.py: MCP demo(algorithm="gepa") and demo(algorithm="evoskill") assert the same next shape.

Checklist

  • Changelog fragment changelog.d/1145-demo-algorithm-next-evolve.md
  • No new dependencies
  • No Cursor Cloud Coding Sessions

demo --algorithm NAME ended with evolve agentdescent.NAME.spec.json, but
that file is only written later by algorithms run. Following the footer,
--json next, or MCP demo next therefore exited 2. Keep algorithms run as
the real-data step; it already prints evolve with the absolute path.

Closes #1145.
@Birfy

Birfy commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

Review (Birfy)

Tip SHA: c6a6e3c
Ran:

  • .github/scripts/risk_gate.py --pr 1151 → T2 (20 lines / 4 files)
  • pytest -q tests/test_demo.py tests/test_mcp.py tests/test_changelog_fragments.py → passed
  • python -m tools.changelog_fragments check → 70 changelog fragment(s) OK
    Not run:
  • Full offline suite locally — the CI test matrix is the line
  • Ark real-model run — no model path changed
    Findings:
  • none.
    Verdict: PASS

@Birfy
Birfy enabled auto-merge (squash) November 17, 2026 16:28
@Birfy
Birfy merged commit 6e68cc2 into main Nov 17, 2026
10 checks passed
@Birfy
Birfy deleted the fix/1145-demo-algorithm-next-evolve branch November 17, 2026 16:48
HugoXK added a commit that referenced this pull request Nov 18, 2026
Forward-merge after #1138/#1140/#1139/#1147/#1148/#1151/#1152 landed.
#1148 rewrites agentdescent/pilot.py, the file this branch patches; the
auto-merge keeps both the per-seed _next_actions branch and the
notes/strategy card addition, and the focused set is green at the
merge tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

demo / MCP: --algorithm next points at evolve agentdescent.<name>.spec.json, which does not exist

1 participant