Skip to content

fix(contract): sync quota lifetime response - #61

Merged
robinbraemer merged 1 commit into
mainfrom
codex/fix-quota-lifetime-contract
Sep 14, 2026
Merged

robinbraemer merged 1 commit into
mainfrom
codex/fix-quota-lifetime-contract

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Rationale: The generated QuotaInfo response schema rejected Production's valid lifetime grant entries after the server-side quota snapshot fix, turning HTTP 200 quota reads into client contract errors. The canonical snapshot now matches the producer's scope and lifetime-grant fields.\n\nRejected: A raw-response fallback or permissive decoder would hide producer/consumer drift and discard the metric-scope identity.\n\nTested: bun run test -- test/generated-command.test.ts --testNamePattern='quotas.list accepts a lifetime quota response'; mise run generate:check; mise run check; bun run test; jq QuotaInfo producer/CLI equality check; independent review (no blockers).

Rationale: The generated QuotaInfo response schema rejected Production's valid lifetime grant entries after the server-side quota snapshot fix, turning HTTP 200 quota reads into client contract errors. The canonical snapshot now matches the producer's scope and lifetime-grant fields.\n\nRejected: A raw-response fallback or permissive decoder would hide producer/consumer drift and discard the metric-scope identity.\n\nTested: bun run test -- test/generated-command.test.ts --testNamePattern='quotas.list accepts a lifetime quota response'; mise run generate:check; mise run check; bun run test; jq QuotaInfo producer/CLI equality check; independent review (no blockers).
@robinbraemer
robinbraemer merged commit a6c4cf8 into main Sep 14, 2026
7 checks passed
@robinbraemer
robinbraemer deleted the codex/fix-quota-lifetime-contract branch September 14, 2026 09:45
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