fix(chapter-23): enforce monthly message credits before LLM calls

↗ view on GitHub · Amal · 2026-05-24 · 41ede550

Chapter: 23 - Server-side quota enforcement.

Plain-English map:
Check a user's monthly message credits before making chat LLM calls.

Why it matters:
A UI counter alone does not enforce anything. The backend must stop expensive
provider calls when a user has reached the configured limit.

Principle:
Billing and quota rules must be enforced server-side.

Precedent borrowed:
Upstream PR #157.

Upstream base: willchen96/mike@d39f580.
Original local commit: fa433e1.
Repository amal66/mike
Author Amal <mamalanand3@gmail.com>
Authored
Parents 5762ee71
Stats 4 files changed , +143 , -4
Part of Server-side message-credit quota enforcement

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-41ede550.md from inside the repo you want the change in.

⬇ Download capture-commit-41ede550.md