docs: cashu error handling plan#1118
Draft
orveth wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
0d44855 to
af03b3e
Compare
gudnuf
reviewed
Jun 2, 2026
|
|
||
| ## 5. Relationship to #1115 | ||
|
|
||
| #1115 (open draft) is the **first transient instance**: it adds `isTransientCashuSwapError` (11004/11002 → `ConcurrencyError`) and rewires the two swap-task mutations. Recommended order: **#1115 merges first** (ships the urgent prod crash fix now), then **Phase 2 generalizes it** — `classify()` subsumes `isTransientCashuSwapError`, so Phase 2 deletes the bespoke predicate and routes through the classifier. (Avoids blocking the crash fix on the full build.) |
Contributor
There was a problem hiding this comment.
we can supersede this PR with the ideal solution
3 tasks
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
af03b3e to
8b97694
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan for general cashu
MintOperationErrorhandling across send / receive / swap / melt: a trust-the-spec-codes classifier sorting errors into 4 flow-agnostic buckets (transient / permanent / already-resolved / unhandled), service-level refinement of the coarse bucket with operation context, and 2 hard rules (trust the codes, money-safety first). Split into 4 independently reviewable + shippable phases, with money-safety guards on the swap restore paths.Supersedes #1104.
Draft for team review.