docs: README/TUI describe the local outbox instead of denying it #53
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_1e1dff0f"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #52 (which fixed the same rot in the Android UI). The root
README.mdstill told users the opposite of whatmainruns since #45.What changed
README.mdFail 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.send fails - no outbox. The footer copy stayssending/sent/send failed: <reason>(that is whatmain'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 terminallyfailed), 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.No outbox, no resume-> transfers are not queued (chat is) and do not resume. Consistent withdocs/PROTOCOL.md:286.## Not in v1:outbox->server-side outbox / store-and-forward relay, matchingdocs/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.mdstep 7: the hand check must use/fileor/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.lockis empty).Evidence
Repo-wide
grep -i, two leftovers, both deliberate:docs/PROTOCOL.md:286(file transfer is genuinely not queued) andcrates/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 whatmainruns. Text is grounded inmain:src/outbox.rs(BACKOFF_START_SECS30,BACKOFF_CAP_SECS1800,DEFAULT_MAX_ATTEMPTS8),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 touchREADME.mdat theci.ymlbullet (~line 289) andcrates/onionwire-sdk/README.md. This branch touchesREADME.mdat lines 6/115/156-161/166/319 anddocs/TUI.mdat 386-405 - merges cleanly in either order.Card: t_1e1dff0f
5c675f6755to8832b933958832b93395to11a4145972