Skip to content

fix: keep signed hardware sends on retry - #1208

Open
Jasonvdb wants to merge 42 commits into
masterfrom
fix/hw-send-keep-signed-tx
Open

Jasonvdb wants to merge 42 commits into
masterfrom
fix/hw-send-keep-signed-tx

Conversation

@Jasonvdb

@Jasonvdb Jasonvdb commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1218

Important

I don't have a hardware wallet, so this has not been tested on a physical Trezor or Jade. It was tested end to end with the Trezor Bridge emulator on local regtest, on the iPhone 17 simulator, iOS 26.5. USB, BLE, THP pairing and Jade have no live coverage.

Twin: synonymdev/bitkit-android#1770

This PR stops an ordinary hardware wallet send from asking for a second signature after a broadcast whose outcome is unknown. Today the signed transaction can be discarded in that case, so if the first broadcast was actually accepted, sending again pays the recipient twice.

Description

  • Rebroadcasting the same signed transaction is safe because it has the same txid. A new signature can create a second, separate payment. So ordinary sends now keep the signed transaction, written to the Keychain before the broadcast, so it survives leaving the sheet and restarting the app. HwRetainedSendService holds one device-only Keychain entry per hardware wallet, covered by the full wipe and excluded from backups.

  • After a broadcast attempt the outcome decides what happens:

    Outcome First attempt Retry
    Success, including already known Release Release
    Wallet watcher has already seen the transaction, any failure Success, release Success, release
    Recognised refusal, not yet seen Release, next attempt signs anew Keep and mark refused
    Failed to connect to Electrum:, raised before anything is sent Release, Retry still available on the sign screen Keep
    Timeout, unrecognised Broadcast failed: ..., anything else Keep Keep

    A refusal on a retry is kept because bad-txns-inputs-missingorspent may describe our own earlier accepted transaction.

  • When the wallet watcher sees the transaction, the record is marked as observed and kept. An earlier version of this branch deleted it at that point, and live testing showed a real double payment: the button still read Retry, and tapping it signed a second transaction. Observation is now handled like this:

    • Retry in the open sheet rebroadcasts the same bytes and ends in success.
    • Reopening the same payment shows the warning first.
    • A different address or amount proceeds normally with no warning.
  • Retrying an unobserved send with the same wallet, address and amount rebroadcasts the original bytes with no device prompt. Fee and tags are not part of the match, and the review screen shows the original fee and locks it. Amount checks accept the kept amount, so a near-max payment can still reach Retry after fees rise.

  • A different address or amount over an unobserved record, a refused retry, or an unreadable record shows a warning before any device contact, with Cancel and Yes, Send. Yes, Send gives consent for that one payment and continues to normal signing, so a wallet can never be stuck and a genuine repeat payment still works. Consent lasts until the new payment is signed and saved, so a device rejection or timeout keeps it and the next tap asks the device again. It's also given back if the new payment is refused on its first attempt. Leaving the sign flow ends it, and the warning comes back. This is the only new UI behaviour.

  • The old record is never dropped before its replacement is signed. A consented or different payment replaces it in one write once signed, so backing out, a device rejection or a signing failure leaves the original protected. If the new payment is refused or can't connect on its first attempt, the original is put back. A signature identical to an attempted record counts as a retry.

  • Records are released on success and on wallet removal, which also clears a corrupt entry.

  • Leaving is not locked after a failed ordinary send, so nobody gets trapped on the sign screen while offline.

  • Unknown outcomes and refused retries show the existing "may have been sent" message instead of raw error text.

Out of Scope

  • Connect-failure check: it matches core's error text. A typed core error would be sturdier and needs a bitkit-core change.
  • Shop payments: unchanged, they keep their existing durable path.
  • Sign screen: going back to review leaves the swipe stuck on a spinner, so you have to go back to Amount and continue. A control run with no failure reproduced it, and Bitkit/Components is unchanged here, but it was not run on master.
  • Reused alert copy says "funding transaction", which is slightly off for a plain send. Rewording it would touch every localization.

Known limits of this change:

  • Electrum error text is unauthenticated. A faulty or hostile server can accept the transaction and return a recognised refusal on the first attempt, before the watcher sees it, which releases the record. Signing again still needs approval on the device.
  • Yes, Send allows a second signature after an explicit warning. Once the replacement is signed and sent, the original payment's record is gone.
  • Removing a wallet deletes its record.
  • A restore on a new device has no record, because records are excluded from backups.
  • TrezorManager.forgetDevice does not release a record, so a re-paired wallet gets the warning instead.

Design

N/A — no design available. Existing alert and toast components are reused.

Preview

N/A — the visible changes are the reused warning, the Retry label in a reopened sheet and the locked fee.

QA Notes

Setup

Regtest only: the synonymdev/bitkit-docker stack with the Trezor emulator on a test seed holding several UTXOs, per journeys/hardware-wallet/README.md, plus a local Electrum JSON-RPC proxy set as the custom Electrum server that injects faults on blockchain.transaction.broadcast. No proxy exists in this repo. The full recipe is broadcast-unknown-retry.md.

Journeys

N/A — not drivable; see Manual Tests. Broadcast faults are not in the journeys Capabilities table.

Manual Tests

  • 1. Follow broadcast-unknown-retry.md on the Bridge emulator — Electrum fault injection not in Capabilities
  • 2. On a physical Trezor and Jade, an ordinary send still succeeds end to end — physical hardware wallet not available to the author

Automated Checks

  • added HwRetainedSendServiceTests.swift — record round trip, per-wallet isolation, no overwrite with different bytes, observed marking, corrupt entry behaviour, full wipe
  • updated HwFundingSignerTests.swift — one signature with identical bytes across unknown errors, timeout then leave, a recreated coordinator and a changed fee; the outcome table; observed outcomes; warning with zero device contact; Shop unchanged
  • updated HwWalletManagerTests.swift — watcher marks and does not delete; removal releases
  • updated BroadcastConnectivityTests.swift — connect-failure classification
  • updated HwTransferMocks.swift, SendConfirmationViewTests.swift, SendConfirmationLifecycleTests.swift, PaykitPaymentRequestServiceTests.swift — support for the above

Evidence

Unit suite at 81ff846, iPhone 17 simulator, iOS 26.5, Xcode 26.6, with the same selection as unit-tests.yml: 3081 passed, 0 failed, 5 skipped. The skips are outside the suites this branch touches and include the three TrezorBridgeDashboardUITests. node scripts/validate-translations.js passed. The lint workflow ran the pinned SwiftFormat.

Live on local regtest at afd9082 with the Trezor Bridge emulator and a fault proxy, run by a verifier who did not write the fix. A normal signing shows 4 device prompts:

  • Broadcast reaches the network then errors, watcher sees it, Retry 12 s or more later: 0 prompts, identical bytes, one transaction, recipient paid once. Three runs, one with the error still injected on the Retry.
  • Reopen the same payment after that: warning before any prompt, Cancel stays. Yes, Send signs anew as the consented repeat.
  • Different amount or address after that: no warning, 4 prompts, new transaction.
  • Force quit with a delivered transaction, unmined and mined: warning before any prompt on relaunch.
  • Swallowed broadcast, leave or force quit, reopen, including after changing the default fee: Retry with the fee locked, identical bytes, 0 prompts.
  • Different amount over an unobserved record: warning; Cancel stays; Yes, Send signs anew.
  • First-attempt min relay fee not met: released, next attempt signs anew with no warning. Retry bad-txns-inputs-missingorspent: 0 prompts, kept, reopen warns.
  • Connection refused: real string Failed to connect to Electrum: Connection refused (os error 61), connectivity toast, no record, Retry on the sign screen with 0 prompts.
  • Silent socket: the 120 s timeout fires. Seen by the watcher, the send ends in success with no toast. Not seen, it shows the toast and Retry, with identical bytes and 0 prompts.
  • Near-max payment after the default fee rose: Continue works, fee stays locked, identical bytes, 0 prompts.
  • Every recipient checked with getreceivedbyaddress: none was paid more than once without an explicit Yes, Send.

Gaps

  • The live regtest run above predates the review fixes on this PR. The merge from master, the guard-until-signed change, the consent changes and the fee changes have unit tests and CI only (unit suite at 42abdf5: 3315 passed, 0 failed, 5 skipped). The live scenarios still need re-running at the current head.
  • jvsena42 ran the recipe at 42abdf5 on the iOS simulator with the Trezor emulator through Bridge and staging Electrum behind a fault proxy: checks 1 to 8 and passphrase cases P1 to P5 passed. See their comment on this PR. That run is still an emulator, not a physical device. The earlier Bridge session not found error came from another Bridge client taking the session.
  • No physical hardware wallet. USB, BLE, THP pairing and Jade have no live coverage; Jade is unit tests with mocks only.
  • The live run used a Debug build with E2E_BUILD and a proxy that injects faults, so real-world error strings can differ.
  • The record's observed flag was inferred from Keychain log timing and behaviour, not read directly.
  • Commit 81ff846 after the live run only changes the recipe text.
  • The master merge at 33fab66 brought in the hardware-wallet transfer to Spending (Spark). f9e159c adds the same Cancel / Yes, Send warning there before any device contact, using the send sheet's existing strings. It has unit tests only, with no emulator run yet. 532d0ab keeps a reopened kept transfer on Retry after a restart: the amount screen accepts its amount even above today's maximum, both screens price it from the signed bytes at the original fee, and the button reads Retry. Unit tests only, with no emulator run yet.

@Jasonvdb

Jasonvdb commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T16:17:58.850692Z 24f10c9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 24f10c917b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Jasonvdb
Jasonvdb marked this pull request as ready for review November 5, 2026 07:34
@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Critical impact] The changes affect ordinary hardware-wallet payments that can reach the network despite an unclear broadcast reply.

Refresh the fee after abandoning a retained payment before merging.

Findings

  1. P1 Signed fee differs from review ▶
  2. P2 Removed wallet keeps broken record ▶

Summary

Ordinary hardware-wallet sends now keep signed bytes in device-only Keychain storage before broadcast.

  • Hardware-wallet retries reuse the signed transaction after an unclear broadcast.
  • The send screens show when a hardware-wallet payment can be retried or needs a warning.

Acknowledged limits

  • Jasonvdb identifies connect-failure text classification and unauthenticated first-attempt refusals as known limits outside this change’s scope.
  • Jasonvdb identifies the sign-screen back-navigation spinner as a known issue reproduced in a control run.
  • Jasonvdb defers changing the reused “funding transaction” warning copy because it would touch every localization.
  • Jasonvdb states that USB, BLE, THP pairing, and Jade were not tested live.
  • Jasonvdb documents explicit repeat approval, wallet removal, device-only restore behavior, and TrezorManager.forgetDevice retaining the record as intended limits.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    Sign[Sign payment] --> Keep[Save signed bytes]
    Keep --> Broadcast[Broadcast transaction]
    Broadcast -->|Success| Release[Release record]
    Broadcast -->|Unknown outcome| Retain[Keep record]
    Retain --> Retry[Retry identical bytes]
    Retain --> Observe[Watcher marks observed]
    Observe --> Repeat[Same payment shows warning]
    Repeat -->|Cancel| Retain
    Repeat -->|Yes, Send| Abandon[Discard record and sign anew]
Loading

Reviews (1) · Last reviewed commit: "docs: record live iOS hang result in har..." · Reviewed by Greptile

Comment thread Bitkit/Managers/HwWalletManager.swift Resolved
@ovitrif

ovitrif commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Placed in 3.2.0: a non-blocking fix found after the 3.1 cut. I filed #1218 to track it under the milestone and added Closes #1218 to this PR. The twin synonymdev/bitkit-android#1770 closes synonymdev/bitkit-android#1783.

Note: #1210 (draft, @ben-kaufman) also keeps a signed hardware send whose broadcast may have gone out, so the two overlap and should be reconciled before both merge.

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⛔️ Request changes — the fee can change after the user confirms a retained retry.

The PR moved to 8ff35c6 after this run; these results are for 81ff846.

Findings: 1 MEDIUM

  • Bitkit/Views/Wallets/Send/SendConfirmationView.swift:964: if the watcher observes a retained transaction while its retry review is open, accepting “Yes, Send” discards the old transaction and proceeds to signing at the current selected fee without updating the confirmation. I reproduced a review showing 141 sats at 1 sat/vB followed by composition at 9 sat/vB. Recalculate and reconfirm the fresh fee before proceeding to a new signature.

QA for 81ff846:

Check: retained send regression suites ✅ Focused storage, retry, watcher, connectivity and confirmation checks passed.

Built and ran the focused suites from the unchanged head on an iPhone 17 simulator, iOS 26.5, Xcode 27.0. The pinned SwiftFormat check also passed on the changed Swift files.

Reconfirm the fee when an observed retry becomes a new payment ❌ The original fee stayed on the review while signing used the current selected rate.

I opened an unobserved retained send with an original fee of 141 sats at 1 sat/vB and a selected fresh rate of 9 sat/vB, marked the retained transaction observed, then accepted the repeat warning and continued to signing. The recording shows the original review and navigation; the added regression assertion verified that composition used 9 sat/vB.

The real confirmation and signing views ran in an isolated SwiftUI test host with mocked hardware signing and broadcast dependencies. No funds were sent.

observed-fee-2x.2x.mp4

Retained review, repeat consent and signing, at 2× speed.

Check: previous Bridge fault report ✅ Existing reported coverage applies to the unchanged implementation.

I relied on the author's QA report for the eight checks in broadcast-unknown-retry.md at afd9082. The only subsequent commit changes that recipe's text. I did not repeat those live broadcast cases in this run.

Send with physical Trezor and Jade wallets ⏭️ Neither hardware wallet was available.

Physical signing, BLE and THP pairing remain unverified. The Bridge report and mocked signing check do not establish those paths.

Pair PR: bitkit-android#1770 fix: keep signed hardware sends on retry matches the retained-send outcome policy; Keychain read-failure handling and native timeout behavior differ as documented in the pair's QA notes.

Full PR diff, 19 files. Live broadcast behavior relies on the earlier report; the new device check isolates the confirmation-to-signing fee transition.

The PR advanced during this run; these findings and results describe 81ff846.


Reviewed by gpt-6.1-sol-high

@Jasonvdb

Jasonvdb commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. I'm talking to Ben about the overlap, and I'll keep this one moving in the meantime.

@talosmachina talosmachina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 finding (1 P1). Keeps the signed bytes of an ordinary hardware send in a per-wallet Keychain record, so a send whose broadcast outcome is unknown is rebroadcast with the same txid instead of being signed again. Reviewed 8ff35c6a, oversized tier (2,424 added lines, mostly tests): production code read, tests read only where CI pointed. Not built here (iOS does not build on Linux), so this review is reasoned from the code and from CI.

What I checked, and 4 candidates I ruled out

Read: the diffs of HwRetainedSendService.swift, HwFundingSigner.swift (signAndBroadcast, settleRetainedSend, completeObservedSend, retainedSendStatus, retainedRebroadcastTx, abandonRetainedPayment), HwWalletManager.swift, BroadcastError+Connectivity.swift, Keychain.swift, HwSendSignView.swift, SendAmountView.swift, SendConfirmationView.swift, plus HwTransferMocks.swift where CI failed.
Traced: bitkit-core broadcast_raw_tx on master.
CI: Run Tests and Run Integration Tests fail on the build step (the finding). SwiftFormat and validate pass. build-local and e2e were pending when I read them. The latest master unit run fails too, but on a different UI test (testProfileControlsStayReadOnlyUntilSessionAndProfileRecover), so it is not this failure.

Ruled out

  • Releasing the record on a first-attempt connect failure: in bitkit-core, broadcast_raw_tx raises Failed to connect to Electrum: only from Client::new, before transaction_broadcast_raw runs. Any error from the broadcast call itself is wrapped as Broadcast failed:, so the prefix means no bytes went out.
  • Record left behind by a wallet wipe: wipeEntireKeychain enumerates every stored account and deletes everything except the retained list, so hw_retained_send_<id> goes with it.
  • Consent when abandon fails on a read error: abandonRetainedPayment only logs, but the next signAndBroadcast reaches retainedSends.record(walletId:), which throws before any device contact. It fails closed.
  • Watcher marking a record that was already released: markObserved loads first and returns when nothing is stored, and it runs on the per-wallet persist queue.
  • Cold reader: skipped. The finding is a compile error that CI reproduces on this head.

Merge confidence: 1/5, the test target does not build on this head, so CI has no unit or integration result for the change.

Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed (the runtime does not report a reasoning setting for this session)

Comment thread BitkitTests/HwTransferMocks.swift Resolved

@coreyphillips coreyphillips left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two independent reviews.

needs changing before merge

  • Unit test target fails to compile at the merged head (BitkitTests/HwTransferMocks.swift:206)

worth doing, does not block

  • Failed different payment drops the observed record, so a repeat signs again (Bitkit/ViewModels/HwFundingSigner.swift:598-605)
  • A replacement send can use a fee different from the locked review (Bitkit/Views/Wallets/Send/SendConfirmationView.swift:963-966)
  • Wallet removal leaves corrupt retained-send records behind (Bitkit/Managers/HwWalletManager.swift:326-329)

Comment thread BitkitTests/HwTransferMocks.swift Resolved
Comment thread Bitkit/ViewModels/HwFundingSigner.swift Resolved
Comment thread Bitkit/Managers/HwWalletManager.swift Resolved
A retained send seen by the watcher while its retry review was open warned on
swipe, then signed at the selected fee while the review still showed the locked
one. Stay on the review with the current fee instead, so the next swipe signs
what is displayed.

- Removing a wallet now deletes its corrupt retained record, so re-pairing does
  not bring the warning back.
- Clear the test records by fixed wallet id, as the keychain listing is private.
Yes, Send and a different payment over an observed record both deleted the
record before anything was signed. If the new payment then failed or the user
backed out, repeating the original signed a second time with no warning.

- Yes, Send now grants one-use, in-memory consent for that wallet, address and
  amount. Cancel, a different request, a wallet switch and use all end it.
- The old record is replaced in one keychain write after signing, just before
  dispatch. A send that stops before dispatch leaves or puts back the old record.
- A plain read failure still fails closed before device contact.

@jvsena42 jvsena42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device gate result for the delta. Code findings: none above LOW (previous review). The new commits 6e56b21 and 8aad00e landed during the run; I read them (retained-retry pricing moved into SparkTransferFlow.refreshRetainedRetryQuote with supersede checks; the claim starts at the signed quote's ceiling) and found nothing above LOW, but they change the retained-retry pricing path that steps 1-2 below exercised, so those two steps get re-run at the head.

Driven at 532d0ab on an iPhone 17 Pro Max simulator with the Trezor emulator over Bridge, staging regtest funds, a local Electrum proxy to swallow the broadcast:

Step Result
1. Broadcast swallowed, force-quit, reopen same amount Pass: Retry, original fee 459, no device prompt, byte-identical tx, one signature
2. Retained MAX, Available drops below it (fee rise simulated with Dev Settings > Override Fees) Pass: over-typing clamps to the retained 3,648,654, Continue enabled, original fee 570 shown, Retry sends identical bytes, one signature
3. Different amount Pass: alert before any device contact; Cancel signs nothing and the alert returns; after Yes, Send + device reject the next tap goes to the device; Back and forward brings the alert back
4. Watcher observes the first transfer, same amount Pass: Open Trezor Connect, alert before the device
5. Yes, Send → reject → Learn More → menu → Home → same transfer Fails, 2 of 2: no alert, new signature requested (LOW inline)

No crash, freeze or undismissable sheet. The stale "TRANSACTION SIGNED" title with Retry after Back from a retained transfer is @coreyphillips's existing thread; tapping it raised the alert and sent nothing.

The LOW can be fixed here or moved to a follow-up issue, your choice; reply on the thread saying which.

Device gate (partial): 532d0ab (head 8aad00e) — steps 3-5 stand at the head (consent code unchanged), step 5 reproduces the LOW; steps 1-2 re-run at 8aad00e pending; perf: not relevant (sign tap → alert/prompt 12-17 s on a host at load 17-40, not compared with master); Figma: not compared; l10n: no UI text changed in the delta.

Reviewer model: claude-fable-5-2 (delta review), claude-opus-5-5 (device gate and coordination)
Reasoning effort: not exposed (subagents), default (coordinator)

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⛔️ Request changes — replacement consent survives leaving the transfer flow.

Reaudit: diff, 3 files.

Findings: 1

  • MEDIUM: End retained-send consent when leaving through Learn More. Bitkit/Views/Transfer/Hardware/SpendingHwSign.swift:253: Retain a swallowed 140,000-sat transfer, restart, open a 141,000-sat replacement, choose Yes, Send and reject on the device. Leave through Learn More → menu → Wallet, then reopen 141,000 sats: tapping Open Trezor Connect reaches Recipient #1 without showing the retained-send warning again. Consent registered here lives on the navigation-scoped coordinator: pushing Learn More skips cancel() because the sign route is still present, and later removing that hidden route does not end the consent. The next same-wallet transfer therefore reuses permission from an abandoned flow and bypasses the duplicate-payment warning. Device approval is still required; I rejected the new prompt and no replacement was signed or broadcast. Could we end consent when navigation removes the transfer flow, including exits from Learn More?

The previous claim-fee finding is fixed at 8aad00e: Retry waits for pricing, and a higher claim offer is checked against the signed quote.

QA for 8aad00e:

Native cases used an iPhone 17 Pro 2x simulator on iOS 27.0, Trezor Bridge, disposable local regtest funds and an Electrum fault proxy. The emulator controller establishes device prompts; the proxy and Bitcoin node establish bytes and payments.

Wait for retained transfer pricing before Retry ✅ Retry waited for the initial lookup, then reused the original signed transaction.

A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

The video shows the disabled control and later Retry. A tap during the hold left the emulator on its home screen and the proxy at one swallowed broadcast; the successful Retry added identical bytes and one node transaction. The hook only holds execution before the first real pricing lookup.

Unpushed timing hook
diff --git a/Bitkit/ViewModels/SparkTransferFlow.swift b/Bitkit/ViewModels/SparkTransferFlow.swift
index c4af497a..52237bdd 100644
--- a/Bitkit/ViewModels/SparkTransferFlow.swift
+++ b/Bitkit/ViewModels/SparkTransferFlow.swift
@@ -331,6 +331,22 @@ final class SparkTransferFlow {
                 isQuoting = false
             }
         }
+        #if DEBUG
+        let reviewDocs = URL(fileURLWithPath: NSHomeDirectory()).appendingPathComponent("Documents") // test hook
+        let reviewArm = reviewDocs.appendingPathComponent("review-arm-retry-lookup") // test hook
+        let reviewHold = reviewDocs.appendingPathComponent("review-held-retry-lookup") // test hook
+        if FileManager.default.fileExists(atPath: reviewArm.path) { // test hook
+            try? FileManager.default.removeItem(at: reviewArm) // test hook
+            try? Data("held".utf8).write(to: reviewHold) // test hook
+            Logger.info("test hook: retry lookup held, busy=\(isQuoting), quote=\(quote?.depositSats ?? 0), amount=\(amountSats)", context: "SparkTransferFlow") // test hook
+            while FileManager.default.fileExists(atPath: reviewHold.path) { // test hook
+                await withCheckedContinuation { continuation in // test hook
+                    DispatchQueue.global().asyncAfter(deadline: .now() + 0.1) { continuation.resume() } // test hook
+                } // test hook
+            } // test hook
+            Logger.info("test hook: retry lookup released, busy=\(isQuoting)", context: "SparkTransferFlow") // test hook
+        } // test hook
+        #endif
         guard walletId != nil, let address = try? await depositAddress(),
               let signedTx = await hwSend.retainedSendStatus(address: address, sats: amountSats, hasIncomingRequest: false).retrySignedTx
         else {

BUSY-2x.2x.mp4

Regtest Bridge run at 2× speed.

Restore the warning after leaving through Learn More ❌ Leaving through Learn More preserved consent, so reopening bypassed the warning.

With a swallowed 140,000-sat transfer retained, a 141,000-sat replacement warned before signing. After Yes, Send and rejection at Recipient #1, Learn More → menu → Wallet left the transfer. Reopening 141,000 sats and tapping Open Trezor Connect skipped the warning and reached Recipient #1 again. The replacement was rejected again; proxy/node checks show no replacement broadcast.

Unmodified head; installed binary hash matched the saved pristine build. The emulator controller confirmed both Recipient #1 prompts; the video shows the warning before the first consent and its absence after leaving.

LEARN-2x.2x.mp4

Regtest Bridge run at 2× speed.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ The higher claim offer required confirmation.

Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

An in-memory retained record and controlled Spark operations exercise production pricing and claim decisions: the quote accepted 1,000 sats, a refresh quoted 2,000, and a 1,500-sat offer ended as repriced without calling claimEarly. This is an automated logic check; no live claim or debit occurred.

Check: Hardware transfer and retained-send regressions ✅ The exact-head build, focused regressions and formatting checks passed.

Unmodified exact-head app and test targets built. Focused hardware transfer, Spark claim/navigation, retained-send/signing/storage, watcher, connectivity, confirmation and payment-request suites passed. SwiftFormat 0.64.6 lint passed all three delta files.

Warn before repeating an observed hardware transfer ✅ Reported pass at `f9e159c`.

A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Established by the passing report at f9e159c. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Retry the same transaction after an unknown broadcast ✅ Reported pass at `783789e`.

Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Established by the passing report at 783789e. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Recover from a silent broadcast timeout ✅ Reported pass at `783789e`.

The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Established by the passing report at 783789e. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Recover after Electrum refuses a connection ✅ Reported pass at `783789e`.

After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Established by the passing report at 783789e. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Sign anew after a first broadcast refusal ✅ Reported pass at `783789e`.

A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Established by the passing report at 783789e. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Keep a refused retry protected ✅ Reported pass at `783789e`.

Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Established by the passing report at 783789e. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Resume an observed repeat after cancelling the passphrase prompt ✅ Reported pass at `42abdf5`.

Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Established by the passing report at 42abdf5. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Resume a different payment after cancelling the passphrase prompt ✅ Reported pass at `42abdf5`.

Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Established by the passing report at 42abdf5. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Keep consent through passphrase checking and mismatch ✅ Reported pass at `42abdf5`.

Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

Established by the passing report at 42abdf5. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

End consent when leaving the passphrase flow ✅ Reported pass at `42abdf5`.

Reported pass: leaving ended consent and restored the warning before device contact.

Established by the passing report at 42abdf5. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Retry retained bytes with the hidden wallet disconnected ✅ Reported pass at `42abdf5`.

Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Established by the passing report at 42abdf5. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Leave and reopen a retained payment ✅ Reported pass at `33fab66`.

A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Established by the passing report at 33fab66. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Confirm a different payment and retry after rejection ✅ Reported pass at `33fab66`.

A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Established by the passing report at 33fab66. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Keep the payment protected across restart ✅ Reported pass at `33fab66`.

An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Established by the passing report at 33fab66. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Retry a near-maximum payment after the default fee rises ✅ Reported pass at `33fab66`.

A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Established by the passing report at 33fab66. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Confirm a different transfer over an unresolved payment ✅ Reported pass at `f9e159c`.

A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Established by the passing report at f9e159c. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Retry a transfer on the same screen ✅ Reported pass at `f9e159c`.

A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Established by the passing report at f9e159c. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Reported pass at `6e56b21`.

A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Established by the passing report at 6e56b21. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Keep the latest transfer quote when an earlier retry finishes late ✅ Reported pass at `6e56b21`.

A real 110,000-sat retained retry quote was held after its claim-fee read. Back and a new 111,000-sat transfer produced a fresh quote. Releasing the old request left the later amount and quote intact; logs show currentAmount=111000 and currentQuote=111000 at release. The two stale-request regressions also pass.

Established by the passing report at 6e56b21. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

That report used an unpushed timing hold after the real claim-fee read and includes its patch.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Reported pass at `6e56b21`.

A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Established by the passing report at 6e56b21. The delta leaves that case's byte, amount, consent, passphrase and stale-request decisions unchanged; initial pricing and claim-fee consent are checked afresh above.

Send with a physical Trezor ⏭️ No connected physical test wallet was available.

No connected physical test hardware wallet was available.

Manual test 2. USB, Bluetooth and device inventories showed no connected test Trezor or Jade. Bridge and mocks do not establish physical signing, USB, BLE or THP pairing.

Send with a physical Jade ⏭️ No connected physical test wallet was available.

No connected physical test hardware wallet was available.

Manual test 2. USB, Bluetooth and device inventories showed no connected test Trezor or Jade. Bridge and mocks do not establish physical signing, USB, BLE or THP pairing.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at caea116 matches retained-byte retry and fee confirmation: Android marks quoting busy before awaiting and cancels quote work before confirmation; iOS now also carries the accepted quote's claim ceiling explicitly through broadcast. Android was not driven.

Reviewed the contiguous 6e56b21..8aad00e delta and prior open feedback. The Learn More finding confirms the previously open exit case. Spark supplied live regtest quotes; live Spark claiming/settlement, Shop payments and physical hardware transports were not driven.


Reviewed by gpt-6.1-sol-high

@jvsena42 jvsena42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device gate finished at the head. Steps 1-2 re-run at 8aad00e after the retained-retry pricing changes; steps 3-5 from the earlier run stand (consent code unchanged).

Step at 8aad00e Result
1. Swallowed broadcast, force-quit, reopen same amount Pass: Retry with the original fee 459, no device prompt, byte-identical tx, one signature
2. Retained MAX, fees raised with Override Fees, reopen Pass: Available 3,176,111 < retained 3,177,441; over-typing clamps to the retained amount; original fee 570 and the same Instant fee as at signing; Retry sends byte-identical bytes, one signature
2b. Amount changed while the retained quote loads (Back during loading; edit during a slower fresh quote) Pass: the sign screen's button always matched its amount; Retry only for the retained amount

No HIGH/MEDIUM from the code scan or the gate. Approving with the Learn More consent LOW open; fix it here or in a follow-up issue, your choice — please reply on that thread saying which.

Device gate: 8aad00e (steps 3-5 at 532d0ab, consent path unchanged) — 5 steps, 4 pass, step 5 reproduces the LOW; perf: not relevant; Figma: not compared; l10n: no UI text changed.
⚠️ Not verified on device: that the claim starts at the signed quote's early-claim ceiling (8aad00e). The app logs nothing about the ceiling at broadcast, and Spark never lists a staging-regtest deposit, so no claim decision happens on my setup; this rests on SpendingHwSignTests and the code trace.
Skipped — covered by CI at 8aad00e: integration tests, SwiftFormat, build (green). Run Tests and e2e-tests-local were still pending when I posted this; the approval assumes they go green.

Reviewer model: claude-fable-5-2 (delta review), claude-opus-5-5 (device gate and coordination)
Reasoning effort: not exposed (subagents), default (coordinator)

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Reaudit: diff, 4 files.

Findings: No new findings. The Learn More consent finding is fixed at e242101.

QA for e242101:

Native cases used the unmodified Debug build on an iPhone 17 Pro 2x simulator, iOS 27.0, Trezor Bridge and disposable local regtest funds. The emulator controller establishes device prompts; the Electrum fault proxy and Bitcoin node establish transaction bytes and payments.

Restore the warning after leaving through Learn More ✅ Leaving through Learn More now restores the warning before another device prompt.

A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

The video shows consent, rejection, exit and the renewed warning; device prompts and absence of broadcast were checked through the emulator controller and proxy/node.

LEARN-2x.2x.mp4

Regtest Bridge run at 2× speed.

Retry the protected transfer after leaving a replacement ✅ The original fee and signed bytes survived, and Retry made one payment without another approval.

After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

The video shows the retained fee, Retry and completion. Byte identity and one payment were checked independently at the proxy and node; the emulator stayed on its home screen. Spark claiming and settlement were not tested.

RETRY-2x.2x.mp4

Regtest Bridge run at 2× speed.

Restore the warning for an observed repeat after Learn More ✅ An observed repeat warns again after the Learn More exit.

A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Unmodified exact-head app. Observation is inferred from activity, watcher Keychain update timing and repeat-warning behavior, rather than decoding the flag directly. The video shows the warning on both visits; the controller and proxy/node establish prompts and the absence of a replacement broadcast.

OBS-2x.2x.mp4

Regtest Bridge run at 2× speed.

Check: Hardware consent and retry regressions ✅ The focused consent, retained-byte and transfer regressions and delta formatting passed.

Exact-head app/test build and focused hardware consent, amount, signing, storage, watcher, confirmation, claim and navigation regressions passed. Pinned SwiftFormat lint passed all four delta files.

Warn before repeating an observed hardware transfer ✅ Reported pass at `f9e159c`.

A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Established by the passing report at f9e159c; unchanged by this delta.

Retry the same transaction after an unknown broadcast ✅ Reported pass at `783789e`.

Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Established by the passing report at 783789e; unchanged by this delta.

Recover from a silent broadcast timeout ✅ Reported pass at `783789e`.

The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Established by the passing report at 783789e; unchanged by this delta.

Recover after Electrum refuses a connection ✅ Reported pass at `783789e`.

After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Established by the passing report at 783789e; unchanged by this delta.

Sign anew after a first broadcast refusal ✅ Reported pass at `783789e`.

A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Established by the passing report at 783789e; unchanged by this delta.

Keep a refused retry protected ✅ Reported pass at `783789e`.

Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Established by the passing report at 783789e; unchanged by this delta.

Resume an observed repeat after cancelling the passphrase prompt ✅ Reported pass at `42abdf5`.

Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Established by the passing report at 42abdf5; unchanged by this delta.

Resume a different payment after cancelling the passphrase prompt ✅ Reported pass at `42abdf5`.

Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Established by the passing report at 42abdf5; unchanged by this delta.

Keep consent through passphrase checking and mismatch ✅ Reported pass at `42abdf5`.

Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

Established by the passing report at 42abdf5; unchanged by this delta.

End consent when leaving the passphrase flow ✅ Reported pass at `42abdf5`.

Reported pass: leaving ended consent and restored the warning before device contact.

Established by the passing report at 42abdf5; unchanged by this delta.

Retry retained bytes with the hidden wallet disconnected ✅ Reported pass at `42abdf5`.

Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Established by the passing report at 42abdf5; unchanged by this delta.

Leave and reopen a retained payment ✅ Reported pass at `33fab66`.

A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Established by the passing report at 33fab66; unchanged by this delta.

Confirm a different payment and retry after rejection ✅ Reported pass at `33fab66`.

A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Established by the passing report at 33fab66; unchanged by this delta.

Keep the payment protected across restart ✅ Reported pass at `33fab66`.

An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Established by the passing report at 33fab66; unchanged by this delta.

Retry a near-maximum payment after the default fee rises ✅ Reported pass at `33fab66`.

A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Established by the passing report at 33fab66; unchanged by this delta.

Confirm a different transfer over an unresolved payment ✅ Reported pass at `f9e159c`.

A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Established by the passing report at f9e159c; unchanged by this delta.

Retry a transfer on the same screen ✅ Reported pass at `f9e159c`.

A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Established by the passing report at f9e159c; unchanged by this delta.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Reported pass at `6e56b21`.

A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Established by the passing report at 6e56b21; unchanged by this delta.

Keep the latest transfer quote when an earlier retry finishes late ✅ Reported pass at `6e56b21`.

A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Established by the passing report at 6e56b21; unchanged by this delta.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Reported pass at `6e56b21`.

A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Established by the passing report at 6e56b21; unchanged by this delta.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Reported pass at `8aad00e`.

Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Established by the passing report at 8aad00e; unchanged by this delta.

Wait for retained transfer pricing before Retry ✅ Reported pass at `8aad00e`.

A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Established by the passing report at 8aad00e; unchanged by this delta.

Send with a physical Trezor ⏭️ No connected physical test hardware wallet was available.

No connected physical test hardware wallet was available.

Current USB, Bluetooth and physical-device inventories show no connected test Trezor or Jade. A paired Trezor Safe 7 is disconnected. Simulator has no BLE and the repository fixture provides no Jade emulator.

Send with a physical Jade ⏭️ No connected physical test hardware wallet was available.

No connected physical test hardware wallet was available.

Current USB, Bluetooth and physical-device inventories show no connected test Trezor or Jade. A paired Trezor Safe 7 is disconnected. Simulator has no BLE and the repository fixture provides no Jade emulator.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at caea116 matches the warning and retained-byte policy. Its sign screen ends consent in onDispose; iOS now ends earlier consent when the next amount screen loads. Android was inspected, not driven in this run.

Reviewed the contiguous 8aad00e..e242101 delta and prior open feedback. The in-flight regrant and storage-failure paths use focused automated coverage. Live Spark claiming/settlement, Shop payments, physical transports and THP pairing were not driven.


Reviewed by gpt-6.1-sol-high

@jvsena42 jvsena42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving at e242101ae (delta: "end re-sign consent when a new transfer starts"). No findings.

What I checked in the delta:

  • Consent can't end mid-signing. SpendingAmountHw.loadAvailable() (:157) ends retained-send consent synchronously on amount-screen appear. SpendingHwSign is only reached from that screen's Continue (:150), so the amount screen is never on top while a sign screen or Learn More is open. If it ever did land between consent and signAndBroadcast, the attempt rebroadcasts the same retained bytes or throws broadcastUncertain; it never signs again without the warning.
  • Every exit now ends consent:
    • Back from sign: cancel(), then the amount appear.
    • Learn More, then the drawer menu: no cancel runs, but the next transfer's amount appear ends consent.
    • A path reset during the broadcast window: the onDisappear guard skips cancel() there; the next amount appear covers it.
    • Same-wallet selectWallet: a no-op, which is why the explicit call is needed.
  • Retained bytes are still gated: the delta doesn't touch pendingPayment or the retained record, so held bytes still go through isSamePayment / observed.

Nit, no action needed: the doc comment on isRetainedSendConsentEnded (HwFundingSigner.swift:368) still says "Set on leaving the flow".

CI: unit, integration and local e2e pass; SwiftFormat pass.

⚠️ Device gate: not re-run for this delta. The only visible effect is the re-sign warning showing again on a new transfer after Learn More → drawer menu. Steps 1-5 were driven at 8aad00e86 (previous review), and the delta doesn't change the sign or broadcast path.

Device gate: 8aad00e86 results stand; delta e242101ae code-only — consent-ending on amount-screen appear, not performance-relevant, no journey change.

Reviewer model: claude-fable-5-2 (delta review), claude-opus-5-5 (coordination)
Reasoning effort: not exposed (subagent), default (coordinator)

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in the merge delta.

QA for c02bc65:

Retry a retained hardware transfer after restart ✅ The original fee and progress survived; proxy, node and controller checks confirm identical bytes, one payment and no additional approval.

Manual test 1, retained-byte/restart behavior and merged progress navigation: a swallowed 160,000-sat transfer survived app restart. Reopening showed Retry with the original 459-sat network fee. Retry reached Funds In Transfer at Processing Payment. After starting and leaving another unsigned transfer, the home banner reopened the original deposit at that same step.

The unmodified exact-head Debug app ran on an iPhone 17 Pro 2x simulator, iOS 27.0, with the Trezor Bridge emulator and a local regtest fault proxy. The recording shows the fee, restart, Retry and progress navigation. The proxy captured byte-for-byte identical broadcasts; the node contained one 160,000-sat payment. Four approvals were supplied for the initial signature; none were supplied for Retry, and the controller showed its home screen before and after it. Spark listing, claiming and settlement were not tested.

MERGE-RETRY2x.2x.mp4

Retained hardware transfer and progress reopening, at 2× speed.

Check: Hardware retry and merged transfer regressions ✅ The exact-head build and focused regressions passed.

xcodebuild build-for-testing and focused test-without-building passed on iOS 26.5 with Xcode 27.0. Coverage includes retained storage, signer outcomes, consent, watcher, amount validation, retry pricing, accepted claim ceilings, transfer progress and banner state, navigation, payment requests, boost-history cache and Keychain. Pinned SwiftFormat lint passed the changed Swift files; git diff --check passed.

Warn before repeating an observed hardware transfer ✅ Reported pass at `f9e159c`.

A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Established by the passing report at f9e159c. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Retry the same transaction after an unknown broadcast ✅ Reported pass at `783789e`.

Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Established by the passing report at 783789e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Recover from a silent broadcast timeout ✅ Reported pass at `783789e`.

The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Established by the passing report at 783789e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Recover after Electrum refuses a connection ✅ Reported pass at `783789e`.

After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Established by the passing report at 783789e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Sign anew after a first broadcast refusal ✅ Reported pass at `783789e`.

A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Established by the passing report at 783789e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Keep a refused retry protected ✅ Reported pass at `783789e`.

Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Established by the passing report at 783789e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Resume an observed repeat after cancelling the passphrase prompt ✅ Reported pass at `42abdf5`.

Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Established by the passing report at 42abdf5. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Resume a different payment after cancelling the passphrase prompt ✅ Reported pass at `42abdf5`.

Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Established by the passing report at 42abdf5. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Keep consent through passphrase checking and mismatch ✅ Reported pass at `42abdf5`.

Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

Established by the passing report at 42abdf5. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

End consent when leaving the passphrase flow ✅ Reported pass at `42abdf5`.

Reported pass: leaving ended consent and restored the warning before device contact.

Established by the passing report at 42abdf5. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Retry retained bytes with the hidden wallet disconnected ✅ Reported pass at `42abdf5`.

Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Established by the passing report at 42abdf5. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Leave and reopen a retained payment ✅ Reported pass at `33fab66`.

A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Established by the passing report at 33fab66. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Confirm a different payment and retry after rejection ✅ Reported pass at `33fab66`.

A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Established by the passing report at 33fab66. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Keep the payment protected across restart ✅ Reported pass at `33fab66`.

An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Established by the passing report at 33fab66. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Retry a near-maximum payment after the default fee rises ✅ Reported pass at `33fab66`.

A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Established by the passing report at 33fab66. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Confirm a different transfer over an unresolved payment ✅ Reported pass at `f9e159c`.

A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Established by the passing report at f9e159c. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Retry a transfer on the same screen ✅ Reported pass at `f9e159c`.

A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Established by the passing report at f9e159c. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Reported pass at `6e56b21`.

A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Established by the passing report at 6e56b21. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Keep the latest transfer quote when an earlier retry finishes late ✅ Reported pass at `6e56b21`.

A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Established by the passing report at 6e56b21. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Reported pass at `6e56b21`.

A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Established by the passing report at 6e56b21. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Reported pass at `8aad00e`.

Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Established by the passing report at 8aad00e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Wait for retained transfer pricing before Retry ✅ Reported pass at `8aad00e`.

A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Established by the passing report at 8aad00e. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Restore the warning after leaving through Learn More ✅ Reported pass at `e242101`.

A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

Established by the passing report at e242101. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Retry the protected transfer after leaving a replacement ✅ Reported pass at `e242101`.

After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

Established by the passing report at e242101. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Restore the warning for an observed repeat after Learn More ✅ Reported pass at `e242101`.

A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Established by the passing report at e242101. The merge preserves the exercised retry and consent behavior; the changed transfer progress integration is driven above.

Send with a physical Trezor ⏭️ No connected physical test hardware wallet was available.

Manual test 2 remains unrun. The current USB, Bluetooth and physical-device inventories show no connected test Trezor or Jade; the paired Trezor is disconnected. The simulator has no BLE, and the fixture provides no Jade emulator. Bridge evidence does not establish physical transports or THP pairing.

Send with a physical Jade ⏭️ No connected physical test hardware wallet was available.

Manual test 2 remains unrun. The current USB, Bluetooth and physical-device inventories show no connected test Trezor or Jade; the paired Trezor is disconnected. The simulator has no BLE, and the fixture provides no Jade emulator. Bridge evidence does not establish physical transports or THP pairing.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at 5eb68d7 matches the retained-byte and repeat-consent policy. Its transfer sign screen cancels consent in onDispose. Android was inspected, not driven in this run.

Reviewed the contiguous e242101..c02bc65 master merge and prior open feedback, tracing its interactions with retained hardware sends. The signer, retained store and hardware amount/sign screens are unchanged. The native case covers retry through the merged transfer progress UI; the claim decision and fee-ceiling paths have focused automated coverage. Live Shop payments, Spark claiming/settlement, physical transports and THP pairing were not driven.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in the merge delta.

QA for 905ddb2:

Reopen a retained hardware send after the fee rises ✅ Retry kept the original fee and bytes across restart; the recipient was paid once without another device approval.

Manual test 1, checks 2 and 4: a swallowed 170,000-sat send survived restart and a default-fee change from 1 to 9 sat/vB. The reopened review locked its original 141-sat fee. Retry reached Bitcoin Sent without another emulator approval. The proxy captured identical raw transactions and the node recorded exactly one 170,000-sat receipt.

MERGE-SEND2x.2x.mp4

Retained fee, restart and identical-byte Retry, at 2× speed.

Warn before signing a replacement hardware payment ✅ Cancel, device rejection and leaving preserved the original payment; its Retry paid once without another approval.

Manual test 1, check 3: after a swallowed 172,000-sat send, changing to 173,000 sats warned before a device prompt. Cancel stayed on Confirm, and another swipe warned again. After Yes, Send, rejecting Recipient #1 kept Open Trezor Connect; retapping requested a fresh prompt, which was also rejected. Leaving signing restored the warning. Returning to 172,000 sats kept its original 1,269-sat fee and Retry completed without another approval. Proxy/node checks confirm identical original bytes, one 172,000-sat receipt and no 173,000-sat payment.

MERGE-CONSENT2x.2x.mp4

Replacement consent, rejection and original-payment recovery, at 2× speed.

Both native cases used the unmodified exact-head Debug app on an iPhone 17 Pro 2x simulator, iOS 27.0, with the Trezor Bridge emulator and local regtest fault injection. The recordings show app behavior; raw bytes and receipts were checked at the proxy/node, and prompts through the emulator controller.

Check: Hardware retry and merged confirmation regressions ✅ The exact-head build and focused regressions passed.

Built the app and test targets, then ran focused signer, retained storage, watcher, consent, amount, transfer, claim-ceiling, navigation, fee-approval, Paykit restoration, contact and route suites on iOS 26.5 with Xcode 27.0. SwiftFormat 0.64.6 lint, translation validation and git diff --check passed.

Warn before repeating an observed hardware transfer ✅ Earlier passing evidence applies.

Reported pass at f9e159c in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry the same transaction after an unknown broadcast ✅ Earlier passing evidence applies.

Reported pass at 783789e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Recover from a silent broadcast timeout ✅ Earlier passing evidence applies.

Reported pass at 783789e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Recover after Electrum refuses a connection ✅ Earlier passing evidence applies.

Reported pass at 783789e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Sign anew after a first broadcast refusal ✅ Earlier passing evidence applies.

Reported pass at 783789e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Keep a refused retry protected ✅ Earlier passing evidence applies.

Reported pass at 783789e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Resume an observed repeat after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Reported pass at 42abdf5 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Resume a different payment after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Reported pass at 42abdf5 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Keep consent through passphrase checking and mismatch ✅ Earlier passing evidence applies.

Reported pass at 42abdf5 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

End consent when leaving the passphrase flow ✅ Earlier passing evidence applies.

Reported pass at 42abdf5 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry retained bytes with the hidden wallet disconnected ✅ Earlier passing evidence applies.

Reported pass at 42abdf5 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Leave and reopen a retained payment ✅ Earlier passing evidence applies.

Reported pass at 33fab66 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Confirm a different payment and retry after rejection ✅ Earlier passing evidence applies.

Reported pass at 33fab66 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Keep the payment protected across restart ✅ Earlier passing evidence applies.

Reported pass at 33fab66 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry a near-maximum payment after the default fee rises ✅ Earlier passing evidence applies.

Reported pass at 33fab66 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Confirm a different transfer over an unresolved payment ✅ Earlier passing evidence applies.

Reported pass at f9e159c in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry a transfer on the same screen ✅ Earlier passing evidence applies.

Reported pass at f9e159c in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Earlier passing evidence applies.

Reported pass at 6e56b21 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Keep the latest transfer quote when an earlier retry finishes late ✅ Earlier passing evidence applies.

Reported pass at 6e56b21 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Reported pass at 6e56b21 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Earlier passing evidence applies.

Reported pass at 8aad00e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Wait for retained transfer pricing before Retry ✅ Earlier passing evidence applies.

Reported pass at 8aad00e in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Restore the warning after leaving through Learn More ✅ Earlier passing evidence applies.

Reported pass at e242101 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry the protected transfer after leaving a replacement ✅ Earlier passing evidence applies.

Reported pass at e242101 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Restore the warning for an observed repeat after Learn More ✅ Earlier passing evidence applies.

Reported pass at e242101 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Retry a retained hardware transfer after restart ✅ Earlier passing evidence applies.

Reported pass at c02bc65 in the passing report. The exercised hardware implementation is unchanged by these merges; the shared amount/confirmation integration is re-driven above.

Send with a physical Trezor ⏭️ No connected physical test hardware wallet was available.

Manual test 2 remains unrun. USB, Bluetooth and physical-device inventories show no connected test Trezor or Jade; the paired Trezor is disconnected. The simulator cannot establish BLE or THP pairing, and the fixture has no Jade emulator.

Send with a physical Jade ⏭️ No connected physical test hardware wallet was available.

Manual test 2 remains unrun. USB, Bluetooth and physical-device inventories show no connected test Trezor or Jade; the paired Trezor is disconnected. The simulator cannot establish BLE or THP pairing, and the fixture has no Jade emulator.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at 5eb68d7 matches the retained-byte and repeat-consent policy; its transfer sign screen ends consent in onDispose. Android was inspected, not driven here.

Reviewed the contiguous c02bc65..905ddb2 master merges and prior open feedback. The signer, retained store, watcher and hardware transfer implementation are unchanged. New native coverage targets their interaction with the merged ordinary-send amount and confirmation screens. The merged software fee guard has an earlier passing report; the swap routes were inspected and covered by focused regressions. Live Shop payments, swap routes, Spark claiming/settlement and physical hardware transports were not driven here.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in this merge delta.

QA for 7a8c468:

Leave a replacement transfer through Learn More and retry the protected payment ✅ Leaving restored the warning; Retry preserved the original fee and bytes and paid once.

Manual test 1, transfer consent/retry integration: A swallowed 180,000-sat transfer survived restart. A 181,000-sat replacement warned before device contact. Yes, Send followed by device rejection kept the sign label; leaving through Learn More and reopening restored the warning. Cancel then original Retry kept its 459-sat network fee, rebroadcast identical bytes without another approval and created one 180,000-sat payment.

The unmodified Debug app ran on an iPhone 17 Pro 2x simulator, iOS 27.0, with the Trezor Bridge emulator and local regtest fault injection. The recording shows the navigation, warning, fee and Retry. Device prompts were checked through the emulator controller; bytes and payments through the proxy and Bitcoin node.

MERGE-NAV2x.2x.mp4

Transfer consent and original-byte Retry, at 2× speed.

Check: Hardware retry and merged navigation regressions ✅ The exact-head build and automated regressions passed.

xcodebuild build-for-testing and the CI selection with test-without-building passed. Hardware signing, retained storage, watcher, consent, amount, fee, claim-ceiling and merged navigation paths have automated coverage. SwiftFormat 0.64.6, translation validation and git diff --check passed.

Opt-in Spark exit regtest, USDT recovery/fork, wake gateway and Bridge dashboard tests skipped without their dedicated test settings. Those skips do not establish live coverage.

The following cases retain their earlier passing evidence at the stated heads. This merge leaves their signer, retained store, watcher, ordinary-send, hardware amount/sign, quote and passphrase paths unchanged; the fresh native check above also exercises the shared controls and transfer navigation.

Warn before repeating an observed hardware transfer ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Retry the same transaction after an unknown broadcast ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Recover from a silent broadcast timeout ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Recover after Electrum refuses a connection ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Sign anew after a first broadcast refusal ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Keep a refused retry protected ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Resume an observed repeat after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Resume a different payment after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Keep consent through passphrase checking and mismatch ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

End consent when leaving the passphrase flow ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: leaving ended consent and restored the warning before device contact.

Retry retained bytes with the hidden wallet disconnected ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Leave and reopen a retained payment ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Confirm a different payment and retry after rejection ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Keep the payment protected across restart ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Retry a near-maximum payment after the default fee rises ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Confirm a different transfer over an unresolved payment ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Retry a transfer on the same screen ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Keep the latest transfer quote when an earlier retry finishes late ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Wait for retained transfer pricing before Retry ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Restore the warning after leaving through Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

Retry the protected transfer after leaving a replacement ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

Restore the warning for an observed repeat after Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Retry a retained hardware transfer after restart ✅ Earlier passing evidence applies.

Passed at c02bc65 in the linked report. A swallowed 160,000-sat transfer survived restart with its 459-sat network fee. Retry rebroadcast identical bytes without another device approval; the node contained one 160,000-sat payment. The app reached Funds In Transfer at Processing Payment. After starting and leaving a later unsigned transfer, the home banner reopened the original deposit at the same progress step.

Reopen a retained hardware send after the fee rises ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 170000-sat send survived restart and a default-fee change from 1 to 9 sat/vB. Reopened review locked the original 141-sat fee; Retry sent byte-for-byte identical data without another approval and the recipient received 170000 sats once.

Warn before signing a replacement hardware payment ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 172000-sat payment warned when changed to 173000 sats. Cancel preserved the warning. Yes Send followed by rejection kept the sign label; retapping asked for a fresh prompt. After a second rejection and leaving, the warning returned. Original Retry kept the 1269-sat fee, sent identical bytes without another approval and paid 172000 sats once; no 173000-sat payment was broadcast.

Send with a physical Trezor ⏭️ No connected test hardware was available.

Manual test 2. Current USB, Bluetooth and device inventories show no connected test Trezor. Bridge and mock coverage do not establish physical signing, USB, BLE or THP pairing.

Send with a physical Jade ⏭️ No connected test hardware was available.

Manual test 2. Current USB, Bluetooth and device inventories show no connected test Jade. Bridge and mock coverage do not establish physical signing, USB, BLE or THP pairing.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at f37672d matches the retained-byte and repeat-consent policy; its transfer sign screen ends consent in onDispose. Documented storage-error and native-timeout differences remain. Android was inspected, not driven here.

Reviewed the contiguous delta 905ddb2..7a8c468 and prior feedback. Merged profile, Paykit receipt, Spark force-transfer and Savings UI changes received source and automated checks without separate device journeys. Live Shop payments, Spark claiming/settlement and physical hardware transports were not driven.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in this delta.

QA for 70bc6a3:

Ask for confirmation when QuickPay is disabled ✅ The queued invoice returned to manual Confirm without a live submission or a new spending reservation.

A test-only hosted fixture preloaded the queued QuickPay presentation with the setting disabled. The recording shows the production confirmation screen; XCTest asserted its route, an empty live-submission set and an unchanged ledger. No payment was attempted.

Debug app at 70bc6a3, iPhone 17 Pro 2x simulator on iOS 27.0. Only the test harness was added; production code was unchanged.

QP-INVOICE2x.2x.mp4

Queued QuickPay fallback, at 2× speed.

Ask for LNURL confirmation without fetching while QuickPay is disabled ✅ The queued LNURL payment returned to manual confirmation without fetching an invoice or reserving spend.

A test-only hosted fixture preloaded the queued QuickPay presentation with the setting disabled. The recording shows the production LNURL confirmation screen; a local callback listener and XCTest established zero callback requests, no live submission and an unchanged ledger. No payment was attempted.

Debug app at 70bc6a3, iPhone 17 Pro 2x simulator on iOS 27.0. Only the test harness was added; production code was unchanged.

QP-LNURL2x.2x.mp4

Queued QuickPay fallback, at 2× speed.

Check: QuickPay and hardware retry regressions ✅ The exact-head build and automated regressions passed.

xcodebuild build-for-testing and the CI test selection with test-without-building passed. The disabled fresh-invoice, reconciled failed-record, existing pending/succeeded-record and pre-fetch LNURL cases passed. Hardware signer, retained store, watcher, consent, fee and navigation regressions also passed. SwiftFormat 0.64.6 and git diff --check passed.

Opt-in Spark exit regtest, USDT recovery/fork, wake gateway and Bridge dashboard tests skipped without their dedicated settings. Those skips establish no live coverage.

Manual test 1 retains the earlier passing evidence below at its original heads. This delta changes only QuickPay eligibility, its tests and a changelog fragment; the exercised hardware signer, retained store, watcher, send/transfer, fee, quote, passphrase and navigation paths are unchanged.

Leave a replacement transfer through Learn More and retry the protected payment ✅ Earlier passing evidence applies.

Passed at 7a8c468 in the linked report. A swallowed 180,000-sat transfer survived restart. A 181,000-sat replacement warned before device contact. Yes, Send followed by device rejection kept the sign label; leaving through Learn More and reopening restored the warning. Cancel then original Retry kept its 459-sat network fee, rebroadcast identical bytes without another approval and created one 180,000-sat payment.

Warn before repeating an observed hardware transfer ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Retry the same transaction after an unknown broadcast ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Recover from a silent broadcast timeout ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Recover after Electrum refuses a connection ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Sign anew after a first broadcast refusal ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Keep a refused retry protected ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Resume an observed repeat after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Resume a different payment after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Keep consent through passphrase checking and mismatch ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

End consent when leaving the passphrase flow ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: leaving ended consent and restored the warning before device contact.

Retry retained bytes with the hidden wallet disconnected ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Leave and reopen a retained payment ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Confirm a different payment and retry after rejection ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Keep the payment protected across restart ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Retry a near-maximum payment after the default fee rises ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Confirm a different transfer over an unresolved payment ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Retry a transfer on the same screen ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Keep the latest transfer quote when an earlier retry finishes late ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Wait for retained transfer pricing before Retry ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Restore the warning after leaving through Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

Retry the protected transfer after leaving a replacement ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

Restore the warning for an observed repeat after Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Retry a retained hardware transfer after restart ✅ Earlier passing evidence applies.

Passed at c02bc65 in the linked report. A swallowed 160,000-sat transfer survived restart with its 459-sat network fee. Retry rebroadcast identical bytes without another device approval; the node contained one 160,000-sat payment. The app reached Funds In Transfer at Processing Payment. After starting and leaving a later unsigned transfer, the home banner reopened the original deposit at the same progress step.

Reopen a retained hardware send after the fee rises ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 170000-sat send survived restart and a default-fee change from 1 to 9 sat/vB. Reopened review locked the original 141-sat fee; Retry sent byte-for-byte identical data without another approval and the recipient received 170000 sats once.

Warn before signing a replacement hardware payment ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 172000-sat payment warned when changed to 173000 sats. Cancel preserved the warning. Yes Send followed by rejection kept the sign label; retapping asked for a fresh prompt. After a second rejection and leaving, the warning returned. Original Retry kept the 1269-sat fee, sent identical bytes without another approval and paid 172000 sats once; no 173000-sat payment was broadcast.

Send with a physical Trezor ⏭️ No connected test hardware was available.

Manual test 2 remains unrun. Current USB, Bluetooth and physical-device inventories found no connected test hardware for this case. Emulator and mock results do not establish physical signing, BLE, USB or THP pairing.

Send with a physical Jade ⏭️ No connected test hardware was available.

Manual test 2 remains unrun. Current USB, Bluetooth and physical-device inventories found no connected test hardware for this case. Emulator and mock results do not establish physical signing, BLE, USB or THP pairing.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at 47cc70c matches the retained-byte and repeat-consent policy; its transfer sign screen ends consent in onDispose. Documented storage-error and native-timeout differences remain. Android was inspected, not driven here.

Reviewed the contiguous delta 7a8c468..70bc6a3 and prior feedback. Fresh simulator coverage used controlled queued presentations, not a live Lightning payment or a timed user settings change. Hardware scenarios retain the linked earlier evidence; physical transports, live Shop payments and Spark claiming/settlement were not driven.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in this delta.

QA for 0cb5bef:

Check: Dependabot update schedule ✅ Only the three update intervals change, from monthly to weekly.

Parsed the previous and current YAML and compared their mappings: npm, GitHub Actions and Swift now use the supported weekly interval. Package locations, update groups, PR limits and FFI exclusions are unchanged. git diff --check passed. The scheduled Dependabot job itself was not executed.

Check: Build the reviewed head ✅ The unmodified app at 0cb5bef builds successfully.

xcodebuild build passed for the Debug iOS Simulator app with Xcode 27.0. The unit suite was not rerun for this scheduling-only delta; its earlier passing evidence is linked below. No new device run was needed for these configuration changes.

The earlier passing results below retain their original tested heads. The contiguous delta changes only .github/dependabot.yml; application code, tests, dependency pins and runtime configuration are unchanged, so it leaves every exercised path untouched. Manual test 1 keeps its earlier passing reports. No emulator or mocked result establishes manual test 2's physical signing.

Check: QuickPay and hardware retry regressions ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. Exact-head build and CI test selection passed, including the changed QuickPay suites and retained hardware signing/storage, watcher, fee, consent and navigation checks. SwiftFormat 0.64.6 and git diff --check passed.

The opt-in fixture skips in that run establish no live coverage. No test-suite execution is claimed at 0cb5bef.

Ask for confirmation when QuickPay is disabled ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. The queued invoice returned to manual Confirm without a live submission or a new spending reservation.

A test-only hosted fixture preloaded the queued QuickPay presentation with the setting disabled. The recording shows the production confirmation screen; XCTest asserted its route, an empty live-submission set and an unchanged ledger. No payment was attempted.

Ask for LNURL confirmation without fetching while QuickPay is disabled ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. The queued LNURL payment returned to manual confirmation without fetching an invoice or reserving spend.

A test-only hosted fixture preloaded the queued QuickPay presentation with the setting disabled. The recording shows the production LNURL confirmation screen; a local callback listener and XCTest established zero callback requests, no live submission and an unchanged ledger. No payment was attempted.

Leave a replacement transfer through Learn More and retry the protected payment ✅ Earlier passing evidence applies.

Passed at 7a8c468 in the linked report. A swallowed 180,000-sat transfer survived restart. A 181,000-sat replacement warned before device contact. Yes, Send followed by device rejection kept the sign label; leaving through Learn More and reopening restored the warning. Cancel then original Retry kept its 459-sat network fee, rebroadcast identical bytes without another approval and created one 180,000-sat payment.

Warn before repeating an observed hardware transfer ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Retry the same transaction after an unknown broadcast ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Recover from a silent broadcast timeout ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Recover after Electrum refuses a connection ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Sign anew after a first broadcast refusal ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Keep a refused retry protected ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Resume an observed repeat after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Resume a different payment after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Keep consent through passphrase checking and mismatch ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

End consent when leaving the passphrase flow ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: leaving ended consent and restored the warning before device contact.

Retry retained bytes with the hidden wallet disconnected ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Leave and reopen a retained payment ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Confirm a different payment and retry after rejection ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Keep the payment protected across restart ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Retry a near-maximum payment after the default fee rises ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Confirm a different transfer over an unresolved payment ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Retry a transfer on the same screen ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Keep the latest transfer quote when an earlier retry finishes late ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Wait for retained transfer pricing before Retry ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Restore the warning after leaving through Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

Retry the protected transfer after leaving a replacement ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

Restore the warning for an observed repeat after Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Retry a retained hardware transfer after restart ✅ Earlier passing evidence applies.

Passed at c02bc65 in the linked report. A swallowed 160,000-sat transfer survived restart with its 459-sat network fee. Retry rebroadcast identical bytes without another device approval; the node contained one 160,000-sat payment. The app reached Funds In Transfer at Processing Payment. After starting and leaving a later unsigned transfer, the home banner reopened the original deposit at the same progress step.

Reopen a retained hardware send after the fee rises ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 170000-sat send survived restart and a default-fee change from 1 to 9 sat/vB. Reopened review locked the original 141-sat fee; Retry sent byte-for-byte identical data without another approval and the recipient received 170000 sats once.

Warn before signing a replacement hardware payment ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 172000-sat payment warned when changed to 173000 sats. Cancel preserved the warning. Yes Send followed by rejection kept the sign label; retapping asked for a fresh prompt. After a second rejection and leaving, the warning returned. Original Retry kept the 1269-sat fee, sent identical bytes without another approval and paid 172000 sats once; no 173000-sat payment was broadcast.

Send with a physical Trezor ⏭️ No connected test hardware was available.

Manual test 2 remains unrun. Current USB, Bluetooth and physical-device inventories were checked; no connected test hardware was available for this case. The simulator has no Bluetooth LE, and Bridge or mock results do not establish physical signing, USB, BLE or THP pairing.

Send with a physical Jade ⏭️ No connected test hardware was available.

Manual test 2 remains unrun. Current USB, Bluetooth and physical-device inventories were checked; no connected test hardware was available for this case. The simulator has no Bluetooth LE, and Bridge or mock results do not establish physical signing, USB, BLE or THP pairing.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at 78bbee1 matches the retained-byte and explicit repeat-consent policy. Retained-send implementation paths are unchanged since the prior twin comparison; documented storage-error and native-timeout differences remain. Android was inspected, not driven here.

Reviewed the contiguous delta 70bc6a3..0cb5bef and prior feedback. No runtime changes were introduced or newly driven. All earlier findings are verified fixed or explicitly deferred. Physical transports, live Shop payments and Spark claiming/settlement remain outside the linked emulator evidence.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in this delta.

QA for 11caed8:

Manual test 1 retains the earlier passing reports below at their original tested heads. The merged bitkit-ios#1366 fix: settle dust force-close transfers affects force-close transfers to Savings and the closing-balance fallback. The exercised hardware send, hardware-to-Spending and QuickPay paths are unchanged. Manual test 2 still needs physical devices.

Force-close, QuickPay and hardware retry regressions ✅ The exact-head build and automated regressions pass.

xcodebuild build, the CI test selection, SwiftFormat 0.64.6 and git diff --check pass. XCTest verifies the dust boundaries, cross-channel batching, address-type dust limits, wallet-held sweep detection, closing-balance estimate and retained-send regressions. The recording shows the test host; assertions were checked in XCTest results. Opt-in Spark exit regtest, USDT recovery/fork, wake gateway and Trezor dashboard checks skipped without their fixture settings; these skips establish no live coverage.

unit-2x.small.mp4

Automated test host on iOS 27.0, at 2× speed.

Ask for confirmation when QuickPay is disabled ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. The queued invoice returned to manual Confirm without a live submission or a new spending reservation.

Ask for LNURL confirmation without fetching while QuickPay is disabled ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. The queued LNURL payment returned to manual confirmation without fetching an invoice or reserving spend.

Leave a replacement transfer through Learn More and retry the protected payment ✅ Earlier passing evidence applies.

Passed at 7a8c468 in the linked report. A swallowed 180,000-sat transfer survived restart. A 181,000-sat replacement warned before device contact. Yes, Send followed by device rejection kept the sign label; leaving through Learn More and reopening restored the warning. Cancel then original Retry kept its 459-sat network fee, rebroadcast identical bytes without another approval and created one 180,000-sat payment.

Warn before repeating an observed hardware transfer ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Retry the same transaction after an unknown broadcast ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Recover from a silent broadcast timeout ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Recover after Electrum refuses a connection ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Sign anew after a first broadcast refusal ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Keep a refused retry protected ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Resume an observed repeat after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Resume a different payment after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Keep consent through passphrase checking and mismatch ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

End consent when leaving the passphrase flow ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: leaving ended consent and restored the warning before device contact.

Retry retained bytes with the hidden wallet disconnected ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Leave and reopen a retained payment ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Confirm a different payment and retry after rejection ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Keep the payment protected across restart ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Retry a near-maximum payment after the default fee rises ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Confirm a different transfer over an unresolved payment ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Retry a transfer on the same screen ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Keep the latest transfer quote when an earlier retry finishes late ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Wait for retained transfer pricing before Retry ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Restore the warning after leaving through Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

Retry the protected transfer after leaving a replacement ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

Restore the warning for an observed repeat after Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Retry a retained hardware transfer after restart ✅ Earlier passing evidence applies.

Passed at c02bc65 in the linked report. A swallowed 160,000-sat transfer survived restart with its 459-sat network fee. Retry rebroadcast identical bytes without another device approval; the node contained one 160,000-sat payment. The app reached Funds In Transfer at Processing Payment. After starting and leaving a later unsigned transfer, the home banner reopened the original deposit at the same progress step.

Reopen a retained hardware send after the fee rises ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 170000-sat send survived restart and a default-fee change from 1 to 9 sat/vB. Reopened review locked the original 141-sat fee; Retry sent byte-for-byte identical data without another approval and the recipient received 170000 sats once.

Warn before signing a replacement hardware payment ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 172000-sat payment warned when changed to 173000 sats. Cancel preserved the warning. Yes Send followed by rejection kept the sign label; retapping asked for a fresh prompt. After a second rejection and leaving, the warning returned. Original Retry kept the 1269-sat fee, sent identical bytes without another approval and paid 172000 sats once; no 173000-sat payment was broadcast.

Send with a physical Trezor ⏭️ No connected test hardware is available.

Manual test 2 remains unrun. Current USB, Bluetooth and physical-device inventories show no connected test hardware for this case. Simulator Bridge and mocked results do not establish physical signing, BLE or THP pairing.

Send with a physical Jade ⏭️ No connected test hardware is available.

Manual test 2 remains unrun. Current USB, Bluetooth and physical-device inventories show no connected test hardware for this case. Simulator Bridge and mocked results do not establish physical signing, BLE or THP pairing.

The merged bitkit-ios#1366 includes an earlier regtest report for dust and just-sweepable outputs at 96a39dc. That report predates the final guards; it is supplementary evidence, not a new device pass at this head. No fresh force-close regtest journey was driven here.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at d01c8c3 matches the retained-byte and explicit repeat-consent policy. Its retained-send implementation is unchanged since the prior comparison. Android was inspected, not driven here.

Reviewed the contiguous delta 0cb5bef..11caed8 and prior feedback. Earlier findings are verified fixed or explicitly deferred. Physical transports, live Shop payments and Spark claiming/settlement remain outside the linked emulator evidence.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — physical Trezor and Jade sends remain unrun.

Findings: No new findings in this delta.

QA for 766cd3c:

Manual test 1 retains the earlier passing reports below at their original tested heads. This merge leaves the exercised hardware send, hardware-to-Spending and QuickPay paths unchanged. Manual test 2 still needs physical devices.

Check: Force-transfer, QuickPay and hardware retry regressions ✅ The exact-head app/test build and automated regressions pass.

xcodebuild build-for-testing, the CI unit-test selection, SwiftFormat 0.64.6, translation validation and git diff --check pass. XCTest verifies funded-entry automatic start, failed-start retry rules, returned-fee accounting and shared exit-status text, alongside retained-send, transfer and QuickPay regressions. Spark exit regtest, encrypted USDT recovery/fork, wake gateway and Trezor dashboard checks skipped without their fixture settings; these skips establish no live coverage. The recording shows the test host; the assertions were checked in XCTest results.

unit-2x.small.mp4

Automated test host on iOS 27.0, at 2× speed.

Ask for confirmation when QuickPay is disabled ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. The queued invoice returned to manual Confirm without a live submission or a new spending reservation.

Ask for LNURL confirmation without fetching while QuickPay is disabled ✅ Earlier passing evidence applies.

Passed at 70bc6a3 in the linked report. The queued LNURL payment returned to manual confirmation without fetching an invoice or reserving spend.

Leave a replacement transfer through Learn More and retry the protected payment ✅ Earlier passing evidence applies.

Passed at 7a8c468 in the linked report. A swallowed 180,000-sat transfer survived restart. A 181,000-sat replacement warned before device contact. Yes, Send followed by device rejection kept the sign label; leaving through Learn More and reopening restored the warning. Cancel then original Retry kept its 459-sat network fee, rebroadcast identical bytes without another approval and created one 180,000-sat payment.

Warn before repeating an observed hardware transfer ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A delivered 101000-sat transfer with an unknown reply warned on reopening before device contact. Cancel preserved the warning. After Yes Send and device rejection, the label stayed Open Trezor Connect; retap requested four approvals and sent distinct bytes. Node confirms two 101000-sat outputs to the deposit address, with the repeat explicitly consented.

Retry the same transaction after an unknown broadcast ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Retry after an unknown delivered broadcast used identical bytes and txid with no additional approval; the recipient received 71000 sats once.

Recover from a silent broadcast timeout ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. The unobserved timeout enabled dismissal and retained identical-byte Retry across restart; an observed timeout completed the original payment as Bitcoin Sent.

Recover after Electrum refuses a connection ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. After true connection refusal, same-screen Retry completed with no further approval; leaving and reopening required four fresh device approvals and paid once.

Sign anew after a first broadcast refusal ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. A definite first-attempt refusal restored the sign label; retapping required four fresh approvals with no warning and delivered 80000 sats once.

Keep a refused retry protected ✅ Earlier passing evidence applies.

Passed at 783789e in the linked report. Refused Retry did not re-sign and reopening warned. A consented replacement refusal restored the old guard; fresh approval then paid once. Watcher-first refusal completed the original txid without approval.

Resume an observed repeat after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling and reopening the prompt preserved consent and signed only the new payment.

Resume a different payment after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: cancelling a different payment’s prompt allowed another prompt on the next tap.

Keep consent through passphrase checking and mismatch ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass for consent and mismatch handling; dismissing during verification has a separately tracked existing issue.

End consent when leaving the passphrase flow ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: leaving ended consent and restored the warning before device contact.

Retry retained bytes with the hidden wallet disconnected ✅ Earlier passing evidence applies.

Passed at 42abdf5 in the linked report. Reported pass: disconnected hidden-wallet Retry required neither a passphrase nor another signature.

Leave and reopen a retained payment ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 91,000-sat send was dismissed and reopened. Retry kept the original 1 sat/vB and 141-sat fee. It completed without further emulator approval; proxy bytes were identical and the node recorded one 91,000-sat receipt.

Confirm a different payment and retry after rejection ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 92,000-sat send warned before contact when changed to 93,000 sats. Cancel stayed on review. After Yes, Send and emulator rejection, the label remained Open Trezor Connect; retapping required four approvals and paid only 93,000 sats. Controller, proxy and node establish prompts, bytes and receipt.

Keep the payment protected across restart ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. An unobserved 94,000-sat payment survived restart and retried identical bytes with no approval. A delivered 95,000-sat payment warned after restart; accepting consent then leaving unsigned restored the warning. The proxy and node confirmed no replacement broadcast and one receipt per delivered amount. Observation was inferred from watcher activity and warning behavior, not decoded from Keychain.

Retry a near-maximum payment after the default fee rises ✅ Earlier passing evidence applies.

Passed at 33fab66 in the linked report. A swallowed 15,743,283-sat send was retained at 1 sat/vB and 654 sats. Raising the default to 9 sat/vB reduced Available to 15,738,051 sats; the original amount still enabled Continue. Review locked the original fee. After the normal large-payment warning, Retry completed without emulator approval. Proxy bytes were identical and the node recorded one payment.

Confirm a different transfer over an unresolved payment ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 102000-sat transfer warned before device contact when changed to 103000 sats. Cancel preserved the warning. Yes Send followed by device rejection kept the sign label; retap required four fresh approvals and paid only 103000 sats. Proxy and node checks establish the amounts and distinct bytes.

Retry a transfer on the same screen ✅ Earlier passing evidence applies.

Passed at f9e159c in the linked report. A swallowed 104000-sat transfer retried a refusal and then succeeded under pass-through, with identical bytes throughout and no additional approval or consent warning. In a separate delivered 105000-sat transfer, the watcher updated the retained record before a retry refusal; that Retry completed the original payment without approval. Proxy and node checks confirm one payment per amount.

Retry a reopened near-maximum hardware transfer after fees rise ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 2,598,277-sat transfer survived restart. Raising fees to 10 sat/vB lowered the current maximum to 2,596,947 sats; the original amount still enabled Continue. Reopened Retry kept the original 570-sat fee, broadcast identical bytes without further device approval, and created one payment.

Keep the latest transfer quote when an earlier retry finishes late ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A real 110,000-sat retained quote was held after its claim-fee read. A later 111,000-sat transfer kept its amount and quote when the earlier request finished; the deciding log confirmed both stayed at 111,000 sats. The stale-request regressions passed.

Resume a hidden-wallet transfer after cancelling the passphrase prompt ✅ Earlier passing evidence applies.

Passed at 6e56b21 in the linked report. A swallowed 120,000-sat hidden-wallet transfer survived restart. Changing to 121,000 sats warned; Yes, Send opened the passphrase sheet. Cancel and retap reopened it. Cancelling again and leaving restored the warning. Returning to 120,000 sats showed Retry and rebroadcast identical bytes without a passphrase or new emulator approval, producing one 120,000-sat payment.

Check: Keep the signed claim fee when a retained transfer refreshes ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. Focused XCTest passes: a 1500-sat offer is repriced against the signed 1000-sat ceiling after flow.quote refreshes to 2000; claimEarly is never called. Initial lookup busy and price-anew busy cleanup tests also pass.

Wait for retained transfer pricing before Retry ✅ Earlier passing evidence applies.

Passed at 8aad00e in the linked report. A retained 130,000-sat transfer reopened at its original 459-sat network fee. During the held initial lookup, the sign button showed a disabled spinner; a tap caused no prompt or additional broadcast. Releasing pricing restored Retry, which rebroadcast identical bytes without device approval and produced one 130,000-sat transaction.

Restore the warning after leaving through Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A swallowed 150,000-sat transfer stayed protected. A 151,000-sat replacement warned, Yes, Send reached Recipient #1 and was rejected, then Learn More → menu → Wallet left the flow. Reopening 151,000 sats showed the warning again before another device prompt. Cancel returned to signing. Controller and proxy/node checks show no additional device prompt or replacement broadcast.

Retry the protected transfer after leaving a replacement ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. After Cancel on the renewed replacement warning, returning to 150,000 sats offered Retry at its original 459-sat network fee. Retry completed without another emulator approval. The proxy captured byte-for-byte identical data on both broadcasts, and the node contained one 150,000-sat payment.

Restore the warning for an observed repeat after Learn More ✅ Earlier passing evidence applies.

Passed at e242101 in the linked report. A 152,000-sat transfer reached the node before its reply was replaced with an unknown error. After restart it appeared in wallet activity, and reopening the same amount warned. Yes, Send reached Recipient #1 and was rejected. Learn More → menu → Wallet, then reopening 152,000 sats, showed the warning again with the emulator on its home screen. The proxy still had only the original broadcast for this amount and the node one payment.

Retry a retained hardware transfer after restart ✅ Earlier passing evidence applies.

Passed at c02bc65 in the linked report. A swallowed 160,000-sat transfer survived restart with its 459-sat network fee. Retry rebroadcast identical bytes without another device approval; the node contained one 160,000-sat payment. The app reached Funds In Transfer at Processing Payment. After starting and leaving a later unsigned transfer, the home banner reopened the original deposit at the same progress step.

Reopen a retained hardware send after the fee rises ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 170000-sat send survived restart and a default-fee change from 1 to 9 sat/vB. Reopened review locked the original 141-sat fee; Retry sent byte-for-byte identical data without another approval and the recipient received 170000 sats once.

Warn before signing a replacement hardware payment ✅ Earlier passing evidence applies.

Passed at 905ddb2 in the linked report. A swallowed 172000-sat payment warned when changed to 173000 sats. Cancel preserved the warning. Yes Send followed by rejection kept the sign label; retapping asked for a fresh prompt. After a second rejection and leaving, the warning returned. Original Retry kept the 1269-sat fee, sent identical bytes without another approval and paid 172000 sats once; no 173000-sat payment was broadcast.

Send with a physical Trezor ⏭️ No connected test hardware is available.

Manual test 2 remains unrun. Current device inventories show no connected test hardware for this case. Simulator Bridge and mocked results do not establish physical signing, BLE or THP pairing.

Send with a physical Jade ⏭️ No connected test hardware is available.

Manual test 2 remains unrun. Current device inventories show no connected test hardware for this case. Simulator Bridge and mocked results do not establish physical signing, BLE or THP pairing.

The merged bitkit-ios#1362 fix: match force transfer pay and completed screens to frames supplies staged recordings of Pay to confirm and completed states, plus a Savings intro layout check. Its visual report does not pin the running binary to an exact app SHA, so it is supplementary evidence rather than a current-head device pass. No fresh live force transfer or active Spark connection screen was driven here; the source review records those same gaps.

Twin: bitkit-android#1770 fix: keep signed hardware sends on retry at d01c8c3 matches the retained-byte and explicit repeat-consent policy, including the documented storage-error and native-timeout differences. Its retained-send implementation is unchanged since the earlier comparison. Android was inspected, not driven here.

Reviewed the contiguous delta 11caed8..766cd3c and earlier feedback: Spark funding auto-start, completed-transfer notes, connection status and Savings intro layout. Physical transports, live Shop payments and Spark claiming/settlement remain outside the linked emulator evidence.


Reviewed by gpt-6.1-sol-high

@Jasonvdb
Jasonvdb requested a review from jvsena42 November 25, 2026 11:19

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ⚠️ Not verified — the PR advanced before the replacement and transfer rechecks.

The PR moved to 9f76594 after this run; these results are for bc40bf2.

Findings: No new findings at bc40bf2. The PR advanced to 9f76594 during the retained-send case; these results describe bc40bf2.

QA for bc40bf2:

Check: Hardware retry and merged confirmation regressions ✅ The exact-head app and test targets build, and the focused checks pass.

Ran the retained signer/store, wallet watcher, connectivity, confirmation lifecycle/swipe, hardware amount/sign, Spark transfer-flow, number-pad and currency checks on an iPhone 17 Pro simulator, iOS 27.0, Xcode 27.0. SwiftFormat 0.64.6 lint and translation validation pass. Hardware and storage faults use mocks. The recording shows the test host; assertions were checked in XCTest results.

AUTO2x.2x.mp4

Automated test host, at 2× speed.

Reopen a retained hardware send after fees rise ✅ Retry kept the original fee and paid once without another device approval.

Manual test 1, recipe checks 2 and 4, with Trezor Bridge and isolated regtest broadcast fault injection. A swallowed 190,000-sat send survived restart. After changing the default rate from 1 to 9 sat/vB, the reopened review still showed a locked 1 sat/vB and 141-sat fee. Retry completed as Bitcoin Sent without another emulator approval. The proxy captured byte-for-byte identical transactions and the node recorded one 190,000-sat receipt and one mempool transaction. Initial signing required four emulator approvals; its controller stayed on the home screen during Retry.

SEND-RETRY2x.2x.mp4

Regtest Bridge run, at 2× speed. Bytes, receipt amount and prompt counts were checked independently at the proxy, node and emulator controller.

Warn before replacing a retained hardware payment ⏭️ The head advanced before this case started.

The merged confirmation controls still need a fresh native recheck of Cancel, Yes, Send, rejection and leaving before retrying the protected original. Earlier passing evidence does not establish this changed UI path.

Retry a retained hardware transfer in the new signing screen ⏭️ The head advanced before this case started.

The merged hardware-transfer layout still needs a native recheck of reopening, the Retry label, retained fee and replacement warning. The focused transfer/signing regressions pass; they do not replace that device case.

Earlier passing reports remain applicable where the exercised implementation is unchanged:

Manual test 2 was left out: no physical test Trezor or Jade is available. USB, BLE and THP pairing, live Shop payments and Spark deposit claiming/settlement were not driven.

Twin: synonymdev/bitkit-android#1770 at 2bf3461 matches the retained-byte and explicit repeat-consent policy, including the documented storage-error and native-timeout differences. Android was inspected, not driven.

Reviewed the contiguous delta 766cd3c..bc40bf2 plus earlier feedback, concentrating on retained-send integration with the merged amount entry, confirmation locking and transfer code. The remaining changed hardware UI paths are listed above; other inherited master features received no fresh device run.


Reviewed by gpt-6.1-sol-high

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ✅ Approve

Findings: No new findings.

QA for 9f76594:

Check: Newer profile state and retained hardware regressions ✅ The exact-head app/test build and focused checks pass.

Ran the newer-Paykit-state and profile-recovery checks, retained signer/store, wallet watcher, connectivity, confirmation lifecycle/swipe, hardware amount/sign, Spark transfer-flow, number-pad and currency suites on an iPhone 17 Pro simulator, iOS 27.0, Xcode 27.0. Changed-file SwiftFormat 0.64.6 lint and translation validation pass. Hardware/storage faults use mocks; assertions were checked in XCTest results. The recording shows the test host.

AUTO2x.2x.mp4

Automated test host, at 2× speed.

Warn before replacing a retained hardware payment ✅ Cancel, rejection and leaving preserved the original payment; Retry paid it once without another approval.

Manual test 1, recipe check 3 and the merged confirmation controls. A swallowed 200,000-sat send warned before device contact when changing the recipient or the amount to 201,000 sats. Cancel stayed on Confirm. After Yes, Send and rejection at Recipient #1, the button stayed Open Trezor Connect; retapping requested another prompt, which was also rejected. Leaving and reopening restored the warning. Returning to 200,000 sats kept the original 141-sat fee, and Retry completed as Bitcoin Sent without another approval.

The proxy captured identical original/retry bytes. The node recorded one 200,000-sat receipt, no payment to the other recipient and no replacement broadcast. Device prompts were checked through the emulator controller.

SEND-CONSENT2x.2x.mp4

Regtest Trezor Bridge run, at 2× speed.

Retry a retained hardware transfer in the new signing screen ✅ Restart kept Retry and the original fee; the protected transfer paid once without another approval.

A swallowed 210,000-sat transfer survived restart and reopened with Retry at its original 459-sat network fee. Changing to 211,000 sats warned before device contact. Cancel stayed on signing; Yes, Send followed by device rejection kept Open Trezor Connect. Returning to 210,000 sats restored Retry, rebroadcast identical bytes without another approval and reached Funds In Transfer at Processing Payment. The node contained one 210,000-sat deposit output and no replacement; the proxy and controller establish bytes and prompts. This verifies hardware funding and navigation, without claiming Spark settlement.

TRANSFER-RETRY2x.2x.mp4

Regtest Trezor Bridge run, at 2× speed.

Both native cases used the unmodified reviewed Debug app with disposable regtest funds and Electrum broadcast fault injection.

Earlier passing evidence remains applicable where the exercised code is unchanged:

Manual test 2 was left out: no connected test Trezor or Jade is available. Physical USB, BLE and THP pairing, live Shop payments and Spark deposit claiming/settlement were not driven.

Twin: synonymdev/bitkit-android#1770 at e069934 matches the retained-byte and explicit repeat-consent policy, including the documented storage-error and native-timeout differences. Android was inspected, not driven.

Reviewed the contiguous delta bc40bf2..9f76594 and earlier feedback. The delta adds newer-Paykit-state messaging and toast queuing; the hardware functional paths are unchanged. The two unfinished native integration cases from the prior review were driven above. Newer-state device coverage relies on the linked report; scripted storage faults and claim-fee decisions use automated checks.


Reviewed by gpt-6.1-sol-high

@ovitrif ovitrif left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: hardware send asks to sign again on retry

5 participants