feat(quota): expose per-account OAuth and API-key usage - #3584
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
리뷰 · 우선순위 58 / 80설명 이 PR은 provider-usage 스택의 두 번째 층입니다. 아래는 #3582(attribution/policy)이고, 위는 곧 올 current/all-account 뷰입니다. 지금 하는 일을 쉽게 말하면 이렇습니다. 예전에는 Anthropic/Kiro/Antigravity 계정만 계정별 쿼터를 제대로 볼 수 있었습니다. 이제는 xAI, Cursor, Kimi, Command Code도 같은 방식으로 계정(또는 API 키)마다 사용량을 읽습니다. Meta Muse는 여전히 네트워크를 치지 않고 캐시에 남아 있는 값만 보여 줍니다(passive). 관리 API도 값이 싸게 동작하도록 나눴습니다. 보안·정합성 쪽에서 눈에 띄는 장치는 두 가지입니다. 첫째, 레거시 단일 새 파일 테스트는 라인 단위로 보면 아래가 확인·판단 포인트입니다. src/providers/quota-key-accounts.ts - 새 모듈. 키 캐시/로스터/identity/ 메인테이너의 판단이 필요한 지점
너의 추천
이 댓글은 grok-bot이 작성했습니다 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9792498520
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ccount-quota-api # Conflicts: # devlog/_plan/260905_provider_usage_quota_parity/040_stack_landing.md
…ttribution # Conflicts: # skills/ocx/references/01_management_surface.md # src/cli/capabilities.ts # src/server/management/route-registry.ts # tests/usage/quota-reset-notify.test.ts
…ttribution # Conflicts: # tests/usage/quota-reset-notify.test.ts
…ttribution # Conflicts: # tests/gui/rate-limit-reset-credits.test.ts
…ovider-usage-attribution
Summary
Stack (merge bottom-up):
codex/provider-usage-attribution).Depends on #3582. Review this layer's diff only. Most added lines are synthetic credential/race regression cases; the API contract and its readers stay together so no unsupported reader is advertised between layers.
Verification
--no-verifyto avoid local suites/hooks.Checklist
Maintainer authorization: admin merge bottom-up only after successful exact-head CI; no release or live-runtime deployment. Lower stack branches are retained until the stack settles.