## Phase 150: Sovereign Password Manager & Secrets Vault — 1Password / Bitwarden / LastPass / Dashlane / Keeper / NordPass / HashiCorp Vault / AWS Secrets Manager Replacement

Closes the secrets-sovereignty gap. Phase 146 (Identity Provider) covers
WebAuthn / Passkeys / SCIM / OIDC, but stops at authentication. Phase 49
infrastructure mentions Vault but no end-user password manager, developer CLI
secrets store, family / team sharing, browser autofill, or SSH key vault is
planned. This phase delivers a **zero-knowledge, end-to-end encrypted** password
manager for consumers, families, and enterprises plus a developer /
infrastructure secrets engine rivaling HashiCorp Vault.

Sovereign replacement for 1Password, Bitwarden, LastPass, Dashlane, Keeper,
NordPass, KeePassXC, Proton Pass, Apple Passwords, iCloud Keychain, Google
Password Manager, HashiCorp Vault, AWS / Azure / GCP Secrets Manager, Doppler,
Infisical, Akeyless, and CyberArk PAM personal / developer tiers.

---

### 150.1 @neith/vault-crypto — Zero-Knowledge Crypto Core

- [x] **150.1.1** Argon2id KDF with calibrated memory / iterations
- [x] **150.1.2** Secret Key + Master Password (1Password-style 2SKD)
- [x] **150.1.3** XChaCha20-Poly1305 item encryption
- [x] **150.1.4** AES-256-GCM fallback path for FIPS boxes
- [x] **150.1.5** Per-item envelope encryption with item-key
- [x] **150.1.6** Per-vault key derivation with rotation
- [x] **150.1.7** SRP-6a or OPAQUE password-authenticated key exchange
- [x] **150.1.8** HPKE for async share to recipient public key
- [x] **150.1.9** Shamir secret-sharing for family recovery
- [x] **150.1.10** Signed envelope with Ed25519 sender key
- [x] **150.1.11** Post-quantum KEM (ML-KEM / Kyber) hybrid mode
- [x] **150.1.12** Constant-time compare for all secret material
- [x] **150.1.13** Memory-hygiene: mlock + zero on drop
- [x] **150.1.14** Formal-verification of ≥ 4 core crypto ops (Phase 104)
- [x] **150.1.15** Crypto version pinning + migration ratchet

---

### 150.2 @neith/vault-item — Item Model & Types

- [x] **150.2.1** Login (URL / username / password / TOTP / notes)
- [x] **150.2.2** Credit card (PAN / exp / CVV / holder / bank)
- [x] **150.2.3** Identity (name / address / phone / SSN / passport)
- [x] **150.2.4** Secure note (markdown / rich-text)
- [x] **150.2.5** SSH key (ed25519 / rsa / ecdsa) with fingerprint
- [x] **150.2.6** API key / token with rotation reminder
- [x] **150.2.7** Database credential (conn string + rotation policy)
- [x] **150.2.8** Document / file attachment (encrypted blob)
- [x] **150.2.9** Software license with seat count
- [x] **150.2.10** Crypto wallet seed phrase / key
- [x] **150.2.11** 2FA / OTP-only item
- [x] **150.2.12** Medical record / insurance card
- [x] **150.2.13** Membership card with barcode / QR
- [x] **150.2.14** Router / WiFi credential
- [x] **150.2.15** Custom item template (user-defined fields + type)
- [x] **150.2.16** Per-field sensitivity flag (concealed / visible / monitored)
- [x] **150.2.17** Item history (prior values) with granular revert
- [x] **150.2.18** Item relationship (linked items)
- [x] **150.2.19** Item favourites + tags + custom sections
- [x] **150.2.20** Item expiration + auto-archive

---

### 150.3 @neith/vault-totp — TOTP / OTP / Passkey Generator

- [x] **150.3.1** RFC 6238 TOTP generator
- [x] **150.3.2** HOTP counter-based support
- [x] **150.3.3** Steam Guard custom OTP
- [x] **150.3.4** otpauth:// URI import + QR scan
- [x] **150.3.5** YubiKey OTP AAGUID entry
- [x] **150.3.6** FIDO2 / WebAuthn passkey storage
- [x] **150.3.7** Passkey sync across devices (end-to-end)
- [x] **150.3.8** Passkey attestation metadata
- [x] **150.3.9** Backup code store with usage tracking
- [x] **150.3.10** SMS / email OTP archive (redacted)

---

### 150.4 @neith/vault-gen — Password & Secret Generator

- [x] **150.4.1** Length / charset / exclude-similar password gen
- [x] **150.4.2** EFF diceware wordlist passphrase (short / long)
- [x] **150.4.3** PIN (4 / 6 / 8) with weak-pattern reject
- [x] **150.4.4** Per-site policy (enforce symbols / avoid dollar)
- [x] **150.4.5** Pronounceable password option
- [x] **150.4.6** Memorable passphrase with separators
- [x] **150.4.7** Entropy meter with zxcvbn-class strength
- [x] **150.4.8** Crack-time estimate per generator output
- [x] **150.4.9** Per-domain constraint database (max length / allowed chars)
- [x] **150.4.10** Recipe save (reuse generator config)
- [x] **150.4.11** UUID / hex / base58 / base64 technical generator
- [x] **150.4.12** SSH keypair generator
- [x] **150.4.13** Crypto wallet mnemonic (BIP39) generator
- [x] **150.4.14** Certificate (X.509) signing request helper
- [x] **150.4.15** Pre-shared key (WireGuard / Tailscale-style) helper

---

### 150.5 @neith/vault-autofill — Browser / OS Autofill

- [x] **150.5.1** Chrome / Edge / sovereign browser (Phase 46) extension
- [x] **150.5.2** Firefox extension
- [ ] **150.5.3** Safari Web Extension for autofill: build the extension on the
      Mac (install-first: Xcode with the relevant simulator runtime; record the
      version; park only with a named failed install attempt; a dev/simulator
      build needs no paid signing identity), wiring it to
      `libs/neith/vault-autofill`. Verify: it loads in Safari's develop mode and
      autofills a fixture login page in the simulator/desktop; distribution
      signing (an Apple Developer account) is a separate release step.
- [ ] **150.5.4** iOS AutoFill Credential Provider extension: build it on the
      Mac (install-first: Xcode with the relevant simulator runtime; record the
      version; park only with a named failed install attempt; a dev/simulator
      build needs no paid signing identity) over `libs/neith/vault-autofill`.
      Verify: the credential provider appears and autofills in the iOS
      simulator's QuickType bar for a fixture app/site.
- [ ] **150.5.5** macOS Safari Password AutoFill integration: build it on the
      Mac (install-first: Xcode with the relevant simulator runtime; record the
      version; park only with a named failed install attempt; a dev/simulator
      build needs no paid signing identity). Verify: autofill works against a
      fixture login page in Safari on the Mac.
- [ ] **150.5.6** Android AutoFill Framework service: build the autofill service
      on the Linux server (install-first: the Android SDK command-line tools +
      an emulator image, which needs /dev/kvm; record the version; park only
      with a named failed install attempt) over `libs/neith/vault-autofill`.
      Verify: the service autofills a fixture app/site in the emulator (API 34).
- [ ] **150.5.7** Windows Credential Provider for vault autofill/unlock. A
      Windows Credential Provider is a COM component loaded by LSA at the
      interactive logon screen, so it cannot be built-and-verified on a CI
      runner (no interactive logon) and needs a real Windows workstation; the
      fleet has none (stated 2026-09-18). `blocked:hardware`
- [x] **150.5.8** Linux desktop secret-service (DBus) bridge
- [ ] **150.5.9** Android AutoFill accessibility fallback (for old OEM ROMs
      without the AutoFill Framework): build the accessibility-service fallback
      on the Linux server (install-first: the Android SDK command-line tools +
      an emulator image, which needs /dev/kvm; record the version; park only
      with a named failed install attempt). Verify: it autofills a fixture form
      on an old-API emulator (e.g. API 26); device-specific OEM quirks remain a
      residual.
- [x] **150.5.10** Form-field detection (ML model for weird forms)
- [x] **150.5.11** URL matching rules (host / subdomain / regex / pathname)
- [x] **150.5.12** Phishing-guard (block fill on visually-similar domain)
- [x] **150.5.13** Inline menu without iframe-leak
- [x] **150.5.14** CSP-safe injection
- [x] **150.5.15** Autofill usage telemetry (local-only)

---

### 150.6 @neith/vault-share — Sharing, Collections & Family / Team

- [x] **150.6.1** One-time secret share with expiration (encrypted link)
- [x] **150.6.2** Recipient public-key share (HPKE)
- [x] **150.6.3** Shared vault (collection) with ACL
- [x] **150.6.4** Per-item role (view / edit / admin / reveal-disabled)
- [x] **150.6.5** Family plan (5 members) with recovery delegate
- [x] **150.6.6** Team plan with group membership
- [x] **150.6.7** Nested group inheritance (organisation → dept → team)
- [x] **150.6.8** Emergency access (dead-man's-switch) to trustee
- [x] **150.6.9** Sharing audit log (who revealed / copied / autofilled)
- [x] **150.6.10** Ghost-share (reveal-once then rotate)

---

### 150.7 @neith/vault-recovery — Recovery & Account Lifecycle

- [x] **150.7.1** Printed recovery sheet (emergency kit PDF)
- [x] **150.7.2** Secret Key + Master Password split recovery
- [x] **150.7.3** Social recovery (Shamir M-of-N among contacts)
- [x] **150.7.4** Admin-assisted reset for team member (with consent audit)
- [x] **150.7.5** Recovery key on hardware token (YubiKey / sovereign HSM)
- [ ] **150.7.6** Biometric unlock (Touch ID / Face ID / Windows Hello):
      integrate the platform biometric APIs to unlock the vault. Build and
      verify the Apple path on the Mac (install-first: Xcode with the relevant
      simulator runtime; record the version; park only with a named failed
      install attempt; a dev/simulator build needs no paid signing identity) —
      LocalAuthentication on the Mac's Touch ID and the iOS simulator's
      simulated Face ID (enrolled / matching / non-matching). Windows Hello is a
      residual that needs a Windows host with a Hello sensor.
- [x] **150.7.7** Device-trust (per-device key enrollment)
- [x] **150.7.8** Trusted-device revocation
- [x] **150.7.9** Rotation ceremony when Secret Key is compromised
- [x] **150.7.10** Account deletion with cryptographic erasure proof

---

### 150.8 @neith/vault-watchtower — Breach & Weakness Monitoring

- [x] **150.8.1** k-anonymity HaveIBeenPwned lookup
- [x] **150.8.2** Private-set-intersection breach feed (sovereign)
- [x] **150.8.3** Weak-password detection (length + zxcvbn)
- [x] **150.8.4** Reused-password cluster report
- [x] **150.8.5** 2FA-available-but-not-enabled flag
- [x] **150.8.6** Expiring items (cards / passports / licenses)
- [x] **150.8.7** Unsecured HTTP URL on login entry
- [x] **150.8.8** Credential-stuffing early warning from Phase 151 EDR
- [x] **150.8.9** Risk score per item and per vault
- [x] **150.8.10** Suggested rotation priority queue

---

### 150.9 @neith/vault-cli — Developer CLI & SDK

- [x] **150.9.1** `neithvault` CLI (subcommands: list / get / create / run)
- [x] **150.9.2** `neithvault run -- <cmd>` injects env vars (op-run parity)
- [x] **150.9.3** Secret Reference URI (e.g. `nv://vault/item/field`)
- [ ] **150.9.4** Biometric CLI unlock (per-OS) in `libs/neith/vault-cli`: gate
      a CLI unlock behind the OS biometric prompt. Build and verify the macOS
      path on the Mac (install-first: Xcode with the relevant simulator runtime;
      record the version; park only with a named failed install attempt; a
      dev/simulator build needs no paid signing identity) (LocalAuthentication /
      Touch ID). Linux (fprintd/PAM) and Windows Hello paths need a fingerprint
      sensor and are residuals; the CLI must fall back cleanly to the passphrase
      when no sensor is present (test that fallback on the Linux server).
- [x] **150.9.5** Session caching (15 min default)
- [x] **150.9.6** Shell plugin (ssh-agent, git credential helper)
- [x] **150.9.7** SSH agent forwarding with vault-locked keys
- [x] **150.9.8** Git signing-key vault integration
- [x] **150.9.9** GPG / age adapter
- [x] **150.9.10** Node / Python / Go / Rust / Swift SDKs
- [x] **150.9.11** Kubernetes sidecar secrets injector
- [x] **150.9.12** CI runner plugin (Phase 145 CI/CD)
- [x] **150.9.13** Docker buildx secret mount provider
- [x] **150.9.14** Terraform / Pulumi provider
- [x] **150.9.15** Direnv / dotenv bridge (opt-in cache file)

---

### 150.10 @neith/vault-engine — Secrets Engine (Vault-class)

- [x] **150.10.1** KV v2 engine with versioned secrets
- [x] **150.10.2** Dynamic DB credentials (Postgres / MySQL / Mongo / Redis)
- [x] **150.10.3** Dynamic AWS / GCP / Azure STS credentials
- [x] **150.10.4** SSH one-time-password signer
- [x] **150.10.5** X.509 PKI engine with intermediate CA chaining
- [x] **150.10.6** Transit (encrypt-as-a-service) engine
- [x] **150.10.7** Key management with HSM / KMS backend
- [x] **150.10.8** Lease + renewal + revoke API
- [x] **150.10.9** Policy DSL (path / capability ACLs)
- [x] **150.10.10** Namespace / tenant isolation
- [x] **150.10.11** Auth backends (AppRole / JWT / OIDC / K8s / cloud IAM)
- [x] **150.10.12** Response-wrapping tokens for handoff
- [x] **150.10.13** Unseal ceremony (Shamir + auto-unseal)
- [x] **150.10.14** Audit log (signed hash chain)
- [x] **150.10.15** HA replication (active / standby / DR cluster)

---

### 150.11 @neith/vault-pam — Privileged Access Management

- [x] **150.11.1** Session recording for SSH / RDP / DB
- [x] **150.11.2** Just-in-time access approval workflow
- [x] **150.11.3** Time-boxed elevation with auto-revoke
- [x] **150.11.4** Break-glass account with quorum unlock
- [x] **150.11.5** Secretless access (tool talks via vault proxy)
- [x] **150.11.6** Command allow / deny filter inside session
- [x] **150.11.7** Credential injection without reveal (never shown to user)
- [x] **150.11.8** Remote / jump host with MFA step-up
- [x] **150.11.9** Kubernetes kubectl exec session recording
- [x] **150.11.10** Cloud console credential broker (AWS SSO-class)

---

### 150.12 @neith/vault-ui — Desktop / Mobile / Web UI

- [x] **150.12.1** Desktop app (Tauri or sovereign stack on Phase 45)
- [ ] **150.12.2** Mobile app (iOS / Android) for the vault: build the app for
      both simulators/emulators — iOS on the Mac (install-first: Xcode with the
      relevant simulator runtime; record the version; park only with a named
      failed install attempt; a dev/simulator build needs no paid signing
      identity) and Android on the Linux server (install-first: the Android SDK
      command-line tools + an emulator image, which needs /dev/kvm; record the
      version; park only with a named failed install attempt) — over the vault
      engine. Verify: the app unlocks a fixture vault and lists/copies an item
      in each simulator/emulator.
- [x] **150.12.3** Web app with WebAuthn unlock
- [ ] **150.12.4** Apple Watch / Wear OS quick-copy: a watch app that copies a
      selected item's password to the paired phone's clipboard. Build and verify
      in the watchOS simulator on the Mac (install-first: Xcode with the
      relevant simulator runtime; record the version; park only with a named
      failed install attempt; a dev/simulator build needs no paid signing
      identity) and the Wear OS emulator on the Linux server (install-first: the
      Android SDK command-line tools + an emulator image, which needs /dev/kvm;
      record the version; park only with a named failed install attempt).
      Physical-watch verification is a residual.
- [x] **150.12.5** Menu-bar / tray mini-window
- [x] **150.12.6** Global quick-unlock hotkey
- [x] **150.12.7** Drag-drop attachment upload
- [x] **150.12.8** Dark / light / OLED-black themes
- [x] **150.12.9** Accessibility (VoiceOver / TalkBack / screen magnifier)
- [x] **150.12.10** Offline mode with conflict-free merge

---

### 150.13 @neith/vault-sync — Sync Engine & Storage

- [x] **150.13.1** End-to-end encrypted sync (server sees only ciphertext)
- [x] **150.13.2** CRDT-based conflict-free merge per item
- [x] **150.13.3** Device list with revocation
- [x] **150.13.4** P2P direct-sync (LAN discovery) option
- [x] **150.13.5** Self-host server (single-binary + docker)
- [x] **150.13.6** S3-compat blob backend
- [x] **150.13.7** Snapshot + incremental vault export
- [x] **150.13.8** Import 1Password 1pif / 1pux archives
- [x] **150.13.9** Import Bitwarden JSON / Encrypted JSON
- [x] **150.13.10** Import LastPass CSV / Dashlane / Chrome / Safari / KeePass
- [x] **150.13.11** Export to encrypted backup bundle
- [x] **150.13.12** WebDAV / SMB offline sync for air-gap
- [x] **150.13.13** Push notification of vault change (silent re-sync)
- [x] **150.13.14** Data residency per vault (region pin)
- [x] **150.13.15** Proof-of-retrievability audit

---

### 150.14 @neith/vault-enterprise — SSO, Provisioning & Policy

- [x] **150.14.1** SAML / OIDC SSO via Phase 146
- [x] **150.14.2** SCIM user + group provisioning
- [x] **150.14.3** Enforced 2FA / passkey policy
- [x] **150.14.4** Device-posture enforcement (managed device only)
- [x] **150.14.5** Offboarding wizard (revoke + transfer + audit)
- [x] **150.14.6** Enterprise recovery key escrow (HSM-backed)
- [x] **150.14.7** Travel mode (temporarily purge sensitive vaults)
- [x] **150.14.8** Admin audit trail with immutable log
- [x] **150.14.9** Usage / risk reports for CISO
- [x] **150.14.10** DLP hook (block copy of tagged secrets)

---

### 150.15 Testing & Validation

- [x] **150.15.1** Zero-knowledge invariant proofs (no server plaintext)
- [ ] **150.15.2** KDF tuning benchmark: implement adaptive Argon2id calibration
      in `libs/neith/vault-crypto` that picks memory/iteration parameters to hit
      a target unlock time, and benchmark it. Restated 2026-09-18: "≥ 1 s on a
      mid-tier phone" needs a phone; instead the harness calibrates on the Linux
      server and documents the parameter set that maps to ~1 s on a defined
      mid-tier phone class (by memory bandwidth). Verify: a spec asserts the
      calibrator converges to the target time within a tolerance on this host
      and that the chosen parameters meet the OWASP Argon2id floor.
- [ ] **150.15.3** Browser autofill conformance over the top 1000 sites. Needs a
      curated corpus of the top-1000 sites with per-site expected-field
      annotations (and running autofill against them), which does not exist and
      cannot be authored by a coding task (stated 2026-09-18). `blocked:corpus`
- [x] **150.15.4** Import fidelity tests for each legacy vault format
- [x] **150.15.5** Failed-login + brute-force backoff soak
- [x] **150.15.6** Device-loss recovery drill
- [ ] **150.15.7** Red-team attack attempt against the vault. A red-team
      assessment is a human security exercise (people attempting to break the
      vault), not an automated coding task; the “sovereign pentest corpus” it
      needs does not exist (stated 2026-09-18). `blocked:human`
- [x] **150.15.8** Post-quantum KEM interop test
- [x] **150.15.9** Vault engine HA chaos testing
- [x] **150.15.10** Compliance matrix (SOC 2 / HIPAA / ISO 27001 / GDPR)
