12 Commits

Author SHA1 Message Date
mnovak 3a0944ebff [relay] Files: a file route for same-size encrypted chunks with its own quotas; the client seals chunks in STREAM and sends a file payload inside MLS
ci / check (pull_request) Has been cancelled
The relay stores files (id, upload and fetch token hashes, chunk count, uploaded hour) and chunks
(file id, index, ciphertext): every chunk is 256 000 bytes, so it learns the size rounded up to
250 KiB and nothing finer, and it keeps no fetch count. Only the uploader's token puts or deletes,
only the fetch token gets, a chunk never changes; per-file and relay-wide quotas answer 507; files
go after 30 days, incomplete ones after 24 hours. The client pads a file to whole chunks and seals
each with ChaCha20-Poly1305 in the aead crate's STREAM, under a key made for that file; the key,
name, type, size and thumbnail travel only in the new `file` payload, which shares `seq` with text.
Also: every route now answers a bare 413 (axum's own carried a text). PROTOCOL.md §1, §4, §5, §7, §8.
2026-11-22 19:29:37 +01:00
mnovak 65f56e306c [client] Polls: a poll is a message, a vote replaces the voter's earlier one, only the asker closes and the close carries the final votes; the client keeps each conversation's polls 2026-11-22 10:37:59 +01:00
mnovak 9d9d63c02b [client] Reactions and replies: a message is named by its author and seq, a reply carries its reference, a reaction sets or removes, a newer kind is Unsupported 2026-11-21 20:02:51 +01:00
mnovak f852b1a6d1 [relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives
ci / check (pull_request) Has been cancelled
2026-11-20 12:04:55 +01:00
mnovak 1ccae752d7 [relay] Join page: GET /join hands an invite link opened in a browser to the app
ci / check (pull_request) Has been cancelled
A static page for https://<relay>/join#<invite id>.<secret>, the link messengers make tappable.
The fragment never reaches the relay. One button opens amicitia://invite?relay=<origin>#…; its
only script and style are named by SHA-256 in a Content-Security-Policy of default-src 'none';
no-store, no-referrer, no cookie, framing refused. PROTOCOL.md §8 lists the route.
2026-11-18 17:03:32 +01:00
mnovak cfabc97d20 [client] F24: block and unblock as staged rotates, receipts with seq, readdress; payloads in PROTOCOL.md
ci / check (pull_request) Has been cancelled
2026-11-17 12:01:32 +01:00
mnovak dd576f9feb [relay] F23: quotas (507), a NixOS module behind Caddy with TLS and no logs, and a VM test that no address is kept 2026-11-16 11:39:18 +01:00
mnovak b62317d552 [docs] Workflow: the agent merges every PR, protocol changes included; the self-review goes in the PR
ci / check (pull_request) Has been cancelled
Section 4's pairing change is approved (Mark, 2026-11-14). The F21 review moves from
.agents/reviews/ into PR #14.
2026-11-14 14:58:42 +01:00
mnovak 580b8d50e3 [docs] F21: PROTOCOL.md section 4, the pairing as built — proposed, waits for Mark's approval 2026-11-14 13:23:25 +01:00
mnovak 841236dc87 [docs] F20: PROTOCOL.md section 8, the v0 routes — approved by Mark 2026-11-14 2026-11-14 13:06:56 +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 43f6f9b70c [docs] F03: protocol v0, verification plan and operating manual
README, CLAUDE.md, docs/PROTOCOL.md (threat model, relay storage list) and docs/VERIFY.md. Phase 0: under review, no code yet.
2026-11-02 00:25:59 +01:00