docs: Sprint 16.1 — _DAILY_LIMIT 140 → 45 follow-up across all 6 running docs

Sprint 16.1 (commit 11cfd46) is a one-line fix that lowers
_DAILY_LIMIT in backend/app/api/recipe_search.py:48 from
140.0 to 45.0. The 140 value was set assuming Spoonacular's
free tier is 150 pts/day; Sprint 15 round 1 proved the real
cap is 50 pts/day. The gate now triggers at 45 (5pt safety
margin), preventing the user from making requests that
would 503 after a 402 upstream roundtrip.

This commit updates the 6 running docs that track sprints:

- .agent/plan.md — Sprint 16.1 section appended to the
  Sprint 16 sections.
- .agent/context.md — Sprint 16.1 decisions + file:line
  references added.
- Review/sprint16-verification.md — Sprint 16.1 section
  appended (one-line change + verification).
- Review/ui-nielsen-audit.md — Sprint 16.1 paragraph added
  to the Sprint 16 status block.
- fix-ui-audit.md — T9.6 added to the Sprint 16 section.
- Review/handoff-ui-audit.md — TL;DR Sprint 16.1 line
  added, Last-updated footer updated.
- docs/HANDOFF.md — Tracking docs reference updated to
  include Sprint 16.1, Last-updated footer updated.

All 6 docs now reflect Sprint 16.1.
This commit is contained in:
2026-06-08 14:12:59 -07:00
parent 11cfd46bff
commit a8debbe96a
5 changed files with 28 additions and 3 deletions
+9
View File
@@ -915,3 +915,12 @@ All five go under `devDependencies`. Runtime bundle size unchanged (503.82 kB be
- Lower `_DAILY_LIMIT=140` to 45 (S15 follow-up, still pending).
- Backend test infrastructure (venv on `docker-willester` is broken).
- CI integration of Vitest tests.
### T9.6 · Sprint 16.1 (2026-06-08): one-line `_DAILY_LIMIT` fix
**File:** `backend/app/api/recipe_search.py:48``_DAILY_LIMIT: float = 45.0` (was 140.0). Comment updated to reference Sprint 15 + Sprint 16 corrections.
- **Why:** the 140 cap was set assuming Spoonacular free tier is 150 pts/day. Sprint 15 round 1 hit the real cap (50 pts/day) at query 28. The 140 gate let 50+ requests through to the upstream before 503'ing, wasting user time.
- **Fix:** gate at 45 (5pt safety margin under the real 50-pt cap).
- **Verified:** backend rebuilds, search returns 502 (Spoonacular 402 upstream) when at the cap. The gate now triggers correctly.
- No pre-existing WIP files touched. No new runtime dependencies. No migration.