Skip to content

fix(algorithms): suggest the near-miss card for an unknown name - #875

Merged
Birfy merged 1 commit into
mainfrom
fix/874-algorithm-did-you-mean
Nov 7, 2026
Merged

Birfy merged 1 commit into
mainfrom
fix/874-algorithm-did-you-mean

Conversation

@Birfy

@Birfy Birfy commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Closes #874

An unknown algorithm name that is a close typo of exactly one registered card (difflib, cutoff 0.75 on the case/hyphen-folded name) now ends with ; did you mean 'gepa'?. Unrelated names (nope) get no guess; the examples-only port tip (#801) is unchanged and takes precedence. The message prefix is unchanged, so existing matches on unknown algorithm 'x'; available: [...] still hold.

Covers algorithms show / run, spec algorithm fields and MCP, since they all go through algorithms.get.

Tests: new parametrised cases in tests/test_algorithms.py; algorithm/run/demo/MCP/tournament suites pass locally.

@Birfy

Birfy commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

Review at 8d508f3d53f70afb57726277059db5b49ea77f18

Verdict: PASS

risk_gate: T2 (23 lines / 3 files).

@Birfy
Birfy enabled auto-merge (squash) November 7, 2026 22:04
@Birfy
Birfy merged commit 3f9e997 into main Nov 7, 2026
9 checks passed
@Birfy
Birfy deleted the fix/874-algorithm-did-you-mean branch November 7, 2026 22:25
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.

algorithms: unknown-name error does not suggest the near-miss card (gepaa → gepa)

1 participant