Repository navigation
docs(id): design refundable grants as pending transfers (#2065) - #2293
Conversation
Grants issue as one pending TigerBeetle transfer per Steam key, vesting at the refund-window close and voidable while pending. Covers window length, partial posting (void-and-reissue, since void is all-or-nothing), the pending-grant UX, and shows the #2040 clawback failure mode closed for refunds inside the window while bounding the post-vest residual.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 15a7c7681f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| The cost is delayed usability: pending credits are not spendable posted balance (`credits_pending`, not `credits_posted`), so the user holds tokens they cannot spend until the window closes. That is the whole trade, and it is a product decision, not an engineering one — §3 surfaces it rather than defaulting it. | ||
|
|
||
| **Recommendation:** grant per Steam key as one pending transfer; vest (post) at window close; void on refund before close; re-issue the remainder for partial refunds (TigerBeetle cannot partially void). Window: **14 days from key redemption**, the Steam refund window, with an optional early-vest path if we ever get a trustworthy "refund window closed" signal. Partial refund after posting falls back to the bounded clawback + debt policy in §6. |
There was a problem hiding this comment.
Base the vesting window on the applicable purchase policy
For the key-backed grants described here, Valve's refund policy explicitly excludes third-party CD keys. For eligible Steam-store purchases, the standard 14-day period starts at purchase, or release for pre-purchases—not key redemption. Consequently, the proposed deadline does not establish the claimed alignment with Steam's refund window, and could impose a two-week spend lock without covering the actual seller's refund period. Identify the purchase channel and its applicable refund deadline before recommending a matching vesting window.
Useful? React with 👍 / 👎.
Design doc for #2065: grant premium tokens as pending TigerBeetle transfers so a Steam refund inside the refund window voids the grant instead of failing as a clawback.
What it says
vests_at, distinct error on spend-against-pending.Doc:
doc/2026-10-29T12-10-00Z_design_refundable_grants_pending_transfers/Follow-ups filed from it: grant service implementation, vesting reconciler/drift alarm, and the window/spendability decision.
Queue task: 3367 (repo-health-code-pilot).
Need help on this PR? Tag
@codesmith-botwith what you need.