Skip to content

feat(web): serve gatherer quota-current on /quota (#1151) - #1329

Merged
dezren39 merged 1 commit into
mainfrom
feat/quota-current-visibility
Oct 27, 2026
Merged

dezren39 merged 1 commit into
mainfrom
feat/quota-current-visibility

Conversation

@dezren39

@dezren39 dezren39 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Final visibility hop for the quota plane (#1151): the aggregator overlay reads quota-current.json (written by the gatherer into the deployed aggregator dir on its 15-min tick) and applies it to the quota view.

  • Fresh (<=20 min) ok entries take precedence for the pool whose id equals the entry serviceId: percent windows replace dated-read windows, pool state + choices recomputed.
  • Error / aged entries surface as the pool's state (error/stale, with the reason) via a new pool freshness stamp — never zeros, never silently presented as current.
  • /api/quota.json stays additive: pools gain freshness; a top-level gatherer summary (tick time, health, per-provider freshness incl. pool-less providers like OpenCode Go / Antigravity) rides along.
  • /quota pool cards show the gatherer freshness line (state, measured-at, source, error).
  • Config: PM_AGG_QUOTA_CURRENT_FILE (default quota-current.json in the aggregator cwd).

Known remaining gaps (documented, not hidden): OpenCode Go still arrives as one combined gatherer row (serviceId opencode-go) with no per-workspace pool to overlay, and Antigravity arrives per-model — both appear in the gatherer summary but do not overlay the split pools until the quota module splits them.

Tests + live verification results land on #1151.


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

@dezren39
dezren39 requested a review from a team as a code owner October 27, 2026 07:05
@coderabbitai

coderabbitai Bot commented Oct 27, 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 28 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: 5167b9d9-b602-4937-8b42-bd0aa0ac991c
Commits

Reviewing files that changed from the base of the PR and between fe0b9c5 and 1a96b5e.

Files selected for processing: 6
  • pm-stack/aggregator/src/config.ts
  • pm-stack/aggregator/src/model.ts
  • pm-stack/aggregator/src/quota-current.ts
  • pm-stack/aggregator/src/render.ts
  • pm-stack/aggregator/src/sources/live.ts
  • pm-stack/aggregator/test/quota-current.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

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T07:05:24.670331Z 1a96b5e 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