2.6 KiB
2.6 KiB
CLAUDE.md — Tabellarius
Operating manual for AI agents. This repository is public. Write every file, commit and review as if a stranger auditing your privacy claims will read it — because one will.
1. Layout (proposed)
crates/protocol/ # wire types, versioned; no I/O
crates/client/ # OpenMLS wrapper + mailbox client; embedded by Amicitia Domi
crates/relay/ # axum + SQLite; stores exactly docs/PROTOCOL.md §5
deploy/nixos/ # NixOS module (non-logging reverse proxy included)
deploy/container/ # container image
relay never depends on client. protocol depends on nothing in this repository.
2. Absolute rules
- No hand-written cryptography. MLS via OpenMLS; hashes and randomness from vetted crates.
- The relay stores only
docs/PROTOCOL.md§5. A new column is a protocol change: document, review, version bump — never a migration slipped into a feature. - No logging of IP addresses, user agents or request bodies, in code or in the shipped deploy configuration. Counts only.
- Every privacy claim in the docs has a test (§7 of the protocol). A claim without a test is removed from the docs until it has one.
- Secrets (tokens, keys) never in the repository, test fixtures included — fixtures generate them.
- Builds are reproducible (Nix flake) and every release publishes a signed
SHA256SUMS. A change that breaks reproducibility is a review blocker (docs/VERIFY.md). - The name Tabellarius is for developers and auditors. User-facing copy says your message relay.
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. 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
| Trap | Why it bites |
|---|---|
| The helpful debug log | One tracing::info!(?request) logs an IP or a token. Logging goes through a filter that knows which fields are allowed. |
| The reverse proxy logs | The relay can be clean while nginx/caddy logs every IP. The deploy module disables access logs; the review checks it. |
| Metadata by timing | Fetching all mailboxes in one connection links them. Document it honestly; do not claim otherwise. |
| iOS wake-ups | See protocol §6 — the publisher's push gateway is a privacy cost, stated, not hidden. |