Repository navigation
Description
Epic for the remaining Usage & billing hub work (goal_4bd599c9ab26). Filed 2026-10-26 at Drew's direction ("make issues for all these and update all relevant locations; ensure all is documented") after the SaaS/cloud services status review in the SaaS side chat.
State this epic starts from (verified 2026-10-26)
- Hub v1+v1.1 SHIPPED: PR Usage & Billing Hub v1 + v1.1 (aggregator /quota) #967, live at the laptop aggregator
/quota("Usage & billing"),/api/quota.jsoncarries pools/saas/payg/charges/attention/domains/subscriptions. - Snapshot-store writers LIVE (PRs Usage snapshot writers (hub §4): collector derivation, outbox, store ingest #973/Fix: pool snapshot records take their date from the Last checked bullet #975/Docs: README snapshot-writers note (hub §4 follow-up to #973/#975) #977): stewardship/keeper append to the outbox, fleet-feed collector forwards, store dedupes. Not part of this epic.
- Q7 Meta PAYG scan folded into stewardship-cycle permanently. Done, not part of this epic.
- The hub is NOT fully live: it renders dated manual reads from the stewardship quota-view, not live vendor meters. Most pools have no working machine meter (Codex usage endpoint 403, ClinePass/Go/Meta console-only, Open Design uninstrumented). That gap is what the child issues close.
Cadence ruling (Drew, 2026-10-26)
The design's Q8 default — a WEEKLY console-reads block — is superseded: weekly is too slow. New cadence (implemented by the console-reads child issue):
- stewardship (hourly) checks staleness every cycle and flags any card past its cadence;
- full console-read refresh DAILY;
- immediate re-read on a wall hit, at >=85% of a window, or whenever the measurement gate needs a <=60-minute-old read for placement.
Design / sources
- Design: hatch-personal
workspace/goals/usage-billing-hub-token-quotas-per-service-saas-limits/files/hub-design-2026-10-25.md(§2 sources, §5 phasing: v2 live collectors, v3 reconciliation) - Research record:
~/workspace/ai-subscriptions/master-tracker.md+evidence-and-interpretation-baseline-2026-10-20.md - Presentation source: stewardship
hidden_files/visibility/quota-view.mdParts (a)/(b)
Tracked elsewhere — link, do not duplicate
- Plaid Citi linking: account-connection campaign Bump build/buck/preludes/buck2-prelude from
3a02ea3tod956689#15 (goal_6f48d745f802) + plaid-nudge crons; Drew's own browser only. - OCI signup: OCI servers thread + CPCOE-29381 follow-up (due 2026-10-27); PAYG decided 2026-10-22.
- GitHub Actions/Codespaces efficiency: goals goal_49a7f35a16de / goal_86b7469e123e / goal_fbdde57a43cd (the GitHub billing collector child feeds these).
- Laptop repeat of the account campaign: account campaign goal end-state.
Acceptance for the epic
Every child issue closed or explicitly re-scoped by Drew; /quota shows live or daily-refreshed values (with measured-at + source) for every held service; the dashboard links the research record (baseline, tracker, free-services list) instead of leaving it only in workspace files.
Children (native sub-issues — curated 2026-11-01 via #1217, task 4928)
This epic's child set is now native sub-issues (previously body-text links only). Attached, all OPEN at curation:
- feat(usage-hub): v2 Turso usage collector — verify org usage route, daily read #1049 — v2 Turso usage collector (daily console read)
- chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055 — close master-tracker open checks
- feat(usage-hub): v3 invoice reconciliation — Cloudflare Nov 2 first, monthly billed-vs-estimated #1056 — v3 invoice reconciliation (billed-vs-estimated)
- feat(usage-hub): v3 charges auto-matching — Plaid + Gmail alerts to services #1057 — v3 charges auto-matching (Plaid + Gmail alerts)
- feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts #1111 — v2 collectors: Modal credits + Bitwarden SM counts
- design(usage-hub): managed quota-credential pattern for console-only pools #1115 — design: managed quota-credential pattern for console-only pools
- feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116 — self-monitoring: feed staleness + fixture-fallback alarm
- chore(usage-hub): OpenCode Go lapse handling — Personal Nov 2, Lab Nov 6 #1118 — OpenCode Go lapse handling
- epic(quota-plane): Stage 2 — 15-minute quota gathering in the PM stack, token adapters, automated pool decisions #1149 — sub-epic: quota-plane Stage 2 (see ruling below)
- feat(usage-hub): #1116 remainder items 4+5 — stewardship stale-feed finding + collector-stop acceptance verification #2990 — feat(usage-hub): self-monitoring — feed staleness + fixture-fallback alarm #1116 remainder items 4+5
Already closed at curation (program history, not attached — the fix scope covers open issues): #1114, #1117, #1119.
#1149 ruling: #1149 is attached as a sub-epic of this epic, per its own body ("Stage-2 epic under #1047", Drew's direction 2026-10-26). Scope boundary: this epic (#1047) owns the usage-hub program as a whole — v2 live collectors, daily console reads, v3 reconciliation, hub presentation; #1149 owns the quota-plane Stage-2 slice inside it (15-minute quota gathering, token adapters, automated pool decisions). Quota-plane implementation issues belong under #1149, not directly under this epic.
Excluded, deliberately: #1054 (blocked(usage-hub): Open Design quota instrumentation) carries user/owned — a hard-stop label — so fleet curation does not touch it; it stays unattached until Drew rules otherwise. #1217 is the curation fix itself and closes when this curation completes.
Acceptance for the epic (measurable restatement)
This epic closes when every native sub-issue above is closed (or explicitly re-scoped by Drew), AND: the v2 collectors are live (#1049, #1111), the daily console reads run at the cadence ruled above (#1055), and v3 reconciliation is operating (#1056, #1057) — i.e. /quota shows live or daily-refreshed values, with measured-at + source, for every held service.
Acceptance criteria
- Every child issue closed or explicitly re-scoped by Drew.
-
/quotashows live or daily-refreshed values (with measured-at + source) for every held service. - The dashboard links the research record (baseline, tracker, free-services list) instead of leaving it only in workspace files.
Activity
developing-today commentedon Oct 27, 2026
CODE-192
dezren39 commentedon Oct 27, 2026
Child issues filed 2026-10-26 (Drew's directive in the SaaS side chat):
Docs updated in the same pass: hub design doc header (status + cadence + collector-host correction), goal GOAL.md (status/next/roadmap + this index), quota-view refresh protocol, master-tracker header.
dezren39 commentedon Oct 27, 2026
Second filing pass 2026-10-26 22:24 CDT (Drew: "continue building this out, designing it, and finding individual tasks that have not been documented yet"). Design: hub-v2-v3-design-2026-10-26.md in the goal files. New children:
Also this pass: stewardship-cycle cron body updated with the DAILY CONSOLE READS block (see feat(usage-hub): console-reads cadence — daily + event-driven replaces weekly (Q8 superseded) #1053 comment) — feat(usage-hub): console-reads cadence — daily + event-driven replaces weekly (Q8 superseded) #1053's remaining acceptance is its first daily refresh.
dezren39 commentedon Oct 27, 2026
Stage-2 child epic filed as #1149 (quota plane). Its children 2026-10-26 (priority order; horizons on org Project #4):
Design: files/quota-plane-design-2026-10-26.md in the usage-billing-hub goal workspace.
dezren39 commentedon Oct 27, 2026
PRIORITIZATION PASS (2026-10-27, per Drew: "make sure our tasks are updated to use the more efficient pattern and that all issues are prioritized"). Every issue under this epic and the quota-plane epic #1149 now carries a Horizon on Project #4. The working queue, in order:
Today
Week (dated pressure first)
Month
88 remaining items
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged — no epic-level follow-on
openchamber-scheduled-lane, workerrepo-worker-code, lanecode-istatus/triaged; no stale in-flight queue label is present).dezren39 commentedon Nov 21, 2026
Decided: moved from Now to Next. The Now list is the two
idtracks and the fleet work that directly feeds them (plan).Why:
nowis whatfleet agent nexthands out first, so it has to stay short enough to finish.Undo: put
nowback.By: Claude, in the 2026-11-21 priorities session, under FDR-0013. Nothing here waits on anyone.
Generated by Claude Code
developing-today-fleet commentedon Nov 27, 2026
Triage concurrence (lane oc-code-01, 2026-11-27): #1047 OPEN, status/triaged, no hold labels. Umbrella-epic verdict unchanged: stays open as the usage-hub program record; burn-down proceeds through the children, no epic-level fix packet (that would duplicate the children, per the task 12952 packet-defect disposition).
Fresh delta since the last agent triage: closed since — #1056 (v3 invoice reconciliation), #1115 (managed quota-credential pattern), #1116 (feed staleness self-monitoring), #2990 (#1116 remainder). Remaining open children: #1055 (master-tracker open checks / daily console reads), #1111 (v2 Modal + Bitwarden collectors), and sub-epic #1149 (quota-plane Stage 2). #1054 stays deliberately excluded under user/owned. No code changed in this pass.
test(usage-hub): isolate freshness IPC port in quota-contract suite (#…
developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · slice landed as PR (lane oc-code-07)
Acceptance recheck vs origin/main (2026-11-27): v2 collectors checked (PR #2987 + PR #14751 merged); /quota measured-at+source rendering checked (
render.tsservice cards + pools freshness line, header claim :2672); dashboard research-record links checked (render.tsSources section :2683). v3 children #1056/#1057 closed. Remainder with no lane executor, unchanged: #1055 (blocked/user-escalated hands reads), #1111 (browser-route datum only), #1149 → #1173 (upstream resetAt data), #1270 slice 3 (primary-seat scheduling), #2490 (external gates).Slice: PR #16157 (test-only, one file) — the #1119
/api/quota.jsoncontract suite died with EADDRINUSE on the laptop (live aggregator holds 4871); it now pins the spawned server's freshness IPC port like the other server-booting suites. Laptop evidence: before 0 pass/1 fail, after 10 pass/0 fail; siblings (quota-current + gather-quota) 85/85 green.Next slice in the same form: after the next PR,
bun test test/quota-contract.test.tsplus the remaining server-booting suites without the override (boot, health, actions, …) all pass on the laptop — or the next unblocked epic remainder.test(usage-hub): isolate freshness IPC port in boot suite (#1047)
developing-today-fleet commentedon Nov 27, 2026
Slice: PR #16198 (test-only, one file) — the
bootserver-booting suite died with EADDRINUSE on the laptop (live aggregator holds 4871); it now pins the spawned server freshness IPC port the same way the pinned suites do. Laptop evidence: before 0 pass/1 fail, after 19 pass/0 fail. No overlap with open PR #16157 (quota-contract); remaining unpinned suites (health, actions, …) are next slices in the same form.Merge pull request #16198 from developing-today/fleet/oc-code-02/1047…
dezren39 commentedon Nov 29, 2026
Census 2026-11-29 (lane CEN-C01) — body + comments re-read, every named child re-checked live. The body's children list is stale (it says "all OPEN at curation"); current roll-up:
Children — CLOSED: #1049 (Turso collector), #1056 (v3 invoice reconciliation), #1057 (v3 charges auto-matching), #1115 (quota-credential pattern design), #1116 (feed staleness self-monitoring), #1118 (OpenCode Go lapse handling).
Children — still OPEN: #1055 (master-tracker open checks — blocked on signed-in console routes, see its census note today) and #1111 (Modal + Bitwarden SM collectors).
Remainder named by the 2026-11-27 acceptance recheck on this epic: #1055, #1111, #1149 → #1173 (upstream resetAt data), #1270 slice 3 (primary-seat scheduling), #2490 (external gates). The epic's other acceptance points check out: v2 collectors landed (PRs #2987, #14751),
/quotarenders measured-at + source, and the dashboard links the research record (Sources section).Blockers: no single blocker — the epic closes when #1055 and #1111 close or are re-scoped by Drew; both are individually blocked/tracked, not stalled silently. Priority:
priority/normalconfirmed for an epic in this state.developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: Acceptance was present in substance under a variant heading (
## Acceptance for the epic) but not as the standard## Acceptance criteriasection; the epic lacked themeta/epicmarker the house sub-issue standard expects on a parent (it carried the plainepiclabel instead).Strengths: A well-run epic: verified starting state with shipped PR numbers (#967, #973, #975, #977), the cadence ruling recorded with its reasoning, design/research sources linked, and neighbouring work explicitly linked-not-duplicated (Plaid, OCI, Actions efficiency).
Blocker recorded: One child, #1054, is blocked on a Drew laptop sign-in (named there and in its own census entry); the epic itself has no other unrecorded blocker.
Actions taken by this census: Labels added:
meta/epic. Appended a## Acceptance criteriasection to the body (original text untouched), converting the issue's own acceptance wording into checkable items.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass, concurring with the parallel census note (lane CEN-C01) already on this thread, whose claims I verified against live state in this pass. STRENGTHS: the roll-up is now current — children CLOSED: #1049/#1056/#1057/#1115/#1116/#1118; still OPEN: #1055 (blocked on signed-in reads), #1054 (Drewry sign-in), #1111 (one datum from done), #1173/#1270 under #1149's line. The body's original children list is stale (it says all OPEN at curation) — this comment supersedes it. PRIORITY VALIDATION: priority/normal, single, correct. FIXES I APPLIED: none needed. REMAINS: the open children above; the only Drewry items are #1054's sign-in and #1055's console reads.