Repository navigation
docs: sync README with the tree and retarget dangling ADR citations - #1983
Conversation
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
There was a problem hiding this comment.
🟡 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.mdwith 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.
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
Coverage reportTotal: 82.67% (was 82.67%, ● 0.00%) — 76425/92448 lines
History
|
Why
README.mdhad 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
iroh-gossipwire protocol +gossip/crateNodeAnnounceincrates/, zero "gossip" inadr/bao-range,client-pull,e2ewere missingnode peers,node announce,bundle createrate_per_mb × rtt_msselectionrate_per_mb × rtt_ms × (1 / max(reputation, 0.1)²)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.mdandadr/appendix-observability.md.CLAUDE.mdgains 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-statsremoved fromCLAUDE.md, the binaries appendix, and the admin appendix's DTO list. It exists nowhere in the code.crates/cli/Cargo.tomldescription, which ships to crates.io, covered 4 of 12 commands.bundleinverted ("build and eventually fetch" when only fetch exists), claimed apublishvetting step thatpublish.rs's own module doc calls impossible, and omittedpool 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--helpagainst 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
docs/runbook.md:672-710still has a "Gossip / peer table degraded" section alerting on a metric nothing emits.adr/012-client.md:34still describes the probe-broadcast bootstrap fallback, likely the source of the README error above.adr/appendix-local-admin-http.md:44,49carries roadmap voice against the present-tense rule. This file now backs 21 citations.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kt6vxCuFjhTgkMfU4Q3WGc