test(chapter-36): cover model routing and safe fallbacks

↗ view on GitHub · Amal · 2026-05-24 · d2406f43

Chapter: 36 - Provider contract tests.

Plain-English map:
Add tests that verify known model IDs route to the right provider and unknown
model preferences fall back safely.

Why it matters:
Provider routing mistakes are hard for users to diagnose. They show up only
when a chat request hits the wrong external API or an unknown model string.

Principle:
Provider abstraction needs tests that define its contract.

Precedent borrowed:
The fork report's alternative-provider cluster.

Upstream base: willchen96/mike@d39f580.
Original local commit: a706a79.
Repository amal66/mike
Author Amal <mamalanand3@gmail.com>
Authored
Parents 1f77a3fe
Stats 1 file changed , +76
Part of Regression test suite (unit + HTTP integration)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-d2406f43.md from inside the repo you want the change in.

⬇ Download capture-commit-d2406f43.md