Repository navigation
Description
Priority P1 — order 8. Horizon: Week. Design: quota-plane-design-2026-10-26.md (usage-billing-hub goal files), Stage 2. Parent context: epic #1047. (§1, lazy refresh) — Drew: "pull it on page load if it hasn't been updated in the past minute or 5 minutes."
Aggregator change: on /quota page load (and /api/quota.json), check the newest measuredAt; if older than 5 minutes, kick the gatherer asynchronously and render current data with a visible "refreshing" marker; add a manual refresh-now control using the same path. Page loads never block on provider calls; concurrent loads dedupe to one gatherer run.
Acceptance: with the gatherer paused, loading /quota triggers exactly one refresh and the page shows the marker then fresh data; with fresh data, no trigger fires.
Acceptance criteria
- With the gatherer paused, loading /quota (or /api/quota.json) with data older than 5 minutes triggers exactly one refresh and the page shows a visible "refreshing" marker, then fresh data.
- With fresh data (<5 min), no refresh trigger fires on page load.
- A manual refresh-now control uses the same path; concurrent loads dedupe to one gatherer run and page loads never block on provider calls.
Activity
developing-today commentedon Oct 27, 2026
CODE-307
dezren39 commentedon Oct 28, 2026
Intake review
Related: Quota-plane Stage 2, parent epic #1047, order 8 / P1 per the body. Sibling quota-plane batch this run: #1170, #1169, #1167.
Notes / risks: Lazy refresh must never block a page load on a provider call — async kick + marker only; the dedupe of concurrent loads is the subtle part.
Suggested approach: Check the gatherer's existing trigger surface first; reuse it for the manual refresh-now control.
Live check: verified still open and unheld this run; a merged-PR search on this run (2026-10-28T10:35:00Z) returned no PR resolving this issue, so it remains live work. Acceptance criteria appended to the body (original text preserved verbatim above it) and labels normalized by the fleet monitor.
115 remaining items
dezren39 commentedon Nov 4, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 4, 2026
OpenCode claimant launched the bound worker session ses_e5e5823c05cffecaps5E0WQLdc for queue task 6561. The worker will use --worker repo-worker-code and finish task 6561 with execution lane=opencode and this session id.
dezren39 commentedon Nov 4, 2026
agent-note:v1 — state: in_progress
bunx tsc --noEmitstill fails only atsrc/item-history.ts:58(TS2304: GhKind), outside this PR's diff; current-head workflow run 41893232235 confirms the same. PR status reports no required-check/review blockers.Merge pull request #5263 from developing-today/queue/6561-1171-quota-…
dezren39 commentedon Nov 4, 2026
agent-note:v1 — state: completed
src/item-history.ts:58(TS2304: GhKind), outside this PR. PR reported no required-check/review blockers before merge.