GeezerVison is showing github.com — quota: gather meta + opendesign by asking OpenCode by dezren39 · Pull Request #5040 · developing-today/code
Conversation
dezren39
commented
Nov 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
What was wrong
Meta had no live quota path at all.
- The quota gatherer takes its provider list from the OpenChamber quota module's listing, which filters out providers whose session door is disabled in the opencode config. The deployed config disables the direct
meta door (sessions reach the pool through model routes), so the gatherer never asked — even though OpenCode holds the pool's credential and the module's Meta provider reads the plan's own usage endpoint with it (verified live today: 5h 16%, weekly 97%, resets Sun Nov 8 18:00 CT).
- The fleet-feed collector filtered the
meta:high-usage pool at assembly for the same disabled door (fix(usage-hub): disabled providers must not appear in quota — audit + regression test #1114), so the board had no Meta row for the gatherer to land on anyway.
- The only remaining read was the dev.meta.ai console scrape (meta-quota-export file-export), dark since the console tab closed (last success 2026-11-03 07:45Z, weekly 80.46% then; since then the board has shown a retained/stale picture or nothing).
OpenDesign was measured but never landed. The module read lands every tick (today: 5h spent, 7d ~34%), but the gatherer filed it under serviceId opendesign while the board pool is opendesign:go — the overlay keys by serviceId, so the shell pool stayed "healthy" with zero windows forever.
The fix (Drew's ruling, 2026-11-03: gather all quota by asking OpenCode; meta + opendesign are standard report members)
scripts/gather-quota.ts: explicit Meta module ask (runMetaModule) in the ClinePass/Turso out-of-band pattern — exactly one meta run survives; a fresh listed run would win if the door is ever re-enabled. The provider self-times-out per request, so no outer timeout clips its account-token fallback. The Meta file-export producer is retired (FILE_EXPORTS empty; the feat(quota-plane): Meta adapter Phase 1 — laptop-side quota exporter (subscription-quota API, 15-min file export) #1301 convention machinery stays for future producers).
src/quota-gather-map.ts: serviceIdFor maps meta -> meta:high-usage and opendesign -> opendesign:go, mirroring the pool ids like every other mapped provider.
src/quota-extract.ts: FILTER_EXEMPT_POOL_IDS — meta:high-usage stays on the board despite its disabled direct door, with the ruling cited in the comment; the opendesign shell note now names the gatherer as its live source instead of "uninstrumented".
Tests
Full aggregator suite: 1376 pass / 0 fail (worktree, after bun install). Updated: serviceIdFor expectations; the #1114 enforcement test now encodes the exemption (codex still filtered + noted; meta retained as the ruled member). bunx tsc --noEmit shows one pre-existing error in test/overview.test.ts that reproduces identically on pristine origin/main — unrelated to this change.
Follow-up (separate PR)
Retire the meta-quota-exporter itself (pm-stack/meta-exporter + the HM unit in nixos/home) now that nothing ingests its output; the laptop timer is stopped at deploy time for this PR.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Meta: the gatherer never asked the quota module for meta \u2014
listConfiguredQuotaProviders filters providers whose session door
is disabled, and the deployed config disables the direct meta
door (sessions reach the pool through model routes). The board
then had no Meta pool at all: the collector filtered
meta:high-usage at assembly for the same reason. The only Meta
read left was the dev.meta.ai console scrape (file-export), dark
since the console tab closed.
- gather-quota.ts: explicit Meta module ask (runMetaModule),
ClinePass-style one-run discipline; the Meta file-export
producer is retired (FILE_EXPORTS empty, convention kept).
- quota-gather-map.ts: serviceIdFor maps meta -> meta:high-usage
and opendesign -> opendesign:go (mirrors the pool ids).
- quota-extract.ts: FILTER_EXEMPT_POOL_IDS \u2014 meta:high-usage
stays on the board despite its disabled direct door (ruled
standard report member, Drew 2026-11-03); opendesign shell note
now names the gatherer as its live source.
OpenDesign: the module read was already landing every tick under
serviceId "opendesign"; the pool is opendesign:go, so the overlay
never matched and the shell showed healthy with no windows. The
serviceId mapping fixes the landing.
Tests: full aggregator suite 1376 pass. (bunx tsc shows one
pre-existing error in test/overview.test.ts on origin/main,
unrelated.)
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
⚠️ Failed 2026-11-03T17:30:01.126802Z We couldn’t complete this review. Comment @codex review to try again. |
c46c7df |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 38 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
dccad059-e81e-4a8b-b7d1-f90479b4a568
Commits
-
Reviewing files that changed from the base of the PR and between 660b163 and c46c7df.
Files selected for processing: 5
-
pm-stack/aggregator/scripts/gather-quota.ts
pm-stack/aggregator/src/quota-extract.ts
pm-stack/aggregator/src/quota-gather-map.ts
pm-stack/aggregator/test/quota-gather-map.test.ts
pm-stack/aggregator/test/quota.test.ts
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
CodeRabbit Verify
- Run CodeRabbit Verify to test the changes in this pull request.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dezren39
added a commit
that referenced
this pull request
Nov 3, 2026
The dev.meta.ai console scrape (pm-stack/meta-exporter + the
meta-quota-export home-manager unit) was Meta's Phase-1 quota
source (#1301). PR #5040 replaced it: the quota gatherer now asks
the OpenCode quota module for Meta directly, per Drew's
2026-11-03 ruling that quota is gathered by asking OpenCode.
Nothing ingests the exporter's latest.json anymore, and its
laptop timer is already disabled; this removes the code so the
next fleet switch removes the units.
- delete pm-stack/meta-exporter/ (script, units, installer, tests)
- delete nixos/home/meta-quota-export.nix; drop its import +
enable from nixos/hosts/default.nix (Cloudflare exporter stays)
- quota-gather-map.ts: entryFromFileExport doc now records the
retirement; the #1301 mapper stays for future producers.
Deliberately untouched: nixos/home/pm-dashboard-backup.sh still
REQUIRES the exporter's frozen latest.json/history.jsonl in the
backup manifest — relaxing that contract (and its record-test
fixtures) is a separate change, filed as an issue.
dezren39
added a commit
that referenced
this pull request
Nov 3, 2026
…rter
retire the Meta console-scrape exporter (superseded by #5040)
This was referenced Nov 4, 2026
This was referenced Nov 9, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|