Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… watch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
This was referenced Nov 29, 2026
26 tasks
This branch has not been deployed
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.
Part of #2105
Source: team, #2105
Warning
Do not publish the Wear app until #2152 ships. The watch runs the same Spark wallet as the phone, and Spark real-time sync is off (
realTimeSyncServerUrl = null), so two live instances share no state. Mainnet is also gated off in this build (Env.IS_MAINNET_ENABLED = false), and the phone's Watch row is hidden on mainnet (Env.isWatchLinkEnabled).Stacked on #2195 (
feat/wear-phone-pairing). Part 2 of 3 of phone–watch pairing: once paired, the phone and the watch share what each needs to keep the other from paying wrongly. Part 3 adds watch management from the phone.Description
docs/wear.md› Pairing › Shared guards), two journeys, a README section on running two apps on one wallet (local stack, throwaway funds only), and a manual test over the real Data Layer.Out of Scope
wear/app: per-device watch QuickPay caps, and watch QuickPay off until the phone enables it — pairing part 3.wear/app: apart, each side uses the other's last known count, so together they can exceed the daily limit by what the other spent since.wear/app: a payment cut off on one device and then paid by the other under the same key counts on both (it only restricts more).wear/app: an invoice started on both devices within the moment a document takes to cross is refused by neither; Spark still pays it once, since both derive the same key per attempt.wear/app: Spark-address transfers use a random key per device, so before the phone publishes payee entries (it publishes none today) the watch must reuse the phone's key or hold without the time limit.wear/app: a failed publish waits for the next change, request or app start.Design
N/A — no UI changes. Both apps reuse their existing pending and own-invoice messages.
Preview
Phone
Bitkit_Phone_API36(Android 16) and watchWear_Large_Round_API37(Wear OS 7), paired over the debug socket, both on the local./sparkstack, app commitd961f2853.Recordings (both stopped at the emulator's 170 s cap, so they are partial):
send-phone-invoice-guard.mp4
quickpay-shared-daily-limit.mp4
QA Notes
Setup
./sparkstack and paired over the debug socket:journeys/wear/README.md› Local./sparkstack, › Phone and watch over the debug socket, and › Two apps on one wallet (a throwaway wallet, local stack only, never hosted regtest). Phone PIN1111, biometrics off; pair withpair-receive-wallet.xml.adb -s <serial> shell date): an emulator booted from a snapshot can run hours behind, and devices on different days don't share their counts. Cold-boot to fix.journeys/wear/README.md› On a physical watch).Journeys
send-phone-invoice-guard.xml— the watch refuses the phone's invoice and the phone refuses the watch'squickpay-shared-daily-limit.xml— after the watch pays $3 by QuickPay, the phone's $3 asks for the swipe and logs the shared countManual Tests
journeys/wear/README.md)Automated Checks
LinkGuardsTest.kt— same-day counts, the 5-minute open-send hold, stale and future starts, kept starts, expiry clamps, document limits and the format bytePeerGuardStoreTest.kt— the watch's store of the phone's state: replace, clear on unpair, nothing read without a pairing, an undecodable stored list replacedWatchLinkRepoTest.kt,PhoneLinkRepoTest.kt,SettingsPhoneStateSinkTest.kt— publishing, republish at pairing, clearing on unpair and wipe, a failing clearSparkRepoTest.kt,QuickPayRepoTest.kt(both apps),QuickPaySpendStoreTest.kt— the phone refuses the watch's invoices and open sends, counts the watch's cents only in its checks, the day turning between read and writePaymentsRepoTest.kt,SelfSendGuardTest.kt,UncertainSendStoreTest.kt,OwnInvoiceStoreTest.kt— the watch's own-invoice, pending and QuickPay rules with the phone's state, the payment hash in stored notesLightningRepoTest.kt,SettingsSyncRepoTest.kt— constructor changesEvidence
d961f2853:just compile,just test(with:wear:testDevDebugUnitTest --rerun),just lintall passed.Bitkit_Phone_API36(Android 16) andWear_Large_Round_API37(Wear OS 7) atd961f2853on the local./sparkstack. J2's phone log showed "daily spend '300' + '300' exceeds cap '500'".pair-settings-push.xml,pair-unpair-from-phone.xmlandsend-own-invoice-guard.xmlpassed as regressions.Gaps
Models used
claude-opus-5-5(reasoning:medium)claude-opus-5-5(reasoning:medium),claude-fable-5-2(reasoning:medium)claude-fable-5-2(reasoning:medium),claude-opus-5-5(reasoning:medium)claude-sonnet-5-5(reasoning:medium)🤖 Generated with Claude Code