Skip to content

Fix/expired payment grant retention - #117

Open
1amKhush wants to merge 9 commits into
ContextVM:masterfrom
1amKhush:fix/expired-payment-grant-retention
Open

1amKhush wants to merge 9 commits into
ContextVM:masterfrom
1amKhush:fix/expired-payment-grant-retention

Conversation

@1amKhush

@1amKhush 1amKhush commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Addresses #114. Depends on #110; tested together with #112.

Summary

Expired, unclaimed paid grants currently block their invocation for the store's lifetime. Add a trusted, generation-fenced resolve_expired_grant transition after the application/operator resolves the payment outside the SDK.

  • Require an explicit retentionMs after grant expiry, with no SDK default.
  • Keep unresolved grants pinned regardless of age or capacity pressure.
  • Collect resolved grants only after retention, invoice-expiry, and replay deadlines, on the next admission.
  • Refuse live grants, consumed/dispatched rights, unpaid/uncertain attempts, stale generations, and repeated resolutions.
  • Preserve untimed transports' indefinite replay retention. No refund, authorization renewal, handler execution, or automatic wallet action is performed.
  • Add a release changeset; document operator usage in a separate docs-repository branch.

The existing #109 core implementation is preserved and revalidated. No storage dependencies or PostgreSQL implementation are added.

Validation

Copilot AI balanced review requested due to automatic review settings November 2, 2026 07:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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.

2 participants