docs: README/TUI describe the local outbox instead of denying it #53

Merged
sirius merged 1 commit from wt/t_1e1dff0f into wt/t_f2fc5190 2026-09-12 22:48:12 +00:00
Owner

Follow-up to #52 (which fixed the same rot in the Android UI). The root README.md still told users the opposite of what main runs since #45.

What changed

README.md

  • line 6 (v0.2 blurb): Fail closed: peer down -> send fails -> chat to an unreachable peer is queued in the local outbox and retried with backoff; transfers and payments stay fail-closed.
  • line 115 (first run): dropped send fails - no outbox. The footer copy stays sending / sent / send failed: <reason> (that is what main's TUI prints today), and a chat that cannot reach the peer is queued and retried in the background. Also dropped the stale (up to 180s) on the send: 180s is the locator-push retry window (src/node.rs:582), not a chat send.
  • ## Fail closed -> ## Delivery: local outbox: chat is queued and retried with 30s-doubling backoff (cap 30 min, 8 attempts, then terminally failed), retries fire on a timer / on unlock / when the peer is heard from, each attempt is a fresh Noise IK handshake straight to the friend's onion, nothing handed to a third party; a protocol failure is never queued. Non-goals kept: no server-side outbox / store-and-forward relay, no multi-device sync, no DHT, no name server, no hosted chat server.
  • file transfer: No outbox, no resume -> transfers are not queued (chat is) and do not resume. Consistent with docs/PROTOCOL.md:286.
  • ## Not in v1: outbox -> server-side outbox / store-and-forward relay, matching docs/THREAT_MODEL.md:107.

docs/TUI.md (status-copy table + the fail-closed copy paragraph): peer down / send err | send failed: {e} split into the queued chat case and the paths that still fail (/file, /pay, permanent protocol errors).

docs/ARTI_UPGRADE.md step 7: the hand check must use /file or /pay, because a chat to a down onion is queued rather than failed.

No code change (git diff --stat origin/main -- src crates android tests scripts Cargo.toml Cargo.lock is empty).

Evidence

$ grep -rn "no outbox\|no retry queue" README.md docs/ ; echo rc=$?
rc=1
$ git diff --stat origin/main
 README.md            | 15 +++++++++------
 docs/ARTI_UPGRADE.md |  5 +++--
 docs/TUI.md          |  6 ++++--
 3 files changed, 16 insertions(+), 10 deletions(-)

Repo-wide grep -i, two leftovers, both deliberate: docs/PROTOCOL.md:286 (file transfer is genuinely not queued) and crates/onionwire-sdk/README.md:21 (already rewritten by #51).

Base / collision

Branched from origin/main (c39259b), not from the #48/#50/#51/#52 stack - the docs must not describe clients ahead of what main runs. Text is grounded in main: src/outbox.rs (BACKOFF_START_SECS 30, BACKOFF_CAP_SECS 1800, DEFAULT_MAX_ATTEMPTS 8), docs/PROTOCOL.md "Transport", docs/THREAT_MODEL.md "Fail closed" / "Local outbox".

README is a hotspot, but no overlap: #48/#50 touch src/, tests/, docs/TUI.md (new "Delivery state (outbox)" section); #51/#52 touch README.md at the ci.yml bullet (~line 289) and crates/onionwire-sdk/README.md. This branch touches README.md at lines 6/115/156-161/166/319 and docs/TUI.md at 386-405 - merges cleanly in either order.

Card: t_1e1dff0f

Follow-up to #52 (which fixed the same rot in the Android UI). The root `README.md` still told users the opposite of what `main` runs since #45. ## What changed `README.md` - line 6 (v0.2 blurb): `Fail closed: peer down -> send fails` -> chat to an unreachable peer is queued in the local outbox and retried with backoff; transfers and payments stay fail-closed. - line 115 (first run): dropped `send fails - no outbox`. The footer copy stays `sending` / `sent` / `send failed: <reason>` (that is what `main`'s TUI prints today), and a chat that cannot reach the peer is queued and retried in the background. Also dropped the stale `(up to 180s)` on the send: 180s is the **locator-push** retry window (`src/node.rs:582`), not a chat send. - `## Fail closed` -> `## Delivery: local outbox`: chat is queued and retried with 30s-doubling backoff (cap 30 min, 8 attempts, then terminally `failed`), retries fire on a timer / on unlock / when the peer is heard from, each attempt is a fresh Noise IK handshake straight to the friend's onion, nothing handed to a third party; a protocol failure is never queued. Non-goals kept: no server-side outbox / store-and-forward relay, no multi-device sync, no DHT, no name server, no hosted chat server. - file transfer: `No outbox, no resume` -> transfers are not queued (chat is) and do not resume. Consistent with `docs/PROTOCOL.md:286`. - `## Not in v1`: `outbox` -> `server-side outbox / store-and-forward relay`, matching `docs/THREAT_MODEL.md:107`. `docs/TUI.md` (status-copy table + the fail-closed copy paragraph): `peer down / send err | send failed: {e}` split into the queued chat case and the paths that still fail (`/file`, `/pay`, permanent protocol errors). `docs/ARTI_UPGRADE.md` step 7: the hand check must use `/file` or `/pay`, because a chat to a down onion is queued rather than failed. No code change (`git diff --stat origin/main -- src crates android tests scripts Cargo.toml Cargo.lock` is empty). ## Evidence ``` $ grep -rn "no outbox\|no retry queue" README.md docs/ ; echo rc=$? rc=1 $ git diff --stat origin/main README.md | 15 +++++++++------ docs/ARTI_UPGRADE.md | 5 +++-- docs/TUI.md | 6 ++++-- 3 files changed, 16 insertions(+), 10 deletions(-) ``` Repo-wide `grep -i`, two leftovers, both deliberate: `docs/PROTOCOL.md:286` (file transfer is genuinely not queued) and `crates/onionwire-sdk/README.md:21` (already rewritten by #51). ## Base / collision Branched from `origin/main` (`c39259b`), not from the #48/#50/#51/#52 stack - the docs must not describe clients ahead of what `main` runs. Text is grounded in `main`: `src/outbox.rs` (`BACKOFF_START_SECS` 30, `BACKOFF_CAP_SECS` 1800, `DEFAULT_MAX_ATTEMPTS` 8), `docs/PROTOCOL.md` "Transport", `docs/THREAT_MODEL.md` "Fail closed" / "Local outbox". README is a hotspot, but no overlap: #48/#50 touch `src/`, `tests/`, `docs/TUI.md` (new "Delivery state (outbox)" section); #51/#52 touch `README.md` at the `ci.yml` bullet (~line 289) and `crates/onionwire-sdk/README.md`. This branch touches `README.md` at lines 6/115/156-161/166/319 and `docs/TUI.md` at 386-405 - merges cleanly in either order. Card: t_1e1dff0f
README.md still told users 'no outbox, no retry queue' and 'if their onion is
down, send fails' since well before the local outbox landed (#45). Rewrite the
delivery story to match what main runs: an unreachable peer's chat is queued in
the local outbox and retried with 30s-doubling backoff (cap 30 min, 8 attempts,
then terminally failed), local-only until it lands, nothing handed to a third
party. Retries are not a new transport: each one is a fresh Noise IK handshake
straight to the friend's onion, as docs/PROTOCOL.md and docs/THREAT_MODEL.md
already say.

Keep the non-goals that are still true (no server-side outbox / store-and-forward
relay, no multi-device sync, no DHT) and keep file transfer and payments
fail-closed, since only chat is queued.

docs/TUI.md: the status-copy table still listed 'peer down / send err | send
failed: {e}' as the fail-closed path; split it into the queued chat case and the
paths that still fail.
docs/ARTI_UPGRADE.md: step 7's hand check must use /file or /pay, because a chat
to a down onion is queued rather than failed.

No code change.
sirius changed target branch from main to wt/t_f2fc5190 2026-09-12 21:19:32 +00:00
sirius force-pushed wt/t_1e1dff0f from 5c675f6755 to 8832b93395 2026-09-12 21:19:34 +00:00 Compare
sirius force-pushed wt/t_1e1dff0f from 8832b93395 to 11a4145972 2026-09-12 21:19:42 +00:00 Compare
sirius merged commit 1609c82368 into wt/t_f2fc5190 2026-09-12 22:48:12 +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!53
No description provided.