/services/gateway/middleware/rateLimit.ts
Add token-bucket middleware with tier-aware limits. Reads from Redis, falls back to in-memory. Emits 429 with Retry-After header.
Describe the work in plain English. The studio will draft a tech spec, propose an Agent Action Plan, and wait for your approval before any code is written.
tier, key_id, route.The agent generated 4 pull requests across 3 repositories, with a last-mile guide for the work your engineers should finish. Everything is on the aap/rate-limits branch.
REDIS_URL env var. Provision in your prod environment and add to secrets manager.<DataTable> component. Flag for your design team to apply final styling and confirm IA matches admin patterns.