[UX / Quota Bug] 5-hour rolling quota shows usable % (e.g., 68%) when weekly quota is 0% — propose pre-allocated buffer model

1. Technical Specification & Proposed Fix

Currently, Antigravity appears to evaluate the 5-hour rolling rate limit and the weekly quota cap as independent counters (allow_request = (quota_5h > 0) && (quota_weekly > 0)), resetting the 5-hour percentage independently of remaining weekly capacity.

The UX Issue:
When the weekly quota hits 0%, requests are immediately blocked even if the 5-hour meter displays a high remaining balance (e.g., 68%). Showing usable capacity on the 5-hour meter when the account is hard-locked creates confusion and erodes user trust.

Proposed Architecture (Pre-Allocated Session Buffer):
Instead of two uncoupled counters, model the 5-hour window as a pre-allocated token/compute buffer drawn from the weekly pool:

  1. Initial Allocation: At the start of a weekly cycle (100% total), allocate the 5-hour burst capacity (e.g., 20% of weekly) into the active 5-hour session pool, leaving 80% in the weekly reserve (80% reserve + 20% active = 100% total).
  2. Delta-Only Top-Ups (Every 5 Hours): When the 5-hour timer resets, only deduct the consumed delta from the weekly reserve to top the 5-hour buffer back up to 100% of its cap (e.g., if 40% of the 5-hour buffer was used, deduct 0.40 × 20% = 8% from the weekly reserve).
  3. End-of-Week Depletion: If the weekly reserve has less than the required top-up delta, transfer only the remaining weekly reserve into the 5-hour buffer (so the 5-hour meter visibly reflects actual remaining capacity). Once the weekly reserve reaches 0%, the user can still exhaust whatever balance remains inside their already-allocated 5-hour buffer—without exceeding 100% of their paid weekly allowance.

(Alternative quick UI fix: If backend stateful allocation isn’t feasible short-term, cap the displayed 5-hour percentage in the UI at min(remaining_5h, remaining_weekly) so it never displays usable quota when the weekly pool is empty.)


2. Plain-English Analogy (The Bucket & The Mug)

Think of the weekly quota as a water bucket and the 5-hour limit as a mug:

  • How it works right now: You have a bucket (100%) and a mug (20% capacity). Every time you wash your hands, both meters drop. If your bucket hits 0%, the tap shuts off completely—even though your mug still looks 68% full right in front of you.
  • How it should work: Start by scooping one full mug (20%) out of the bucket (80% left in bucket + 20% in mug = still 100% total water, zero extra cost to Google).
    • If you use 40% of the mug (60% left) and 5 hours pass, the refill only scoops enough water from the bucket to top off the missing 40% (8% from the bucket).
    • When the bucket finally hits 0%, you still get to use whatever water is physically left in your mug—and when the mug hits 0%, you’re actually out of water. No fake 68% meter, and Google still gives the exact same 100% total quota.

Hi @ANURAJ_RAI,

Thank you for putting together this UX feedback and pre-allocated buffer proposal for how the 5-hour rolling quota and weekly quota cap are displayed when the weekly limit reaches 0%.

Under the current Plans model, the 5-hour quota refreshes until the weekly limit is reached, so hitting 0% on the weekly cap pauses further baseline usage until the weekly reset. We appreciate the clear breakdown of why showing a non-zero 5-hour percentage in that state is confusing, and we have noted your UX suggestion.

Please let us know if you need further assistance with quota resets or overage settings.