From 964d3a69e049fa4034d7c487ce34e84bbdda9a34 Mon Sep 17 00:00:00 2001 From: mnovak Date: Sun, 8 Nov 2026 11:37:15 +0100 Subject: [PATCH] =?UTF-8?q?[docs]=20F03:=20protocol=20v0=20approved=20?= =?UTF-8?q?=E2=80=94=20invites=20expire=20after=207=20days,=20blobs=20afte?= =?UTF-8?q?r=20delivery=20or=2030=20days?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 4 +++- docs/PROTOCOL.md | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 29d881f..b0aaa2e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,7 +28,9 @@ deploy/container/ # container image ## 3. Workflow Same as Amicitia: analysis document in `.agents/features/` before code ((D)TDD), branch per feature, -adversarial self-review in `.agents/reviews/`, merge `--no-ff`, push and verify the remote hash. +adversarial self-review in `.agents/reviews/`, merge `--no-ff`, push and verify the remote hash. The +agent merges its own PR once local checks pass and the review is written, and reports afterwards +(Mark, 2026-11-08); a change to `docs/PROTOCOL.md` still needs Mark's approval first. **No AI attribution in commits, ever.** Quote test counts per crate; an exit code is not a count. ## 4. Known traps diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index 883207f..c80dc5c 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -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.