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:
- 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, leaving80%in the weekly reserve (80% reserve + 20% active = 100% total). - 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., if40%of the 5-hour buffer was used, deduct0.40 × 20% = 8%from the weekly reserve). - 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 exceeding100%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 hits0%, the tap shuts off completely—even though your mug still looks68%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 = still100%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 missing40%(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 hits0%, you’re actually out of water. No fake68%meter, and Google still gives the exact same100%total quota.
- If you use