docs+tui: reachability stance (no sealed mailbox) and peer-unreachable queued footer #99

Merged
sirius merged 1 commit from wt/t_d662c8a6 into main 2026-09-18 01:02:26 +00:00
Owner

Summary

  • docs/THREAT_MODEL.md: new Reachability section — no sealed mailbox / server-side message store (with rationale: it needs a persistent server, which the threat model rules out), the chat outbox is local-device retry only and dies with the device, and there is no mutual-online indicator (one-shot Noise IK per send; an unanswered dial queues locally). Also lists sealed mailbox under Out of v1.
  • src/tui.rs: OutboxSummary now carries the outstanding row's highest attempt count and soonest scheduled retry, so the status bar reads peer unreachable, queued (n/8, retry 45s) instead of a bare n queued. Mixed queued+failed keeps send failed: ….
  • tests/tui_spec.rs: assertions updated to the real footer wording (including the real-outbox test that drives Outbox::send against a dead peer).
  • android/.../MessageDelivery.kt: KDoc no longer claims the footer copy is mirrored byte-for-byte — Android already shows per-row queued (try n/8, retry …) via OutboxDetail.kt, so its chat-level summary stays the short count form. No behaviour change.

Scope

Docs + TUI footer only. No sealed mailbox implementation, no wire change.

Verification

  • TDD: test assertions updated first → cargo test --locked --test tui_spec failed to compile on the new OutboxSummary fields (RED), then passed 26/26 after the implementation (GREEN).
  • cargo test --locked → EXIT=0, 32 test result: ok blocks, 0 FAILED.
  • cargo clippy --locked --all-targets -- -D warnings → EXIT=0.
  • 80x24 frame test still proves the footer fits in 80 columns with the longer note.
## Summary - `docs/THREAT_MODEL.md`: new **Reachability** section — no sealed mailbox / server-side message store (with rationale: it needs a persistent server, which the threat model rules out), the chat outbox is local-device retry only and dies with the device, and there is no mutual-online indicator (one-shot Noise IK per send; an unanswered dial queues locally). Also lists `sealed mailbox` under **Out of v1**. - `src/tui.rs`: `OutboxSummary` now carries the outstanding row's highest attempt count and soonest scheduled retry, so the status bar reads `peer unreachable, queued (n/8, retry 45s)` instead of a bare `n queued`. Mixed queued+failed keeps `send failed: …`. - `tests/tui_spec.rs`: assertions updated to the real footer wording (including the real-outbox test that drives `Outbox::send` against a dead peer). - `android/.../MessageDelivery.kt`: KDoc no longer claims the footer copy is mirrored byte-for-byte — Android already shows per-row `queued (try n/8, retry …)` via `OutboxDetail.kt`, so its chat-level summary stays the short count form. No behaviour change. ## Scope Docs + TUI footer only. No sealed mailbox implementation, no wire change. ## Verification - TDD: test assertions updated first → `cargo test --locked --test tui_spec` failed to compile on the new `OutboxSummary` fields (RED), then passed 26/26 after the implementation (GREEN). - `cargo test --locked` → EXIT=0, 32 `test result: ok` blocks, 0 FAILED. - `cargo clippy --locked --all-targets -- -D warnings` → EXIT=0. - 80x24 frame test still proves the footer fits in 80 columns with the longer note.
docs+tui: reachability stance (no sealed mailbox) and peer-unreachable queued footer
Some checks failed
ci / test (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
android-ci / android (pull_request) Has been cancelled
dff37fe00e
Add a Reachability section to docs/THREAT_MODEL.md: no sealed mailbox or
server-side message store, the chat outbox is local-device retry only, and
there is no mutual-online indicator — a send is a one-shot Noise IK session
and an unanswered dial queues locally with the retry clock shown.

OutboxSummary now carries the outstanding row's attempt count and soonest
retry, so the footer reads 'peer unreachable, queued (n/8, retry 45s)'
instead of a bare 'n queued'. Tests updated to the real outbox wording; the
Android KDoc note stops claiming the footer copy is mirrored (Android shows
per-row 'queued (try n/8, retry …)' via OutboxDetail).
sirius merged commit 407b11f2f8 into main 2026-09-18 01:02:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!99
No description provided.