You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(cli): write the registered algorithm name from init --algorithm aliases - #895
init --algorithm GEPA / archive-selection passed validation through the folding registry lookup but algorithm_override returned the typed alias, so the spec carried "GEPA" / "archive-selection". It now returns alg.name, matching algorithms list and algorithms run (#696).
agentdescent/cli.py: algorithm_override returns the registered name (bare and {name, params} forms).
tests/test_algorithms.py: alias cases for text (bare and with --param) and skill_dir.
Verdict: PASS
Tip SHA: e31f944
Ran: pytest -q tests/test_algorithms.py tests/test_cli_*.py tests/test_mcp_algorithm_spec.py at the tip → passed. risk_gate.py from main → T2 (32 changed lines / 3 files).
Not run: full suite (CI covers 3.9–3.13).
Correctness.algorithm_override already resolves the name through algorithms.get (case and -/_ folding, #696) but returned the typed alias; returning alg.name makes init --algorithm GEPA / archive-selection write gepa / archive_selection, in both the bare and {name, params} forms. The other caller, plan/evolve --algorithm (_apply_algorithm_flag), only overrides the in-memory spec, so a canonical name there is strictly better; unknown names still raise before this line.
Tests / docs. New test_init_writes_the_registered_name_for_an_alias covers text bare, text with --param, and skill_dir; changelog fragment 894-init-algorithm-canonical-name.md.
Risk. T2 (CLI only). AGENT_PAUSE=false; will squash-merge when required CI is green.
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
risk:T2Risk tier T2 (package code or an unnamed path), set by the controller from the diff
1 participant
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 #894
init --algorithm GEPA/archive-selectionpassed validation through the folding registry lookup butalgorithm_overridereturned the typed alias, so the spec carried"GEPA"/"archive-selection". It now returnsalg.name, matchingalgorithms listandalgorithms run(#696).agentdescent/cli.py:algorithm_overridereturns the registered name (bare and{name, params}forms).tests/test_algorithms.py: alias cases for text (bare and with--param) and skill_dir.changelog.d/894-init-algorithm-canonical-name.md.Tests:
pytest tests/test_algorithms.py tests/test_cli_*.py tests/test_mcp_algorithm_spec.pypass locally.