Skip to content

[WISE] Keep Antigravity Gemini and Third-Party windows in distinct push buckets - #550

Merged
swu-wise[bot] merged 2 commits into
mainfrom
wise/antigravity-pool-buckets
Nov 24, 2026
Merged

swu-wise[bot] merged 2 commits into
mainfrom
wise/antigravity-pool-buckets

Conversation

@jaywedgeworth22

@jaywedgeworth22 jaywedgeworth22 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Fixes Antigravity phone display showing one bar per pool instead of two. Jay reported iPhone showed Gemini 7d only and Third-Party 5h only while Mac showed both.

Cause: Mac publishes four pooled Antigravity windows (Gemini 5h, Gemini weekly, Third-Party 5h, Third-Party weekly) with no model id, so fallbackBucketId fell through to bare cadence. Gemini 5h and Third-Party 5h both became 5h, and both weekly windows became weekly, so server kept one window per bucket and phone drew a single bar per pool.

Change: google-antigravity pool windows now bucket as gemini-5h, gemini-weekly, 3p-5h, and 3p-weekly, matching ids already read by server and AntigravityQuotaGroups.pool. Pool family is derived from modelType with fallback to parsing antigravity:<family>:<period> id.

User impact: Once Mac app with this change has pushed once, phone shows both bars per pool. Fix is publishing-side only.

Tests: Added testAntigravityPoolWindowsKeepDistinctBuckets pinning four distinct buckets. Rollout note reports swift test -j 4 --filter UsageMonitorPushMetadataTests and iOS CompanionQuotaModel checks against live and fixed payloads showing restored bars; run completion is unverified in this diff.

Open risks (automated review, medium): Raw window token is used for bucket cadence without normalization. Pool prefix handles third-party but not server-style 3p model types.


What changed

Keeps Antigravity Gemini and third-party windows in distinct push buckets (gemini-5h, gemini-weekly, 3p-5h, 3p-weekly). Normalizes the weekly cadence token so 7d and weekly both resolve to the weekly server bucket. Makes pool-family detection prefix-based on modelType with fallback to window.id, so gemini* maps to gemini and 3p* / third* maps to 3p.

Tests

Adds testAntigravityBucketsNormalizeCadenceAndServerStyleFamilies covering 7d/weekly normalization and server-style families such as 3p-5h and 3p-weekly. No test-run results, deployment verification, issue references, or unresolved risks were provided in the changes. Runtime bucket behavior remains unverified beyond the added unit coverage.

@swu-wise

swu-wise Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@kody start-review

@kody-ai

This comment has been minimized.

@kody-ai

kody-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Automatic approval held

Kody's assessment:

Risk was identified in this PR.

@kody-ai

kody-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@swu-wise
swu-wise Bot merged commit 39dd5ba into main Nov 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant