Skip to content

quota gatherer: publish canonical config provider ids (_antigravity, _claude, _commandcode, _muse) - #7324

Merged
dezren39 merged 1 commit into
mainfrom
fix/quota-gatherer-provider-ids
Nov 8, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/quota-gatherer-provider-ids

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

What

The quota gatherer published the Antigravity provider under the quota module's pre-rename spelling antigravity. The router matches quota readings by exact provider id (the quota-driven skip re-admission built for opencode#1974), and the config id is _antigravity since fork PR #1944 (#1823) — so Antigravity quota readings never reached the router and re-admission was inert for that provider.

Change

Normalize provider ids at entryFromResult in quota-gather-map.ts — the one mapping point every gathered result passes through — via a new canonicalProviderId:

module spelling snapshot now emits
antigravity _antigravity
claude (the claude-code door) _claude
command-code _commandcode
meta (the Muse Code High Usage reading) _muse

The other three were stale the same way, checked against the router's current ids: claude never matched _claude, command-code/commandcode never matched _commandcode, and meta matched only the disabled upstream provider, not the _muse door whose plan the reading measures.

Knock-ons handled in the same pass:

Checked and deliberately left alone: codex (not a renamed provider; the router-matching openai.main / openai.alternate rows are published separately), the combined opencode-go row (by design; per-workspace split rows carry the door ids), mistral (already the router's id; no vibe-spelled id is emitted), and the heartbeat perProvider keys (internal timing diagnostics keyed by module run id — the router reads only providers).

Tests

  • New canonicalProviderId describe block: mapping + passthrough, entryFromResult emission per renamed provider with pool service ids preserved, module-spelled Antigravity splitting into the renamed pool rows, retention across the rename boundary.
  • Targeted files (quota-gather-map, quota-current, token-adapter, phase3-boundaries, credential-lifecycle, provider-display): 163 pass / 0 fail.
  • Full aggregator suite: 1646 pass / 14 fail — the failures (5s hook timeouts, source-gate boot, inFlightBoardItems) reproduce identically on the unmodified tree in the same environment.
  • tsc --noEmit: one pre-existing error (RoadmapAnnotation), unchanged, none in the touched files.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The quota module answers in its own spellings (antigravity, claude,
command-code, meta); the snapshot now emits the OpenCode config
provider ids the router matches exactly for quota-driven skip
re-admission (#1823 renames): _antigravity, _claude, _commandcode,
_muse. Normalization sits at entryFromResult, the one mapping point
every gathered result passes through; pool/service ids are unchanged
(serviceIdFor keeps the dual-spelling cases, _muse keeps the meta
pool). Antigravity split rows now file under _antigravity.gemini /
_antigravity.claude-gpt instead of the legacy antigravity-direct.*
ids. Retention (lastKnownEntries/markRetained) matches and re-stamps
canonically so a rename boundary never re-publishes an old spelling,
and the credential-lifecycle Claude rules accept _claude.
@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 05:47
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

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 45 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: 604a34a0-4547-4402-98c6-cd66190db466
Commits

Reviewing files that changed from the base of the PR and between aa167d3 and 2a0d259.

Files selected for processing: 4

  • pm-stack/aggregator/src/credential-lifecycle.ts
  • pm-stack/aggregator/src/quota-gather-map.ts
  • pm-stack/aggregator/test/quota-gather-map.test.ts
  • pm-stack/aggregator/test/token-adapter.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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T05:48:35.181899Z 2a0d259 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant