Skip to content

Respect payment retry budgets before signing - #9

Merged
JasonColapietro merged 1 commit into
mainfrom
fix/payment-retry-budget
Dec 1, 2026
Merged

JasonColapietro merged 1 commit into
mainfrom
fix/payment-retry-budget

Conversation

@JasonColapietro

Copy link
Copy Markdown
Collaborator

When a server kept returning HTTP 402, the client signed one unused authorization after its payment retry budget was exhausted. A zero budget still signed once. Stop before signing when no paid retry remains, and reject invalid retry budgets at construction.

Added offline regression coverage for budgets 0, 1, and 3 plus invalid configuration. The new read-only CI workflow runs locked dependencies, lint, and the offline suite on Python 3.10 and 3.13. No version bump or package publication is included.

Validation: baseline 34 tests passed; the eight new cases failed before the fix; all 42 tests, Ruff, source/wheel build, and git diff --check pass after the fix on Python 3.12. No live financial endpoints were called. Rollback is a revert to the pre-change source at ea99f9aa3721db455832773321a65d97cfcc6262.

@JasonColapietro
JasonColapietro merged commit b92b952 into main Dec 1, 2026
2 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