Repository navigation
Description
Phase 6 row 5 of #868.
The rewrite's two largest crates have never been read end to end by a lens that was not reviewing a diff. nostream-relay and nostream-storage are 68 source files and about 28.5k lines; every review so far has been scoped to what one job changed, so a seam that only meets in the composition root, or a rule restated in three places, has had no reader. The same is true of four surfaces where the risk is not a change but a standing design: MCP auth, settings, the migration tool, and LMDB file permissions.
The deliverable
A review record at docs/rewrite/reviews/2026-11-30-relay-storage.md on a factory branch, and one issue per defect it proves. Nothing is fixed in this row: a fix makes the diff the thing under review and defeats the purpose.
Acceptance
- The document carries, per lens (code, architecture, security, performance, ux, ui), the scope it actually read (files and line counts), what it checked, and every finding with
path:lineevidence and a disposition — filed issue number, or accepted-risk with the reason. - Every finding that a maintainer would change is filed as its own issue with the evidence already gathered, labelled
rewrite,rust,factoryand the milestone of the code it touches; the document links each. - The four named surfaces are covered explicitly, each in its own section with its own evidence: MCP authentication and authorisation, the settings loader and its precedence, the PG→LMDB migration tool's resumability and checksum contract, and LMDB file permissions and directory creation.
- The lenses state what they did not read, and why; a lens that found nothing says what it looked for and the command that would have caught a defect.
- Claims about behaviour are backed by a command or a test the reader can rerun; a finding that rests only on reading says so.
- The document names the tree it reviewed (commit sha) so a later row can tell whether a finding still holds.
- Every finding carries a severity on one line (critical / high / medium / low, and what a person loses if it is never fixed), so triage needs no code reading.
- Dedupe before filing: each finding is checked against the open issues first; a match links the existing issue instead of opening a twin, and only a genuinely new defect gets a new number.
Out of scope
- Fixing findings in this row.
- The soak and benchmark rows ([Rewrite P3] Storage seam + LMDB backend (strfry-style) + PG→LMDB migration #864's 1M/10M corpora, the 72 h soak), which need tauceti.
- Re-reviewing
nostream-adminandnostream-mcpcode beyond the code/UX pass the row names.
Activity
chappie-daemon commentedon Nov 30, 2026
Job
045-review-relay-storageopened: recon mapping the two crates and the four security surfaces, worktree cut from8488bf13, estimate $2.60 (operator-approved). Deliverable is the review document; every finding carriespath:line, the measurement that proves it, and a one-line severity, is deduped against the open issues before filing, and the document names what the lenses did not read.chappie-daemon commentedon Nov 30, 2026
Spec finalised (digest
9a612215) after a red team that earned its cost: it built a 258-line document which, opening no source file, passed every acceptance criterion — coverage was a count ofwc -loutputs, findings were unbound to their citations, the dedupe check was dead under this shell'sgrep, and a 6-line file cleared the 18,000-line floor with one invented range. All 20 findings amended: a claimed file now costs a responsibility line, a command naming it and a quoted line; a finding's command must name its ownwhere:; filed issues are checked bycreated_atplus the record's name in the body; and the approver re-runs three findings and one per surface, rejecting the record on a mismatch.Round 1 running: code lens first (the gate), then architecture and security, then performance, ux and ui.
chappie-daemon commentedon Nov 30, 2026
Round 1: all six lenses PASS at
8488bf13— code (9), architecture (6), security (6), performance (3), ux (14), ui (7) = 45 finding blocks. 35 issues filed (#1300–#1334) and 5 findings linked to existing ones (#1106, #1207, #1210, #1211, #1283); 2 accepted with their reason.The record is
docs/rewrite/reviews/2026-11-30-relay-storage.mdon PR #1335, 884 lines, every block carryingwhere:, a one-line severity, evidence and a disposition, with## Not coverednaming what no lens read and what this sandbox cannot run.Worth naming from the pile: #1305 (a rejected settings document silently swaps an LMDB deployment onto the default Postgres backend), #1306 (migration verify proves store-vs-its-own-manifest, not source-vs-store), #1302 (the daemon and the CLI open one store through two copies of one match, and the CLI drops the settings gates), #1307/#1308 (measured hot-path allocations: 110 per candidate row in the search verdict; a NIP-42 guard rebuilt per delivered row). None of these is visible to a diff-scoped review, which is the row's justification.
chappie-daemon commentedon Nov 30, 2026
Closed by 9c25d74 (#1335), merged as a merge commit.
The record is
docs/rewrite/reviews/2026-11-30-relay-storage.md: 45 findings from six lenses at8488bf13, 35 filed as issues (#1300–#1334), 5 linked to existing ones, 2 accepted with their reason, each block carryingwhere:, a one-line severity, evidence and a disposition, plus## Not coveredand a per-lens cost and depth line.The approver reproduced 20 of the 43 command-backed findings and all four surface measurements; it also caught a one-position rotation in three dispositions that no criterion could see, which was fixed at
970c128cand then audited across all 38 filed dispositions.