Design and approach
Scope the extra CI history fetch to PRs that need it (.github/workflows/ci.yml:39, head)
This sets checkout depth to the PR commit count plus 1,000 for every multi-commit PR, so ordinary multi-commit CI runs also fetch and check out substantially more history. The stated need is to reach older ancestry for a stacked PR; the previous commits + 2 depth served ordinary PRs. This change should not be merged in its current form: retain the smaller depth for ordinary PRs and deepen the checkout only when merge-ancestry discovery requires it. That preserves stack testing without imposing the recurring history-fetch cost on all multi-commit PRs.
🟠 Major
Restore-and-migrate skips migration after a successful restore (src/wallet/interfaces.cpp:614, head)
The GUI calls this with load_after_restore=false. In that mode, RestoreWallet copies the backup and returns a successful null wallet. ResultPtr converts that to false because its boolean test also requires a non-null pointer. The else branch then marks the interface result as failed with an empty error. The GUI returns before calling do_migrate, and its finish handler displays “Migration Successful” when the error message is empty. Represent restore completion separately from the optional loaded wallet so restore-only success proceeds to migration.
🟡 Minor
Successful Expected conversion reads the error (src/util/result.h:234, head)
When e contains a value, this branch calls e.error() instead of moving e.value(). Since Expected::operator bool() is true for a value and Expected::error() asserts that the error alternative is active, converting a successful Expected asserts or fails to instantiate when the result type cannot be constructed from the error type. Move the expected value in this branch.
Verification failure logs the load result (src/kernel/bitcoinkernel.cpp:1147, head)
This branch runs when verify_result fails or is interrupted, but it formats load_result, which passed its failure check before verification began. The kernel log therefore omits the verification failure message and may be empty or contain unrelated load messages. Format verify_result here.
Review coverage was incomplete. The adversarial review had incomplete evidence. The adversarial_glm review had incomplete evidence. The design review had incomplete evidence.