Repository navigation
feat: pay contacts via spark - #1191
Conversation
|
Pushed |
|
Added to the 3.2.0 milestone: Spark via Breez SDK is the 3.2.0 highlight, and this PR stacks on #1128. |
A spending-only wallet pays a Paykit contact whose only endpoint is on-chain through a Pubky Swaps provider found among its contacts. Behind PUBKY_SWAPS_ROUTES on regtest debug builds. Uses bitkit-core 0.8.0-swaps.2.
ffba7c7 to
0eed9c2
Compare
f376aa7 to
438d6ae
Compare
|
Force-pushed: rebuilt on #1128's new head |
Moves to bitkit-core 0.8.0-spark.3 and its `paykitRoutePayment`, and removes the Pubky Swaps code: the build flags, provider quotes, commit and claim, and their journey and changelog fragment. - On the amount screen, every bitcoin contact payment asks the router how to pay from the selected source: Spending offers all of the contact's bitcoin endpoints and a Spark leg to its on-chain ones, Savings only the on-chain endpoints. Direct pays the endpoint it picks, a Spark leg opens Confirm with Route: Spark and its fee, and none stays on the amount screen with the app's copy, its reason going to the log only. - An on-chain-only contact opens with Spending as a source while Spark can carry the payment, whether or not Savings covers it. - A Spark withdrawal to a contact is journaled before it is sent, settles from Spark's payment list on its event or on the next start, and is recorded as a sent on-chain activity for the contact, confirmed once Spark completes it. A second one waits while the first is open.
- A payment request's Confirm, which opens with fixed terms and no amount screen, asks the router too: Direct switches the send to the endpoint it picks. - An on-chain request can be paid from Spending through a Spark withdrawal. Its on-chain proof is started before Spark sends and completed with the withdrawal's txid, the request's payment check runs right before the send, and the withdrawal journal completes or drops the proof when the app stopped mid-send.
|
This push merges the updated base, #1128 at 7ce626f, with no conflicts. It brings the restore-hold fixes from that PR's latest round; nothing in this PR changes. re-review is needed only because of this push: da90a39...8354e2b |
coreyphillips
left a comment
There was a problem hiding this comment.
Rechecked after 9 new commits (ca16cb5, f08a0a9, baa00f8, and 6 more). Nothing blocking remains.
addressed
- A definite Spark refusal at send time is held as unknown for 10 minutes (Bitkit/Managers/SparkManager.swift:707). Fixed:
withdrawalSendFailure(SparkManager.swift:811) now also treatsisWithdrawalFeeRise(SparkManager.swift:823-826) as a definite refusal. It closes the journal and returnsSparkWithdrawalNotSent, alongside the existingInsufficientFundsmapping. I checked the pinned 0.28.0 xcframework: it carries the text "The onchain fee rose to … Please re-prepare the payment." The linked SDK source returns it asInvalidInputfromaffordable_speedbeforewithdraw.testADefiniteSparkRefusalClosesTheWithdrawalAtOncepasses locally. - A pending contact withdrawal is listed as a transfer to Savings on the Spark screen (Bitkit/Managers/SparkManager.swift:919-931). Fixed:
withdrawals(_:)(SparkManager.swift:1300-1307) now skips the open journal's payment, matched bypaymentIdor, before Spark returns one, by address and amount. Its only UI consumer is SparkConnectionViews.swift:179-182. The.syncedrefresh that runs before settling also skips it, because the journal is still open then.testSparkScreenWithdrawalsLeaveOutAPendingContactPaymentpasses locally. - A second Spark contact withdrawal fails while the first is still pending (Bitkit/Managers/SparkManager.swift:772-777). Fixed:
PaykitRouteService.route(PaykitRouteService.swift:122) throwsSparkWithdrawalSettlingbefore quoting a leg while a journal is open.routeContactPayment(PaykitRouteService.swift:345-364) then returns.refusedwith its own toast, after the balance and LNURL checks. So the amount screen stays put, and Confirm keeps the swipe off (da90a39). BothPaykitRouteSettlingTestspass locally. The new copy is untranslated; that is a separate finding. - Pending contact payments appear as transfers to Savings (Bitkit/Managers/SparkManager.swift:923-924). Fixed: Same fix as point 2. SparkManager.swift:1302-1304 removes the journaled payment from
withdrawals, so the pending contact send no longer shows under Transfer to savings. That holds during the sync that completes it too. The added test passes locally.
new since the last review
worth doing, does not block
- Settling copy added in English only, other locales show a mixed toast (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316)
- The settling message lacks every non-English translation (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316)
jvsena42
left a comment
There was a problem hiding this comment.
Re-review of aedeee5a4, 1a3a1799f, e24e37cc7 and da90a393d (base merge 8354e2b21 had no conflicts): no findings. Approving.
da90a393d:refusedRouteSourceis now set on every routing call (SendConfirmationView.swift:1487). A first refusal on a request's Confirm disables the swipe (:1340), blocks the automatic start (:629), and makessubmitPaymentthrow (:1006). That closes the gap I'd traced: the swipe used to stay enabled and end on a mismatch error.1a3a1799f: the fee-rise refusal closes the journal at once. In breez spark-sdk 0.28.0 thatInvalidInputis raised beforespark_wallet.withdraw, so no withdrawal can be in flight.e24e37cc7: the settling guard sits before leg quoting (PaykitRouteService.swift:122), with the same toast order as Android.aedeee5a4: display only.
A first refusal now keeps the swipe off until the sheet is reopened, even if its cause was transient, such as a quote error. That is the behaviour pwltr asked for.
Device gate: no device check needed for this delta; paykit-spark-route.xml stays with e2e CI. SwiftFormat passes; Run Tests was still pending.
Reviewer model: Claude Fable 5.2 (claude-fable-5-2), Claude Opus 5.5 (claude-opus-5-5)
Reasoning effort: not exposed
|
@coreyphillips Resolved your two threads on the settling message's translations as out of scope: #1270 carries every Spark PR's translations in one follow-up and already lists this key. The body's Out of Scope now says so. |
coreyphillips
left a comment
There was a problem hiding this comment.
Rechecked after replies, with no new commit since 8354e2b. Nothing blocking remains.
still open
- Settling copy added in English only, other locales show a mixed toast (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316). e24e37c adds
wallet__send_paykit_withdrawal_settling__descriptiononly to en.lproj (Localizable.strings:1316). The other 14 locales lack it, whichnode scripts/validate-translations.js --warningsconfirms.t()falls back to English per key (LocalizeHelpers.swift:106-110). In German, for example, the toast would show the translated title "Zahlung an diesen Kontakt nicht möglich" over an English body. The PR's other new keys are translated in every locale, and CLAUDE.md asks for every*.lprojto be updated in the same PR. The validator exits 0 because missing translations are only warnings. Fix: add the key to the 14 other Localizable.strings files. Codex still sees it: Translation validation still reports all 14 missing locales for the key at Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316, despite exiting 0. The #1270 reply defers this non-blocking defect but does not fix or rebut it. - The settling message lacks every non-English translation (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316). The new settling explanation appears in English in every other locale. While a contact withdrawal is pending, try paying another on-chain contact from Spending. This key exists only in
en.lproj, soLocalizationHelperfalls back to English. The translation check confirms it is missing from all 14 other locales. Codex still sees it: Bitkit/Services/PaykitRouteService.swift:361 still uses the missing translation, with English fallback confirmed at Bitkit/Utilities/LocalizeHelpers.swift:109. Tracking this duplicate defect in #1270 leaves the mixed-language toast unchanged.
Superseded by the approval on 8354e2b (5862126124).
|
@coreyphillips Dismissed your changes request from before 8354e2b, since your approval on that head replaces it. |
coreyphillips
left a comment
There was a problem hiding this comment.
Rechecked after replies, with no new commit since 8354e2b. Nothing blocking remains.
still open
- Settling copy added in English only, other locales show a mixed toast (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316). e24e37c adds
wallet__send_paykit_withdrawal_settling__descriptiononly to en.lproj (Localizable.strings:1316). The other 14 locales lack it, whichnode scripts/validate-translations.js --warningsconfirms.t()falls back to English per key (LocalizeHelpers.swift:106-110). In German, for example, the toast would show the translated title "Zahlung an diesen Kontakt nicht möglich" over an English body. The PR's other new keys are translated in every locale, and CLAUDE.md asks for every*.lprojto be updated in the same PR. The validator exits 0 because missing translations are only warnings. Fix: add the key to the 14 other Localizable.strings files. HEAD and refs/pull/1191/head are still 8354e2b.wallet__send_paykit_withdrawal_settling__descriptionis still only in en.lproj (Localizable.strings:1316).validate-translations.js --warningsstill lists ar, ca, cs, de, el, es, es-419, fr, it, nl, pl, pt, pt-BR and ru as missing it. The description's Out of Scope bullet defers this to #1270, but that is a deferral, not a fix. The only reply is a dismissal of an earlier review and does not address the key. - The settling message lacks every non-English translation (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316). The new settling explanation appears in English in every other locale. While a contact withdrawal is pending, try paying another on-chain contact from Spending. This key exists only in
en.lproj, soLocalizationHelperfalls back to English. The translation check confirms it is missing from all 14 other locales. This is the same gap as point 1, and nothing changed. The key exists only in en.lproj, and the validator still reports it missing from all 14 other locales. The toast at PaykitRouteService.swift:361 therefore still shows a translated title over an English body. The #1270 note in the description defers the work but does not settle it, and no reply in the thread addresses it.
pwltr
left a comment
There was a problem hiding this comment.
Reviewed 8354e2b.
Medium — Reroute mixed-endpoint payments when switching to Spending on Confirm. Bitkit/Views/Wallets/Send/SendConfirmationView.swift:1115-1120 skips routing whenever a Lightning invoice or LNURL remains decoded. After routing a mixed contact directly from Savings, switching to Spending therefore misses an affordable Spark withdrawal when the amount exceeds Lightning's limit. Submission follows the direct-payment path instead. Reroute this source change so the selected funding source gets a fresh route.
Medium candidate — Verify blockchain inclusion before showing Confirmed. Bitkit/Managers/SparkManager.swift:965-966 and :1252-1255 mark the on-chain activity confirmed solely from Spark's completed status. If completed means provider payout acceptance before mining, the activity prematurely shows Confirmed. Establish the pinned SDK guarantee or obtain chain confirmation evidence before setting this flag.
Low candidate — Resolve an LNURL the router picks without retained decoded data. Bitkit/Services/PaykitRouteService.swift:389-394 refuses that choice instead of decoding it. Common mixed-contact initialization already decodes the endpoints, so natural reachability remains uncertain.
Review details
Quick review
Model: Claude Opus 5.5
Reasoning effort: high
General review
Model: GPT-6.1 Sol
Reasoning effort: high
Combined review
Model: GPT-6.1 Sol
Reasoning effort: high
|
@coreyphillips On the settling message's translations: I'm keeping translations out of the Spark PRs on purpose. They ship together in #1270, which lists |
coreyphillips
left a comment
There was a problem hiding this comment.
Rechecked after replies, with no new commit since 8354e2b. One point still blocks a merge.
still open
- Settling copy added in English only, other locales show a mixed toast (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316). e24e37c adds
wallet__send_paykit_withdrawal_settling__descriptiononly to en.lproj (Localizable.strings:1316). The other 14 locales lack it, whichnode scripts/validate-translations.js --warningsconfirms.t()falls back to English per key (LocalizeHelpers.swift:106-110). In German, for example, the toast would show the translated title "Zahlung an diesen Kontakt nicht möglich" over an English body. The PR's other new keys are translated in every locale, and CLAUDE.md asks for every*.lprojto be updated in the same PR. The validator exits 0 because missing translations are only warnings. Fix: add the key to the 14 other Localizable.strings files. Codex still sees it: The key remains English-only at Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316, and LocalizeHelpers.swift:106-110 still falls back to English. @ovitrif's comment defers the translations to #1270 but does not resolve the mixed-language toast. - The settling message lacks every non-English translation (Bitkit/Resources/Localization/en.lproj/Localizable.strings:1316). The new settling explanation appears in English in every other locale. While a contact withdrawal is pending, try paying another on-chain contact from Spending. This key exists only in
en.lproj, soLocalizationHelperfalls back to English. The translation check confirms it is missing from all 14 other locales. Codex still sees it:node scripts/validate-translations.js --warningsexits successfully but still reports this key missing from all 14 non-English locales. The comment acknowledges that gap and postpones it, so the point remains unresolved.
new since the last review
needs changing before merge
- Switching to Spending can bypass the Spark fallback (Bitkit/Views/Wallets/Send/SendConfirmationView.swift:1115-1120)
worth doing, does not block
- Switching Confirm to Spending skips the router while a Lightning endpoint is decoded (Bitkit/Views/Wallets/Send/SendConfirmationView.swift:545-548)
A switch to Spending on Confirm now always asks the router for a contact a Spark leg can reach, also when a decoded invoice or LNURL is kept from an earlier Savings pick, so an amount past Lightning's limit goes through an affordable Spark withdrawal. A Direct LNURL pick there continues on the LNURL's own confirm, since Confirm has no LNURL send.
Spark lists a withdrawal completed once its provider accepts the payout, before the payout transaction is broadcast or mined (spark-sdk 0.28.0, crates/spark/src/ssp/graphql/models.rs:187-209 and crates/breez-sdk/core/src/models/adaptors.rs:339-347). A contact withdrawal's activity now stays unconfirmed until Electrum lists its payout output in a block.
A route built after the scan, once Spark became ready, can hold a contact's LNURL that was never decoded. The router can pick it, so the pick now decodes it instead of refusing the payment.
Confirm's expanded details for a Spark leg now show the payment request's note, as the on-chain and Lightning details do.
|
Pushed 3a772cc: the latest review round, plus base synonymdev/bitkit-ios#1128 at 18946a0 merged in (no conflicts). Each fix has a test that failed first, except c8d16ff, which is a view change. The full
@coreyphillips (review 5863666613)
Re-review is needed only because of this push: 8354e2b...3a772cc |
|
Merging this PR into synonymdev/bitkit-ios#1217 merges after this one, so it takes the Route and Exit join: a contact withdrawal is refused while an exit runs. |
Closes #1244
Closes #1285
Twin: synonymdev/bitkit-android#1754
Dependency:
This PR routes every bitcoin Paykit contact payment through bitkit-core's Paykit router, so a wallet whose spending balance sits on Spark pays contacts directly over Lightning, or through a Spark withdrawal to a contact who only accepts on-chain bitcoin.
Description
paykitRoutePayment) how to pay every bitcoin contact payment: on the amount screen's Continue, when a payment request's Confirm opens with its fixed terms, and when the source is switched on Confirm. The router gets the contact's endpoints and what the selected source can spend:Directpays the endpoint it names, switching the send to it when the scan opened another one.Serviceopens Confirm withRoute: Sparkand the leg's fee. The swipe withdraws exactly the amount to the contact's address, so the contact receives exactly the amount entered.Nonestays on the amount screen and shows "Insufficient balance" when the amount is above what the source can spend, or when Spark's balance can't cover the amount plus its fee; an LNURL whose limits refuse the amount shows its own too-low or too-high toast; else "Can't pay this contact" (translated in every locale). The router's reason goes to the log only.0.8.0-spark.3, a prerelease of feat: pay contacts via spark bitkit-core#193. No build flag.What it needs to ship
Out of Scope
wallet__send_paykit_withdrawal_settling__description): it is in English for now; translations follow in chore: translate spark strings #1270.Design
N/A — no design available.
Preview
Two regtest wallets, A and B, each other's Paykit contacts, with their spending balance on Spark; one recording per wallet and flow, at 2x speed.
A pays contact B 200 sats over B's private endpoint; the router picks Lightning from Spending, and B's activity links it to A.
1191-p1-a2x.mp4
1191-p1-b2x.mp4
B's app is closed while A pays B 200 sats; on relaunch B shows it received from A, once.
1191-p2-a2x.mp4
1191-p2-b2x.mp4
A pays the fixture-issuer, a contact with only an on-chain endpoint: Confirm shows
Route: Sparkwith a 2,190-sat fee, and the Spark withdrawal pays 5,000 sats on chain.1191-p3-a2x.mp4
B requests 150 sats; A's Payment Request opens by itself and A pays it from Spark.
1191-p4-a2x.mp4
1191-p4-b2x.mp4
A requests 2,000 sats; B dismisses it from Payment Requests, and A's request reads Rejected.
1191-p5-a2x.mp4
1191-p5-b2x.mp4
B gives A a $1-a-payment allowance: A's 300-sat request is paid automatically, a 2,000-sat request asks B, and after B ends the allowance a 200-sat request asks B too.
1191-p6-a2x.mp4
1191-p6-b2x.mp4
B ends the allowance; A's next 200-sat request isn't paid automatically and asks B.
1191-p6e-a2x.mp4
1191-p6e-b2x.mp4
B proposes a monthly 120-sat subscription; A subscribes and pays the first period from Spark, and after both apps relaunch it is still active.
1191-p7-a2x.mp4
1191-p7-b2x.mp4
B requests $0.20; A's Payment Request shows it quoted at 269 sats and A pays it from Spark.
1191-p8-a2x.mp4
1191-p8-b2x.mp4
B turns private contact payments off and A can't pay B; B turns them on again and A pays B 100 sats.
1191-p9-a2x.mp4
1191-p9-b2x.mp4
An amount above A's 30,403 balance can't be entered (99,999 stops at 9,999); tapping Available fills the sendable maximum with the reserve kept, and A pays it to B.
1191-p10-a2x.mp4
1191-p10-b2x.mp4
A's app is killed 2 s after the swipe paying B 300 sats; B receives it once and A's balance drops once. A's Sent row appeared only after the next relaunch.
1191-p11-a2x.mp4
1191-p11-b2x.mp4
Screens
iPhone 17 Pro 2x simulator (iOS 27.0), dark mode; wallets A and B from the Preview (No route: B paying the on-chain-only fixture-issuer 70 sats), with Spark on Lightspark's hosted regtest and Pubky contacts on a local homeserver; no debug hooks.
Confirm
Activity
Spark screen
QA Notes
Setup
main:docker compose up -d, then./pubky-marketplace upand./pubky-marketplace seed, thendocker compose --profile marketplace --profile payment-requests up -d --no-build fixture-issuer rc56-peer; itsfixture-issuer, which publishes onlybtc-regtest-p2wpkh, is the on-chain-only contact (J1, Preview 3).xcodebuild build -project Bitkit.xcodeproj -scheme Bitkit -configuration Debug -destination 'platform=iOS Simulator,name=<simulator>' 'SWIFT_ACTIVE_COMPILATION_CONDITIONS=$(inherited) E2E_BUILD' E2E_BACKEND=local E2E_NETWORK=regtest E2E_HOMESERVER_PUBKY=$(./pubky-marketplace info | jq -r .homeserver_z32), installed on two simulators on the same Mac as bitkit-docker.bitkit://contact?pubky=<pubky>); save the fixture-issuer the same way, its pubky fromcurl 127.0.0.1:23012/health.Journeys
paykit-spark-route.xml— a wallet whose spending balance is on Spark pays an on-chain-only contact through a Spark withdrawal, and the contact receives exactly 20,000 satsManual Tests
Paykit flows with the money in Spark, against the Paykit v0.1 specs (pubky/paykit-rs
cb8cba5). Wallet state a is Spark only with no channel; state b is a channel too small for the amount with Spark covering the rest. Results are under Paykit flows with a Spark balance.Evidence
db348780and0a47cc8d: the unit and UI suites pass on an iOS 27.0 simulator, includingPaykitRouteTests, which runs bitkit-core's real router for Direct over Lightning from Spending, Direct on-chain from Savings, the Spark leg to an on-chain-only contact, and None, and covers the leg's broadcast fee and the contact withdrawal's activity. The on-chain Spark leg is driven on simulators in 3 and 10.27569aeon bitkit-core0.8.0-swaps.3, before the router, on a regtest iPhone simulator (iOS 26.5):Route: Sparkand the leg's fee;49780e91…is confirmed on Lightspark's regtest chain and pays exactly 20,000 sats to the contact's address.Paykit flows with a Spark balance
Two regtest iPhone 17 simulators (iOS 26.5) at
771b250f, and at0a47cc8dfor 5 reject, 6, 7 ended, 8, 9 within 5 sats, 14 and 17: RouteIosA and RouteIosB, each other's contacts, Spark on Lightspark's hosted regtest, about 2,000-3,000 sats each. Each payment was 100-300 sats. All results are in state a; state b is ⏭️ for every flow, since the setup has no channel.PaykitPaymentProofServiceTests(the withdrawal txid becomes the on-chain proof; a withdrawal that never went out drops its proof). ✅ reject: B dismissed RouteIosA's 2,000 request from the Payment Requests sheet; A's request reads Rejected, nothing paid. ⏭️ payee cancel before payment: iOS can't cancel a sent one-time request (see 16). ⏭️ expired: the shortest request expiry is 1 hour, not staged.amount_outside_range), nothing paid. After B ended the allowance ("Ended · $0.23 paid automatically"), A's 200 request stayed manual.PrivatePaykitAddressReservationStore), rotated once used, never Spark's static deposit address, which can't be rotated and needs a claim. The spec defines only the endpoint's value format (Payment Endpoint Identifier), not which wallet holds it, so this matches it.Spark leg on simulators
At 6957828, two iPhone 17 Pro 2x simulators (iOS 27.0), dark mode, plain Debug builds: Spark on Lightspark's hosted regtest, Pubky on staging. A held 19,901 sats on Spark. B published only its on-chain endpoint: iOS has no setting for that (Bitkit turns every payment option on at launch), so B ran this head with a local test-only change that reports its Lightning option as off. A ran this head unchanged. B's Savings is on Bitkit's staging chain, so each withdrawal is checked on Lightspark's regtest explorer.
🟢 3. On-chain-only contact through a Spark withdrawal, 10. Kill after dispatch
3. On-chain-only contact through a Spark withdrawal
A paid contact RouteIosB 1,000 sats from Spending. Confirm showed
Route: Sparkwith a ₿ 2,190 fee and the "fee over 50%" check. After the swipe Spending went from 19,901 to 16,711 (1,000 + 2,190). Activity shows one "Sent to RouteIosB" row, on-chain, with payment 1,000, fee 2,190 and the contact; the Other tab is empty, so it is not a transfer. Withdrawal8d214083…confirmed and pays exactly 1,000 to the address B published for A.flow3-A2x.mp4
10. Kill after dispatch
A gave B a $5-a-payment, $50-a-month allowance (Active). B requested 1,000 sats, accepted in Savings only; with no Lightning endpoint the request opened as a manual Payment Request on A, from Spending with
Route: Sparkand a ₿ 2,190 fee. A watcher on A's log terminated Bitkit 0.24 s after "Sent Spark withdrawal", with the withdrawal still journaled. After relaunch:a8983800…, paying exactly 1,000; no second withdrawal.Before this run, B's endpoint address was marked used on its own chain so B rotated it: on two chains B never sees the first payment, and A, correctly, does not reuse a used address. That staging payment is the "Received from RouteIosA + 1,000" row on B's Home in the payee clip; A's withdrawal is the explorer transaction above, which B's app can't see.
flow10-A-1-allowance2x.mp4
flow10-A-2-kill2x.mp4
flow10-B2x.mp4
Automated Checks
unit-tests.ymlon an iOS 27.0 simulator atbe2c54068: pass; SwiftFormat 0.64.6 lint and the translation check passunit-tests.ymlon an iOS 27.0 simulator ata2a34000: pass; SwiftFormat shows no new findings and the translation check passesunit-tests.ymlon an iOS 26.5 simulator at27569ae: passes apart from three date-boundPaykitPaymentProofServiceTestscases thatmasterfixed in421e152PaykitPaymentProofServiceTests.swift: a Spark withdrawal's txid completes and submits the on-chain proof, completing it again is a no-op, and one that never went out drops its started proofPaykitRouteTests.swift: the leg's debit includes the L1 broadcast fee, a contact withdrawal is not marked as a transfer, what the router is asked from Spending and from Savings, the real router's Direct, Service and None outcomes, when a Spark leg is offered, the None copy's balance check, a journaled contact withdrawal matches only its own attempt, the journal stays open until every local record is saved, the leg prepares a request before its proof is started and frees it on a failure before the send, when a source switch on Confirm reroutes, when a request starts on Spending, that a refused send releases its own proof while an older journal is open, that an unlisted withdrawal is dropped only after the expiry, that Confirm offers Spending for an on-chain request Spark can pay, and that a stale withdrawal close publishes no resolution and leaves a retry's proof and allowance aloneSparkManagertalks to the SDK directly. The route's Direct-first quote and the mapping of Spark's payment status to settlement are unit tested.Mainnet tests (run by the author)
These run on real devices with mainnet funds, by the author. Reviewers and review bots don't need to run them, and they don't block review.
Round 1
None yet: the flows above ran on regtest.
Round 2 (pending)
On the final heads, two mainnet wallets that are each other's Paykit contacts, small amounts.
Models used
claude-opus-5-5(reasoning:medium),claude-sonnet-5-5(reasoning:high)claude-opus-5-5(reasoning:medium)Taken from the run logs of every session and subagent that planned or wrote this PR, which record the model and reasoning effort per turn. The
claude-sonnet-5-5planning runs were research and spec-mapping subagents. No independent agent review was run on this PR.