Skip to content

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

Closed

Description

@alpergundogdu

Doc statements that no longer match the code, found during the mechanism inventory sweep. All are comment/ADR edits, no behavior changes:

  1. "Five watchers" is now six. crates/node/src/chain_events/multiplexed_poller.rs:7-8,52 and crates/node/src/runtime/mod.rs:846-847 say five watchers over three contracts; there are six routes (capacity-bond, slash, settlement, blacklist, rate-bounds, fee-shares) across four contracts (runtime/mod.rs:1420-1422 has the correct count). multiplexed_poller.rs:507 (reconcile_routes doc) still describes an "origin deferred re-reads" route that no longer exists as its own route — origin blacklisting rides the blacklist route.

  2. adr/appendix-local-admin-http.md is behind the code. It lists only admin_v1_health as shipped; the daemon implements admin_v1_{health,status,drain,evict,reload,lanes,slashes}.

  3. adr/appendix-binaries.md deferred-command list is stale both ways. pull, bundle, fetch, publish, and pool all ship (crates/cli/src/commands/); decdn wallet does not exist. Similarly adr/appendix-bundles.md still marks bundle pull deferred, but crates/cli/src/commands/bundle_pull.rs and crates/e2e/tests/cli_bundle_pull_*.rs exist.

  4. adr/architecture.md has no § Observability, but adr/appendix-observability.md cross-references architecture.md § Observability. Either add the section or fix the reference.

  5. crates/client-pull/src/probe.rs:8 claims the node "currently calls the node-side copy of this function rather than this module (reputation: outbound report capture + selection-consumes-reputation (gated on node-to-node pull-through orchestration) #831)" — stale: crates/node/src/node_origin/mod.rs:90,1436 call this module via the client_requester re-export.

Per CLAUDE.md canon these should be fixed in present tense (no changelog voice).

Activity

  1. moved this from Backlog to In progress in deCDNon Aug 26, 2026
  2. alpergundogdu commented on Aug 26, 2026

    @alpergundogdu
    ContributorAuthor

    #1849 fixes the five items here, and folds in the approved outcome of the design-ahead ADR review (spec-only mechanisms with no code behind them):

    Retired in #1849

    • ADR 026 PublisherRebateRouter — a speculative post-launch contract nothing references; the Treasury-multisig rebate program is unchanged.
    • Stale-close defense (Implement cdn/watchtower/v1 channel dispute monitoring protocol #324) — the vector doesn't exist under the shared pool (redemption is provider-only; closePool only starts the grace window), and the real self-protection — the periodic redeem sweep inside the grace window — is already implemented in payment_settlement.rs. The deferred-monitor paragraph in decdn-incentive and the README's disputeChannel bullet were describing a mechanism that was never going to be built.
    • adr/appendix-fraud-detection.md — retired whole to adr/_history/. It specified no protocol surface (no wire interface, registration, or economics), and everything load-bearing in it lives in ADR 003. Public events stay analyzable by anyone; a role description for doing so isn't a design artifact.

    Kept, deliberately

    • ADR 009 multisig→Governor transition — not spec-only: TransitionToGovernor.s.sol and the BOOTSTRAP_MULTISIG deploy wiring exist and are tested. "Unexecuted" just means not deployed, which is true of everything. Deleting it either makes the bootstrap multisig permanent (violating ADR 009's own no-standing-veto invariant) or seats the Governor at genesis over a thin, capture-prone operator set.
    • ADR 013 Tier 3 — a ~12-line classification of which wire changes force an ALPN bump; the signed-field-freezing rule hangs off it. Migration mechanics are already explicitly deferred to a focused ADR written when a concrete break exists — that's the no-design-ahead posture, not a violation of it.
    • ADR 024 session keys / ADR 012 production key custody — stays for now, but it's the weakest survivor: ADR 003's capability delegation (docs(adr): give ADR 003 a Capability delegation section #1824) supersedes the client-side motivation, leaving only the Safe-addressed-operator slash_sig residual, and the smartsessions plan was never feasibility-checked. Filed as ADR 024 session keys: reality check and feasibility review #1848 with the concrete questions and the retirement blast radius if the answer is "drop it".
    • Range-addressed DHT discovery — the "deferred" notes in ADRs 037/038/039 stand as-is for now; they document a real scale-relevant limitation and ADR 037 carries the drop-case argument (RTT-routed warming).

    Generated by Claude Code

  3. moved this from In progress to Done in deCDNon Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions