Skip to content

docs: retire stale design-ahead mechanisms and sync doc claims with code - #1849

Merged
alpergundogdu merged 3 commits into
mainfrom
claude/stale-adrs-review-ltbxtt
Aug 26, 2026
Merged

alpergundogdu merged 3 commits into
mainfrom
claude/stale-adrs-review-ltbxtt

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Closes #1845.

Docs/comments only — no behavior changes. Net −6 lines.

Retired mechanisms (spec only, nothing consumes them)

  • PublisherRebateRouter (ADR 026). The speculative future-contract note and its Deferred & Open item are gone. The rebate program itself is unchanged: Treasury-multisig-administered, no on-chain contract.
  • Stale-close defense (Implement cdn/watchtower/v1 channel dispute monitoring protocol #324, already closed not-planned). The shared pool has no stale-close vector — redemption is provider-only, an owner's closePool only starts the grace window — and the node's actual self-protection (the periodic redeem sweep capped well inside the grace window) is implemented in crates/node/src/payment_settlement.rs. Removed the deferred-monitor paragraph from decdn-incentive's crate docs and rewrote the README bullet that still advertised an "in-process dispute monitor + permissionless disputeChannel submission" (disputeChannel does not exist on PaymentPool; test_disputeChannel_removed asserts exactly that).
  • adr/appendix-fraud-detection.md → adr/_history/. The settlement-analysis appendix specified no protocol surface — no wire interface, registration, or economics — and its load-bearing content (no stale-close vector, redeem-before-reclaim) lives in ADR 003. Retired whole per the _history convention; all eight inbound references (ADRs 003/005/009/016, adr/README.md, adr/architecture.md, the book Makefile, the part-9 divider) repointed or reworded in place.

#1845 items (doc claims synced with the code)

  1. Watcher counts: six routes over four contracts (capacity-bond, slash, settlement, blacklist, rate-bounds, fee-shares) in multiplexed_poller.rs and runtime/mod.rs; reconcile_routes doc no longer lists an "origin deferred re-reads" route — origin blacklisting rides the blacklist route.
  2. adr/appendix-local-admin-http.md: method table now carries the full shipped surface — admin_v1_{health,status,drain,evict,reload,lanes,slashes} — matching the AdminRpc trait.
  3. adr/appendix-binaries.md / appendix-bundles.md: fetch, bundle {create,pull}, publish, pool, appeal, setup all ship; no decdn wallet or top-level pull exists; bundle pull no longer marked deferred, and the manifest size note reflects its actual read-side use.
  4. adr/architecture.md: added the § Observability section that appendix-observability.md cross-references.
  5. crates/client-pull/src/probe.rs: node_origin calls this module through the client_requester re-export; the stale "node-side copy" claim is gone.

Kept, deliberately

From the same design-ahead review: the ADR 009 multisig→Governor transition stays (it has code — TransitionToGovernor.s.sol, the BOOTSTRAP_MULTISIG deploy wiring — and is the exit door from the bootstrap phase), and ADR 013's Tier 3 stays (a load-bearing classification; migration mechanics are already explicitly deferred to a focused ADR). ADR 024's session-key Production plan stays for now pending the reality/feasibility check filed as #1848.

Verification

  • make -C adr check-refs check-book-list — all anchors resolve, no canonical links into _history, book list in sync (26 ADRs + 8 appendices).
  • cargo check -p decdn-incentive -p decdn-client-pull -p decdn-node — clean.
  • cargo fmt -- --check — clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_019MaXQDaxVBHxVTMoUS3vuQ


Generated by Claude Code

…ode (#1845)

Retire two spec-only mechanisms nothing consumes:

- PublisherRebateRouter (ADR 026): drop the speculative future-contract
  note and its Deferred & Open item; the rebate program itself stays
  Treasury-multisig-administered.
- Stale-close defense: the shared pool has no stale-close vector
  (redemption is provider-only) and the node's self-protection — the
  periodic redeem sweep inside the close grace window — is implemented
  in the runtime. Remove the deferred-monitor paragraph from
  decdn-incentive's crate docs and rewrite the README bullet that still
  advertised a dispute monitor and the removed disputeChannel entry
  point. Retire the settlement-analysis appendix to adr/_history/ — it
  specified no protocol surface and its load-bearing content lives in
  ADR 003 — and repoint its inbound references.

Sync doc statements with the code:

- Six watcher routes over four contracts on the multiplexed poller
  (capacity-bond, slash, settlement, blacklist, rate-bounds,
  fee-shares); origin blacklisting rides the blacklist route.
- adr/appendix-local-admin-http.md: full admin_v1 method set
  (health, status, drain, evict, reload, lanes, slashes).
- adr/appendix-binaries.md / appendix-bundles.md: fetch, bundle
  {create,pull}, publish, pool, appeal, setup all ship; no decdn
  wallet or top-level pull command exists.
- adr/architecture.md: add the § Observability section that
  appendix-observability.md cross-references.
- crates/client-pull/src/probe.rs: node_origin calls this module via
  the client_requester re-export.

Closes #1845

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019MaXQDaxVBHxVTMoUS3vuQ
markdownlint MD032/MD022: dropping the settlement-analysis entry took the
blank line between the appendix list and the next heading with it.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019MaXQDaxVBHxVTMoUS3vuQ

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.

Pull request overview

This PR updates documentation and comments to retire stale “design-ahead” mechanisms and synchronize ADR/README claims with the current Rust implementation (notably watcher route counts, admin RPC surface, bundle commands, and observability cross-references), closing #1845.

Changes:

  • Retires the settlement-analysis appendix by moving it to adr/_history/ and removing canonical references/book inclusion.
  • Syncs multiple ADRs/README/comments to match shipped surfaces (watcher route counts, admin RPC methods, CLI/bundle commands, and probe module usage).
  • Adds an Observability section to adr/architecture.md to satisfy an existing cross-reference from the observability appendix.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Updates the high-level “stale-close defense” bullet to reflect the current settlement model and node behavior.
crates/node/src/runtime/mod.rs Updates watcher-count comments to “six routes” language in runtime bring-up/shutdown commentary.
crates/node/src/chain_events/multiplexed_poller.rs Updates module docs and reconcile_routes docstring to reflect current route set.
crates/incentive/src/lib.rs Removes stale-close defense paragraph that described deferred/non-existent monitoring.
crates/client-pull/src/probe.rs Fixes stale comment about node calling a “node-side copy” instead of this module.
adr/README.md Removes the fraud-detection appendix from the examples list.
adr/Makefile Removes the fraud-detection appendix from the ADR book sources list.
adr/architecture.md Removes the fraud-detection appendix from the appendices list and adds a new “Observability” section.
adr/appendix-local-admin-http.md Updates the method table to match the shipped AdminRpc surface.
adr/appendix-bundles.md Updates status text and clarifies size read-side behavior for bundle pull.
adr/appendix-binaries.md Updates shipped/deferred CLI command listings to reflect what exists today.
adr/026-tokenomics.md Removes speculative future PublisherRebateRouter mechanism and its deferred item.
adr/016-contract-interactions.md Removes reference to the retired appendix in the settlement correlation text.
adr/009-governance.md Removes reference to the retired appendix in grace-window rationale.
adr/005-protocol.md Removes reference to the retired appendix for settlement monitoring.
adr/003-payments.md Removes reference to the retired appendix while keeping the “events are publicly observable” claim.
adr/_history/appendix-fraud-detection.md Moves the appendix under _history/ with a retirement notice.
adr/_build/part-9-appendices.md Updates appendix section prose to remove the fraud-detection layer mention.

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

Comment thread adr/architecture.md Resolved
Comment thread crates/node/src/runtime/mod.rs Resolved
…lary

The multiplexed poller drives six routes only when the startup
feeRouter() read succeeds — the fee-shares route is otherwise absent —
so the absolute "all six" claims become "registered routes" with the
condition stated once. The architecture § Observability list names
informal vocabulary the canonical registry maps to exported series
(probe_hold_violations → decdn_probe_hold_unavailable_total, some
series planned), so it now says that instead of implying every name is
an exported series.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019MaXQDaxVBHxVTMoUS3vuQ
@alpergundogdu
alpergundogdu merged commit e159b3d into main Aug 26, 2026
24 checks passed
@alpergundogdu
alpergundogdu deleted the claude/stale-adrs-review-ltbxtt branch August 26, 2026 22:19
@github-actions

Copy link
Copy Markdown

Coverage report

Total: 82.08% (was 82.08%, ● 0.00%) — 68889/83925 lines

File Coverage Lines Δ
crates/client-pull/src/probe.rs 92.07% 151/164 ● 0.00%
crates/node/src/chain_events/multiplexed_poller.rs 90.07% 1197/1329 ● 0.00%
crates/node/src/runtime/mod.rs 47.82% 1154/2413 ● 0.00%
History
Commit Total Δ vs base
30b5d2e (HEAD) 82.08% ● 0.00%

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.

Stale docs: watcher counts, admin-HTTP appendix, binaries/bundles deferred lists, missing architecture § Observability

3 participants