Release 0.3.2: decode Grok zero usage correctly - #75
Merged
Merged
Conversation
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.
Grok omits
creditUsagePercentat zero usage. Version 0.3.1 treated that as unavailable, so the user's usage display remained broken after reset.Decode an omitted percentage as 0% used / 100% remaining only after validating the current weekly/monthly period. The official grok.com protobuf descriptor defines an implicit-presence proto3 float; this is a protocol default, not an estimated value. Explicit null/malformed values and invalid configurations/periods still fail validation. Existing 0.3.1 partial caches trigger a fresh read on demand instead of delaying it for ten minutes; their historical data is not rewritten. Prepare version 0.3.2 (build 12).
Evidence and validation:
docs/research/grok-zero-usage-2026-09-16.md.4f85569fdb7db5b80f57e308f28ae21aabd5d30balso passed GitHub CI and Swift/Actions CodeQL. Covers weekly/monthly omitted zero, reset/history/overview, relaunch, subsequent 1% usage, and immediate recovery from a fresh partial cache.Release authorization (2026-09-16): the owner explicitly approved publication of 0.3.2 after green tests and CodeQL, renewed the unperformed all-enabled idle comparison and eight-hour lifecycle soak exceptions specifically for 0.3.2, and authorized administrative merge of PR #75 without a second/code-owner approval. ADR-0015 and the PRD record that approval. Signed release artifacts must still be verified before publication.