Skip to content

fix: preserve reserve failover - #195

Merged
jacobcxdev merged 2 commits into
mainfrom
fix/reserve-unsettled-usage
Sep 9, 2026
Merged

jacobcxdev merged 2 commits into
mainfrom
fix/reserve-unsettled-usage

Conversation

@jacobcxdev

@jacobcxdev jacobcxdev commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Protected traffic could consume beyond its reserve while upstream usage remained unchanged, and a prewarm-adopted turn could reject a healthy-account retry after quota exhaustion. CQ now fences unchanged protected usage, excludes only the system account, and retires stale prewarm provenance when a portable full-body retry rebinds to another available account.

Validation:

  • go build ./...
  • go vet ./...
  • go test -race -count=1 ./...

- treated unchanged live quota after protected traffic as unsettled
- routed subsequent requests to other available accounts
- cleared fence after usage movement or verified reset
@jacobcxdev jacobcxdev self-assigned this Sep 9, 2026
- Cleared adopted prewarm provenance during authorised portable account rebinding.
- Covered stateful quota retries after prewarm adoption.
@jacobcxdev jacobcxdev changed the title fix: block unsettled reserve usage fix: preserve reserve failover Sep 9, 2026
@jacobcxdev
jacobcxdev merged commit d17ef61 into main Sep 9, 2026
6 checks passed
@jacobcxdev
jacobcxdev deleted the fix/reserve-unsettled-usage branch September 9, 2026 18:14
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