docs: rewrite README + docs to match main (audit in PR body) #133

Merged
sirius merged 1 commit from onionwire/t_96d3bd1a-docs-audit-the-onionwire-source-against into wt/t_0a355a62 2026-09-20 04:30:46 +00:00
Owner

docs: rewrite README + docs to match main (audit in PR body)

Docs-only. Audited against origin/main at 69a7b10 (tag v0.14.0), then rebased onto origin/wt/t_0a355a62 (open PR #132 touches docs/WALLET.md). Base of this PR is wt/t_0a355a62, not main, so we do not race that one-sentence SDK probe note.

What changed

Living operator/protocol docs rewritten from source, not from the previous docs. Spike/decision records kept; one-line Status headers only.

Audit table (doc claim → actual → file:line)

Doc claim (before) Actual Evidence
README download/tag v0.2.1 Newest tag is v0.14.0 (GET /repos/sirius/onionwire/tags). Cargo.toml still 0.2.1 (workflow does not bump it). Forgejo tags API; Cargo.toml:3
README keys table omitted F9; implied F2–F6/F8 only F9 opens Wallets & settings (FunctionKey::OpenMenu). Footer: Tab F2 F3 F4 F5 F6 F9. src/tui.rs:1331-1337, src/tui.rs:3159-3160
Docs / error copy: “open F7” for wallet config No F7. function_key_for has F2–F6, F8, F9. Error string still says F7. src/tui.rs:1307-1339; src/wallet.rs:264
docs/TUI.md footer Tab F2 F3 F4 F5 Ctrl-Q Stale reconstruction. Live footer includes F6 and F9. src/tui.rs:3159-3173 vs old docs/TUI.md
WALLET.md: F7 screen on unmerged feat/wallet-create-import; “no on-screen chain-source picker” Create/import ship on F6 c/i. In-process picker is F6 keys 1/2/3. No TUI editor for stored RPC URL. src/tui.rs:1666-1674; src/node.rs:849 unused by TUI
PROTOCOL classification table omitted tip dispatch::classify has tip → Kind::Tip. Encode is LF-joined fields, no onionwire-tip-v1 domain tag. src/dispatch.rs:36-37; src/pay.rs:342-399
PROTOCOL “What v1 will not grow into”: “no store-and-forward” without distinguishing local queue Local chat outbox is in v1 (src/outbox.rs). Banned: server-side outbox. src/outbox.rs:25-29; task locked decisions
ARTI_UPGRADE: “There is no outbox in v1” False for chat. Chat queues; file/pay fail closed. src/outbox.rs; patched docs/ARTI_UPGRADE.md
ARTI_UPGRADE: “releases are minted … from a merge” release.yml is workflow_dispatch only. No push: trigger. .forgejo/workflows/release.yml:13-14
WALLET/README port confusion risk App-owned local daemon RPC is 18081. 18089 is restricted-RPC, remote examples only. src/wallet_child.rs:49; src/wallet.rs:83-85
WALLET.md: Cuprate “config pins Testnet only” Stored choice includes mainnet (F6 1/2). UI still prints testnet only — mainnet is unvalidated. src/tui.rs:1672-1674; src/cuprate.rs:46
docs/README.md listed only PROTOCOL/THREAT/SECURITY/RELEASING Living set also includes TUI, WALLET, ARTI_UPGRADE + spikes. rewritten index
SECURITY_AUDIT.md as if it were an external audit It is in-house notes on 2b42864. Not a third-party audit. docs/SECURITY_AUDIT.md (kept honest)

Verified matching (not drift): CLI is --version/-h only (src/main.rs:12-24); env vars actually read: ONIONWIRE_HOME, ONIONWIRE_STORE_PASSPHRASE, ONIONWIRE_ASCII, ONIONWIRE_WALLET_RPC, ONIONWIRE_WALLET_RPC_LOGIN, ONIONWIRE_WALLET_NO_SPEND; Noise Noise_IK_25519_ChaChaPoly_BLAKE2s + prologue onionwire-v1; prefixes on main: rat /loc /prf /inv /rcp /tip /png /fil ; unknown [a-z]{3} is Drop; android-release.yml on: workflow_dispatch (+ unused workflow_call); rustc 1.91.

File list

  • README.md — full rewrite (operator doc, v0.14.0 pins, F9, no F7, 18081/18089)
  • docs/README.md — index
  • docs/PROTOCOL.md — tip in the table; server-side vs local outbox
  • docs/THREAT_MODEL.md — identity=locator lead-in; Cuprate mainnet unvalidated
  • docs/WALLET.md — rewrite; includes #132 wallet_child_refresh sentence
  • docs/TUI.md — rewrite against real screens/keys
  • docs/RELEASING.md — lead-in; procedure already matched workflows
  • docs/ARTI_UPGRADE.md — outbox + release-on-merge falsehoods
  • docs/SECURITY_AUDIT.md — still “not a third-party audit”
  • spikes / decision records — Status header only

Not examined / not verified

  • Android Kotlin UI copy vs android/** screens (out of this card’s doc set except SDK sentence on WALLET).
  • Live hidden-service / live wallet / live Cuprate mainnet (docs keep unvalidated).
  • Whether every docs/PROTOCOL.md ratchet KDF byte matches src/ratchet.rs instruction-by-instruction (frame layout, MAX_SKIP=2000, prefix rat checked; HKDF info strings not re-hashed here).
  • cargo-audit in CI (SECURITY_AUDIT still says there was no gate as of the original pass; not re-run).
  • Forgejo /releases/latest/download 404 (kept from prior README; not re-fetched).
  • scripts/release-body.md and crate READMEs (android/README.md, crates/onionwire-sdk/README.md) — out of allowed paths.
  • In-flight #132 runtime behaviour beyond the WALLET.md sentence already in that PR.

No files outside README.md / docs/**.

# docs: rewrite README + docs to match main (audit in PR body) Docs-only. Audited against `origin/main` at `69a7b10` (tag **v0.14.0**), then rebased onto `origin/wt/t_0a355a62` (open PR #132 touches `docs/WALLET.md`). **Base of this PR is `wt/t_0a355a62`**, not `main`, so we do not race that one-sentence SDK probe note. ## What changed Living operator/protocol docs rewritten from source, not from the previous docs. Spike/decision records kept; one-line **Status** headers only. ## Audit table (doc claim → actual → file:line) | Doc claim (before) | Actual | Evidence | |---|---|---| | README download/tag **v0.2.1** | Newest tag is **v0.14.0** (`GET /repos/sirius/onionwire/tags`). `Cargo.toml` still `0.2.1` (workflow does not bump it). | Forgejo tags API; `Cargo.toml:3` | | README keys table omitted `F9`; implied F2–F6/F8 only | `F9` opens Wallets & settings (`FunctionKey::OpenMenu`). Footer: `Tab F2 F3 F4 F5 F6 F9`. | `src/tui.rs:1331-1337`, `src/tui.rs:3159-3160` | | Docs / error copy: “open **F7**” for wallet config | **No `F7`**. `function_key_for` has F2–F6, F8, F9. Error string still says F7. | `src/tui.rs:1307-1339`; `src/wallet.rs:264` | | `docs/TUI.md` footer `Tab F2 F3 F4 F5 Ctrl-Q` | Stale reconstruction. Live footer includes F6 and F9. | `src/tui.rs:3159-3173` vs old `docs/TUI.md` | | WALLET.md: F7 screen on unmerged `feat/wallet-create-import`; “no on-screen chain-source picker” | Create/import ship on `F6` `c`/`i`. In-process picker is `F6` keys `1`/`2`/`3`. No TUI editor for stored RPC URL. | `src/tui.rs:1666-1674`; `src/node.rs:849` unused by TUI | | PROTOCOL classification table omitted `tip ` | `dispatch::classify` has `tip ` → `Kind::Tip`. Encode is LF-joined fields, **no** `onionwire-tip-v1` domain tag. | `src/dispatch.rs:36-37`; `src/pay.rs:342-399` | | PROTOCOL “What v1 will not grow into”: “no store-and-forward” without distinguishing local queue | Local chat outbox **is** in v1 (`src/outbox.rs`). Banned: **server-side** outbox. | `src/outbox.rs:25-29`; task locked decisions | | ARTI_UPGRADE: “There is no outbox in v1” | False for chat. Chat queues; file/pay fail closed. | `src/outbox.rs`; patched `docs/ARTI_UPGRADE.md` | | ARTI_UPGRADE: “releases are minted … from a merge” | `release.yml` is `workflow_dispatch` only. No `push:` trigger. | `.forgejo/workflows/release.yml:13-14` | | WALLET/README port confusion risk | App-owned local daemon RPC is **18081**. **18089** is restricted-RPC, remote examples only. | `src/wallet_child.rs:49`; `src/wallet.rs:83-85` | | WALLET.md: Cuprate “config pins Testnet only” | Stored choice includes mainnet (`F6` 1/2). UI still prints `testnet only — mainnet is unvalidated`. | `src/tui.rs:1672-1674`; `src/cuprate.rs:46` | | docs/README.md listed only PROTOCOL/THREAT/SECURITY/RELEASING | Living set also includes TUI, WALLET, ARTI_UPGRADE + spikes. | rewritten index | | SECURITY_AUDIT.md as if it were an external audit | It is in-house notes on `2b42864`. Not a third-party audit. | `docs/SECURITY_AUDIT.md` (kept honest) | Verified **matching** (not drift): CLI is `--version`/`-h` only (`src/main.rs:12-24`); env vars actually read: `ONIONWIRE_HOME`, `ONIONWIRE_STORE_PASSPHRASE`, `ONIONWIRE_ASCII`, `ONIONWIRE_WALLET_RPC`, `ONIONWIRE_WALLET_RPC_LOGIN`, `ONIONWIRE_WALLET_NO_SPEND`; Noise `Noise_IK_25519_ChaChaPoly_BLAKE2s` + prologue `onionwire-v1`; prefixes on `main`: `rat `/`loc `/`prf `/`inv `/`rcp `/`tip `/`png `/`fil `; unknown `[a-z]{3} ` is Drop; `android-release.yml` `on: workflow_dispatch` (+ unused `workflow_call`); rustc 1.91. ## File list - `README.md` — full rewrite (operator doc, v0.14.0 pins, F9, no F7, 18081/18089) - `docs/README.md` — index - `docs/PROTOCOL.md` — `tip ` in the table; server-side vs local outbox - `docs/THREAT_MODEL.md` — identity=locator lead-in; Cuprate mainnet unvalidated - `docs/WALLET.md` — rewrite; includes #132 `wallet_child_refresh` sentence - `docs/TUI.md` — rewrite against real screens/keys - `docs/RELEASING.md` — lead-in; procedure already matched workflows - `docs/ARTI_UPGRADE.md` — outbox + release-on-merge falsehoods - `docs/SECURITY_AUDIT.md` — still “not a third-party audit” - spikes / decision records — **Status** header only ## Not examined / not verified - Android Kotlin UI copy vs `android/**` screens (out of this card’s doc set except SDK sentence on WALLET). - Live hidden-service / live wallet / live Cuprate mainnet (docs keep **unvalidated**). - Whether every `docs/PROTOCOL.md` ratchet KDF byte matches `src/ratchet.rs` instruction-by-instruction (frame layout, MAX_SKIP=2000, prefix `rat ` checked; HKDF info strings not re-hashed here). - `cargo-audit` in CI (SECURITY_AUDIT still says there was no gate as of the original pass; not re-run). - Forgejo `/releases/latest/download` 404 (kept from prior README; not re-fetched). - `scripts/release-body.md` and crate READMEs (`android/README.md`, `crates/onionwire-sdk/README.md`) — out of allowed paths. - In-flight #132 runtime behaviour beyond the WALLET.md sentence already in that PR. No files outside `README.md` / `docs/**`.
Audit the operator docs against the source: pin downloads to v0.14.0,
document the real CLI/flags/env/F-keys (including F9, no F7), keep 18081
as the app-owned daemon port, describe the local chat outbox vs a
server-side one, and stop implying SECURITY_AUDIT.md is a third-party
audit. Spike reports stay; they get a status header only.
sirius merged commit 803567635f into wt/t_0a355a62 2026-09-20 04:30:46 +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!133
No description provided.