Repository navigation
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
Contributor
|
✅ Deterministic PR hygiene checks passed. |
2 tasks done
This was referenced Oct 21, 2026
Owner
Owner
lidge-jun
added a commit
that referenced
this pull request
Oct 24, 2026
* fix(codex): calibrate Business Premium display capacity Business Premium seats report the plan string self_serve_business_prolite, which missed the configured capacity map and counted at the baseline weight 1. OpenAI documents Premium as 5x Standard included usage, so calibrate it at 5 in the display-only pool capacity estimate. Refs #7440 Carries #7444 Co-authored-by: Ingwannu <[email protected]> * docs(codex): move capacity calibration rule to openai-tiers and correct unknown-plan wording --------- Co-authored-by: Ingwannu <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
self_serve_business_prolitecurrently falls through to baseline capacity weight 1 and stays uncalibrated. Add its documented five-Standard-seat estimate to the existing display-only map. Two Premium seats plus one Team seat now contribute 11 weekly units instead of 3.codexPlanKeynormalization and the existing per-window aggregator. Keep unknown plans conservative, preserve exclusion/freshness controls, and never invent a missing five-hour window. No account selection, routing, authentication, quota limit or GUI controls change.Verification
bun test tests/providers/provider-capacity.test.ts: before implementation 18 pass / 1 fail; after implementation 19 pass / 0 fail. The added case checks two Premium labels (including case/space normalization), Team weighting, weighted weekly consumption, calibrated coverage and absence of fabricated burst windows. Existing unknown-plan, stale, pause/reauth, mixed-window and prototype-key negatives remain green.bun scripts/structure-ssot.ts,bun scripts/privacy-scan.ts, andgit diff --checkpass. Ordinary privacy checks are allowed; no Codex Security scan was invoked.bun node_modules/typescript/bin/tsc --noEmitreached the finite 300-second local limit and was terminated. Typecheck is unverified locally, not passed. The full suite is disproportionate for this four-file calibration on the shared host; focused behavior is verified and current-head hosted CI remains required.docs site buildjob passes.gatespasses, including Typecheck and Privacy scan;docs site build, structure, catalog, hygiene, target and Docker checks pass. All four selected Ubuntu shards and the aggregatecinow pass in current-head run 39421778705. macOS/Windows remain unselected. Keep Draft pending independent review. This PR is not a merge, deployment or release.Checklist