Repository navigation
[WISE] Keep Antigravity Gemini and Third-Party windows in distinct push buckets - #550
Merged
Merged
Conversation
Contributor
|
@kody start-review |
This comment has been minimized.
This comment has been minimized.
|
Automatic approval held Kody's assessment:
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
fallbackBucketIdfell through to bare cadence. Gemini 5h and Third-Party 5h both became5h, and both weekly windows becameweekly, so server kept one window per bucket and phone drew a single bar per pool.Change:
google-antigravitypool windows now bucket asgemini-5h,gemini-weekly,3p-5h, and3p-weekly, matching ids already read by server andAntigravityQuotaGroups.pool. Pool family is derived frommodelTypewith fallback to parsingantigravity:<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
testAntigravityPoolWindowsKeepDistinctBucketspinning four distinct buckets. Rollout note reportsswift test -j 4 --filter UsageMonitorPushMetadataTestsand iOSCompanionQuotaModelchecks against live and fixed payloads showing restored bars; run completion is unverified in this diff.Open risks (automated review, medium): Raw
windowtoken is used for bucket cadence without normalization. Pool prefix handlesthird-partybut not server-style3pmodel 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 so7dandweeklyboth resolve to theweeklyserver bucket. Makes pool-family detection prefix-based onmodelTypewith fallback towindow.id, sogemini*maps togeminiand3p*/third*maps to3p.Tests
Adds
testAntigravityBucketsNormalizeCadenceAndServerStyleFamiliescovering7d/weeklynormalization and server-style families such as3p-5hand3p-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.