Repository navigation
docs: retire stale design-ahead mechanisms and sync doc claims with code - #1849
Merged
Merged
Conversation
…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
There was a problem hiding this comment.
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.mdto 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.
…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
Coverage reportTotal: 82.08% (was 82.08%, ● 0.00%) — 68889/83925 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.
Closes #1845.
Docs/comments only — no behavior changes. Net −6 lines.
Retired mechanisms (spec only, nothing consumes them)
closePoolonly starts the grace window — and the node's actual self-protection (the periodic redeem sweep capped well inside the grace window) is implemented incrates/node/src/payment_settlement.rs. Removed the deferred-monitor paragraph fromdecdn-incentive's crate docs and rewrote the README bullet that still advertised an "in-process dispute monitor + permissionlessdisputeChannelsubmission" (disputeChanneldoes not exist onPaymentPool;test_disputeChannel_removedasserts 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_historyconvention; 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)
multiplexed_poller.rsandruntime/mod.rs;reconcile_routesdoc no longer lists an "origin deferred re-reads" route — origin blacklisting rides the blacklist route.adr/appendix-local-admin-http.md: method table now carries the full shipped surface —admin_v1_{health,status,drain,evict,reload,lanes,slashes}— matching theAdminRpctrait.adr/appendix-binaries.md/appendix-bundles.md:fetch,bundle {create,pull},publish,pool,appeal,setupall ship; nodecdn walletor top-levelpullexists;bundle pullno longer marked deferred, and the manifestsizenote reflects its actual read-side use.adr/architecture.md: added the § Observability section thatappendix-observability.mdcross-references.crates/client-pull/src/probe.rs:node_origincalls this module through theclient_requesterre-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, theBOOTSTRAP_MULTISIGdeploy 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