Skip to content

docs: fix README claims and retire the pre-launch narrative - #2400

Merged
thiras merged 2 commits into
mainfrom
docs/readme-review-fixes
Oct 9, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/readme-review-fixes

Conversation

@thiras

@thiras thiras commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

What

A review of README.md against the code and ADRs, plus a sweep of the stale "pre-launch / nothing is deployed" narrative now that the public Arbitrum Sepolia testnet exists.

README

  • fetch <hash> (docker example) → fetch --hash <hash> -o blob.bin; node bond --dry-run → node bond --mbps <n> --dry-run (both failed at parse time). Same fix in the Dockerfile comment.
  • Cache-miss bullet and fetch paragraph: node-to-node pull-through is off by default, so a miss fills from the node's own origin if it has one, otherwise not-found, and fetch moves to the next node.
  • minBond covers ≈997 Mbps at the default curve (1,000 Mbps needs ≈50,162 TOKEN); the curve is super-linear only at the default exponent.
  • Design table: Ed25519 NodeId also signs the registration proof; a slash zeroes vote weight only inside the trailing window; dropped "a bond only makes an operator eligible" (see notes).
  • common/ crate description, decdn-node global --config + DECDN_* env, publish subcommands named, diagram adds close · reclaim and fs.
  • Install moves ahead of Try it, with Build from source under it.

Pre-launch narrative → pre-mainnet

  • All 10 crate READMEs' status line, ADRs 003/005/013/026, appendix-local-admin-http.md (whose "first public deployment" rule was literally in force on the testnet), adr/README.md, CLAUDE.md, cliff.toml, the spec-discipline skill reference, and code comments.
  • channel_store.rs: the unversioned lane-layout break now states its effect on a testnet node (open fails with StoreError::Corrupt; recovery moves lanes.redb aside and forfeits that lane's unredeemed claim).

Also

  • Runbook: the node-to-node pulls section says what the setting gates (pool open and spend) and what still runs with it off (startup approve, wallet gauge, reclaim sweep).
  • runtime/mod.rs: two comments named a buyer_channel_state_v2 table and openChannel/reclaimExpired; now the current names.

Reviewer notes

  • Docs and comments only; no code or behavior change.
  • Left on purpose: CHANGELOG.md and adr/_history/ (history), alternatives-pre-launch.md filename, ADR 022's "from the first deployment" (a design fact), Token.sol's "before launch".
  • ADR 036 says a bond gates voting eligibility, but DecdnGovernor._getVotes only checks firstBondedAt != 0, so an unbonded operator keeps voting on in-window bytes. The README no longer asserts either side; the ADR/contract mismatch needs its own decision.
  • More stale channel vocabulary (openChannel, reclaimExpired) remains in runtime/mod.rs:1434,1647-1650, selection.rs:93-98, metrics.rs:881,2567-2572 — separate cleanup.
  • The crate READMEs ship to crates.io with the next release; at mainnet all ten status lines change together.

Verification

  • pre-commit run --files <changed>: all hooks pass (markdownlint, cargo fmt, cargo clippy, cargo doc with link check, ADR reference hygiene).
  • All relative links and anchors in README.md resolve (scripted check).
  • cargo nextest run not run: comment-only Rust changes.

🤖 Generated with Claude Code

Correct README examples that fail as written (`fetch` needs `--hash` and
`-o`; `node bond --dry-run` needs `--mbps`) and claims that overstate the
default cache-miss path: node-to-node pull-through is off by default, so a
miss fills from the node's own origin or answers not-found, and `fetch`
moves on to the next node. Tighten the bond, NodeId and vote-weight wording
to what ADRs 014, 026 and 036 and the contracts say. Move Install ahead of
Try it.

The public Arbitrum Sepolia testnet is a deployment, so "pre-launch / no
network is deployed / first deployment" reads false. State the milestone as
mainnet across the crate READMEs, ADRs 003/005/013/026, the admin-HTTP
appendix, CLAUDE.md, cliff.toml and code comments. The lane-store comment
now says what an unversioned layout break does to a testnet node.

Also fix the runbook's pull-through note, the Dockerfile `fetch` example,
and stale table/function names in two runtime comments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 9, 2026 16:28
@thiras thiras self-assigned this Oct 9, 2026

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

The runbook must disclose that the default startup approval is conditional and unlimited.

1 open finding
What changed in this PR

Updates documentation to reflect the public Arbitrum Sepolia testnet and align examples and terminology with current behavior.

Changes:

  • Corrects CLI examples, cache-miss behavior, tokenomics, and architecture claims.
  • Replaces obsolete pre-launch language with pre-mainnet policy.
  • Updates payment-pool terminology and operational guidance.
File Description
README.md Corrects setup, commands, architecture, and protocol behavior.
docs/​runbook.md Documents pull-through-disabled buyer behavior.
Dockerfile Fixes the container fetch example.
crates/​reputation/​README.md Updates testnet status.
crates/​protocol/​README.md Updates testnet status.
crates/​node/​src/​runtime/​mod.rs Updates pool and table terminology.
crates/​node/​src/​channel_store.rs Documents pre-mainnet storage compatibility consequences.
crates/​node/​README.md Updates testnet status.
crates/​incentive/​README.md Updates testnet status.
crates/​config-types/​README.md Updates testnet status.
crates/​common/​README.md Updates testnet status.
crates/​client/​README.md Updates testnet status.
crates/​cli/​tests/​admin_rpc.rs Updates compatibility-policy wording.
crates/​cli/​README.md Updates testnet status.
crates/​cache/​README.md Updates testnet status.
crates/​bao-range/​README.md Updates testnet status.
cliff.toml Updates release-policy terminology.
CLAUDE.md Defines the pre-mainnet compatibility policy.
adr/​README.md Updates canonical-design terminology.
adr/​appendix-local-admin-http.md Moves API compatibility guarantees to mainnet.
adr/​026-tokenomics.md Updates testnet and pre-mainnet language.
adr/​013-schema-evolution.md Clarifies pre-mainnet wire-breaking policy.
adr/​005-protocol.md Updates wire-evolution terminology.
adr/​003-payments.md Updates signed-field compatibility terminology.
.claude/​skills/​decdn-spec-discipline/​references/​decdn-precedents.md Updates precedent terminology.

🧠 Review effort: Balanced


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

Comment thread docs/runbook.md Resolved
The startup approve runs only with blockchain.buyer_max_approve (default
true), grants an unlimited allowance, and is skipped when the allowance is
already that high. Say so, and that the authorization stands with
pull-through off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-code-quality

Copy link
Copy Markdown

Code Coverage Overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

The overall line coverage in commit fb2abd0 in the docs/readme-review-f... branch remains at 75%, unchanged from commit 143821c in the main branch.

Show a line coverage summary of the most impacted files.
File main 143821c docs/readme-review-f... fb2abd0 +/-
crates/node/src...s/client/mod.rs 89% 90% +1%

@thiras
thiras merged commit dcb30ce into main Oct 9, 2026
32 checks passed
@thiras
thiras deleted the docs/readme-review-fixes branch October 9, 2026 16:45
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