Repository navigation
Show passive API-key rate-limit headroom - #8297
Conversation
|
Caution Review failedThe pull request is closed.
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. |
|
✅ Deterministic PR hygiene checks passed. |
…droom-into-dev Integrates #8297 passive key-limit observation onto dev while keeping dev's #8295 Mistral budget, the exact credential optional binding, Claude held reports, the Vertex final-send guard and Muse passive observation. The owner-rejected feature-only Muse ownership ledger, the Antigravity quota owner, and the reset-identity and key-quota-scope hardening are not restored; those files are removed with the PR's own additions. Security-review fixes carried in this merge: - Passive cache identity and invalidation are scoped to the config home that observed the send, so the same provider and key in another home neither reads, replaces, nor retires this home's rows. - A redirect is never a reading, and a parsed response with no count, remaining value, or reset no longer advances the sequence fence, so an older real response can still settle after a newer headerless 302. Ratchets: providerRoutingQuota moves to provider-routing-quota.ts so provider-routes.ts returns under the 2000-line new-file bound, and the providers guide keeps dev's budget prose plus a compact passive-observation note within the same bound. quota.ts stays at its 558-line cap.
…droom-into-dev Brings the integration onto the current dev head after the first merge resolved against an earlier target. The extra dev commits (Remote Link WebSocket, zstd child bodies, Pi nested selectors, byte accounting) touch the layout fixture and structure docs, so this merge re-derives both copies of the layout table from the live parents instead of keeping the older snapshot. Verification on the merged tree: - bun run typecheck: no type errors (2,456 files) - bun scripts/file-size-ratchet.ts: passed - bun run structure:check: passed - bun run privacy:scan: passed - tests/test-layout.test.ts + tests/test-layout-tooling.test.ts: 29 pass - tests/providers/passive-key-limits.test.ts + passive-key-observation + responses-passive-key-limits: 105 pass - tests/providers/mistral-budget-quota, usage/quota-pool, provider-quota-observed-marker, lab/core-lab-boundary: 108 pass - tests/server/management-provider-validation: 138 pass - gui quota-summary-bar/summary/observed-age/display-only-window: 43 pass
…eadroom Restore the Antigravity and Kiro quota probes, their dedicated ownership tests and the jev-decision note to dev, and drop the owner-hash reset key so both providers keep dev's account-ID reset baselines across upgrade. The ownership work is kept on goat/quota-8297-ownership-followup-20261113 for separate review. Keep the passive auth-store peek that other passive quota reads rely on, and assert the accepted first-headerless Unknown contract in the Responses end-to-end test.
Passive held reads withheld every report whose provider carried a keychain apiKey, so a provider switched from key to OAuth authentication lost its live OAuth report on passive reads. Withhold only key-authenticated reports, whose ownership depends on the keychain value a passive read cannot verify.
Maintainer judgment (head
|
Codex Review Summary: ✅ CompletedThis 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. |
Summary
dev.Verification
Head
c200c8bc.bun run typecheck,bun run structure:checkandbun run privacy:scanpassed.bun run testcould not produce a valid verdict: the host was saturated by other lanes (load average ~17 on 16 cores) and the run overlapped a mid-run edit. Failing files outside the quota area are being compared againstdevon the same host; hosted shards are the authoritative full run.Checklist