trackslash
VAULT-102 P2 For an agent

Mac app: write the design doc

0
Sub-issue of VAULT-101 P2 A native Mac app

Description

The first step of VAULT-101. Write docs/mac-app.md, the design of record for the Mac app, before any code. Link it from AGENTS.md.

It covers:

  • The decisions:
    • an App Lock Password is required from the first launch and can't be turned off;
    • no CLI and no other way into the vault from outside the app;
    • its own vault, with no sync.
  • Each iOS protection, mapped to the Mac:
    • App Lock and the App Lock Password;
    • locking on screen lock, sleep and Require Unlock;
    • Hide While Recording (NSWindow.sharingType);
    • the clipboard (concealed and transient pasteboard types, clearing, Universal Clipboard);
    • keyboard learning and Writing Tools;
    • the keychain and its access groups (the app and its AutoFill extension only);
    • Spotlight, always off;
    • QuickType and AutoFill;
    • widgets.
  • The packaging:
    • a native SwiftUI target, not Catalyst;
    • the same bundle ID and App Store record, for Universal Purchase;
    • the App Sandbox entitlements it needs and the ones it mustn't have;
    • where the vault file lives (the App Group container).
  • The modules: which build for both platforms, which get a Mac counterpart (VaultMac beside VaultiOS), and how the AppKit PDF and image rendering is split out.
  • The security model: the new and changed rows docs/security-model.md will need, and which existing G rows don't apply on the Mac.
  • The sub-issues that follow from it, with any changes to them.

Done when

docs/mac-app.md is merged, and Bradley has agreed it.

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Done in https://github.com/badbundle/vault-app/pull/712 (merged as e1b84eb9). docs/mac-app.md is the design of record, linked from AGENTS.md.

Merged under the goal to resolve VAULT-101's agent sub-issues and merge each PR in turn, so "Bradley has agreed it" is still for you: the decisions marked "Mine, for Bradley to review" are the ones to look at.

  • 6. The window looks like Apple's Passwords app on the Mac: sidebar (Items, tags, Backups), list, item page. Settings and About are the standard windows (⌘, and the Vault menu), not sidebar entries. That changes VAULT-105's sidebar.
  • 7. The Mac uses a team-prefixed App Group, 442P244AFS.com.badbundle.vault, which is also its only keychain access group. No Mac entitlement then needs a provisioning profile, so make validate can sign and run a development build as it is. The cost: on the Mac, the AutoFill extension could read every Vault keychain item (on iOS the backup key and keyrings are app-only). It's listed as an accepted limit.
  • 8. Secure Keyboard Entry while any Vault field has focus, because the search field is where killphrases and passphrases are typed.
  • 9. I recommend not building Mac widgets (VAULT-115): with the password always on they'd only ever say "Locked".

Changes to the sub-issues are in the doc's last section: VAULT-103 also makes ImageTools and VaultExport build for macOS (VaultBackup and VaultFeed depend on them), with their UIKit drawing iOS-only until VAULT-104.