ENVO HQ
Command Center
Thursday, April 2
0
Projects
0
Agents
βœ—
Gateway
0%
Live
10:13 PM
ENVO HQ
← Docs
hq/agents/agt_fairline/2026-02-24/SHIP-READY-FAIRLINE-ODDS-QUOTA-GUARDRAILS

SHIP READY FAIRLINE ODDS QUOTA GUARDRAILS

Updated: 2/25/2026, 9:58:32 AM

SHIP-READY β€” FAIRLINE: Odds API quota guardrails + last-known-good cache

Date: 2026-02-24

Problem

When The Odds API returns OUT_OF_USAGE_CREDITS, /events looked broken (0 games, 0 edges) even though the key was present.

Outcome

Shipped guardrails so FAIRLINE becomes self-diagnosing and does not look dead during provider downtime:

  • Detects quota exhaustion (OUT_OF_USAGE_CREDITS / β€œUsage quota has been reached”).
  • Shows a clear QUOTA banner with the fix path.
  • Disables β€œRun Scan” when quota is reached (prevents repeated failing calls).
  • Loads and displays the last known-good scan (cached client-side) so the terminal remains usable.

Implementation

UI

  • /events now classifies provider errors and shows a dedicated alert.
  • Run Scan becomes β›” QUOTA and is disabled when quota is reached.
  • Cached report stored as fairline:lastGoodReport (slimmed: rows capped) and hydrated on page load.

Files changed

  • src/app/events/page.tsx
  • src/app/events/fairline-cinematic.css

Git / Deploy

Operator note

This does not solve the underlying quota issue; it makes the system transparent + resilient until credits are restored.

Files are read from second-brain/brain/ on your machine.