Repository navigation
Conversation
Contributor
|
✅ Deterministic PR hygiene checks passed. |
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 |
2 tasks done
Owner
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
Closes #7377.
Pool traffic headers refresh aggregate usage but keep the independently observed credit balance/clock. An opted-in account can therefore leave selection after five minutes while its usage cache still looks fresh and prevents a WHAM read.
Reuse the existing sweep and bounded pool quota primer with a pool-only
credit-renewalreason. Exhausted, opted-in, unpaused/non-reauth pool accounts renew from three minutes of credit age, bypassing aggregate usage freshness. The existing per-credential attempt map bounds retries; generation/query/admission fences stay with the existing reader. The reason performs no native-main reconciliation/claim/probe, and never extends credit validity or authorizes inference from missing/stale evidence. Update the owning contract, index, ADR and configuration reference.Verification
79fa97be6e6ae974ccd31d9aeedc2da96a0baa73.bun test --isolate tests/codex-integration/codex-quota-prime.test.ts tests/codex-integration/main-account-credit-renewal.test.ts tests/codex-integration/main-account-hard-lock-recovery.test.ts— 173 pass, 0 fail.Checklist
Keep Draft pending current-head CI and independent account/metadata boundary review. This does not change spending consent, deploy a worker to the installed service, or request merge/release.
Hosted validation
Current head
8692ac9cf578936e402ae2af3d40e3d5bb3eb6a3: Cross-platform CI run 39259235092 completed successfully, including Typecheck, Privacy scan, all four selected Ubuntu test shards, structure and docs build. This supplements the focused local receipts; skipped macOS/Windows remain unverified. Keep Draft for independent boundary review.