Repository navigation
chore: knock off six low-LOC / doc-only issues (#1555, #1558, #1559, #1563, #1576, #1579) - #1581
Conversation
) The knob only ever existed in ADR 037 and one stale doc comment; range pull-through is ungated in code and the whole-blob fallback already makes every attempt correct, so the toggle bought nothing. Remove the ADR Parameters row, the "MAY disable" sentence, and the dead clause in the cache engine's `Unsupported` doc. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…#1559) Canonical ADRs no longer reference the _history archive (it stays on disk for audit): delink the retired-ADR mentions in 026/028/architecture to inline-code names, drop the "Body archived verbatim" clauses, and add a check-no-history-links guard so they cannot come back. Widen check-anchor-targets to docs/ + root markdown (runbook, CONTRIBUTING, CLAUDE, CHANGELOG, README) by resolving each link relative to its own file's directory, and widen the CI adr changes filter to match. Also drop the changelog-voice amendment note atop ADR 026 — the body already carries the final 10% POL / 19% App Incentives / 15% combined numbers. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…#1558) #1491 replaced per-assignment DAO ratification with one-time publisher vetting + instant assigns, but the glossary Publisher entry and ADR 019's authorized-origins bullet still described the old model. Align both with the vetted-publisher-seats-directly model already stated elsewhere in the same files. Co-Authored-By: Claude Opus 4.8 <[email protected]>
… refactor (#1579) The docs still described BuybackBurner as one flat contract. Add a "Declared on" column to the ADR 003 member table and mark setVault Balancer-only; document the Permit2 approvals footgun in the L2 deployment appendix (with the canonical Permit2 address); and drop references to a nonexistent IBuybackBurner interface across ADR 018 and a stale contract comment — FeeRouter holds buybackBurner as a plain address and never calls a typed method on it, so no interface is warranted. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sweep zero-caller public items and out-of-date `#[allow]`s left behind by landed work: - protocol: delete `StreamRequest::requested_len()` (no callers; serving sites derive the `byte_len == 0` sentinel inline). - gossip: drop `GossipService::spawn`'s `_endpoint` param and its `needless_pass_by_value` allow; the caller no longer clones an endpoint for nothing. - node/admin: remove the never-read `AdminState::signer` field, its `dead_code` allow, and its construction sites (handlers use `voucher_signer`). - node/handlers: drop the stale `dead_code` allow + comment on `ProgressiveSource::LocalOutboard`; it is constructed in the production serve path (`window.rs`) since #1528. - common/config: remove the blanket `#![allow(dead_code)]` in `resolved.rs`; the fields are `pub` and genuinely read, so none is actually dead. - cache: delete the `CacheEngine::stats()` zeros-stub and its `CacheStats` type (no callers; intended gossip consumer never materialized). - node: collapse `probe_client` into the identical `decdn_client_pull::probe::probe_once` (re-exported as `client_requester`); delete the duplicate module. - common/cli: `--publisher-registry-address` is validate-only on the daemon; document it as such (dropping it cascades into the resolver, `ResolvedConfig`, `config validate`, and ~60 test literals). - gossip: verified `RESUBSCRIBE_FAILED_LABEL` is incremented on the resubscribe-failure path; left as-is. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…them (#1576) `clippy::too_many_lines` / `clippy::cognitive_complexity` were suppressed file-wide alongside the standard test allows. Narrow them to function-scoped `#[allow(..., reason = "...")]` on only the long journey functions, matching the #1569 idiom in `slash_appeal.rs` / `g_origin_01`. The standard test allows (`unwrap_used`, `expect_used`, `panic`, `indexing_slicing`, `duration_suboptimal_units`) stay file-level. Narrowing surfaced functions that had quietly grown past the threshold under the file-wide blanket: - cli_fetch_topup.rs: `run_multi_interval_topup` (144) and `run_two_topup_fetch` (162), not just `run`. - anvil_bringup_shutdown_e2e.rs: `build_config` (101, a flat resolved-config struct literal) alongside the drain journey test. Each now carries its own reason. `coop_close_watermark_reconcile.rs`'s `run` is under the threshold, so it needs no scoped allow at all. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Warning Review limit reached
Next review available in: 15 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (38)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
Gas snapshotNo gas changes vs base. |
Contracts coverageLine coverage: 89.80% (2597/2892 lines) |
Coverage reportTotal: 80.19% (was 80.20%, ● 0.00%) — 56458/70404 lines
History
|
There was a problem hiding this comment.
Pull request overview
This PR batches several low-LOC cleanups focused on removing dead code/public surface and bringing ADR/docs hygiene checks and contract/architecture documentation back into sync with current implementation.
Changes:
- Removes unused/dead Rust APIs and plumbing (e.g.,
StreamRequest::requested_len, node-sideprobe_client,CacheEngine::stats/CacheStats, unused parameters/fields). - Tightens clippy lint suppressions in e2e/node journey tests from file-level to function-level
#[allow(..., reason = ...)]. - Updates ADRs and ADR tooling/CI to prevent canonical ADRs from linking into
adr/_history/, and extends anchor checking coverage to docs/ and repo-root markdown.
Reviewed changes
Copilot reviewed 39 out of 39 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| crates/protocol/tests/snapshots/public_api__public_api.snap | Updates public API snapshot after removing unused protocol surface. |
| crates/protocol/src/client.rs | Removes unused StreamRequest::requested_len() helper. |
| crates/node/tests/self_hosted_discovery.rs | Updates test helper and GossipService::spawn call site for signature change. |
| crates/node/tests/probe_warm_reconnect.rs | Switches probe usage to client_requester::probe::probe_once. |
| crates/node/tests/node_origin_pull.rs | Updates imports to use client_requester probe path. |
| crates/node/tests/anvil_settlement_e2e.rs | Narrows clippy allows to the long-journey function scope with reasons. |
| crates/node/tests/anvil_bringup_shutdown_e2e.rs | Narrows clippy allows to specific long functions with reasons. |
| crates/node/src/runtime/mod.rs | Updates runtime wiring for GossipService::spawn and AdminState::new signature changes. |
| crates/node/src/probe_client.rs | Deletes redundant probe client implementation. |
| crates/node/src/node_origin.rs | Uses re-exported client_requester::probe::probe_once instead of deleted module. |
| crates/node/src/lib.rs | Removes probe_client module export. |
| crates/node/src/handlers/client/source.rs | Drops stale dead_code allow on LocalOutboard variant. |
| crates/node/src/admin.rs | Removes unused Ethereum signer field and adjusts AdminState::new signature + tests. |
| crates/gossip/src/service.rs | Removes unused Endpoint param from GossipService::spawn and updates tests. |
| crates/e2e/tests/g_node_06_unbond.rs | Moves clippy suppressions to the run() journey function. |
| crates/e2e/tests/g_gov_03_real_evidence.rs | Moves clippy suppressions to the run() journey function. |
| crates/e2e/tests/g_gov_02_rate_bounds.rs | Moves clippy suppressions to the run() journey function. |
| crates/e2e/tests/coop_close_watermark_reconcile.rs | Removes file-level too_many_lines allow (no longer needed). |
| crates/e2e/tests/cli_fetch_topup.rs | Adds function-scoped too_many_lines allows with reasons for long journeys. |
| crates/e2e/tests/cli_fetch_resume.rs | Adds function-scoped too_many_lines allow with reason. |
| crates/e2e/tests/cli_bundle_pull_channel_id.rs | Adds function-scoped too_many_lines allow with reason. |
| crates/common/src/config/resolved.rs | Removes blanket file-level dead_code allow. |
| crates/common/src/cli/run.rs | Documents publisher_registry_address as validate-only on the daemon. |
| crates/cli/tests/admin_peers.rs | Removes now-unneeded signer helper and updates AdminState::new calls. |
| crates/cache/src/lib.rs | Stops re-exporting removed CacheStats. |
| crates/cache/src/engine.rs | Removes CacheStats stub + CacheEngine::stats() and updates stale doc comment. |
| contracts/src/GuardedBuybackBurner.sol | Updates comment to remove nonexistent IBuybackBurner reference. |
| adr/Makefile | Extends anchor-target checking scope; adds check-no-history-links guard. |
| adr/glossary.md | Updates publisher/origin assignment terminology to vetted-publisher model. |
| adr/architecture.md | Removes canonical links into _history/ while retaining retired-ADR references. |
| adr/appendix-l2-deployment.md | Documents Permit2 and buyback approvals footgun in deployment appendix. |
| adr/037-regional-proxy-warming.md | Removes never-implemented origin_range_pull_enabled knob from ADR text. |
| adr/028-slashing-appeals.md | Removes links into _history/ in canonical ADR references. |
| adr/026-tokenomics.md | Removes _history/ links and drops redundant amendment note. |
| adr/019-node-onboarding.md | Updates origin onboarding language to governance-vetted publisher model. |
| adr/018-liquidity-strategy.md | Removes nonexistent IBuybackBurner references and links to deployment appendix. |
| adr/003-payments.md | Splits BuybackBurner surface by contract layer; documents Permit2 approvals. |
| adr/_build/check-anchor-targets.awk | Resolves link targets relative to the linking file’s directory. |
| .github/workflows/ci.yml | Expands ADR job path filters and runs new check-no-history-links guard. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } else if (!((path "#" frag) in slugs)) { | ||
| print FILENAME ":" FNR ": " target " -> no heading in " file " slugs to #" frag; | ||
| bad = 1; |
Batch of low-LOC / doc-only cleanups. Each commit is one issue; all land as pure documentation or dead-code removal — no behavioral change to shipped paths.
Documentation
23f7b206) — Strike the never-implementedorigin_range_pull_enabledknob. It only ever existed in ADR 037 and one stale cache-engine doc comment; range pull-through is ungated in code and the whole-blob fallback already makes every attempt correct.2005dffc) — Canonical ADRs no longer link into_history(the archive stays on disk for audit): retired-ADR mentions in 026/028/architecture become inline-code names, and a newcheck-no-history-linksguard prevents regressions. The link-gate now also coversdocs/+ root markdown (runbook, CONTRIBUTING, CLAUDE, CHANGELOG, README) — the awk resolves each link relative to its own file's directory — with the CIadrfilter widened to match (43 files / 1659 anchors checked, was 38/1631). Also drops the changelog-voice amendment note atop ADR 026 (the body already carries the final numbers).f6bea039) — Correct residual pre-OriginAssignment: vetted-publisher instant origins (collapse assignment into publisher vetting) #1491 propose/ratify origin-assignment language in the glossary and ADR 019 to the vetted-publisher-seats-directly model.70266bfb) — Sync BuybackBurner docs with the three-layer venue-neutral refactor: a "Declared on" column on the ADR 003 member table (setVault marked Balancer-only), the Permit2 approvals footgun + canonical address documented in the L2 deployment appendix, and all references to the nonexistentIBuybackBurnerinterface removed (FeeRouter holdsbuybackBurneras a plain address and never makes a typed call, so no interface is warranted).Cleanup
3982751f) — Delete dead public surface + stale lint suppressions:StreamRequest::requested_len(),GossipService::spawn's discardedEndpointparam,AdminState::signer,CacheEngine::stats(), theprobe_client.rsduplicate (collapsed ontoclient_requester::probe::probe_once), and staledead_codeallows insource.rs/resolved.rs.--publisher-registry-addressis kept but documented as validate-only (removal cascades into the resolver + ~60 test literals and it serves real env-var parity forconfig validate).RESUBSCRIBE_FAILED_LABELverified wired.b9c1a9e2) — Narrow the file-leveltoo_many_lines/cognitive_complexityallows in e2e/node tests to function-scoped#[allow(..., reason = ...)]on the long-journey functions only, matching the ci(clippy): lint the anvil-e2e-gated targets and fix their violations #1569 form. This surfaced (and scoped) a few other over-threshold functions, and dropped one unneeded file-level allow.Verification
cargo build && cargo clippy --all-targetsclean;cargo fmt --checkclean;cargo nextest rungreen across changed crates.cargo test --no-run -p decdn-e2e --features anvil-e2eand the node variant both compile.make -C adr check-refspasses (incl. the newcheck-no-history-links).Closes #1555, #1558, #1559, #1563, #1576, #1579.
🤖 Generated with Claude Code