Title: quota: no labelled opencode-go.popesdrew row — the account's Console measurement publishes as the unlabelled opencode-go aggregate · Issue #8260 · developing-today/code · GitHub
Open Graph Title: quota: no labelled opencode-go.popesdrew row — the account's Console measurement publishes as the unlabelled opencode-go aggregate · Issue #8260 · developing-today/code
X Title: quota: no labelled opencode-go.popesdrew row — the account's Console measurement publishes as the unlabelled opencode-go aggregate · Issue #8260 · developing-today/code
Description: Symptom The quota gatherer's record (~/.local/state/pm-aggregator/quota-current.json, 15-minute ticks) carries labelled per-account rows for two of the three OpenCode Go accounts — opencode-go.drewrypope and opencode-go.developing-today-...
Open Graph Description: Symptom The quota gatherer's record (~/.local/state/pm-aggregator/quota-current.json, 15-minute ticks) carries labelled per-account rows for two of the three OpenCode Go accounts — opencode-go.drew...
X Description: Symptom The quota gatherer's record (~/.local/state/pm-aggregator/quota-current.json, 15-minute ticks) carries labelled per-account rows for two of the three OpenCode Go accounts — opencode-go....
Mail addresses
popesdrew@gmail.com
Opengraph URL: https://github.com/developing-today/code/issues/8260
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"quota: no labelled opencode-go.popesdrew row — the account's Console measurement publishes as the unlabelled opencode-go aggregate","articleBody":"## Symptom\n\nThe quota gatherer's record (`~/.local/state/pm-aggregator/quota-current.json`, 15-minute ticks) carries labelled per-account rows for two of the three OpenCode Go accounts — `opencode-go.drewrypope` and `opencode-go.developing-today-0` — plus ONE unlabelled `opencode-go` row. There is no labelled `opencode-go.popesdrew` row, so that account's windows cannot be read or steered per-account. The three Go accounts are seated 1:1:1 in the deepseek-flash-plan tier of workhorse-ordered, so per-account steering matters.\n\nCensus 2026-11-10 (quota-current.json generatedAt 2026-11-10T20:30:08Z, all rows fresh-measured in that tick):\n\n- `opencode-go.drewrypope` — 5h 0% / weekly 100% / monthly 100% (monthly resets 2026-12-03T03:02:35Z)\n- `opencode-go.developing-today-0` — 5h 0% / weekly 100% / monthly 54% (monthly resets 2026-12-08T22:09:41Z)\n- `opencode-go` (unlabelled, no credentialId) — weekly 100% / monthly 100%, credits_balance $0.00, resets 2026-11-16T00:00Z / 2026-12-03T17:35:51Z\n\n## Root cause (wire-verified on the laptop, 2026-11-10)\n\nThe unlabelled row IS popesdrew's measurement, unattributed:\n\n- popesdrew is enrolled as a **Console OAuth device sign-in** (credential `cred_bh5LJo8s26zwYccj8tDnC3LP1x`, org `org_01M6H7986JGCDR5H81QXPFJW2J`, popesdrew@gmail.com, token expiry 2026-12-03T17:42:29Z) stored under its **own instance integration** `opencode-go.popesdrew`. The other two accounts hold API-key credentials under their instance integrations. The same Console sign-in also exists as the shared `opencode` integration's active row.\n- The gatherer's single source is the opencode fork's quota subcommand (`opencode quota --json`, fork `packages/ai/src/quota`). Its base per-credential walk for `opencode-go` reads only the credential aliases `opencode` + `opencode-go` — so it measures popesdrew's account **through the shared `opencode` row** and emits it as the bare, unlabelled `opencode-go` result. Proof the numbers are popesdrew's: a direct Console status call with that credential returns week used 3,006,253,692 / 3,000,000,000 micro-cents (100%, resets 2026-11-16T00:00Z), month 6,006,253,692 / 6,000,000,000 (100%, resets 2026-12-03T17:35:51Z — exactly the unlabelled row's reset), billing balance 0 ($0.00 — exactly the unlabelled row's balance), fiveHour meter present but idle (used 0, resetsAt null — the Console parser drops a meter with no reset, which is why the unlabelled row has no 5h window while the API-key rows do).\n- The instance path never rescues it: `opencode-go` did not set `foldInstanceCredentials` (only Codex did), so configured instances were never folded into the base answer; and the row-usability verdict re-keys an instance row under the base id (`opencode-go`), where a Console sign-in reads as neither Console credential (that lookup keys on the shared `opencode` integration) nor API key — so the instance is judged unusable, excluded from the configured listing, and an explicit ask for `opencode-go.popesdrew` answers `Not configured` (verified live).\n\n## Fix\n\nIn the opencode fork's quota module (the gatherer's single source), with the OpenChamber quota lib (the same module's original home, still used by OpenChamber surfaces) mirrored:\n\n1. `opencode-go` provider sets `foldInstanceCredentials: true` — configured Go instances fold into the base answer, one labelled row per account, the pattern Codex already uses for openai.main / openai.alternate.\n2. The provider gains an `isCredentialUsable` hook that judges a row on its own shape (Console sign-in under the Console key, or an API key present) instead of the dispatcher's base-id re-keying, which cannot see an instance-stored Console row.\n3. The listing's instance-usability verdict consults the same hook the fetch path uses, so listing and fetch agree (previously the listing re-implemented the verdict without the hook).\n\nTests: fork `packages/ai/test/quota.test.ts` gains a describe block covering the fold, the instance ask, and the listing (212 pass, typecheck clean); OpenChamber lib `index.test.js` gains the mirror coverage (46 pass) and `opencode-go.test.js` stays green (45 pass).\n\nRelated: #5324 (the route-level sibling symptom — the popesdrew pool drawing zero), #2490 (quota read-path unification), #1161 (the Go console per-workspace adapter this builds on), #8102 (popesdrew self-renewal stays UNPROVEN — its Console token expires 2026-12-03).\n\n## Proof\n\nPosted as a comment on this issue after deploy: a fresh gatherer tick's quota-current.json with three labelled opencode-go rows and popesdrew's numbers quoted.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-10T20:56:51Z","url":"https://github.com/developing-today/code/issues/8260"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83b78faf-bcc9-9362-5e60-39a5a97c300f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C94E:395006:27D45F:34D51D:6B061700 |
| html-safe-nonce | 6c84ede6b207d69b31b6102626e7ce7e1a014b92d48d7f48fe2953190e77a779 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTRFOjM5NTAwNjoyN0Q0NUY6MzRENTFEOjZCMDYxNzAwIiwidmlzaXRvcl9pZCI6IjI4OTQ4MzY2MTk2MTYzMjc0MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 040f91408c6d8c0de8fbe7b74d659d76042a6d23a13a351cf766a8f5577c7d4b |
| hovercard-subject-tag | issue:6315689383 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/8260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64fe1d9aa2b8e71295a5f8ea97720115736dea7feeba1da5e6fd87a2570fc63b/developing-today/code/issues/8260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64fe1d9aa2b8e71295a5f8ea97720115736dea7feeba1da5e6fd87a2570fc63b/developing-today/code/issues/8260 |
| og:image:alt | Symptom The quota gatherer's record (~/.local/state/pm-aggregator/quota-current.json, 15-minute ticks) carries labelled per-account rows for two of the three OpenCode Go accounts — opencode-go.drew... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width