feat(mobile): A3 — UnlockPin (PIN/biometric unlock, lockout UI, key-invalidated recovery)#29
Merged
Merged
Conversation
…firmed wipe -> onboarding)
…side auth prompt (carry-over #20)
…try copy, self-retiring countdown, recovery-path tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage-2 slice A3 — the locked-phase unlock screen, closing the Stage-2 loop: create (A2) → cold start → unlock.
What
UnlockPinscreen (flipbook "Вход — Locked" frame, English strings): PIN path via the A1c ladder, biometric-circle shortcut, 1s lockout countdown (persists across force-quit), 200ms spinner threshold.deviceWallet.unlocksingle-flight (mirrorscommitWallet; syncNoWalletErrorprecondition outside the slot).walletStore.unlockaction publishing the liveUnlockedSession; noreconcile(A1c contract).PinKeypaddisabledprop (lockout/verifying), A2 callers untouched.KeyPermanentlyInvalidated→ recovery banner → verbatim-tested confirm (Delete & start over) →wipeWallet→ onboarding. Never auto-wipes.getSupportedBiometryType,BIOMETRY_TYPE, hang helper);keystoreSecretdocstring fixed (save-side auth prompt — carry-over feat(mobile): ubrn FFI bridge + on-device proof-of-life (Stage 2 D1) #20 resolved).Evidence
npm run typecheckclean,npm run lint0 errors,npm test -- --coverage150/150 (was 125). Coverage: stores 100%, UnlockPin 93%.gradlew assembleDebugproven by the smoke build.core/.claude/reports/2026-07-06-stage2-a3-unlock-locked.md).Carry-overs recorded: #21 (import inert until A4 — go-live blocker), #23 (no-biometrics unlock/PIN-reset path — gate before real users).
Spec:
core/.claude/specs/2026-07-06-stage2-a3-unlock-locked.md