fix(I2): exempt /clio-matters from the IP-keyed general limiter
The per-user bucket inside the /clio-matters router was decorative: the app-level generalLimiter still ran in front of it, keyed by IP, at a shared 300 requests per 15 minutes. The pilot firm NATs its whole office through one address, so that IP bucket - not the per-user one - was the binding constraint the moment two solicitors browsed matters, and exhausting it would degrade every other route for their colleagues. Exemption is a skip on the prefix (kept where generalLimiter is mounted, so the JSON body parser and everything after it still apply - mount-order would have skipped those too). Exact-segment match, not a bare startsWith, so a future `/clio-matters-anything` cannot inherit the exemption. Corrects the rationale comments, which claimed matters browsing could exhaust the "shared research allowance" and take /companies and /legislation down: /clio-matters was never on researchLimiter - it was on generalLimiter, so the stated mechanism was wrong even before this change. Fixed in routes/clioMatters.ts, index.ts, .env.example and the CLAUDE.md registry row. index.ts retains its pre-existing prettier deviation at makeLimiter (the file was not prettier-clean at baseline); only the hunks added here are normalised. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| Repository | Sloth-ninja/JessicaOSS |
|---|---|
| Author | sloth-ninja <ezanahaddis@gmail.com> |
| Authored | |
| Parents | 6b52469b |
| Stats | 4 files changed , +36 , -13 |
| Part of | Practice Management: Clio-backed Matters and workspace links |
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-a46ca14f.md
from inside the repo you want the change in.