trackslash
VAULT-149 P1 For an agent

Correct App Lock Password doesn't open the vault on the iPhone Duo

0
All issues

Description

Reported by Bradley on 2026-10-18 in the iPhone Duo simulator (iOS 27.1), on a Debug build from main (ded654a6) installed at 21:43.

What happens

  • On the lock screen, Bradley enters the correct App Lock Password, and the vault never opens.
  • There's no "Wrong password" message. The app just doesn't get past the lock screen.
  • It happens on both the folded (outer) and unfolded (inner) screen.

Leads, not yet confirmed

  • A stale result. AppLockService.take(_:attempt:) drops an attempt's result without a message if lockGeneration changed while it ran. That happens when anything calls lock(): a .background scene phase, or didEnterBackgroundNotification. On the Duo, a second scene (one per display), or the keyboard's scene moving between displays, might report .background mid-attempt. The state then goes back to the password step with no failure, which matches "nothing happens".
  • A stuck reveal. AppLockShieldView.doorDidOpen waits for the foreground when cover == .privacy. If the Duo's scene sits in .inactive after the keyboard goes, the door opens but the vault never comes in.
  • The key derivation. The App Lock Password's real Argon2id derivation (VAULT-128, lanes and calibration) might hang or fail on this device type. The UI tests use a cheap calibration, so they wouldn't catch it.
  • Logs around the attempts: "Observation tracking feedback loop detected" from UIKit, and KeyboardTrackingCoordinator "Conversion error", with keyboard frames converted between the two displays.

Change

  • Reproduce it on a throwaway iPhone Duo simulator, with a real App Lock Password set through Settings, then confirm which lead it is.
  • Fix the cause, with a test that pins it. A scene or display change must never throw away a correct password's result without saying so.
  • Check that an iPhone 18 Pro Max and the iPad still unlock as before.

Done when

The correct App Lock Password opens the vault on the iPhone Duo, folded and unfolded, with a regression test, and make validate passes.

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Closing as not a bug (2026-10-18).

  • Couldn't reproduce on a fresh vault. On a throwaway iPhone Duo simulator (iOS 27.1, main at ded654a6), the correct App Lock Password opened the vault in about 3 s. That was with the real Argon2id calibration and real Touch ID (a scratch build that turns off the UI tests' cheap key derivation and fake authentication), on the outer screen.
  • The vault on Bradley's Duo simulator had a password nobody knew. No agent session had used that simulator, and Vault keeps no way to recover a password.
  • After a fresh start it works. We wiped Vault from that simulator: uninstalled it (which removed its app group) and reset the simulator's keychain, which held Vault's attempt counter. Then we reinstalled the same build and Bradley set a new password. It unlocks on both screens, and a wrong password shows the red "Wrong password. Try again." message.

So the earlier "nothing happens" was most likely a wrong password, with its message missed.