Count the sealed-to-unsealed fallback, and offer to refuse it #56

Merged
paulhitt merged 1 commits from feat/refuse-unsealed-sending into main 2026-09-02 21:57:16 +00:00
paulhitt commented 2026-09-02 16:24:31 +00:00 (Migrated from gitlab.com)

Android half of ios#16. Pairs with flamenet-messenger-ios!66.

Copy distinguishes sender from content, with tests. Aggregate only — per-contact counts would build the very graph sealing keeps off a server. Zero sends reports as "nothing sent yet", not 0%.

Refusing is off by default and has its own exception type so it can explain itself.

Refusing spends nothing — sealed is false exactly when no token was taken. My first cut had an unreachable line handing one back; removed.

Policy and counter injected as lambdas (no Android dependency in client/engine) and wired in one helper — two sign-in paths build a session, and only one applying the policy is how a setting silently dies on half the app.

7 engine unit tests. PARITY.md updated.

Android half of **ios#16**. Pairs with flamenet-messenger-ios!66. Copy distinguishes **sender from content**, with tests. **Aggregate only** — per-contact counts would build the very graph sealing keeps off a server. Zero sends reports as "nothing sent yet", not 0%. Refusing is off by default and has its own exception type so it can explain itself. **Refusing spends nothing** — `sealed` is false exactly when no token was taken. My first cut had an unreachable line handing one back; removed. Policy and counter injected as lambdas (no Android dependency in `client`/engine) and wired in **one** helper — two sign-in paths build a session, and only one applying the policy is how a setting silently dies on half the app. 7 engine unit tests. PARITY.md updated.
paulhitt commented 2026-09-02 21:57:03 +00:00 (Migrated from gitlab.com)

added 46 commits

  • 5a39b091...1316996a - 45 commits from branch main
  • 4c3f30e1 - Count the sealed-to-unsealed fallback, and offer to refuse it

Compare with previous version

added 46 commits <ul><li>5a39b091...1316996a - 45 commits from branch <code>main</code></li><li>4c3f30e1 - Count the sealed-to-unsealed fallback, and offer to refuse it</li></ul> [Compare with previous version](/paulhitt/flamenet-messenger-android/-/merge_requests/29/diffs?diff_id=2000968076&start_sha=5a39b091b4b3b945315cea421765c504bfd48f21)
paulhitt commented 2026-09-02 21:57:17 +00:00 (Migrated from gitlab.com)

mentioned in commit ac0ec2e56d

mentioned in commit ac0ec2e56d40e857b7bc7022d20b469695c2f8ac
paulhitt (Migrated from gitlab.com) merged commit ac0ec2e56d into main 2026-09-02 21:57:17 +00:00
paulhitt commented 2026-09-09 19:01:44 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
Sign in to join this conversation.