onionwire/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
t 43d68a2565
All checks were successful
ci / test (pull_request) Successful in 3m28s
feat(tui): per-message outbox delivery state + N queued footer
Chat rows now carry the state the local outbox actually holds: `✓` delivered,
`◷ queued (try n/8, retry 45s)` while the retry worker still has it, `» sending`
mid-attempt and `✗ failed: <short reason>` once attempts are exhausted. The
footer replaces the flat `sent` / `send failed` copy with the live count
(`2 queued`), and keeps a fail-closed `send failed: …` statement as long as any
row is terminally failed.

States come from the outbox API (`Node::outbox_pending` → `Queued` / `Sending` /
`Failed`; a delivered row is deleted, so absence is `Sent`). No parallel state
model, no new wire prefix. Every new glyph has an ASCII fallback (`ok` and the
state word) exercised by a test.

- `chat_with_delivery()` / `delivery_tag()` / `retry_in_text()` /
  `short_send_reason()` / `OutboxSummary::note()` are pure and unit-tested.
- `draw_chat()` is now the real chat-pane renderer (extracted from
  `App::draw_main`) so width/wrap is testable without a `Node`.
- docs/TUI.md: delivery markers, copy, and the 80x24 floor / 120x40 target.

Tests: cargo test 26/26 suites ok (tui_spec 20/20, incl. a real Store + real
`Outbox::send` -> `pending()` -> render path), clippy --all-targets -D warnings
clean.
2026-09-12 14:10:42 -04:00
..
PROTOCOL.md feat(outbox): local retry queue for chat sends 2026-09-12 13:35:10 -04:00
README.md docs: add PROTOCOL.md and retire the stale audit writeup 2026-09-11 13:15:51 -04:00
SECURITY_AUDIT.md docs: add PROTOCOL.md and retire the stale audit writeup 2026-09-11 13:15:51 -04:00
THREAT_MODEL.md feat(outbox): local retry queue for chat sends 2026-09-12 13:35:10 -04:00
TUI.md feat(tui): per-message outbox delivery state + N queued footer 2026-09-12 14:10:42 -04:00

OnionWire docs

Read these in order if you are evaluating the protocol without the Rust:

  1. PROTOCOL.md — wire format, handshake, invite, frames. This is the document a second implementation would use.
  2. THREAT_MODEL.md — what v1 claims, and what it refuses to claim.
  3. SECURITY_AUDIT.md — in-house review notes and which findings are still open. Not a public third-party audit.

Operator / product docs stay in the root README. Android build notes: android/README.md. SDK: crates/onionwire-sdk/README.md.