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

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).
This commit is contained in:
agent 2026-09-17 20:44:28 -04:00
commit dff37fe00e
No known key found for this signature in database
4 changed files with 79 additions and 14 deletions

View file

@ -130,8 +130,13 @@ fun parseDelivery(direction: String, delivery: String?): Delivery? {
/**
* Chat-level delivery summary derived from the rendered rows.
*
* Mirrors `src/tui.rs::OutboxSummary`: `Queued` + `Sending` are "still coming",
* `Failed` is terminal and keeps a fail-closed statement on screen.
* The *counting* rule mirrors `src/tui.rs::OutboxSummary`: `Queued` + `Sending`
* are "still coming", `Failed` is terminal and keeps a fail-closed statement on
* screen. The TUI's footer wording for an outstanding row also carries the
* reachability statement and retry clock (`peer unreachable, queued (n/8, retry
* 45s)`); on Android that per-row detail already lives in the row's own
* `queued (try n/8, retry …)` marker (`OutboxDetail.kt`), so the summary stays
* the short count form instead of repeating it.
*/
data class OutboxSummary(
val queued: Int = 0,