feat(usage-api): add toggle to query additional usage, and add pooled usage to /v1/usage#832
feat(usage-api): add toggle to query additional usage, and add pooled usage to /v1/usage#832huzky-v wants to merge 19 commits into
/v1/usage#832Conversation
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 63d756ca23
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 561c21dd68
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aaea5e32ff
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e04b83e523
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Hermes owner-review blocker (current Evidence after And the official migration entrypoint fails on a fresh DB: Please rebase/update onto current |
43548c8 to
bbabad3
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
8578e18 to
ddd54e2
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
This pull request has been automatically marked as stale because it has had no activity for 7 days. It will be closed in 23 more days unless there is new activity. If this is still relevant, please:
Thanks for the contribution 🙏 |
Summary
Adds configurable API-key usage exposure in one reviewable branch:
account_pool_usagefor/v1/usageusage_sectionson API keys so admins can choose exposed usage sectionshide_upstream_quota_from_api_keysso API-key clients can be prevented from seeing owner/upstream quota stateThis branch absorbs #890 and #898, and keeps the earlier folded #748 work, so #518 and #826 land through one API-key usage/quota PR.
Fixes #518.
Closes #826.
Folded PRs
/v1/usage#832940ea651fcac90625dfc853b075e67155a8b27ddOpenSpec
openspec/changes/add-account-pool-usage-to-v1-usage/openspec/changes/backfill-api-key-limit-current-usage/openspec/changes/hide-upstream-quota-from-api-keys/Changes
usage_sectionsto API keys so clients can exposeupstream_limits,account_pool_usage, or both.account_pool_usageto/v1/usageby reusing pooled-credit computation.resetUsagebehavior and per-request truncated microdollar accounting./v1/usageupstream limits and API-key proxy quota headers when the new setting is enabled.mainand merge the API-key usage/quota-visibility migration head with the reauth account-status head.Validation
Local result on
940ea651fcac90625dfc853b075e67155a8b27dd: backend/API pytest focus passed (204 tests); migration pytest focus passed (55 passed, 3 skipped);make migration-checkpassed withcurrent_revision=20260604_010000_merge_api_key_usage_and_reauth_heads; seven focused frontend test files passed (59 tests); ruff, ty, OpenSpec strict validation, frontend lint, and frontend typecheck passed.GitHub CI is green for the new head. Current-head Codex review has been requested and is still pending, so
codex: okis intentionally not set yet.