[WRONG BRANCH] fix(quota): hydrate and persist account quota snapshots - #397
[WRONG BRANCH] fix(quota): hydrate and persist account quota snapshots#397luvs01 wants to merge 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 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. |
⏳ DRAFT
What to do
Its title has been prefixed with |
Motivation
Description
hydrateAccountQuotaCache()from routing-facing reads and reconciliation points.persistAccountQuotaCache()after successful Anthropic and Kiro provider-level probes and after successful per-account probes.resetProviderAccountQuotaDiskStateForTests()and update persistence tests to assert that persisted rows hydrate the runtime cache and that production probes schedule writes.clearAccountQuotaCache()avoid re-seeding from the file just cleared to prevent races with immediate file-backed writes.Testing
node_modules/bun/bin/bun.exe test tests/provider-account-quota-persistence.test.ts tests/provider-account-quota.test.tsand observed the added persistence/hydration assertions pass (23 tests).node_modules/bun/bin/bun.exe run typecheck.node_modules/bun/bin/bun.exe run privacy:scan.node_modules/bun/bin/bun.exe run test) but encountered unrelated, pre-existing failures in other subsystems (lab automation and a few integration tests); these unrelated failures prevented a completed full-suite run in this environment.Codex Task