feat(coding-plans): show current quota in Subscription Center - #5071
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review at Files Reviewed (31 files)
Generated migration snapshot/journal files ( Previous Review Summary (commit c34a1f4)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c34a1f4)Status: No Issues Found | Recommendation: Merge Files Reviewed (13 files)
Reviewed by kimi-k3 · Input: 100.6K · Output: 18.2K · Cached: 926.7K Review guidance: REVIEW.md from base branch |
c34a1f4 to
c7f7275
Compare


Summary
Show normalized MiniMax and BytePlus Coding Plan quota in Subscription Center summary cards and detail pages.
Why this change is needed
Customers cannot currently see their remaining managed-plan quota in Kilo. BytePlus also requires a control-plane seat lookup because its usage API is authorized with Kilo-managed AK/SK credentials and addresses quota by seat ID rather than inference API key.
How this is addressed
upstream_usage_iddatabase column and provider-scoped partial unique index.Human Verification
Reviewer Notes
Human Reviewer Flags
Code Reviewer Agent
Code Reviewer Notes
canQueryUsagerequires the assigned inventory row to match the subscription owner, plan, and provider.