[docs] F03: protocol v0 approved — invites expire after 7 days, blobs after delivery or 30 days

This commit is contained in:
2026-11-08 11:37:15 +01:00
parent 5e1a483415
commit 964d3a69e0
2 changed files with 8 additions and 5 deletions
+5 -4
View File
@@ -1,6 +1,7 @@
# Tabellarius protocol v0 — what crosses the wire, and what the relay learns
Reviewed and approved **before** any relay code is written. Every claim below must have a test.
**Approved 2026-11-08 (Mark)** as v0, before any relay code. Every claim below must have a test. A change
is a protocol version bump: documented, reviewed, approved (`CLAUDE.md` §2.2).
## 1. Threat model
| Adversary | Protected | Not protected |
@@ -29,7 +30,7 @@ Reviewed and approved **before** any relay code is written. Every claim below mu
A QR code (in person) or a link carries: relay URL, an invite id, and a one-time fetch secret. The
invitee fetches the inviter's MLS KeyPackage from the relay with it, replies with their own, and
both sides exchange mailbox ids and post tokens **inside** MLS. Unclaimed invites expire after
7 days *(proposal)*.
**7 days** *(decided 2026-11-08)*.
## 5. What the relay stores — the complete list
| Table | Columns |
@@ -40,10 +41,10 @@ both sides exchange mailbox ids and post tokens **inside** MLS. Unclaimed invite
| `push` *(only if the user opts in, G03)* | mailbox id, push endpoint |
Nothing else. No IP, no user agent, no request log beyond counts. A blob is deleted on acknowledged
delivery and after **30 days** at the latest *(proposal)*. The reverse proxy in front must also not
delivery and after **30 days** at the latest *(decided 2026-11-08)*. The reverse proxy in front must also not
log; the NixOS module ships configured that way.
## 6. Waking a closed app (open — decide before Phase 2)
## 6. Waking a closed app
A notification for a closed app needs a push service. The wake-up carries **no content and no sender**
— only "something arrived".
- **Android:** UnifiedPush lets the user choose their own distributor; FCM as a fallback.