Provider refusals
write_verifier: Provider declined the request because of a cybersecurity restriction. Experiments remain incomplete; static verification can continue.
1 major finding · 3 minor findings · 1 suggestion
Findings
[major] · Backup replacement bypasses the lock on a loaded wallet's wallet.dat
On POSIX, choosing another loaded wallet's wallet.dat and approving replacement can overwrite its durable keys when the file's digest is unchanged, because staged installation bypasses Core's SQLite lock.
Location: qml/models/backuppolicyio.cpp:149 (head).
Details and suggested fix
Inspect preserves .dat destinations, and the production WalletQmlModel backs up wallet A into a fresh staging directory before RenameOver installs it. The destination recheck rejects symlinks and changed contents but never identifies a live wallet database. At base, the same chosen path went directly to Core's SQLiteDatabase::Backup, whose destination writes fail against loaded wallet B's exclusive SQLite lock. With B idle and its digest unchanged, POSIX rename replaces B's directory entry despite that lock. B retains the unlinked original while open, but after unload its path contains A's database instead; without an independent backup, B's original durable keys can be lost.
Reject destinations identifying live wallet databases at inspection and again before installation using canonical file identity, and add a regression asserting refusal when backing up onto another loaded wallet's wallet.dat. No overwrite was observed: the supplied test-only reproduction stopped during dependency compilation before either backup path ran. Self-backup behavior was not established.
[minor] · A pre-created /tmp/qml-intent-<uid> blocks GUI startup
On POSIX with shared sticky /tmp, another local account can pre-create /tmp/qml-intent-<victim uid> and prevent every GUI launch until that entry is removed.
Location: qml/desktopintenttransport.cpp:364 (head).
Details and suggested fix
initialize() uses the fixed /tmp/qml-intent-<uid> path, attempts mkdir(..., 0700) and then rejects a foreign-owned directory or symlink through lstat. Probe mode treats only an absent entry as Missing; this rejection reaches the fatal probe exit instead. Ordinary startup also requires the transport, maps Rejected to Disposition::Failed and exits before native preparation. The victim cannot remove the foreign-owned entry from sticky /tmp, so restarting does not recover. Put the endpoint inside a protected per-user runtime directory rather than a predictable entry directly under shared /tmp, and test the pre-created-entry case. Windows behavior and Android reachability were not established.
[minor] · A signer exception leaves Speed Up stuck in Uncertain
A signer exception, already uncaught at base, now leaves Speed Up in Uncertain without a commit attempt or any usable retry, recheck or reset for that wallet session.
Location: qml/walletbump.cpp:213 (head).
Details and suggested fix
Pinned Core's external-signer path can throw from RunCommandParseJSON when the signer exits unsuccessfully or returns malformed JSON. In walletbump::Execute, this happens inside signBumpTransaction, before commit_attempted becomes true, but the catch-all still returns Error::Uncertain. publishCommit maps that to Uncertain; new preparation is refused, canRecheckOutcome requires commit_attempted, and closing the overlay calls a reset() that preserves Uncertain. Consequently, fixing the signer does not restore Speed Up for any transaction until the wallet's model is recreated. Classify exceptions before the commit boundary as recoverable signing failures and retain Uncertain for failures after a commit may have been attempted.
[minor] · Long backup paths can push confirmation buttons outside the window
From source inspection, an unusually long wrapped backup path can make WalletBackupConfirmation taller than its overlay and place its action buttons outside the window; rendered geometry has not been checked.
Location: qml/components/WalletBackupConfirmation.qml:19 (head).
Details and suggested fix
WalletBackupConfirmation.qml derives implicitHeight from its entire ColumnLayout and centers that height without a cap. The complete finalPath uses Text.WrapAnywhere, with Cancel and Save/Replace below it and no scroll region. The settings chooser disables its own overwrite confirmation and presents this popup for existing or renamed destinations, so sufficiently many wrapped lines can prevent pointer-based approval. Cap the popup to the overlay height and put the path in a scrollable region while keeping the action row visible. Escape still calls refuse(), so the user can cancel.
Optional improvements
[suggestion] · The settings editor's admission policy is replaced later in the series
The series introduces SettingsEditorModel with a 384 KiB reservation per keystroke and repairs it later, requiring reviewers to assess an admission policy that does not survive to the final tree.
Location: qml/models/settingseditormodel.cpp:47 at fee1ae1a7970 (commit) (commit).
Details and suggested fix
759408260737d01a8dca0b4e866b123774ab62d7 introduces SettingsEditorModel with State::post charging 393216 bytes for every command, including each keystroke. fee1ae1a79703587c3246215a5b2f472321e9d7e then adds size-aware post/command interfaces, charges edits by their captured literal size and adds typingAheadOfTheDomainKeepsEveryKeystroke. Fold that repair's implementation, header change and test into the introducing commit so reviewers can assess the intended budget alongside its blocked-Domain regression rather than first evaluating the discarded policy. Keep the L-02 explanation in that commit's message. This changes review flow only; the final tree remains unchanged.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Receive reconciliation historically distinguished current payment status from restrictions triggered by having previously observed payment. GUI-QML #990 explicitly describes making the badge follow the current received amount, including replacement away to zero, while retaining historical sharing and editing restrictions.
This explains why the affected Receive and Activity behavior cannot be represented by one permanent 'paid' flag. Current credit may reverse, while a separate historical state can continue to constrain request reuse. The inspected history documents that distinction, but does not explain the complete policy rationale for every sharing restriction.