Repository navigation
Specify k1 hold/release and GFY 6 reason tokens - #19
Open
shocknet-justin wants to merge 2 commits into
Open
shocknet-justin wants to merge 2 commits into
shocknet-justin wants to merge 2 commits into
Conversation
A later ATM yes after a no is still an approval. Only a second customer request on a held or succeeded k1 is k1_already_processed. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 31, 2026
shocknet-justin
marked this pull request as ready for review
September 2, 2026 15:15
This was referenced Nov 8, 2026
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.
Summary
k1is a correlator, not an auth token. The node service MUST hold eachk1(per pointer) from a valid direct-payment21002until payout success, application denial, or confirmed-failed payout.k1.k1is GFY 6 with"reason": "k1_already_processed". Application approval of a live request is authorization to pay; a later yes after a no is still an approval.reasonis the protocol key (k1_already_processed,invoice_in_progress,invoice_already_failed,invoice_already_paid).erroris human-readable and MUST NOT be matched.k1is valid only on a direct payment (bolt11present,frequencyabsent). Lowercasebolt11before compare, store, and pay.Companion PRs: Lightning.Pub#1028, ClinkSDK#27.
Test plan
Spec-only change.