Skip to content

docs: replace planning labels in comments with plain descriptions - #2126

Merged
alpergundogdu merged 2 commits into
mainfrom
claude/audit-allow-comments-0315e3
Sep 23, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
claude/audit-allow-comments-0315e3

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

What

Comments, docstrings, and a few assertion messages pointed at internal plan and design labels that mean nothing to a cold reader. Each one now says what the code does, in present tense. Plain issue refs like (#1506) stay.

Reviewer notes

  • Only comments, three assertion messages, and lint attributes change. There are no logic changes.
  • Kept on purpose: ADR section refs (ADR 019 § Step 2.3), local sequencing labels inside a function ("Step 1: seed the table", deploy-script "Phase N"), R2/B2 provider names, and phrases like "the core of --no-keep-blobs re-pays for a file duplicated at two bundle paths #1306".
  • The test fn spike_bitfield_size_known_before_status_size_on_front_partial in crates/cache/src/engine.rs keeps its name. Renaming it is a code change.

Verification

  • cargo fmt --check and forge fmt --check pass.
  • cargo clippy --workspace --all-targets --all-features -- -D warnings passes.
  • RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items passes.
  • The full pre-commit hook suite passed.

🤖 Generated with Claude Code

Comments, docstrings, and a few assertion messages referred to internal
plan and design labels (FA.2, T4, Task 7, #1506 C2, #1621 B2 part 2,
DECISION-B, Flow A, "#437 PR2", "PR 4 of #320") and used changelog voice
("this PR fixes", "a future PR", "extracted verbatim from run"). None of
these mean anything to a cold reader. Each now says what the code does,
in present tense; plain issue refs stay.

Drop eight stale #[allow(dead_code)] / #[allow(unused_imports)] in
node_origin: their "wired by FA.2/FA.3 orchestration" reason is long
since true, so the allows only masked nothing. Fix comments that had
drifted from the code (crate dependency direction, where background
tasks live, DHT routing-table population).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 23, 2026 12:51

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

…mments-0315e3

# Conflicts:
#	crates/client/tests/ranged_store_conformance.rs
#	crates/e2e/tests/peer_store_probeless.rs
#	crates/node/Cargo.toml
@github-actions

Copy link
Copy Markdown

Contracts coverage

Line coverage: 90.63% (2399/2647 lines)
▲ +0.00pp vs base (90.63% → 90.63%)
Run: 35863350400

@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@github-actions

Copy link
Copy Markdown

Coverage report

Total: 84.05% (was 84.02%, ▲ +0.03%) — 91484/108842 lines

File Coverage Lines Δ
crates/cache/src/engine.rs 93.47% 5469/5851 ▲ +0.02%
crates/cache/src/origin/s3.rs 89.97% 520/578 ● 0.00%
crates/cache/src/origin_range.rs 86.97% 387/445 ● 0.00%
crates/cli/src/commands/fetch.rs 53.68% 1787/3329 ▼ 0.21%
crates/client/src/coverage_plan.rs 98.54% 471/478 new
crates/client/src/discovery.rs 96.88% 899/928 new
crates/client/src/downloader.rs 94.13% 353/375 new
crates/client/src/endpoint.rs 70.14% 101/144 new
crates/client/src/lib.rs 91.35% 2102/2301 new
crates/client/src/scheduler.rs 94.20% 2208/2344 new
crates/client/src/source.rs 91.50% 463/506 new
crates/client/src/streamer.rs 89.71% 671/748 new
crates/common/src/cli/origin.rs 100.00% 41/41 ● 0.00%
crates/common/src/config/mod.rs 97.19% 7263/7473 ● 0.00%
crates/common/src/config/resolved.rs 100.00% 42/42 ● 0.00%
crates/node/src/buyer_ledgers.rs 100.00% 109/109 ● 0.00%
crates/node/src/handlers/client/fill.rs 74.22% 95/128 ● 0.00%
crates/node/src/handlers/client/serve_leg.rs 73.74% 146/198 ● 0.00%
crates/node/src/handlers/client/window.rs 71.56% 312/436 ● 0.00%
crates/node/src/handlers/dht.rs 77.04% 292/379 ● 0.00%
crates/node/src/node_origin/admit_store.rs 93.53% 217/232 ● 0.00%
crates/node/src/node_origin/backend_source.rs 90.16% 330/366 ● 0.00%
crates/node/src/node_origin/funder.rs 95.02% 229/241 ▲ +0.78%
crates/node/src/node_origin/mod.rs 91.61% 1201/1311 ▲ +0.21%
crates/node/src/node_origin/pull_leg.rs 86.73% 765/882 ▼ 0.37%
crates/node/src/rate_limit.rs 96.74% 297/307 ● 0.00%
crates/node/src/runtime/eviction.rs 85.88% 505/588 ● 0.00%
crates/node/src/runtime/mod.rs 48.32% 1190/2463 ● 0.00%
History
Commit Total Δ vs base
9a301de (HEAD) 84.05% ▲ +0.03%

@alpergundogdu
alpergundogdu merged commit c8db8ad into main Sep 23, 2026
27 checks passed
@alpergundogdu
alpergundogdu deleted the claude/audit-allow-comments-0315e3 branch September 23, 2026 13:05
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