GeezerVison is showing github.com — feat(usage-hub): v2 Supabase usage collector — Management API scope + muse-dev metrics · Issue #1050 · developing-today/code
feat(usage-hub): v2 Supabase usage collector — Management API scope + muse-dev metrics #1050DescriptionPart of epic #1047. Hub design §2.2 / §5 v2.
Build the Supabase usage collector for project muse-dev (ref nltgxorqwxhgfzseiirt, org developing.today, Free):
- Check Management API token/scope for usage endpoints (today only coordination-store access is verified). Management token is already filed in Bitwarden as supabase.* if the scope suffices.
- Metrics: database size, egress, storage vs Free limits; billed $0 while Free; spend ceiling $30/mo is Drew's standing decision — the card must flag any approach to a paid trigger.
- Acceptance: daily read into the hub card + snapshots, measured-at + source shown; scope gap documented in quota-view Part (b) if a new token/consent is needed.
Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 🤖 Agent note · done
Verdict: CONFIRMED — no Supabase usage collector exists at HEAD a3cdf6c9a35df1ff8b88b7a02d62e5c04ca4c94a; the hub's Supabase card is three unmeasured metrics and a hardcoded $0.
Evidence (fresh reads of current main, not the issue text):
pm-stack/aggregator/src/saas-extract.ts — supabaseMetrics is a constant extractor (MetricExtractor = () => [...]) that ignores its input entirely: database size, egress and storage are emitted with no used and no limit. Notes verbatim: "Not measured — manual dashboard read needed." (egress, storage) and "Free-plan numerical limits are not recorded in local records; account meters are not verified from this host." (database size).
- Same file: the Supabase card's billed state is asserted, not measured —
billedUsd: spec.id === "supabase" ? 0 : undefined — and its shell note reads "Free plan (muse-dev); numerical quotas unknown in local records" on a 7-day cadence shell.
- The landed feat(quota-plane): quota-gatherer service in the PM stack — 15-minute tick, quota-current contract #1151 gatherer (
scripts/gather-quota.ts) has no Supabase code; its input families are the OpenChamber quota module and file exports only. The Management API token's usage-endpoint scope has never been probed — the issue's own first step is still undone.
Routing: follow-up enqueued as queue task 2985 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:1050, packet queue-packets/packet-1050-fix.json), in the same gatherer file-export shape as the sibling Cloudflare adapter (#1048 / task 2983): probe the Management API usage endpoints first with the existing supabase.* token (Bitwarden name reference only), then a pm-stack/supabase-export/ producer for database size / egress / storage vs Free limits with measured-at + source, an approaching-paid-trigger flag at ≥80% of a Free limit (against the standing $30/mo ceiling decision), measured — not hardcoded — billed state, and minimal aggregator wiring that prefers a fresh export and falls back to today's behaviour. Creating a new token or granting consent is explicitly out of scope: on a scope refusal the packet requires the gap documented endpoint-by-endpoint in quota-view Part (b), which is this issue's own sanctioned fallback. This issue stays open and is labelled queue/queued for that task.
dezren39 commented on Oct 29, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane B shift
- Session / ID: queue task 2985
- Found via: queue claim (resume of awaiting_ci park)
- Task: Merge PR feat(usage-hub): Supabase usage collector as gatherer file-export (#1050) #2369 (Supabase usage collector for feat(usage-hub): v2 Supabase usage collector — Management API scope + muse-dev metrics #1050) once the merge queue works again and Codex re-review of the new head is clean.
- Expectation: Done = PR feat(usage-hub): Supabase usage collector as gatherer file-export (#1050) #2369 merged, task completed fixed_merged, labels stripped on feat(usage-hub): v2 Supabase usage collector — Management API scope + muse-dev metrics #1050.
- Links: PR feat(usage-hub): Supabase usage collector as gatherer file-export (#1050) #2369 — new head 36280d5. This shift found and FIXED a new Codex P2 from the 23:35Z re-review (saas-extract.ts: billed amount stayed a hardcoded $0.00 when the billing probe was unavailable): billedUsd now clears to unknown, thread replied + resolved, test added (targeted 8/8; full aggregator 349 pass / 1 known pre-existing attention fail design+impl(aggregator): triage actions on /attention - acknowledge, snooze, escalate, answer - orchestrator-mediated #1152/impl(aggregator): session actions from /sessions and /attention - poke, answer, stop - keeper/orchestrator-mediated #1156). @codex re-review of 36280d5 requested. Remaining gate: merge-queue stall ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (main frozen at 5a34fa7 since 10:57Z). Re-parking. Do not --admin.
chatgpt-codex-connector commented on Oct 29, 2026 dezren39 commented on Oct 30, 2026
🤖 Agent note · picked up (resume), revalidated, merging — MQ unstuck
- Agent: queue worker (
repo-worker-code), OpenChamber scheduled lane
- Session / ID: queue task 2985 (attempt 1, resume from parked at 01:00Z)
- PR: feat(usage-hub): Supabase usage collector as gatherer file-export (#1050) #2369
queue/2985-1050-supabase-export, head 36280d5880 — OPEN, not draft, no superseding PR
- Revalidated (2026-10-30T01:03Z): Codex re-review of
36280d5880 came back clean at 23:58Z ("Didn't find any major issues"); required check basic: proxy port fallbacks passed; branch protection requires no merge queue (required_merge_queue: null, strict: false). Issue feat(usage-hub): v2 Supabase usage collector — Management API scope + muse-dev metrics #1050 is OPEN with no hard-stop labels (held, user/owned, do-not-merge absent).
- Prior shift's fixes carried in this head: billedUsd clears to
null when billing is unmeasured; all four Codex P2 threads replied and resolved; targeted 8/8, full suite 349/1 known pre-existing.
- Blocker cleared: ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (merge queue ejecting every PR) is no longer reproducing — merges landed continuously 00:24–01:00Z and main advanced to
ddd5844d.
- Action: enqueue/merge feat(usage-hub): Supabase usage collector as gatherer file-export (#1050) #2369 as a merge commit (no
--admin), then complete the task and strip in-flight labels.
- Links: PR feat(usage-hub): Supabase usage collector as gatherer file-export (#1050) #2369 · issue feat(usage-hub): v2 Supabase usage collector — Management API scope + muse-dev metrics #1050
dezren39 commented on Oct 30, 2026
🤖 Agent note · done — merged and closed
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|