trackslash
VAULT-167 P2 For an agent

Backup Seal: a seal for every backup, and how Check a Backup checked it

0
All issues

Description

Bradley (2026-11-21): "I'd like to add some more cool features regarding cryptography. Checking or something interesting to the backups, giving this a bit of flair." He chose the Backup Seal with "How Vault checked it" ("Go with your pick"). He then asked for a simpler seal, "kinda the vibe of an SF Symbol" (comment-2).

What it is

A seal for each backup. It's a picture and a short code, such as SMHX-9FFR, worked out from a SHA-256 hash of the backup's encrypted bytes:

  • an eight-pointed badge, shaped like SF Symbols' seal, in one of eleven system colors;
  • a white dial on it: two rings, each with a gap, and a dot;
  • the color, and each gap's direction and width, come from the hash.

Every copy of a backup has the same seal, and different backups almost never do.

  • It's printed on the PDF beside the title, and its code is in every page's header, so a loose page can be matched to its backup. Auto-backups get it too.
  • It's stamped in on the screen after a PDF backup is saved (iOS), and shown once the PDF is made (Mac).
  • It's on the password screen when restoring or checking a backup, so the user can see it's the backup they meant.
  • Check a Backup stamps it in once the backup opens.

How Vault checked it. Once a backup opens, Check a Backup lists what opening it proved, one step after another:

  • the key was made from its password (for example "Argon2id, 512 MiB, 32 passes, 4 lanes");
  • nothing has changed since it was made (AES-256-GCM checked it against its authentication tag);
  • everything in it decodes, as a restore would.

Ground rules

  • The seal comes from the encrypted backup only, never from what it holds. So it says nothing about the backup's contents, and backing up the same items twice gives two seals.
  • Vault keeps no record of seals. One is worked out again each time it's shown (MANIFESTO C6).
  • No new encryption. It uses CryptoKit's SHA-256, and hashing isn't encryption, so export compliance doesn't change.
  • The format never changes. Printed seals have to keep matching. BackupSealTests pins the digest and code against values worked out separately in Python.
  • Check a Backup still never says what the backup holds: no item count (C5, VAULT-158).

Done when

  • The PDF, the save screen, the password screens and Check a Backup show the seal on iOS and the Mac, and the "How Vault checked it" list is on both.
  • docs/security-model.md has a row for the promise, and the CHANGELOG and Help mention it.
  • Tests and snapshots pass, and the PR is open for Bradley to review, with screens in iCloud Drive › Claude › Vault.

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

2
Bradley

Bradley, 2026-11-21, on the first design (a wax seal with guilloche rosettes): "I hate the design of the seal, make it simpler - it should kinda have the vibe of an SF Symbol".

The new design, on the same branch:

  • Badge: an eight-pointed badge shaped like SF Symbols' seal.fill. It's drawn by Vault, not the symbol itself, so it can go on a printed PDF. It comes in one of eleven of Apple's system colors (yellow is left out, as white can't be read on it).
  • Dial: a white dial on the badge, like the one on Vault's door: two rings, each with a gap, and a dot in the middle. Each gap faces one of the badge's eight points and is 60°, 90° or 120° wide.
  • Seal: no shadow, and a gentler stamp.

The digest and code haven't changed. Only the picture has, so BackupSealTests' pinned values still hold.

Bradley

PR: https://github.com/badbundle/vault-app/pull/776 (branch backup-seal), opened 2026-11-21. Not validated yet: make validate runs the UI tests, and Bradley has asked for none until he says so.

Screens for review are in iCloud Drive › Claude › Vault › "2026-11-21 Backup Seal screens".

Tests run on the iOS 27.0 simulator and macOS with Xcode 27.1:

  • VaultiOSTests, VaultFeedTests, VaultBackupTests, VaultExportTests, VaultKeygenTests and VaultiOSAutofillTests pass on iOS.
  • VaultMacTests and VaultBackupTests pass on the Mac.
  • One test failed once in the full iOS run: AppLockViewCountdownTests.passwordWait_endsWhenTheClockPassesIt, with "Timed out waiting". It's the lock screen's countdown, which this change doesn't touch, and it passed 3 times in a row on its own. The same test timed out once on 2026-11-15 too. Worth an issue if it happens in validation.

Left for later: iOS doesn't show the seal on the Export page's PDF row, and the device transfer QR codes have no seal. A transfer is a move, not a backup.