Repository navigation
docs: replace planning labels in comments with plain descriptions - #2126
Merged
Merged
Conversation
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]>
…mments-0315e3 # Conflicts: # crates/client/tests/ranged_store_conformance.rs # crates/e2e/tests/peer_store_probeless.rs # crates/node/Cargo.toml
Contracts coverageLine coverage: 90.63% (2399/2647 lines) |
Gas snapshotNo gas changes vs base. |
Coverage reportTotal: 84.05% (was 84.02%, ▲ +0.03%) — 91484/108842 lines
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.FA.2,T1/T4/T6,P4,Task 6–14,#1506 B1/B2/C1/C2/C3,#1621 B2 part 2,B0,HC-1,DECISION-A/B, "Flow A", "C2 fix".run", "Pre-Implement an S3-compatible origin backend (S3/R2/B2/MinIO) as a first-class Origin impl #437-PR1-review…", "the 47.4 MB we shipped before…".#[allow(dead_code)]/#[allow(unused_imports)]innode_origin(backend_source.rs,mod.rs,pull_leg.rs). Their reason was "wired by FA.2/FA.3 orchestration". That wiring already exists (BackendSourceis built inhandlers/client/window.rs), so the allows suppressed no warning. The remainingtoo_many_argumentsallow now has a reason that describes the code.runtime/mod.rssaid the dependency direction iscommon → cache. Neither depends on the other.runtime/mod.rssaid background tasks "stay inrun". They live inspawn_background_tasks.handlers/dht.rsdescribed routing-table population as future PR work. Bootstrap, bucket refresh, and republish already exist.client-pull/src/lib.rscited "D3" as if it were a section of ADR 003. No such section exists.Reviewer notes
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".spike_bitfield_size_known_before_status_size_on_front_partialincrates/cache/src/engine.rskeeps its name. Renaming it is a code change.Verification
cargo fmt --checkandforge fmt --checkpass.cargo clippy --workspace --all-targets --all-features -- -D warningspasses.RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-itemspasses.🤖 Generated with Claude Code