Skip to content

docs(adr): ADR 003 §Capability delegation is cited 17 times but no such section exists #1823

Closed

Description

@yigitdot

Seventeen comments across six crates cite ADR 003 §Capability delegation. adr/003-payments.md has no heading by that name, so every one of those pointers is a dead end for a reader who opens the ADR and searches for it.

The material is all there, spread across three sections:

  • ### Redemption and Close — a signer is registered once, on the first redemption for (poolId, signer), and every later redemption for that signer is voucher-only.
  • ### Revocation — the capability expiry is the only time bound the contract enforces at redemption; a stop-serving signal revokes future service without voiding earned vouchers.
  • ### EIP-712 Voucher Signature, under "Capability type" — the owner-signed struct {signer, spendingCap, poolId, expiry}, node-agnostic, recovered against pool.owner into authorized[poolId][signer].

The ## Decision preamble also defines the capability object and the two delegation tiers, but carries no heading of its own.

Fix

Add a ### Capability delegation section to adr/003-payments.md that cross-links those three sections. Do not move the prose, and do not edit the 17 citation sites — the citations become correct once the heading exists, and re-pointing each one would need a per-site judgment about which of the three it meant.

Citation sites

crates/client-pull/src/lib.rs:163,263, crates/client-pull/src/buyer_pool.rs:98,498, crates/protocol/src/client.rs:285, crates/cli/src/commands/pool.rs:431, crates/incentive/src/lane.rs:47, crates/incentive/src/capability.rs:7, crates/node/src/channel_store.rs:161, crates/node/src/runtime/mod.rs:1268,1330, crates/node/src/handlers/client/voucher.rs:222, crates/node/src/handlers/client/dispatch.rs:317, crates/node/src/handlers/client/mod.rs:814,1296, crates/e2e/tests/anvil_pool_redeem.rs:7, crates/e2e/tests/cli_fetch_delegated.rs:2.

Activity

  1. moved this from Backlog to In progress in deCDNon Aug 25, 2026
  2. added
    kind:docs
    design:consistency
    design:adr
    prio:medium
    on Aug 26, 2026
  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

design:adrdesign:consistencykind:docsprio:medium

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions