docs: describe the local outbox instead of denying it
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.
This commit is contained in:
parent
c39259b919
commit
5c675f6755
3 changed files with 16 additions and 10 deletions
15
README.md
15
README.md
|
|
@ -3,7 +3,7 @@
|
|||
Lean Tor messenger: one Rust process (ratatui + Noise IK + sqlite + in-process Arti).
|
||||
No hosted server. Identity is a public key; the onion is only a locator.
|
||||
|
||||
**v0.2** — Linux TUI. Two people add each other with an `onionwire:v1:…` invite string (`F2` share / `F3` paste). There is no QR graphic. Chat is Noise IK over your own v3 onion. Optional Monero invoices if you point at a local `monero-wallet-rpc`. Fail closed: peer down → send fails. Arti onion services are still experimental. Chat bodies are encrypted at rest; identity keys in sqlite are still plaintext.
|
||||
**v0.2** — Linux TUI. Two people add each other with an `onionwire:v1:…` invite string (`F2` share / `F3` paste). There is no QR graphic. Chat is Noise IK over your own v3 onion. Optional Monero invoices if you point at a local `monero-wallet-rpc`. A chat to an unreachable peer is queued in the local outbox and retried with backoff (30s doubling, capped at 30 min, 8 attempts) — it never leaves your machine. Transfers and payments stay fail closed. Arti onion services are still experimental. Chat bodies are encrypted at rest; identity keys in sqlite are still plaintext.
|
||||
|
||||
You do **not** install a `tor` daemon, `torrc`, Prosody, or XMPP. OnionWire embeds Arti and publishes its own v3 onion.
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ or `cargo run --release`.
|
|||
|
||||
On start you are prompted for a store passphrase (echo off, like other CLI passwords) or set `ONIONWIRE_STORE_PASSPHRASE`. Empty passphrase is rejected; a wrong passphrase does not open chat. Then you should see `onionwire: bootstrapping Arti…` on stderr. Directory bootstrap is usually under a minute; the onion is ready once a probe connect works (combined Arti status may still say Bootstrapping). Fail closed at 360s. Data lives in `ONIONWIRE_HOME` if set, otherwise `~/.local/share/onionwire/` (`onionwire.db` + Arti state, mode 0700). First open creates an ed25519 identity key. That key **is** you.
|
||||
|
||||
Then `F2` to share your invite, `F3` to paste a friend’s. Mouse-select the `onionwire:v1:…` line to copy. Highlight them in the roster, type in the composer, Enter to send. Footer shows `sending`, then `sent` or `send failed` — the TUI stays usable while Tor retries (up to 180s). Fail closed: if their onion is down, send fails — no outbox.
|
||||
Then `F2` to share your invite, `F3` to paste a friend’s. Mouse-select the `onionwire:v1:…` line to copy. Highlight them in the roster, type in the composer, Enter to send. Footer shows `sending`, then `sent` or `send failed: <reason>`, and the TUI stays usable while a send runs. A chat that cannot reach the peer is not lost: it goes into the local outbox and is retried in the background with backoff (30s doubling, capped at 30 min, 8 attempts, then terminally `failed`). It is local-only until a circuit takes it — no server holds it.
|
||||
|
||||
## Friends are keys
|
||||
|
||||
|
|
@ -154,9 +154,11 @@ Give that string to a friend. They `F3` paste it (`(o) paste invite`). Unknown `
|
|||
- Online friends get a signed `loc` frame.
|
||||
- Offline friends cannot find you until they F3-paste the new invite. There is no directory.
|
||||
|
||||
## Fail closed
|
||||
## Delivery: local outbox
|
||||
|
||||
If a peer’s onion is down, send fails. v1 has no outbox, no retry queue, no DHT, no name server. There is still no hosted chat server.
|
||||
If a peer’s onion is down, a **chat** send is not lost: it goes into the local outbox and is retried with exponential backoff — 30s, doubling, capped at 30 min, 8 attempts, then terminally `failed`. Retries fire on a timer, on unlock, and as soon as that peer is heard from. Nothing is handed to a third party: there is no server and no store-and-forward relay, so every attempt is a fresh Noise IK handshake straight to the friend’s onion, and the message stays on your machine until it lands. A protocol failure (bad signature, unknown frame, oversize) is not a transport failure and is never queued.
|
||||
|
||||
Only chat is queued. File transfer and payments (invoices, tips) stay fail closed — an unreachable peer makes them fail. v1 still has no server-side outbox (store-and-forward spool), no multi-device sync, no DHT, no name server, and no hosted chat server.
|
||||
|
||||
## File transfer
|
||||
|
||||
|
|
@ -164,7 +166,8 @@ If a peer’s onion is down, send fails. v1 has no outbox, no retry queue, no DH
|
|||
Cap 1 MiB on send and receive. Fail closed: a bad chunk or hash mismatch
|
||||
deletes the partial (never overwrite). Files land in
|
||||
`$ONIONWIRE_HOME/inbox/<fingerprint>/`. Chat shows `[file] name (N bytes)`,
|
||||
never raw frames. No outbox, no resume, no images in the TUI.
|
||||
never raw frames. File transfer is not queued (chat is) and does not resume; no
|
||||
images in the TUI.
|
||||
|
||||
## Profile
|
||||
|
||||
|
|
@ -316,7 +319,7 @@ Do not run `cargo publish`; `publish = false`. CI needs the repo secret
|
|||
|
||||
## Not in v1
|
||||
|
||||
Prosody, XMPP, s2s, MAM, carbons, outbox, multi-device, DHT / name server, sqlcipher, QR codes, A/V. Protocol lock: [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
||||
Prosody, XMPP, s2s, MAM, carbons, server-side outbox / store-and-forward relay, multi-device sync, DHT / name server, sqlcipher, QR codes, A/V. Protocol lock: [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
|
|
@ -116,8 +116,9 @@ issue the watcher files.
|
|||
descriptor upload, not a hang), probe-connect against a live HS, a byte pipe
|
||||
in both directions, restart, and the dormant/offline path.
|
||||
7. Confirm the fail-closed path by hand if the publish wait changed at all:
|
||||
with the write timeout still 360s, a peer whose onion is down must fail the
|
||||
send. There is no outbox in v1 — the message must not be silently queued.
|
||||
with the write timeout still 360s, a peer whose onion is down must fail a
|
||||
`/file` or `/pay` send. Chat is the exception — it is queued in the local
|
||||
outbox and retried — so use a transfer or a payment for this check.
|
||||
8. Rebuild the Android target — Arti's TLS backends are non-additive, and this
|
||||
is the build that exercises the `rustls` feature:
|
||||
```
|
||||
|
|
|
|||
|
|
@ -386,7 +386,8 @@ Build left-to-right, **never drop** a non-empty `status_note`:
|
|||
`tests/tui_chrome.rs` stays green.
|
||||
|
||||
Fail-closed copy is `send failed: {e}` or `fingerprint mismatch`. Prefix `! `
|
||||
when color is off.
|
||||
when color is off. Chat to an unreachable peer is not a fail-closed state: it
|
||||
is queued in the local outbox and retried.
|
||||
|
||||
### Copy — non-happy states
|
||||
|
||||
|
|
@ -400,7 +401,8 @@ Do not soften fail-closed into a loader.
|
|||
| nothing selected send | `no friend selected` (keep) |
|
||||
| sending | `sending` (keep, no spinner) |
|
||||
| sent | `sent` |
|
||||
| peer down / send err | `send failed: {e}` (visible) |
|
||||
| peer down, chat | queued in the local outbox and retried with backoff — no `send failed` copy |
|
||||
| send err (permanent), `/file`, `/pay` | `send failed: {e}` (visible) |
|
||||
| already sending | `already sending` (keep) |
|
||||
| stale friend | `stale` suffix (keep) |
|
||||
| empty composer | `message` as dim placeholder (not the slash list). Slash list stays in `?` |
|
||||
|
|
|
|||
Loading…
Reference in a new issue