You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split out of #201 (2/6 of #190's iOS Encrypted Vaults breakdown) into a narrower piece: the two parts of #201's scope that carry no cryptographic risk of their own and don't need a human to write them by hand.
Depends on #200 (crypto core, merged via #220) only for types, not behavior.
Proposed behaviour
Swift equivalents of Android's VaultRegistry.kt and UnlockAttemptThrottle.kt:
VaultRegistry: plaintext JSON list of which vaults exist and their display names (id, name, created-at). Deliberately plaintext — same accepted-residual-leak reasoning as Android's vaults.json, see docs/threat-model.md's "Accepted residual leaks" section. No key material, no vault content, ever touches this type.
UnlockAttemptThrottle: exponential backoff after repeated failed PIN attempts, keyed per-vault, persisted across process restart (a plaintext counter + timestamp is fine — it's a rate limiter, not a secret).
Acceptance criteria
Vault registry lists vaults (id, display name, created-at) without exposing any vault content or key material
Registry survives app restart (backed by a file, not just in-memory state)
Failed-PIN throttle backs off correctly (mirror Android's UnlockAttemptThrottleTest.kt cases) and persists across app restart
No cryptographic material — plaintext registry + a rate-limit counter, same risk tier as Android's equivalents (neither VaultRegistry.kt nor UnlockAttemptThrottle.kt carries the Android security label). Not labeling security; still lands under Sources/VaultStore/**, which #300 just made a forced-human-merge path regardless of triage outcome.
Implemented and merged via #305 (016e2d9). Shipped almost entirely through the automated dev-agent/QA/principal-review pipeline — the one human step needed was rebasing the branch onto current dev twice (first for #300's risk-classification fix, then for the #254 qa-agent.yml OIDC staleness it introduced), since the pipeline's health-check routine deliberately declines to self-heal sensitive-path PRs unattended. QA independently re-verified the code (not just trusted the PR's own claims), including proving the tests non-vacuous by deliberately breaking the backoff math. Principal review found no CONFIRMED blocking issues; one non-blocking note logged (decode-failure swallowing in list()/read(), matches existing iOS convention) for whoever wires a caller up next.
Activity
feat(ios): add VaultRegistry and UnlockAttemptThrottle for Encrypted …
feat(ios): add VaultRegistry and UnlockAttemptThrottle for Encrypted …
feat(ios): add VaultRegistry and UnlockAttemptThrottle for Encrypted …
feat(ios): add VaultRegistry and UnlockAttemptThrottle for Encrypted …
libravault-xyz commentedon Aug 19, 2026
Implemented and merged via #305 (
016e2d9). Shipped almost entirely through the automated dev-agent/QA/principal-review pipeline — the one human step needed was rebasing the branch onto currentdevtwice (first for #300's risk-classification fix, then for the #254 qa-agent.yml OIDC staleness it introduced), since the pipeline's health-check routine deliberately declines to self-heal sensitive-path PRs unattended. QA independently re-verified the code (not just trusted the PR's own claims), including proving the tests non-vacuous by deliberately breaking the backoff math. Principal review found no CONFIRMED blocking issues; one non-blocking note logged (decode-failure swallowing in list()/read(), matches existing iOS convention) for whoever wires a caller up next.feat(ios): implement Encrypted Vaults VaultStore orchestration + leak…