Compare commits

...

3 Commits

Author SHA1 Message Date
mnovak 674fbb686f [docs] F03: review of the approval
ci / check (pull_request) Has been cancelled
2026-11-08 11:37:31 +01:00
mnovak 964d3a69e0 [docs] F03: protocol v0 approved — invites expire after 7 days, blobs after delivery or 30 days 2026-11-08 11:37:15 +01:00
mnovak 5e1a483415 Merge feature/scaffold (#10)
ci / check (push) Has been cancelled
2026-11-06 19:06:24 +01:00
3 changed files with 34 additions and 5 deletions
@@ -0,0 +1,26 @@
# Review — `feature/protocol-v0-approved` (F03: protocol v0 approved)
2026-11-08. Base: `main` at 5e1a483. Documents only.
## What changed
- `docs/PROTOCOL.md`:
- v0 is approved by Mark.
- The two proposals are now decisions: an invite expires after 7 days, and a blob is deleted on
acknowledged delivery or after 30 days.
- §6 no longer says *open*. Its decision, the iOS push gateway, was already recorded.
- `CLAUDE.md` §3: the agent merges its own PRs. A change to the protocol still needs Mark's
approval first.
## Findings
**F1 — privacy, unchanged claims.** No column, token or retention was added or loosened. §5's table is
byte-identical. The approval makes no new promise that lacks a test: §7's tests are still to be
written, in F20 (T#4, T#5).
**F2 — the platform facts in §6 are still unverified.** They are Claude's understanding of
UnifiedPush and Apple's push service. They are verified in F25's analysis (`wake-up.md`), before any
code. The approval covers the design, not those facts.
**F3 — scope.** The approval does not cover `VERIFY.md`. Its rows stay *[proposed]* until F26.
## Not verified
- The OpenMLS licence and its Android build (T#3). They are the first step of F21.
+3 -1
View File
@@ -28,7 +28,9 @@ deploy/container/ # container image
## 3. Workflow ## 3. Workflow
Same as Amicitia: analysis document in `.agents/features/` before code ((D)TDD), branch per feature, 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. **No AI attribution in commits, ever.** Quote test counts per crate; an exit code is not a count.
## 4. Known traps ## 4. Known traps
+5 -4
View File
@@ -1,6 +1,7 @@
# Tabellarius protocol v0 — what crosses the wire, and what the relay learns # 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 ## 1. Threat model
| Adversary | Protected | Not protected | | 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 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 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 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 ## 5. What the relay stores — the complete list
| Table | Columns | | 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 | | `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 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. 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** A notification for a closed app needs a push service. The wake-up carries **no content and no sender**
— only "something arrived". — only "something arrived".
- **Android:** UnifiedPush lets the user choose their own distributor; FCM as a fallback. - **Android:** UnifiedPush lets the user choose their own distributor; FCM as a fallback.