Skip to content

docs: sync README with the tree and retarget dangling ADR citations - #1983

Merged
thiras merged 2 commits into
mainfrom
docs/readme-and-adr-citation-drift
Sep 10, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/readme-and-adr-citation-drift

Conversation

@thiras

@thiras thiras commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Why

README.md had drifted far enough that several claims were false against the tree, and a class of ADR citations pointed at files that no longer exist.

README drift fixed

Claim Reality
iroh-gossip wire protocol + gossip/ crate No gossip anywhere: no crate, no dependency, zero NodeAnnounce in crates/, zero "gossip" in adr/
9 crates listed 11 workspace members; bao-range, client-pull, e2e were missing
node peers, node announce, bundle create None exist. 5 top-level commands documented; there are 12
"see the status note above" No status section existed
rate_per_mb × rtt_ms selection ADR 001 specifies rate_per_mb × rtt_ms × (1 / max(reputation, 0.1)²)
"broadcast probe fan-out as bootstrap fallback" ADR 022: "No global broadcast." The fallback is the on-chain origin directory
"a bao outboard turns the content hash into a Merkle root" ADR 038: the content hash is the root; the outboard supplies interior nodes
Multi-token payments via ERC-20 allowlist No live ADR supports this. ADR 016 fixes USDC at deployment; the mechanism was dropped with ADR 010. Bullet deleted

Added: Status, Quickstart and License sections, plus CI / Security / license / MSRV badges. The CLI is now a grouped table rather than an enumeration, since enumerating every subcommand is what caused this drift originally.

Dangling ADR citations

ADR 007, 020, 021, 023 and 025 were demoted to appendices in #349 and #422, but 23 citations across 18 files still named the numbered files. All retargeted to adr/appendix-local-admin-http.md and adr/appendix-observability.md. CLAUDE.md gains all five numbers on the do-not-reuse list (it carried 11 of 16) and the counter moves 040 → 042.

Other drift in the same class

  • node region-stats removed from CLAUDE.md, the binaries appendix, and the admin appendix's DTO list. It exists nowhere in the code.
  • crates/cli/Cargo.toml description, which ships to crates.io, covered 4 of 12 commands.
  • Clap help had bundle inverted ("build and eventually fetch" when only fetch exists), claimed a publish vetting step that publish.rs's own module doc calls impossible, and omitted pool assign.

Verification

cargo fmt --check, cargo clippy --workspace --all-targets, RUSTDOCFLAGS="-D warnings" cargo doc, pre-commit run --all-files, and 2208 tests pass. Every quickstart flag was confirmed by running --help against the built binaries. Reviewed by the comment-analyzer and code-reviewer agents; findings verified individually and either fixed or documented as not holding.

Known follow-ups, not in this PR

  1. docs/runbook.md:672-710 still has a "Gossip / peer table degraded" section alerting on a metric nothing emits.
  2. adr/012-client.md:34 still describes the probe-broadcast bootstrap fallback, likely the source of the README error above.
  3. adr/appendix-local-admin-http.md:44,49 carries roadmap voice against the present-tense rule. This file now backs 21 citations.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kt6vxCuFjhTgkMfU4Q3WGc

README.md had drifted far enough that several of its claims were false
against the code. It documented a `gossip` crate and an `iroh-gossip`
wire protocol that exist nowhere, listed 9 of the 11 workspace crates,
and described a CLI surface of 5 top-level commands when there are 12 --
naming `node peers`, `node announce`, and `bundle create`, none of which
exist. It also pointed at a status note that was never written.

Rewrite it against the tree: three ALPNs, all 11 crates, a grouped table
of the real command surface, and new Status, Quickstart and License
sections. Add CI, Security, license and MSRV badges. Correct the
selection score to the unified formula in ADR 001, the discovery
fallback to the on-chain origin directory per ADR 022, and the bao
mechanism per ADR 038. Drop the multi-token payments bullet: no live ADR
supports an ERC-20 allowlist, and ADR 016 fixes USDC at deployment.

Separately, ADR 007, 020, 021, 023 and 025 were demoted to appendices in
 #349 and #422, but 23 citations across 18 files still named the numbered
files. Retarget them to `adr/appendix-local-admin-http.md` and
`adr/appendix-observability.md`. Add all five numbers to the do-not-reuse
list in CLAUDE.md and advance the counter to 042.

Remove `node region-stats` from CLAUDE.md, the binaries appendix, and the
admin appendix's DTO list -- that subcommand exists nowhere. Update the
crates.io description and the clap help, which claimed a `publish`
vetting step the module doc calls impossible and had `bundle` inverted.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Kt6vxCuFjhTgkMfU4Q3WGc
Copilot AI lite review requested due to automatic review settings September 10, 2026 20:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

README.md’s crate-structure line for the cli/ crate reintroduces command-surface drift by enumerating only a subset of the current CLI commands, which undermines the PR’s stated goal of eliminating this class of doc drift.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR refreshes repository documentation to match the current code/tree: it updates README.md content that had drifted, and it retargets stale “ADR NNN” citations to the appendix documents introduced by earlier ADR reorg PRs.

Changes:

  • Update README.md with badges, a Status section, a Quickstart, and corrected/expanded descriptions of discovery, crate structure, and the CLI surface.
  • Replace references to demoted ADR numbers (notably ADR 025 and ADR 020) with appendix document references across code docs/comments and ADR appendices.
  • Update user-facing CLI metadata (about/long_about, crates.io description) to reflect the current command set.
File summaries
File Description
README.md Syncs top-level project documentation with the current tree; adds status/quickstart/license and corrects prior drift.
crates/node/src/runtime/mod.rs Updates admin-surface citation from ADR number to appendix reference.
crates/node/src/metrics.rs Retargets observability ADR citation to the observability appendix.
crates/node/src/lib.rs Retargets admin-surface ADR citation to the admin appendix.
crates/node/src/admin.rs Retargets admin-surface ADR citation to the admin appendix.
crates/common/src/config/types.rs Retargets admin-port docs from ADR number to appendix reference.
crates/common/src/config/resolved.rs Retargets resolved admin-port docs from ADR number to appendix reference.
crates/common/src/config/mod.rs Retargets default admin port comment from ADR number to appendix reference.
crates/common/src/cli/run.rs Retargets --admin-port help text from ADR number to appendix reference.
crates/common/src/cli/origin.rs Retargets admin-surface ADR citation to the admin appendix.
crates/common/src/cli/node.rs Retargets admin-surface ADR citations in node-subcommand docs to the admin appendix.
crates/common/src/cli/mod.rs Updates CLI about/long_about and command help to reflect current command set and appendix citations.
crates/common/src/admin.rs Retargets admin-wire-types ADR citation to the admin appendix; removes “ADR-025 ordering” phrasing.
crates/cli/tests/admin_rpc.rs Retargets admin surface test-module doc to the admin appendix.
crates/cli/src/main.rs Updates CLI entry-point docs to reflect the current command set and appendix citations.
crates/cli/src/commands/node.rs Retargets node drain docs from ADR number to appendix reference.
crates/cli/src/commands/mod.rs Retargets CLI module docs from ADR number to appendix reference.
crates/cli/src/commands/config.rs Retargets sample config comment from ADR number to appendix reference.
crates/cli/Cargo.toml Updates crates.io description to reflect current CLI command groups.
CLAUDE.md Updates CLI command list, bumps “next ADR” counter, and expands the do-not-reuse ADR number list.
Cargo.toml Retargets admin JSON-RPC dependency comment from ADR number to appendix reference.
adr/README.md Updates the prose list of appendices to match the current appendix set.
adr/appendix-local-admin-http.md Updates the DTO list example to match the current admin DTOs (e.g., StatusResponse).
adr/appendix-binaries.md Updates the admin-command list and removes obsolete region-stats mention.
Review details
  • Files reviewed: 24/24 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread README.md Resolved
The crate-structure line enumerated 6 of 12 commands, omitting fetch,
setup, pool, publish, appeal and whoami -- the same enumeration drift
this branch removes elsewhere. Point at the CLI Surface table instead,
so the command list lives in exactly one place.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Kt6vxCuFjhTgkMfU4Q3WGc
@thiras
thiras merged commit 079c5cc into main Sep 10, 2026
2 checks passed
@thiras
thiras deleted the docs/readme-and-adr-citation-drift branch September 10, 2026 20:44
@github-actions

Copy link
Copy Markdown

Coverage report

Total: 82.67% (was 82.67%, ● 0.00%) — 76425/92448 lines

File Coverage Lines Δ
crates/cli/src/commands/config.rs 87.16% 801/919 ● 0.00%
crates/cli/src/commands/node.rs 77.58% 1111/1432 ● 0.00%
crates/cli/src/main.rs 78.85% 41/52 ● 0.00%
crates/common/src/admin.rs 93.86% 107/114 ● 0.00%
crates/common/src/cli/mod.rs 100.00% 3/3 ● 0.00%
crates/common/src/cli/origin.rs 100.00% 32/32 ● 0.00%
crates/common/src/config/mod.rs 97.13% 7248/7462 ● 0.00%
crates/common/src/config/resolved.rs 100.00% 42/42 ● 0.00%
crates/common/src/config/types.rs 100.00% 18/18 ● 0.00%
crates/node/src/admin.rs 92.70% 1003/1082 ● 0.00%
crates/node/src/metrics.rs 94.66% 886/936 ● 0.00%
crates/node/src/runtime/mod.rs 47.79% 1170/2448 ● 0.00%
History
Commit Total Δ vs base
87f890e (HEAD) 82.67% ● 0.00%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants