From a4b4b067e097c1a460296a9b76355ba8a46aaa5c Mon Sep 17 00:00:00 2001 From: repo-worker-code-k Date: Sun, 8 Nov 2026 16:42:08 -0600 Subject: [PATCH] fix(aggregator): register OpenCode Go developing-today-0 in quota pool attribution Follow-up to #7830 (third Go account). goPoolServiceId now maps the developing-today-0 credential label to opencode-go.developing-today-0, and POOL_SPECS gains the matching pool spec (goWorkspace union extended). Without this the account quota had no split pool row on the fleet quota board. Quota tests: 113 pass, 1 pre-existing hook-timeout failure, identical on pristine main. --- pm-stack/aggregator/src/quota-extract.ts | 13 +++++++++++-- pm-stack/aggregator/src/quota-gather-map.ts | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pm-stack/aggregator/src/quota-extract.ts b/pm-stack/aggregator/src/quota-extract.ts index 6d5b975e1c..597684ed57 100644 --- a/pm-stack/aggregator/src/quota-extract.ts +++ b/pm-stack/aggregator/src/quota-extract.ts @@ -297,7 +297,7 @@ const extractMeta: Extractor = (s, now) => { return { windows: [pctWindow("weekly", Number(pct[1]), resetIso)] }; }; -function goWorkspace(name: "drewrypope" | "popesdrew"): Extractor { +function goWorkspace(name: "drewrypope" | "popesdrew" | "developing-today-0"): Extractor { return (s, now) => { const m = first( s, @@ -505,7 +505,8 @@ interface PoolSpec { // POOL NAMING (2026-11-03, Drew): a pool's id is its OpenCode config // provider id whenever the config defines one — meta, openai.main, -// openai.alternate, opencode-go.drewrypope, opencode-go.popesdrew, cline-pass, +// openai.alternate, opencode-go.drewrypope, opencode-go.popesdrew, +// opencode-go.developing-today-0, cline-pass, // opendesign, deepseek, commandcode. The colon-suffixed spellings these // replaced (meta:high-usage, openai:codex, opencode-go:drewrypope, ...) // survive only in the historical snapshot series and the one-shot @@ -582,6 +583,14 @@ export const POOL_SPECS: PoolSpec[] = [ extract: goWorkspace("popesdrew"), shellNote: "No current read.", }, + { + id: "opencode-go.developing-today-0", + provider: "OpenCode Go", + plan: "developing-today-0 account", + heading: /^### OpenCode Go/, + extract: goWorkspace("developing-today-0"), + shellNote: "No current read.", + }, { id: "cline-pass", provider: "ClinePass", diff --git a/pm-stack/aggregator/src/quota-gather-map.ts b/pm-stack/aggregator/src/quota-gather-map.ts index 8aef157b88..735ca8e87a 100644 --- a/pm-stack/aggregator/src/quota-gather-map.ts +++ b/pm-stack/aggregator/src/quota-gather-map.ts @@ -153,6 +153,7 @@ export const GATHERER_SOURCE = "opencode-quota"; */ export const GO_DREWRYPOPE_SERVICE_ID = "opencode-go.drewrypope"; export const GO_POPESDREW_SERVICE_ID = "opencode-go.popesdrew"; +export const GO_DEVELOPING_TODAY_0_SERVICE_ID = "opencode-go.developing-today-0"; export const ANTIGRAVITY_GEMINI_SERVICE_ID = "_antigravity.gemini"; export const ANTIGRAVITY_CLAUDE_GPT_SERVICE_ID = "_antigravity.claude-gpt"; // Pre-rename (#1823) split ids: a gatherer still paired with the old @@ -164,7 +165,8 @@ export const ANTIGRAVITY_LEGACY_CLAUDE_GPT_SERVICE_ID = "antigravity-direct.clau /** * Which split Go pool a per-workspace entry belongs to, from the * credential's human label. OpenCode credential labels are user-set; on - * the fleet laptop the Go accounts are labeled "drewrypope" and "popesdrew" + * the fleet laptop the Go accounts are labeled "drewrypope", "popesdrew" + * and "developing-today-0" (third account, added 2026-11-08) * (the "Home" workspace was removed 2026-11-03 and has no hub pool). Org ids are opaque per-machine strings, so they * cannot name pools — the label is the only stable gatherer-side * signal. Unmatched entries yield null: no fabricated pool row, the @@ -174,6 +176,7 @@ export function goPoolServiceId(entry: QuotaCurrentEntry): string | null { const label = entry.credentialLabel?.trim().toLowerCase(); if (label === "drewrypope") return GO_DREWRYPOPE_SERVICE_ID; if (label === "popesdrew") return GO_POPESDREW_SERVICE_ID; + if (label === "developing-today-0") return GO_DEVELOPING_TODAY_0_SERVICE_ID; return null; }