1 minor finding · 4 suggestions
Findings
[minor] · Sanitizer CI leaves the bootstrap and QML component runners uninstrumented
The new sanitizer job includes bitcoinqml_bootstrap_tests, bitcoinqml_qmltests and its warning probes without sanitizer instrumentation, leaving a coverage gap in the new gate rather than introducing a production regression.
Location: cmake/Sanitizers.cmake:29 (head).
Details and suggested fix
The pinned Core attaches sanitizer compile and link flags to sanitize_interface. The bootstrap runner links only Qt, and the QML component runner links only Qt and QRencode. Neither inherits those flags. Adding -fsanitize-ignorelist here does not enable sanitizers, and with_sanitizer_env.py only sets runtime options. Consequently, these runners compile application sources without ASan, UBSan or integer instrumentation and do not link the LSan runtime; bitcoinqml_qmlwarning_tests reuses the same uninstrumented QML binary. The unit runner instruments some overlapping sources, but the sanitizer probe cannot detect this wiring gap because it independently links core_interface. Link both lightweight runners PRIVATE sanitize_interface in test/CMakeLists.txt, independently of the integer-only early return in this file.
Optional improvements
[suggestion] · Settings injection adds a negative test that the next commit removes
The settings rollout replaces incorrect typed defaults with explicit injection, then removes its runtime negative test one commit later; head uses explicit injection correctly, but combining the follow-ups would make the change easier to validate.
Location: qml/pages/onboarding/OnboardingWizard.qml:15 at ade7c01bb8e4 (commit) (commit).
Details and suggested fix
9ee0d6720c71aaf23563e9e10bbe82841cbb0467 introduces the ApplicationModels.optionsModel default. It remains in 4bd75175f84e557b3366d607731ff68c341d42fa, the parent of ade7c01bb8e49866c16de6225baa2f57c0ac6500. That accessor returns null in the onboarding engine because its context object is an OnboardingOptionsModel, not an OptionsQmlModel. ade7c01bb8e49866c16de6225baa2f57c0ac6500 makes injection required and adds test_onboarding_requires_explicit_model; its immediate successor, 042d9388dda4562e681cec5bc4b47e327e942641, removes that test for older-Qt compatibility and substitutes a positive injection test plus generic qmllint controls. Squash the latter commit into the injection commit so reviewers see the required-input change with its surviving tests. Also update the description to distinguish the lint controls from the removed runtime regression. The wizard already forwarded its injected model to its pages at the intermediate revision, so this does not establish a production onboarding failure.
[suggestion] · PSBT migration temporarily drops the review-only GUI assertions
f7776f9f replaces the review-only PSBT GUI checks with model assertions, while 1713da2c restores warning text, Send/Save visibility and cleared-input checks; those assertions are present at head.
Location: test/integration/psbt/test_psbt.cpp:69 at f7776f9fcdf2 (commit) (commit).
Details and suggested fix
f7776f9fcdf28e45518ead35a90f4d5bde1aa7e7 deletes qml_test_psbt.py, including its checks for the missing-signing-keys warning, hidden Send button, visible Save button and empty recipient inputs after closing review. Its replacement, foreignPsbtCanBeReviewedWithoutSigning, calls importPsbtFromFile directly and checks model state rather than those GUI outcomes. 1713da2c433167a9e513b860b429bbc557ac02ff later restores them through the GUI import controls. Fold that review-only PSBT portion into the migration commit, carrying any helper adjustments it needs, so the replacement can be reviewed for coverage equivalence in one patch. Alternatively, state in the migration commit message that these GUI assertions arrive later. This concerns review flow through the series, not missing assertions at head.
[suggestion] · The wallet-permission claim in 4bd75175 does not match its patch
4bd75175 says it restores read-only wallet-fixture permissions at scope exit, but its patch changes only CI container configuration and documentation.
Location: .github/workflows/ci.yml:58 at 4bd75175f84e (commit) (commit).
Details and suggested fix
The subject and body of 4bd75175f84e557b3366d607731ff68c341d42fa advertise a wallet-fixture permission-restoration fix alongside toolchain isolation. The patch only updates .github/workflows/ci.yml and doc/ci-checks.md for containers and matching toolchain dependencies; no fixture change accompanies the cleanup claim. This makes the commit a misleading destination when locating or validating that fix. Remove the wallet-permission claim from the subject and body unless the intended fixture change is included.
[suggestion] · The PR description omits two wallet send and PSBT behavior changes
The lint/CI-focused description omits changes to watch-only draft Send availability and known-PSBT recognition, although the wallet commit subjects identify both.
Location: qml/models/walletqmlmodel.cpp:2403 (head).
Details and suggested fix
c011a4a531f4c06402f32454def4a275270d7622 hides Send for drafts with neither local signing keys nor an external signer by changing m_current_transaction_can_send. 4b50a4d676b98fd5468df92ced0bcc8031e7f4bf replaces tryGetTxStatus with getTx, so a busy status lookup no longer causes an already-known transaction to enter PSBT review. These are user-visible wallet changes with regressions in test_walletqmlmodel.cpp, not just lint adaptations. For well-formed PSBTs, the base import already waited on the wallet lock later in the same call, so this does not establish a new GUI-thread stall. Add both behavior changes and their tests to the description so wallet reviewers can identify the relevant scope without relying on the commit inventory.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Earlier QML tooling work justified build-time checks as a packaging-safety measure: invalid QML should not reach packaged builds, and stale host-generated caches should not influence application upgrades. It also sought consistent production and test resource handling.
The new lint gate checks production resource paths and both compatibility variants. This history explains why analysis against the shipped resources matters, rather than checking isolated QML files with a different import environment. It does not establish that compilation alone provides the new lint target's diagnostic coverage.
Previous sanitizer work distinguished requesting sanitizers from actually instrumenting the application: lightweight component and bootstrap targets had remained uninstrumented until explicitly linked to Core's sanitizer interface. That discussion also disclosed dependency exceptions and remaining leaks rather than treating focused passes as a full sanitizer pass.
This explains the importance of the current application's whole-target integration and negative controls. Reusing Core configuration is useful only if GUI targets receive instrumentation and dependency exceptions do not conceal application failures.
Onboarding settings were deliberately separated from live startup state because reading configuration twice through the live argument manager could resolve different profiles. The earlier design used a scratch argument manager, deferred application until the active profile was resolved, and required cancellation not to change settings.
The typed model-access change crosses this existing distinction: pre-initialization installs an OnboardingOptionsModel under the context name optionsModel, while shared storage controls now require an explicit settingsModel. Their injection is therefore about preserving profile and lifecycle semantics, not merely satisfying static typing.
Per-wallet views were proposed to prevent wallet selection changes from redirecting open dialogs and confirmations. The stated tradeoff was higher memory use in exchange for structurally fixed wallet identity, retained drafts/navigation, and less reliance on every popup implementing its own invalidation guard.
The PR extracts components, qualifies model access, and changes wallet-stack teardown. Historical intent distinguishes application-wide models from wallet-specific inputs: a global typed accessor must not be interpreted as making the selected wallet interchangeable with the wallet whose transaction was reviewed. The review page also retains an explicit transaction-identity check for replacement within one wallet.
Earlier node-tool work identified backend locks and storage as reasons GUI queries can stall. Its proposed response was cached views and worker execution, with peer actions tied to stable peer IDs and shutdown kept independent of a blocked RPC command.
This establishes the responsiveness side of the transaction-lookup tradeoff. The pinned wallet interface explicitly offers a nonblocking status query, whereas authoritative transaction lookup acquires the wallet lock. The current PSBT import change uses the latter to answer an existence question; the historical responsiveness motivation remains distinct from that question's semantics.
Historical PSBT work explicitly sought to include derivation paths for watched keys belonging to a different HD wallet. Watching transaction-related keys and possessing the signing keys were therefore separate roles in the intended workflow.
This provides historical context for keeping an unsigned watch-only draft useful through PSBT export without treating draft creation as evidence that the application can sign and send it. The current capability expression distinguishes local signing and an external signer from a watch-only draft.
Ralph's inferences
The lint-tool version and runtime minimum serve different purposes: newer tooling supplies stronger analysis, while compatibility resources and restricted syntax preserve deployment on older Qt.
The base build requires Qt 6.2 and selects compatibility resources at Qt 6.5. The optional lint target instead requires Qt 6.10 and checks both resource variants. The two informational migration diagnostics are an explicit accommodation of that split, not a general exemption for unresolved names or properties.
The typed ApplicationModels interface is intended to improve analyzability without transferring ownership or unifying the onboarding and live settings types.
Its implementation is per-engine, retains a guarded context pointer, and retrieves existing context objects. Separate typed settings accessors and explicit inputs on shared controls reflect the existing lifecycle distinction. This is an inference about the architectural purpose, not proof of every Qt lifetime or notification contract.
Nonblocking status polling deliberately permits an unavailable answer, while transaction-existence lookup provides an authoritative answer at the cost of potentially waiting for the wallet lock.
At the identical base and head Core pin, tryGetTxStatus returns false both for lock contention and an absent transaction; getTx takes the lock and checks mapWallet. The application changes only which contract PSBT import uses before returning TransactionAlreadyKnown. This is an application integration choice, not a backend protocol change.