• Joined on 2026-04-19
mnovak created pull request mnovak/Amicitia-Tabellarius#16 2026-11-16 02:09:09 +01:00
[client] F22a: forget_contact, for Remove person
mnovak pushed to feature/forget-contact at mnovak/Amicitia-Tabellarius 2026-11-16 02:08:27 +01:00
3ac2075ec6 [client] F22a: forget_contact — drops the group, the name and the mailbox, for Remove person
mnovak created branch feature/forget-contact in mnovak/Amicitia-Tabellarius 2026-11-16 02:08:27 +01:00
mnovak pushed to main at mnovak/Amicitia-Tabellarius 2026-11-16 01:03:36 +01:00
4f78101735 [client] F22a: merge feature/client-state — snapshot and restore, staged calls
6f939be758 [client] F22a: forget_invite, so an unclaimed invite's mailbox is not fetched for ever
21bee2d633 [client] F22a: snapshot and restore, and staged calls that send nothing before the app has saved
Compare 3 commits »
mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:35 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

Merged into main with --no-ff as 4f78101735ddd9f66c085b27a30844eb48006f9e (remote hash verified). The self-review is review 376 on this PR (its summary says R1–R7; there are eight, R8 is on…

mnovak closed pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:35 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved
mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R8 — the library has no clock. An unclaimed invite's welcome mailbox would be fetched for ever: wasted requests, and one more mailbox linked by timing (PROTOCOL.md section 1). forget_invite lets the app stop it after the relay's 7 days, or when the user cancels.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R4 — an equivalent planted bug. Removing this guard is not caught, because OpenMLS deletes the KeyPackage when it joins from a Welcome, so a second copy of the Welcome already fails. The guard stays as defence in depth, for a last-resort KeyPackage or a change in OpenMLS.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R5 — a partial receive. If the relay fails after some mailboxes were processed, the client's state already includes them. Returning an error here would lose those messages: the app would not save them, and fetching them again gives MLS replays that are dropped. So receive returns what it has, with interrupted set.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

Adversarial self-review — F22a, client state

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R3 — found while building, fixed. The used welcome mailbox was first dropped inside receive. A snapshot saved between receive and finish then forgot it, so after a crash the Welcome and hello stayed on the relay for 30 days. Test a crash between receive and finish… failed on it (3 blobs waiting instead of 1). The drop now happens in finish, after acknowledging.

mnovak created pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved
mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R1 — the snapshot is the identity. It holds every secret: MLS private keys, fetch and post tokens. It must live only in encrypted storage (Amicitia: SQLCipher), never in a log or a backup in the clear. The library writes no file and implements no Debug for it. Encrypting it again inside the library would need a second key stored somewhere; not done, stated in the analysis.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R2 — written whole after every change. A few KB per contact. Fine for 1:1 chats with dozens of people; a table per key would scale better. Not measured with many contacts; for later, when measured.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R6 — a claimed invite is used up before anything is saved. If the app dies between the claim and saving, the link no longer works; the person asks for a new one. Unavoidable with a one-time claim, and harmless: nothing readable is exposed.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#15 2026-11-16 01:03:19 +01:00
[client] F22a: snapshot and restore; staged calls that send nothing before the app has saved

R7 — an Outgoing carries a post token. An app that keeps an outbox must keep it in encrypted storage too. Debug prints only the size. The blob itself is MLS ciphertext.

mnovak pushed to feature/client-state at mnovak/Amicitia-Tabellarius 2026-11-16 01:02:33 +01:00
6f939be758 [client] F22a: forget_invite, so an unclaimed invite's mailbox is not fetched for ever
mnovak pushed to feature/client-state at mnovak/Amicitia-Tabellarius 2026-11-16 00:59:27 +01:00
21bee2d633 [client] F22a: snapshot and restore, and staged calls that send nothing before the app has saved
mnovak created branch feature/client-state in mnovak/Amicitia-Tabellarius 2026-11-16 00:59:27 +01:00
mnovak pushed tag v0.17.1 to mnovak/CustosPublic 2026-11-14 17:51:50 +01:00