Skip to content

docs(core): ADR 0114, personal records go up sealed under keyed ids and only a team's changes wait for approval - #4810

Merged
datlechin merged 10 commits into
mainfrom
docs/adr-0114-sealed-personal-records
Dec 1, 2026
Merged

datlechin merged 10 commits into
mainfrom
docs/adr-0114-sealed-personal-records

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • Adds core ADR 0114: every personal sync record on TablePro Sync goes up as one AES-256-GCM body under the personal key, bound to its origin, account, kind, wire id and key version.
  • Personal record ids on the wire are an HMAC under a key from the root of the personal key chain, stable across rotations; local ids stay on the device.
  • Each device keeps a per-record floor and refuses older copies; deletions are sealed writes; the merge runs on plaintext against the last authenticated copy.
  • Server: sealed_required, the TablePro-Sealed-Records header, the sealed_records capability, and a migration that drops existing personal rows; devices upload again.
  • Approval-required fields wait only in team scopes; the personal scope and iCloud apply pulled changes on pull.
  • State file schema 4 (sealed_floors, sealed_ids, sealed_marks), oldest reader 4.
  • Status lines of 0044, 0051, 0052, 0054, 0056, 0061, 0075, 0076, 0085, 0091 and 0107, and the index.
  • Threat model: sealed personal records, keyed ids, risk 6 widened (accepted 2026-12-02), new risk 17 for secrets that never sync.

Test plan

  • Docs only. scripts/check-banned-words.sh passes on every changed file.
  • codex review --base origin/main and an adversarial security pass are clean on the final design.
  • The ADR's Tests section lists the tests each implementation lane adds.

@datlechin
datlechin merged commit 51e8eba into main Dec 1, 2026
20 checks passed
@datlechin
datlechin deleted the docs/adr-0114-sealed-personal-records branch December 1, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant