Repository navigation
fix: approve pubky auth without the node - #2006
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: full PR diff against its merge base, at dc6e684.
1 actionable finding — resolve or provide an evidence-backed rebuttal.
No correctness or funds defect found in the changed approval path. One LOW repository-rule finding: the new shared journey is neither ported to iOS nor recorded as an exception.
Xpub derivation parity (source analysis plus executed probe). I compared WatchOnlyAccountXpubDeriver with the pinned dependency sources: bitkit-core v0.8.0-rc15 (045c7ff6) derive_onchain_descriptor and ldk-node v0.7.0-rc.81 (366d56ef) export_onchain_wallet_account_xpub. Both build the seed with mnemonic.to_seed(passphrase or ""), derive m/84'/coin'/account' with coin type 0 on Bitcoin and 1 elsewhere, and serialize Xpub::from_priv with the same depth, parent fingerprint and child number. They differ only in version bytes: bitkit-core forces mainnet, while ldk-node uses the configured network. The app's accountXpubForNetwork rewrites the version to tpub on every non-Bitcoin Env.network, which LightningService also uses for the node config. So the delivered xpub should equal what addOnchainWalletAccount compares byte for byte. I compiled the PR's descriptorAccountXpub and accountXpubForNetwork helpers with kotlinc 2.3.21 on JRE 17 and ran them on the BIP84 vector: xpub extraction and the xpub-to-tpub conversion both matched the expected strings. An independent Python base58check confirmed the tpub, and confirmed that the regtest test vector has depth 3 and child 1'.
Store-only tracking without a node. With a null node, setAccountTracking now changes only the store. I traced beginAuthorization, cancelAuthorization and setTrackingEnabled. The account converges through the config built in LightningService.setup (enabledOnchainWalletAccountConfigs), the reconcile in start(), the reconcile on the already-running path in LightningRepo.start, and the reconcile at the start of every sync(). That also covers the window where the node is built but not yet assigned. The startup reconcile no longer syncs, but later sync() calls and the node's background sync still run. Removing NodeUnavailable and its strings leaves no remaining references.
Validation. CI build-and-test passed on dc6e684 (run). The failed build gate came from a cancelled, superseded run. E2E shards were still pending when checked. I did not run the instrumented WatchOnlyAccountXpubDerivationTest; the author reports 2 of 2 passing on an emulator.
iOS parity. I compared bitkit-ios main at f710f91 for this flow only. iOS still exports the xpub from the node (LightningService.exportWatchOnlyAccountXpub throws nodeNotSetup without a node). Whether iOS hits the same failure after returning from the browser was not checked here, and the PR lists it as out of scope.
Device testing: not performed in this review. J1 and manual case 1 need the integration fixture runtime or staging Shop access, and the author reports neither was run.
Suggested additional test cases
- Android, regtest wallet restored with a BIP39 passphrase and a Pubky identity: background the app until the log shows "Node stopped", open a watch-only setup auth URL, approve, wait for sync. Expected: the account appears with tracking on, and the log has no "Provided xpub does not match" or "Failed to reconcile Paykit Server accounts" line.
- Android, an active Paykit Server account: background the app until "Node stopped", reopen, and turn tracking off in the watch-only accounts list before the node finishes starting. Expected: after sync the toggle stays off and the account is no longer tracked; turning it back on with the node running tracks it again.
- Android, node stopped: open a setup auth URL, tap Approve then Authorize, and cancel the PIN or biometric prompt. Expected: no new tracked account after the node starts, and a fresh attempt for the same request completes normally.
Findings
- [LOW] Record the new Pubky marketplace journey for iOS or port it — inline at
journeys/pubky-marketplace/README.md:19.
Reviewer model: claude-opus-5-5
Reasoning effort: high
talosmachina
left a comment
There was a problem hiding this comment.
No findings. The Pubky auth approval for a Paykit Server watch-only account now derives the account xpub from the mnemonic through bitkit-core instead of asking the node, and setting tracking without a node only changes the store. Reviewed dc6e684, full tier, statically: the branch was not built here, CI is the gate.
What I checked, and 5 candidates I ruled out
Read in full: WatchOnlyAccountXpubDeriver.kt, WatchOnlyAccountRepo.kt, WatchOnlyAccountXpubDeriverTest.kt, WatchOnlyAccountXpubDerivationTest.kt, the test diffs, the journey
Read around the change: LightningService setup/config/start/reconcileWatchOnlyAccounts/sync, LightningRepo.startNode and sync, CoreService.deriveOnchainDescriptor, Keychain.loadString
Cross-repo contract: ldk-node v0.7.0-rc.81 (derive_account_xpub_string, bip_coin_type, validate_configured_onchain_wallet_accounts, Wallet::add_onchain_wallet_account) and bitkit-core v0.8.0-rc15 (derive_onchain_descriptor, derive_base_path)
CI: build-and-test, compose-ui / ui-tests, build, lint, detekt green on dc6e684; e2e still running when this was written
Ruled out
- Derived xpub differs from the node's: this matters more than it looks, because a mismatch on an
AuthorizingorActiverecord failsvalidate_configured_onchain_wallet_accountsand with it the whole node build. Both sides usem/84'/{0 on bitcoin, 1 otherwise}'/account', the same keychain mnemonic and passphrase withNoneand""both seeding from"", and ldk-node serializes withNetworkKindfrom the configured network, which thetpubrewrite matches for every non-bitcoin network. I re-derived the three vectors in the tests (mainnetm/84'/0'/0'xpub, itstpubform, regtestm/84'/1'/1'tpub) with an independent BIP32 implementation: all three match byte for byte. - Tracking enabled while the node is being built: if
config()read the store beforebeginAuthorizationwrote it, the build misses the account, butstart()reconciles under the same coordinator lock right after, andsync()reconciles again, so the account is added before the first sync. - Startup reconcile without a sync leaves a new account unscanned: the only production caller of
LightningService.startisLightningRepo.startNode, which runssync()after start, and the already-running path still callsreconcileWatchOnlyAccounts()with its sync. - Tracking disabled while no node exists: the store change drops the account from the next build's
onchainWalletAccounts, and runtime registration is not persisted by ldk-node, so nothing stale is loaded. - Base58 round trip: leading zero bytes and
1s are handled on both sides, the checksum is verified on decode, and the payload length is checked before the version bytes are replaced.
Merge confidence: 4/5, the xpub byte match against ldk-node, which fails the node build when it breaks, is covered only by WatchOnlyAccountXpubDerivationTest.kt, an instrumented test the PR's CI does not run (compose-ui runs ComposeUi only); I checked its vectors independently instead.
Reviewer model: claude-opus-5-5
Reasoning effort: Unknown (not recorded in the metadata this run can read)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since dc6e684, including affected code paths, at 0dc8355. Baseline: previous review. The merge base is unchanged and the delta adds no new files, so coverage of the unchanged production code, strings, unit tests, journey and changelog carries over from that review.
No new actionable code findings.
The delta changes test and documentation files only:
- Instrumented derivation test. The mainnet check now pins
m/84'/0'/1'instead of account 0. An independent BIP32 derivation in standard-library Python (with a separate RIPEMD-160) reproduces the new xpub constant exactly. The same script also reproduces the published BIP84 account-0 vector and the unchanged regtest account-1 tpub. Moving the check to index 1 matches ldk-node v0.7.0-rc.81 (366d56ef3c73), whoseadd_onchain_wallet_accountrejects account index 0 for derived watch-only accounts. - Journey step in
approval-while-node-restarts.xml. The asserted log lines exist in ldk-node rc.81: "Registered derived on-chain wallet account" insrc/wallet/mod.rs, "Loaded configured wallet for" insrc/builder.rsand "Provided xpub does not match the node's master seed" insrc/wallet/mod.rs.OnchainWalletAccountderivesDebug, so the logged text includes the type name andaccount_index. - Parity row in
journeys/README.md. The row points topubky-marketplace/approval-before-node-starts.xmlfrom the iOS twin, synonymdev/bitkit-ios#1402. That file exists at the pinned iOS head0e66204and makes the stated cold-start adaptation. Its final log assertion is the same as the Android step. This was a document comparison only, not a review of the iOS code.
Validation: test code and journeys were inspected, not executed. The instrumented WatchOnlyAccountXpubDerivationTest was not run.
Device testing: not performed in this review.
Earlier findings reconciled at this revision: 1 verified fixed.
Reviewer model: claude-opus-5-5
Reasoning effort: high
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Verdict: ⛔️ Request changes
The PR moved to 54185b8 after this run; these results are for dc6e684.
Findings:
- MEDIUM
app/src/main/java/to/bitkit/repositories/WatchOnlyAccountRepo.kt:240— Authorize still waits for the LDK queue during a node rebuild.
QA for dc6e684:
Approve a watch-only account during a node restart (J1) ❌ Authorize stayed pending while LDK rebuilt.
The background attempt timed out on cold launch. On the retry I used LDK Debug → Restart and held a regtest backup read to keep the rebuild in progress. Fifteen seconds after the first Authorize, the account store still showed pendingDelivery with tracking off. Once the read was released, the app logs showed the node finish starting just before authorization succeeded. LDK logged registration of one Native SegWit account, and Server Accounts showed it active with tracking on at m/84'/1'/1'. The Paykit Server fixture returned HTTP 422 on setup completion.
j1-node-restart.2x.mp4
The focused JVM checks passed for xpub conversion, authorization state, restore, and lifecycle coordination. The pinned native derivation vectors passed in the author's QA. Author's QA notes, earlier derivation review.
Manual case 1 requires a mainnet wallet with an existing Paykit Server account and the live Market. It was outside this regtest run.
Full review of all 28 changed files from 2c70a74 to dc6e684. Source review also covered cancellation, tracking changes, and mainnet derivation.
Twin synonymdev/bitkit-ios#1402 matches the derivation change and store fallback. It checks for a missing node before dispatching to the LDK queue and exercises cold start.
Reviewed by gpt-6.2-sol-high
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since 0dc8355, including affected code paths and prior findings, at 54185b8. Baseline: previous review. The merge base is unchanged (2c70a74) and only LightningService.kt and LightningServiceTest.kt changed since the baseline, so unchanged xpub derivation, error strings, tests, journey, and changelog coverage carries over; WatchOnlyAccountRepo.kt was re-inspected during reconciliation.
No new actionable code findings.
No new actionable code findings in the follow-up.
Delta verification (source analysis).
- Node build fallback (
buildAcceptingPaykitServerAccounts): Verified againstldk-nodev0.7.0-rc.81src/builder.rsthatvalidate_configured_onchain_wallet_accountsreturnsBuildError::InvalidSeedBytesbefore any VSS reads/writes, BDK wallet loading, orapply_channel_data_migration. Retrying once withonchainWalletAccounts = emptyList()when accounts are configured avoids repeating store writes or channel migration, and persisted BDK wallets for valid accounts omitted from the fallback build remain intact in KVStore and are reloaded byadd_onchain_wallet_account(src/wallet/mod.rs). Non-InvalidSeedByteserrors, empty-accountInvalidSeedBytes, and retryBuildExceptions still wrap intoLdkError, whileCancellationExceptionandServiceErrorpropagate unchanged. - Per-account reconciliation and
sync():reconcileWatchOnlyAccountsisolates per-account failures withrunSuspendCatching(preserving cancellation), logs only the account index and exception without exposing secrets or xpubs, loads remaining valid accounts, and rethrows the first failure soaccountsPendingRemovalstays pending until reconciliation succeeds.sync()catches reconciliation failures withrunSuspendCatchingand still runsnode.syncWallets(). Callers inLightningService.start,LightningRepo.startNode,LightningRepo.sync, andBackupRepo.restoreWalletBackupbehave safely with this contract. - Twin parity: Compared against synonymdev/bitkit-ios#1402 at f8c8999. The build fallback, per-account reconciliation isolation, and
sync()handling match across platforms;setWatchOnlyAccountTrackingstill differs on the pre-queue null check noted below.
Existing unresolved concerns
- [MEDIUM] Authorize still waits for the LDK rebuild — open thread at WatchOnlyAccountRepo.kt:240 (review). Thread state: unresolved. Code disposition at
54185b8: still present (source analysis).WatchOnlyAccountRepo.setAccountTracking(WatchOnlyAccountRepo.kt:236-240) was not modified sincedc6e684and still dispatches onto the single-threadedServiceQueue.LDK(ServiceQueue.kt:18,30,38-40) before checkinglightningService.node == null. BecauseLightningService.build(LightningService.kt:369-373) runsbuildWithVssStore(including the new fallback retry when an account is rejected) onServiceQueue.LDKwhile@Volatile nodeis stillnull(LightningService.kt:304-305,346),PubkyAuthApprovalViewModel.approveSignInRequest->beginAuthorization(WatchOnlyAccountRepo.kt:126) still blocks behind an in-flight node rebuild instead of completing store-only immediately, unlike the iOS twin's pre-queueguard let node else { return }(LightningService.swift:722atf8c8999).ovi-reviewer[bot]also reported J1 failing on regtest atdc6e684(account remainedpendingDelivery15 s after first Authorize until the held rebuild finished). Checkingif (lightningService.node == null) returnbefore dispatching toServiceQueue.LDK.background(keeping the inner null recheck) is safe underlifecycleCoordinator.withLock, sinceLightningService.start()reconciles under the same lock after assigningnode. - Earlier resolved thread (journeys/pubky-marketplace/README.md:19) remains verified fixed.
Validation: CI build-and-test, compose-ui / ui-tests, build, lint, and detekt passed on 54185b8; 6 of 7 e2e-tests-local shards were still in progress when checked. Local Gradle test execution could not run in this environment because no Android SDK is configured; LightningServiceTest.kt was verified by source inspection plus the passing build-and-test CI job on 54185b8.
Recommended before device testing:
- Address the unresolved
WatchOnlyAccountRepo.setAccountTrackingLDK-queue blocking concern (discussion_r4680173065) so Authorize completes without waiting for an in-flight LDK node rebuild. - Wait for the remaining
e2e-tests-localCI shards on54185b8to complete.
Device testing: not performed in this review. On an earlier commit (dc6e684), ovi-reviewer[bot] reported J1 failing on regtest (review). J1 and manual case 1 have not been executed on 54185b8.
Suggested additional test cases
- Android, regtest wallet with two enabled watch-only accounts in
watch_only_accounts.jsonwhere one holds a mismatched xpub and the other holds a valid derived xpub: restart the LDK node, wait for sync, and inspect the app logs and watch-only account balances. Expected: the node logs the fallback build without Paykit Server accounts and starts normally, the valid account is loaded and synced by startup reconciliation, wallet sync succeeds, and only the mismatched account logs a rejection error.
Reviewer model: gemini-4-neon
Reasoning effort: high
|
In 3.2.0: it fixes a 3.1.1 failure when approving Pubky auth (connecting to the Pubky Market). Tracked in this PR's closing issue, with the iOS twin synonymdev/bitkit-ios#1402. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Verdict: ⛔️ Request changes
The PR moved to ce0fbd9 after this run; these results are for 54185b8.
Findings:
- MEDIUM
app/src/main/java/to/bitkit/repositories/WatchOnlyAccountRepo.kt:240— First Authorize still waits for the LDK queue while the node rebuilds at 54185b8. The local account was stillpendingDeliverywith tracking off before the queue became available. Existing discussion - MEDIUM
app/src/main/java/to/bitkit/services/LightningService.kt:750— A transient failure to load a valid Paykit Server account now leaves the base-wallet sync successful and clears its retry signal. LDK background sync only scans registered wallets, so the account can show tracking enabled and miss incoming activity until another app-driven sync or restart.
QA for 54185b8:
Approve a watch-only account during a node restart (J1) ❌ The first Authorize stayed pending until the rebuild finished.
Bitkit logged that the node stopped after Home. Returning through the Paykit setup link started a rebuild. Eight seconds after Authorize, the store still showed pendingDelivery with tracking off. The emulator lost its fixture connections during this case, which added to the wait. After restoring them, LDK logged registration of account 1 and node startup. Bitkit then showed Authorization Successful without a second tap, and Server Accounts showed one new account with tracking on. Paykit Server returned HTTP 422 on setup completion. Paykit Server issue
j1-background.2x.mp4
j1-recovered.2x.mp4
Approve with a restored wallet that uses a passphrase ⏭️ The head moved during J1.
Turn tracking off during a rebuild and back on after startup ⏭️ The head moved during J1.
Cancel local authentication and retry the same setup ⏭️ The head moved during J1.
Start and sync with one rejected and one valid server account ⏭️ The head moved during J1.
Derive the first watch-only xpub on mainnet and regtest ⏭️ The head moved before this instrumented case.
The targeted JVM suites passed on 54185b8, covering the build retry, per-account reconciliation, sync, xpub conversion, authorization and restore. Manual case 1 needs a mainnet wallet with an existing Paykit Server account and the live Market.
Reviewed the five-file delta from dc6e684 to 54185b8 and the open authorization delay. The earlier review reproduced the delay with a held backup read. The JVM tests exercised the rejected-account fallback. The lost retry signal was verified in the source. Earlier device review
Twin synonymdev/bitkit-ios#1402 matches the xpub derivation and fallback. It checks for a missing node before entering the LDK queue and tests approval during a cold start.
Reviewed by gpt-6.2-sol-high
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since 54185b8, including affected code paths and prior findings, at ce0fbd9. Baseline: previous review. The merge base is unchanged (2c70a74). Only WatchOnlyAccountRepo.kt and WatchOnlyAccountRepoTest.kt changed since the baseline. The build fallback, per-account reconciliation, LightningServiceTest, xpub derivation, error strings, other tests, journey and changelog coverage carry over from the baseline.
No new actionable code findings.
No new actionable code findings in the follow-up.
Delta verification (source analysis). setAccountTracking now returns before dispatching to the single-threaded ServiceQueue.LDK when lightningService.node (@Volatile) is null, and checks the node again inside the queue (WatchOnlyAccountRepo.kt:243,251). Approval therefore no longer waits behind LightningService.build, which holds the LDK queue while node is still null.
I traced the skipped-node paths for beginAuthorization, cancelAuthorization, setTrackingEnabled and their rollbacks. Each runs under lifecycleCoordinator.withLock and writes the store after the skipped node call. setup assigns node only after the build returns, and start() then runs reconcileWatchOnlyAccounts under the same lock, re-reading the store. So an enable made during a rebuild is added at start, and a cancel or disable is removed because the record stays a managed key that is no longer desired. If the check sees a node that a concurrent stop() then clears, the in-queue check returns, as before this commit.
The new test begin authorization without a node does not wait for the busy LDK queue occupies the real LDK queue and requires beginAuthorization to finish within 2 s. The pre-commit code would wait for the queue, so the test is a valid regression check.
Twin parity: synonymdev/bitkit-ios#1402 at f8c8999 now matches. LightningService.setWatchOnlyAccountTracking has the same pre-queue guard let node else { return }. Android additionally checks the node again inside the queue. Both platforms catch reconciliation failures in sync() the same way.
Existing review concerns
- Authorize still waits for the LDK rebuild (thread). Thread state: unresolved. Code disposition at
ce0fbd9: fixed by source analysis, as described above. The reviewer's J1 regtest run reproduced the wait on54185b8and has not been repeated atce0fbd9, so runtime confirmation is still pending. - Reconciliation retry lost after a successful base-wallet sync (thread). Thread state: unresolved. This code is unchanged since the baseline. The mechanism holds at
ce0fbd9:LightningService.sync()catches reconciliation failures (LightningService.kt:749-750).LightningRepo.syncthen clearslastSyncError(LightningRepo.kt:841-848), and the 15 s retry loop only starts whilelastSyncErroris set (LightningRepo.kt:248). A valid account that fails to register therefore waits for the next app-driven sync (refresh, sync on events, or node restart). ldk-node background sync does not register accounts. I did not establish a concrete transient failure ofaddOnchainWalletAccountorrevealReceiveAddressesToAccountfor a valid account in ldk-node source. iOS has the same behavior. The change is a deliberate trade-off: at the base, a reconciliation failure failed the whole wallet sync, including for a permanently rejected account. A separate retry signal for reconciliation would address it. - The journey parity thread (journeys/pubky-marketplace/README.md) is resolved and remains verified fixed.
Validation: build-and-test, build-local and detekt passed on ce0fbd9. When checked, compose-ui / ui-tests and the e2e-tests-local shards were still in progress. A build gate failure on ce0fbd9 comes from a cancelled duplicate CI run (run), not from a test failure. I did not run Gradle locally. The new unit test is verified by source inspection and the passing build-and-test job, and the author reports it failed before the commit and passes after.
Recommended before device testing: wait for the remaining e2e-tests-local shards and Compose UI tests on ce0fbd9. Re-run J1 (approval-while-node-restarts.xml) at ce0fbd9 to confirm the first Authorize completes while the node is still rebuilding.
Device testing: not performed in this review. ovi-reviewer[bot] reported J1 failing on regtest at 54185b8 (review). J1 and manual case 1 have not been executed on ce0fbd9.
Suggested additional test cases
- Android, regtest wallet with an existing pending Paykit Server setup. Background the app until Bitkit logs the node stop, then open the Paykit setup link so the node rebuilds. Tap Authorize immediately. Expected: authorization proceeds without waiting for the rebuild to finish, the stored account shows
Authorizingwith tracking on, and after the node starts, LDK logs registration of that account index. - Android, same rebuild window. Start authorization, then cancel local authentication before the node finishes starting. Expected: after the node starts, the account is not tracked by LDK and the store shows
PendingDeliverywith tracking off.
Reviewer model: claude-opus-5-5
Reasoning effort: high
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since ce0fbd9, including affected code paths and prior findings, at 5073e29. Baseline: previous review. The merge base 2c70a74 is unchanged. The delta has two commits (6bc227c, 5073e29) and touches only LightningService.kt, LightningServiceTest.kt and approval-while-node-restarts.xml. I re-reviewed the reconcile and sync surface, LightningServiceTest and the J1 journey in this pass. Coverage of WatchOnlyAccountRepo tracking, the build fallback, xpub derivation, error strings, other tests and docs carries over from the baseline. All of those files are unchanged since ce0fbd9.
No new actionable code findings.
No new actionable code findings in the follow-up.
Delta verification (source analysis). LightningService.sync() still syncs the wallet when reconciliation fails. Afterwards it rethrows the failure unless isRejectedPaykitServerAccount() finds NodeException.InvalidSeedBytes among the error's causes. The cause check is needed because ServiceQueue.background wraps errors in AppError. reconcileWatchOnlyAccounts now rethrows a retryable failure ahead of a rejected one.
The rethrow reaches LightningRepo.sync, which sets lastSyncError. startSyncRetryLoopIfNeeded then calls sync(), and so reconciliation, every 15 s while the device is online, until a sync succeeds. A rejected xpub stays logged only, so it does not trigger repeated full syncs.
I checked the error classification against ldk-node v0.7.0-rc.81 (366d56e). In Wallet::add_onchain_wallet_account, an xpub that does not match the seed returns InvalidSeedBytes. Persisting the account returns PersistenceFailed, and other wallet errors return WalletOperationFailed. The new J1 step relies on two log lines in LightningService.setup: Building node… is logged before the build and LDK node setup after node is assigned. stop() clears node before it logs Node stopped, so the step does confirm the approval finished while node was null.
Trade-off to be aware of (existing behavior, not counted as a new defect). The trigger is an account that fails reconciliation for any reason other than a rejected xpub. While that failure lasts, LightningRepo.sync reports the sync as failed even though the wallet synced. It skips refreshChannelCache and syncState, the node and Electrum health indicators show an error, and on-chain sends are refused with SyncUnhealthyError by ensureSyncedBeforeSend. An RBF boost whose replacement was not yet found also stays pending. The merge base had the same result for every reconciliation failure, and there the wallet did not sync at all, so this PR narrows the behavior rather than introducing it.
A lasting failure that is not InvalidSeedBytes would keep sends blocked until the user turns off tracking for that account. Examples are WalletOperationFailed when loading the account's stored wallet, or a store read error. A separate reconciliation retry signal, as suggested in the reconciliation thread, would avoid tying sends to account loading.
Twin parity. I compared synonymdev/bitkit-ios#1402 at 282b5b9, checking only the sync and reconciliation path. On iOS, sync() goes through reconcileBeforeSync, which logs every non-cancellation reconciliation error and never fails the sync. On Android a transient failure now fails the sync, as described above. The author says this is deliberate, because iOS has no automatic sync retry. Cancellation still stops the sync on both platforms, through runSuspendCatching on Android and CancellationError on iOS. The iOS J1 counterpart received the same "no LDK node setup line yet" step.
Existing review threads
- Authorize waits for the LDK rebuild (thread). The thread is unresolved. In code, it is fixed by source analysis at ce0fbd9, and
WatchOnlyAccountRepo.ktis unchanged since then. J1 has not been run at any head that contains the pre-queue guard. - Reconciliation retry lost after a successful wallet sync (thread). The thread is resolved. By source analysis, the fix at 5073e29 works: transient failures now set
lastSyncError, so the retry loop runs. This comes with the trade-off described above. - Journey parity (thread). The thread is resolved and the fix still holds.
Validation. At 5073e29, build-and-test, build-local, lint and detekt passed. When I checked, compose-ui / ui-tests and the e2e-tests-local shards were still running. The failed build job is in a cancelled duplicate run. I could not run Gradle locally because the sandbox blocked the download of the Gradle wrapper distribution. I checked the new unit test by reading its source. The author reports that it fails before the fix and passes after.
Recommended before device testing: wait for the Compose UI tests and the e2e-tests-local shards on 5073e29. Run J1 (approval-while-node-restarts.xml) at 5073e29, including the new step that checks LDK node setup has not been logged yet.
Device testing: not performed in this review.
Suggested additional test cases
- Android unit test (
LightningServiceTest). Set up two enabled accounts:addOnchainWalletAccountthrowsNodeException.InvalidSeedBytesfor account 1 andNodeException.PersistenceFailedfor account 2. Callsut.sync(). Expected:syncWallets()runs once, andsync()throws an error whose cause isPersistenceFailed. This checks that a rejected account cannot hide a retryable one, and no current test covers that ordering.
Reviewer model: claude-opus-5-5
Reasoning effort: high
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Verdict:
The PR moved to cfb1caa after this run; these results are for 5073e29.
Findings at 5073e29:
- MEDIUM
app/src/main/java/to/bitkit/services/LightningService.kt:769— A user can now finish their first Paykit approval before LDK registers the account. If the later registration fails to persist, the active account can block an ordinary on-chain send even after native wallet sync succeeds. The merge base required registration to succeed before enabling the account. The author reports a separate retry in cfb1caa. Discussion
QA for 5073e29:
Approve a watch-only account during a node restart (J1) ⏭️ First Authorize succeeded during the rebuild. Paykit Server returned HTTP 422 at publication.
Bitkit exited after Home when native shutdown left detached work. I reopened it with a fresh setup link and held a regtest backup read. The app showed Authorization Successful on the first Authorize. Its log records approval 35 seconds before LDK node setup. After release, LDK registered account 1 and synced. Server Accounts showed one new paykit server account with tracking on at m/84'/1'/1'.
The fixture verified the claim and xpub and reported persistence success. Publication failed with HTTP 422, leaving the complete server setup assertion unverified. Related Paykit Server issue
j1-2.2x.mp4
Approve with a restored wallet that uses a passphrase ⏭️ The head moved during J1.
Turn tracking off during a rebuild and back on after startup ⏭️ The head moved during J1.
Cancel local authentication and retry the same setup ⏭️ The head moved during J1.
Start and sync with one rejected and one valid server account ⏭️ The head moved during J1.
Derive the first watch-only xpub on mainnet and regtest ⏭️ The instrumented suite was built and deferred after the push.
Retry a transient account failure even when another account is rejected ⏭️ The combined JVM case was queued when the head moved.
The focused JVM suites passed on 5073e29. They covered the busy LDK queue, the build fallback, a rejected account, and a transient persistence error. Manual case 1 requires a mainnet wallet with an existing Paykit Server account and the live Market.
Reviewed the three-file delta from ce0fbd9 to 5073e29 and followed up on the authorization delay and retry signal. J1 drove approval and startup registration. The wallet-health effect was verified in the source. Prior device review, current source review
Twin synonymdev/bitkit-ios#1402 matches approval before node setup and the build fallback. Its journey uses a cold start. Its sync treats account reconciliation errors as separate from wallet sync errors.
Reviewed by gpt-6.2-sol-high
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since 5073e29, including affected code paths and prior findings, at cfb1caa. Baseline: previous review. The merge base is unchanged. This delta is LightningService.kt and LightningServiceTest.kt.
2 actionable findings — resolve or provide an evidence-backed rebuttal.
Two new findings, both in the Paykit account retry this commit adds.
MEDIUM — Keep the account retry's wallet sync outside the authorization lock. A transient load failure starts a 15s loop that calls reconcileWatchOnlyAccounts() with its default sync, so syncWallets() runs while the watch-only lock is held. Preparing or approving an account waits out that sync, and a sync failure repeats the wait every 15s.
MEDIUM — Join the retry to node stop. The job is stored with a check-then-act, and stop() cancels only the stored job. A sync still in syncWallets() can schedule the loop after that cancel, and a second overlapping sync can leave a loop that calls the captured node after destroy() starts.
Existing threads. Authorize waits for the LDK rebuild is resolved. The pre-queue guard is unchanged since ce0fbd9, and ovi-reviewer reports J1 at 5073e29 finished the first Authorize before LDK node setup. Retry lost after a successful wallet sync is resolved; its anchor is outdated. At cfb1caa, sync() stays successful when account loading fails, so that failure no longer fails an on-chain send. The replacement loop is the findings above. Journey parity is resolved and unchanged in this delta.
Twin. Compared synonymdev/bitkit-ios#1402 at 282b5b9 for sync and reconcile only. iOS logs the reconciliation error, still syncs, and its reconcile path has no syncWallets call. It has no 15s loop.
Device testing: not performed in this review. The J1 observation above is ovi-reviewer's, on 5073e29, and stopped at Paykit Server publication (HTTP 422, paykit-server#146).
Suggested additional test cases
- Android,
LightningServiceTest: fail the firstaddOnchainWalletAccountwithPersistenceFailed, and on the retry block insidesyncWallets. From another coroutine enterWatchOnlyAccountLifecycleCoordinator.withLock. Expected: that lock is acquired whilesyncWalletsis still in progress. - Android,
LightningServiceTest: overlapsut.sync()with a secondlightningService.sync()while reconciliation fails, callstop()during the 15s delay, then advance past 15s. Expected: no furtheraddOnchainWalletAccountorsyncWallets.
This review did not run Gradle. The author reports just test, just lint, and the androidTest compile passed at cfb1caa. No open issue matched this retry-lock or retry-lifetime mechanism.
Findings
- [MEDIUM] Keep the account retry sync outside the authorization lock — inline at
app/src/main/java/to/bitkit/services/LightningService.kt:786. - [MEDIUM] Join the account retry before the node is released — inline at
app/src/main/java/to/bitkit/services/LightningService.kt:781.
Reviewer model: grok-4.7
Reasoning effort: xhigh
Pull request was converted to draft
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since cfb1caa, including affected code paths, at 09418d2. Baseline: previous review. Coverage of files unchanged since that review (account error handling, xpub derivation, the auth error mapping, unchanged tests, docs and changelog) is carried over from it. The full PR inventory against the merge base is still 30 files.
No new actionable code findings.
What was checked in the delta:
- Retry loop: a successful Paykit Server account retry now syncs the wallet outside the watch-only lock and the reconcile itself no longer syncs. A second guard stops two retry jobs from starting at once.
- Reconcile after the node is released: reconciliation now skips a node that was stopped while it waited for the LDK queue. In that case it does not mark pending removals as done.
stop()waiting for the retry:stop()now waits for a running retry to finish. No deadlock was found: nothing callsstop()while holding the watch-only lock or from the LDK queue thread. A retry that is waiting for the lock or the queue cancels right away. Any wait for an in-flight wallet sync is time thatnode.stop()would have spent queued behind it anyway.- New log line:
WatchOnlyAccountReponow logs "tracking stored without a node" when an approval finds no node, and theapproval-while-node-restartsjourney step now checks for that line instead of the absence of "LDK node setup". It compiles becauseLogger.inforeturnsUnit.
Validation: the CI build-and-test job for this head passed its build and "Run tests" steps. That covers the new unit tests "stop ends the account retry before releasing the node", "reconciliation skips a node that was released while it waited" and the lock-free assertion during sync. These tests were read here, not run locally. Some e2e shards were still running when this was checked.
Parity: the twin bitkit-ios#1402 at 61b4c4b logs the same "tracking stored without a node; it loads when the node starts" line, so the journey proof matches on both platforms. iOS reconciles on each sync instead of running a timed retry. That is an intentional platform difference; this was a scoped comparison, not a review of the iOS PR.
Limitations: earlier reviews and review threads were not read in this pass (discovery only).
Device testing: not performed in this review.
Suggested additional test cases
- Android: approve a Paykit Server account while adding the account fails briefly (e.g. failing backup writes). Let the wallet sync, then restore connectivity. Expected: within about 15 s the account loads and the on-chain balance refreshes without a manual sync, and sending stays available throughout.
Earlier findings reconciled at this revision: 5 verified fixed.
Reviewer model: claude-opus-5-5
Reasoning effort: high
Pull request was converted to draft
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryPubky approvals can now derive and save Bitcoin account details without waiting for the Lightning node.
Acknowledged by Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User approves account sharing] --> B[Derive account key from mnemonic]
B --> C{Node available?}
C -->|No| D[Save tracking state]
C -->|Yes| E[Update node and save tracking state]
D --> F[Complete approval]
E --> F
D --> G[Reconcile when node starts]
G --> H{Temporary account failure?}
H -->|Yes| I[Retry account loading]
H -->|No| J[Continue wallet sync]
I --> G
Reviews (1) · Last reviewed commit: "docs: hold node setup through approval i..." · Reviewed by Greptile |
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: changes since 09418d2, including affected code paths and prior findings, at 3ccc243. Baseline: previous review. The merge base is unchanged. The only new commit changes journeys/pubky-marketplace/approval-while-node-restarts.xml. No app code, tests or other files changed since 09418d2, so the coverage of the app code, tests and docs carries over from the baseline. The full PR is still 30 files.
No new actionable code findings.
No new actionable code findings in the follow-up.
Journey change. The J1 journey now holds node setup by stalling the fixture's VSS endpoint before opening the auth URL. It also adds a check that no LDK node setup line appears after the latest Building node… line, then releases the hold. These steps match the source at this head:
LightningService.setuplogsBuilding node…beforebuild(), which blocks on the LDK queue insidebuildWithVssStore. It logsLDK node setuponly afternodeis assigned.Logger.debugwrites to the log file likeinfodoes, so both lines reach the app log.- The approval path does not touch VSS or the LDK queue while there is no node. That path is
prepareUnsignedClaim(derives the xpub without the node),beginAuthorization(checks for a missing node before queueing), the Pubky relay delivery, thenmarkActive. So the hold blocks only the node build. - "tracking stored without a node" is logged only when no node exists. A missing line therefore correctly means the hold did not take effect.
- After the hold is released,
LightningRepo.startretries on a start error, so the later "wait for sync" steps should still be reachable. That is inferred from source, not executed.
Prior concerns. All 5 review threads are marked resolved. At this head, the fixes for the two retry findings from the cfb1caa review are still in place:
- the reconcile-only retry calls
syncAfterReconcile = false; - the schedule runs under
synchronized; stop()callscancelAndJoinon the retry;- reconcile checks the node's identity again inside the queue.
The pre-queue node check from the LDK-rebuild thread is unchanged. ovi-reviewer's MEDIUM at 5073e29 (an active account blocking on-chain send) is covered by the cfb1caa design that was verified at the baseline: sync() no longer fails because of an account load failure. Greptile reviewed 3ccc243 and reported no issues.
Parity. I compared bitkit-ios#1402 at 1218698 for this journey step only. approval-before-node-starts.xml adds the same VSS hold and release steps, and iOS logs the same "tracking stored without a node" line. This was a scoped check, not a review of the iOS PR.
Validation. No Gradle build or tests were run in this pass. The delta contains no code. The baseline's CI evidence for the unchanged app code (run 45444189947 at 09418d2) still applies. A regtest APK was built from 3ccc243.
Device testing: not performed in this review. ovi-reviewer ran J1 at 5073e29: the first Authorize finished before node setup while a backup read was held. That run stopped when Paykit Server publication returned HTTP 422 (paykit-server#146). The revised J1 has not been run at this head.
Ready for device testing: yes. No outstanding review concerns are known. Running the revised J1 needs a fixture where the VSS container can be paused, or where VSS reads can be held at a proxy.
Reviewer model: claude-opus-5-5
Reasoning effort: high
There was a problem hiding this comment.
Verdict: ✅ Approve
Findings: None.
QA for 3ccc243:
Approve a watch-only account during a node restart (J1) ✅ The fresh request's first Authorize and Paykit Server completion finished before node setup.
Held the fixture's VSS read through approval and setup completion. Bitkit logged Paykit Server account 2 tracking stored without a node and showed Authorization Successful. Paykit Server v0.1.1-rc4 verified the claim and xpub, persisted the setup, published and read back its registry, and completed. After releasing the hold, LDK registered account 2 and synced; Server Accounts showed the new account with tracking on. An earlier fixture connectivity failure left account 1 pending with tracking off before this fresh request.
j1-current-2x.2x.mp4
Approve with a restored wallet that uses a passphrase ✅ Approval finished without a node, and LDK accepted the derived account after startup.
Restored an isolated regtest wallet with a public test mnemonic and a nonempty BIP39 passphrase. Its no-node approval created account 1; after the hold was released, LDK registered it without an xpub mismatch and completed sync. Checked the restore screen, account store and native logs. Server completion was verified separately in J1 above.
passphrase-2x.2x.mp4
j1-2x.2x.mp4
Turn tracking off during a rebuild and back on after startup ✅ Tracking stayed off through startup and sync, then enabling it registered the account again.
The store-only change ran while VSS held the build. Native logs confirmed that startup removed the account loaded from the build's earlier snapshot, synced, then registered it after the toggle was turned back on.
tracking-2x.2x.mp4
Cancel local authentication and retry the same setup ✅ Canceling the PIN prompt changed no account state; retrying the same request added one tracked account.
The entire account-store snapshot was identical before and after cancellation. The same URL then authorized account 3 while the node was unavailable. After release, LDK registered that account and synced.
cancel-2x.2x.mp4
Start and sync with one rejected and one valid server account ✅ The fallback started the node, loaded the valid accounts and completed sync despite the rejected account.
Added a test record at account 99 using account 2's xpub. Logs confirmed InvalidSeedBytes, the rebuild without configured accounts, registration of valid accounts 2 and 3, rejection of account 99, and LDK synced. This used the unchanged APK with disposable wallet data altered for the case.
fallback-2x.2x.mp4
Derive the first watch-only xpub on mainnet and regtest ✅ Both native account-1 vectors passed.
Ran WatchOnlyAccountXpubDerivationTest on Android 15 against the APK and test APK built from this head; the instrumentation output verified both mainnet and regtest derivations.
xpub-vectors-2x.2x.mp4
Retry a transient account failure even when another account is rejected ✅ Wallet sync succeeded and the transient account kept retrying despite the preceding rejected account.
An executed JVM probe combined InvalidSeedBytes on account 1 with PersistenceFailed on account 2. It verified repeated account-2 attempts, successful base-wallet sync, and no further retries once only the permanent rejection remained.
Stop overlapping syncs before the account retry runs ✅ Overlapping sync calls created one retry, and stop prevented work after its delay.
An executed JVM probe used real dispatcher threads and a serial LDK queue. It verified a single active retry after two overlapping syncs, then stopped the service and waited beyond the 15-second delay: no additional account load or wallet sync occurred. The focused suites also passed their lock-availability and released-node guards.
Manual case 1 was left out: it requires a mainnet wallet with an existing Paykit Server account and the live Market. J1 drove the regtest approval and server completion; the instrumented vectors checked mainnet derivation.
Reviewed the four-file delta cfb1caa..3ccc243 and the earlier retry/authorization findings, with an independent source review. Built the app and instrumented tests at this head and ran the focused JVM suites. Device cases covered approval, tracking, cancellation and fallback; retry scheduling and released-node interleavings were checked with JVM tests and source analysis. Earlier context: prior device review and retry findings.
Twin: synonymdev/bitkit-ios#1402 at 1218698 matches derivation, store-only approval and fallback. Its journey uses a cold start because iOS keeps the node running in the background; it reconciles on sync without Android's timed retry.
Reviewed by gpt-6.1-sol-high
Twin: synonymdev/bitkit-ios#1402
This PR lets a Pubky auth request that shares a Bitcoin watch-only account complete without waiting for the LDK node, so approving a Paykit Server setup right after returning from the browser no longer fails with "The wallet must be running before an account can be created."
Reported on Android 3.1.1 while connecting Bitkit to the Pubky Market. Bitkit stops the node 5 s after going to the background. On each return through the deeplink, the approval waited 30–60 s for the stop and rebuild. It then failed about 10 ms after "LDK node setup":
exportAccountXpubran on the LDK queue right after the build task but beforeLightningService.setuphad stored the new node. Related server and web issues: pubky/paykit-server#146, pubky/pubky-marketplace#567.Description
WatchOnlyAccountXpubDeriver: derives them/84'/coin'/account'xpub from the mnemonic through bitkit-core'sderiveOnchainDescriptorinstead ofNode.exportOnchainWalletAccountXpub. bitkit-core always uses mainnet version bytes, so test networks gettpubto match whatNode.addOnchainWalletAccountcompares against.WatchOnlyAccountRepo.setAccountTracking: without a node, only the store changes. The node is checked before queueing ontoServiceQueue.LDK, because a rebuild holds that queue for the whole build while the node is still null. The next build loads tracked accounts from the store, andreconcileWatchOnlyAccountson start adds or removes any account the build missed.beginAuthorization,cancelAuthorizationandsetTrackingEnabledno longer fail while the node is stopped or rebuilding.LightningService.start: the startup reconcile no longer runs a wallet sync. That sync held the watch-only lock and the LDK queue for the whole Electrum round trip (about 22 s in the report, ending in "A wallet operation timed out") while an approval waited on the same lock. The initialsync()after start already reconciles and syncs.buildAcceptingPaykitServerAccounts: an account stored without the node never had its xpub checked by ldk-node, and ldk-node fails the whole build withInvalidSeedByteswhen a configured account's xpub does not match the seed. On that error, with accounts configured, the node is built once more without them so the wallet still starts; the reconcile on start adds each account the node accepts. ldk-node runs that check before any store write or channel migration, so the retry repeats only the LNURL-auth token fetch and idempotent VSS setup.LightningService.reconcileWatchOnlyAccounts: tries every account, logs each one the node rejects and rethrows the first failure, so one bad account does not keep the others from loading. Pending removals stay pending until a reconcile fully succeeds, as before.LightningService.sync: a reconcile failure is logged and no longer stops the wallet sync. A transient failure (e.g. a VSS write) starts a separate reconcile-only retry every 15 s, which syncs the wallets after releasing the watch-only lock once the accounts load; it stops on success, on a rejected xpub (InvalidSeedBytes), or when the node stops.stop()joins it before stopping the node, and reconcile skips a node released while it waited. Sends and sync health do not depend on account loading.WatchOnlyAccountRepo: logsPaykit Server account N tracking stored without a nodewhen an approval finds no node; J1 asserts it.WatchOnlyAccountError.NodeUnavailableand its string, which nothing throws now.Out of Scope
LightningRepo: keeping the node running in the background during a Pubky auth. Not wanted; the approval path no longer depends on the node instead.WatchOnlyAccountRepo: watch-only accounts left behind when Bitkit approved but Paykit Server failed the setup (accounts 1–4 and 6 in the report). Bitkit cannot tell a server-side failure from a success; Setup returns 422 for a creator the server already holds; /complete hangs past the gateway (504) pubky/paykit-server#146 covers the server side.Design
N/A — no UI changes.
Preview
N/A
QA Notes
Setup
Integration fixture runtime from
journeys/pubky-marketplace/README.md(Pubky testnet, Paykit Server, regtest bitcoind and Fulcrum), dev debug build of this branch, an isolated wallet with a Pubky identity. The setup auth URL comes from the Shop's Connect Bitkit dialog or the Paykit Server setup fixture.Journeys
approval-while-node-restarts.xml— a watch-only setup approved while the node is stopped or rebuilding completes on the first Authorize and the account is tracked once the node startsManual Tests
Automated Checks
WatchOnlyAccountXpubDeriverTest.kt— reads the xpub from a bitkit-core descriptor and converts it totpubon test networks (BIP84 test vector)WatchOnlyAccountRepoTest.kt— prepare and begin authorization complete without a node; cancel without a node resets the storeWatchOnlyAccountXpubDerivationTest.kt— bitkit-core's real derivation plus the version conversion equals the BIP84 mainnet vector and an independently derived regtestm/84'/1'/1'tpub, the format ldk-node compares against (instrumented: native bitkit-core does not load in JVM unit tests)LightningServiceTest.kt— wallet sync succeeds and retries a transient account failure on its own (failed against5073e29)WatchOnlyAccountRepoTest.kt— begin authorization without a node finishes while the LDK queue is held by a build (failed beforece0fbd9)LightningServiceTest.kt— the build retries without Paykit Server accounts onInvalidSeedBytesand does not retry without accounts or on another build error; reconciliation loads the other accounts when one is rejected; wallet sync runs when reconciliation fails; the account retry syncs outside the watch-only lock, ends on stop, and skips a released nodeWatchOnlyAccountRepoTest.kt,WatchOnlyAccountRestoreTest.kt,WatchOnlyAccountLifecycleCoordinatorTest.kt— xpubs come from the deriver instead of the nodeEvidence
3ccc243: J1 now holds node setup by stalling the fixture's VSS endpoint through the success screen and fixture completion, then releases it (ovi-reviewer's timing note on the iOS twin). Journey-only change.09418d2, local macOS:just test(6473 tests),just lintand theandroidTestcompile passed. Piotr's two findings oncfb1caa: the retry's wallet sync held the watch-only lock (wallet sync succeeds and retries a transient account failure on its ownnow probes the lock; failed oncfb1caa), and the retry was not joined on stop (reconciliation skips a node that was released while it waitedfailed oncfb1caa;stop ends the account retry before releasing the nodeadded). J1 now asserts a direct no-node log line instead of the absence ofLDK node setup.cfb1caa, local macOS:just compile,androidTestcompile,just test(6469 tests) andjust lintpassed. A failing account no longer fails the wallet sync (Piotr's trade-off note on5073e29).5073e29, local macOS:just compile,androidTestcompile,just test(6469 tests) andjust lintpassed. Fixes ovi-reviewer's lost-retry finding; J1 now requires the approval to finish beforeLDK node setupappears in the log.ce0fbd9, local macOS:just compile,androidTestcompile,just test(6468 tests) andjust lintpassed. Fixes ovi-reviewer's finding that Authorize waited for the LDK rebuild (reproduced by ovi-reviewer on regtest atdc6e684).54185b8bf, local macOS:just compile,just test(6467 tests) andjust lintpassed.addOnchainWalletAccount. ItsrunCatchingfinding is fixed; keeping pending removals when an add fails is the existing restore behaviour and stays.dc6e684, local macOS:just compile,just test(6462 tests) andjust lint(detekt and Android Lint) passed one92022b; after the review fixes,compileDevDebugAndroidTestKotlin,WatchOnlyAccountXpubDeriverTest.ktand detekt passed.WatchOnlyAccountXpubDerivationTest.ktran on thePixel_9emulator (Android 17) withconnectedDevDebugAndroidTest: 2 of 2 passed.start()andsync(). Its two minor findings (no regtest vector; the journey's fixed 10 s wait) are fixed indc6e684.Gaps
staging.pubky.app/shop-embed/marketplace) requires HTTP Basic credentials that were not available, and running the localbitkit-dockermarketplace fixture was skipped. A device runbook for J1 is ready if a reviewer has staging access.Models used
Claude Opus 5.5(reasoning:Not exposed)Claude Opus 5.5(reasoning:Not exposed)Claude Opus 5.5(reasoning:Not exposed)🤖 Generated with Claude Code
Closes #2009