GeezerVison is showing github.com — feat(usage-hub): v2 Vercel first read + GitHub billing collector (billing-scoped token) · Issue #1051 · developing-today/code
feat(usage-hub): v2 Vercel first read + GitHub billing collector (billing-scoped token) #1051DescriptionPart of epic #1047. Hub design §2.2 / §5 v2.
Two related first-reads/collectors:
- Vercel: connector is connected but plan tier/caps are unknown in local records. First API read establishes the baseline (bandwidth, function invocations, plan limits), then a daily collector into the hub.
- GitHub billing: Actions billable minutes /3,000, Codespaces core-hours /180 + storage /20 GB, Packages /2 GB. Billing endpoints need a billing-scoped token — same consent class as the design+impl: org-level GitHub Project as the conceptual-project layer — orchestrator-synced, dashboard-read #910 project-token gap; do not invent a route around consent. Until the token exists, keep the card on local records (Oct minutes were comped, net $0) and state the gap on the card.
Feeds goals goal_49a7f35a16de / goal_86b7469e123e / goal_fbdde57a43cd.
Acceptance: both services show dated, sourced values on /quota; token need (if any) filed as a user/owned blocker, not silently dropped.
Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 29, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane C shift
- Session / ID: queue task 2315 (triage)
- Found via: queue claim · repo-health-code-pilot
- Task: Triage verdict — the two halves split:
GitHub half: UNBLOCKED, premise stale. The old billing endpoints are gone (GET /users/dezren39/settings/billing/actions → 410 "This endpoint has been moved", gh.io/billing-api-updates-user), but the new unified endpoint answers with the existing gh OAuth token (scopes: admin:org, gist, repo, user, workflow — no billing-scoped token needed for the own-account usage read). Verified live 2026-10-29T02:22Z, October 2026 to date (103 items): Actions Linux 3,629 min (gross $21.77, net $0.00 — over the 3,000 included minutes but fully discounted, matching the "comped" note), Actions macOS 9 min, Actions storage 19.4 GB-hours, Codespaces compute 2.7 h, Codespaces storage ~1.4 GB-hours; every item net $0.00. A small_fix collector packet is enqueued (dedupe repo-health:v1:fix:developing-today/code:issue:1051; packet hidden_files/packet-2315-fix.json) to build the daily collector on the new endpoint and record this baseline.
Vercel half: BLOCKED on Drew. The premise "connector is connected" does not hold for the Muse Vercel connector: /opt/hatch/bin/vercel status → auth_status: not_connected (2026-10-29). (The "vercel" entry in the OpenCode provider list is an AI-model provider, not the Vercel platform connector.) Per this issue's own acceptance, the token/connect need is filed here as a user blocker rather than dropped: Drew — connect Vercel (its own sign-in page via the connector authorize flow) and the first read + daily collector can proceed. No route around that consent will be invented.
- Expectation: GitHub collector lands via the enqueued fix task; Vercel half waits on the connector being connected by Drew. Issue stays open with user/escalated for the Vercel half.
dezren39 commented on Oct 29, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane C shift
- Session / ID: queue task 2986 (small_fix, GitHub half of feat(usage-hub): v2 Vercel first read + GitHub billing collector (billing-scoped token) #1051)
- Found via: queue claim · repo-health-code-pilot
- Task: Progress + park. DONE this shift: the October 2026 baseline is recorded as a dated, sourced entry in the usage records (provider-quota-registry.md, "GitHub billing — first read (2026-10-29)": Actions Linux 3,629 min, gross $21.77, net $0.00; Codespaces 2.7 h; all net $0.00; source = unified billing usage endpoint via existing gh OAuth). REMAINING: the daily collector implementation — expected home is a new source under pm-stack/aggregator/src/sources/ feeding /quota, per the epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047 hub design. Parked rather than rushed: the aggregator source interface needs a dedicated implementation pass with its own PR + CI.
- Expectation: Resume: implement the aggregator source (daily pull of /users/dezren39/settings/billing/usage, aggregated Actions minutes / Codespaces hours / storage, dated+sourced), PR + CI green, then complete task 2986. The Vercel half stays blocked on Drew connecting the Vercel connector (see triage note).
dezren39 commented on Oct 29, 2026 🤖 Agent note · parked — keystone PR #2335 not landed
dezren39 commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026
Agent note — gate recheck, still unmet; re-parked (queue task 2986, lane C)
Fresh gate recheck 2026-10-29T21:31Z:
Nothing on the GitHub half can progress until #2335 merges. The user/escalated label on this issue is the separate Vercel-half blocker (Drew connecting the Vercel connector) and is untouched. Task 2986 re-parked 20 min. Resume: #2335 merged → recheck PR #2236 full-tier CI + Codex state → merge → complete.
dezren39 commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026
🤖 Agent note · GitHub billing collector ready; parked on the repo-wide merge-queue freeze (#2403)
-
Agent: queue worker repo-worker-code, OpenChamber scheduled lane. Task 2986 (resume — implementation already pushed).
-
PR feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236 — queue/2986-1051-github-billing, head c77b0179, OPEN / CLEAN / MERGEABLE, basic: proxy port fallbacks SUCCESS, CodeRabbit neutral, 0 unresolved review threads. 6 files: scripts/collect-github-billing.ts, src/sources/github-billing.ts, src/model.ts, src/snapshot-records.ts, src/snapshots.ts, test/github-billing.test.ts — the collector reads the unified usage endpoint, so no billing token is needed (the packet premise about the old billing endpoints was already corrected by triage).
-
Gate recheck this shift (the reason this task was parked): the PR is not the problem and PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 (the fmt/clippy unbreak) is still OPEN, so nothing has moved.
-
Blocked by ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403: main frozen at 5a34fa70 since 10:57:51Z; every merge-queue entry ejected with reason=branch_protection_failure. Config enumeration and the exact reversible fix are in my note on ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (22:12Z).
-
Parked 2 h so it resumes itself: on wake, if main advanced, re-enqueue feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236, merge, close this issue.
-
Links: PR feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236 · ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 · task 2986
dezren39 commented on Oct 30, 2026 🤖 Agent note · parked
- Agent: queue worker (repo-worker-code), lane C shift
- Session / ID: queue task 2986, shift 2026-10-29 19:14 CDT
- Found via: queue claim (resume of awaiting_ci park)
- Task: Merge PR feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236 (GitHub billing collector, closes this issue) once the merge-queue freeze clears
- Expectation: Parked 2h — auto-resume condition unchanged
- Findings: Gate rechecked fresh:
main is still 5a34fa7 (frozen), PR id: rustfmt meta_client.rs + drop expect() in tags parser — unbreak main fmt/clippy (#2151) #2335 (fmt/clippy unbreak) is still OPEN, ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 is still OPEN, and PR feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236 is still OPEN / CLEAN / MERGEABLE at c77b017 with its required check passing. The resume condition (main advanced) is not met, so feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236 was not re-enqueued into the ejecting merge queue.
- Resume condition: main advances past 5a34fa7 — then re-enqueue feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236, merge, and close this issue.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|