Skip to content

docs(adr-003): drop the stale capability renewal wording - #2374

Merged
yigitdot merged 2 commits into
mainfrom
claude/adr-003-capability-renewal-465d7c
Oct 9, 2026
Merged

yigitdot merged 2 commits into
mainfrom
claude/adr-003-capability-renewal-465d7c

Conversation

@yigitdot

@yigitdot yigitdot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2373.

ADR 003 § Capability delegation said the expiry retires a key "when the owner does not renew it", but the next paragraph states the write-once rule: the protocol has no capability renewal.

  • ADR 003 § Capability delegation: the expiry retires the key. The new-key rule stays in one place, the write-once paragraph.
  • ADR 003 § Revocation and § Attack Vectors: drop "plus non-renewal". The expiry retires the key, and write-once registration stops any later capability from extending it. Both link to § Capability delegation.
  • ADR 005 SpendingCapExhausted row: "until the cap rises" becomes "until a fresh capability arrives", matching the CapabilityExpired row.
  • decdn fetch --capability help text and a test doc comment: a re-issued higher-cap capability does nothing for a registered key, so the remedy is a capability for a new signer key.

Docs and doc comments only. The pre-commit gate passes, including markdownlint, ADR reference hygiene, clippy and cargo doc.

🤖 Generated with Claude Code

Capability registration is write-once per (poolId, signer), so the
protocol has no renewal. Reword the expiry line in Capability delegation
and point the Revocation and Attack Vectors bullets at the write-once rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 9, 2026 01:19

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Drop the line in Capability delegation that repeated the new-key rule.
Split the Revocation and Attack Vectors sentences so expiry retires the
key and write-once registration stops any later capability extending it.
Align the ADR 005 SpendingCapExhausted row, the --capability help text,
and a test doc comment: a registered signer's cap never rises, so the
remedy is a capability for a new signer key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-code-quality

Copy link
Copy Markdown

Code Coverage Overview

Languages: Rust

Rust / code-coverage/cargo-llvm-cov

The overall line coverage in commit 8aebfb0 in the claude/adr-003-capab... branch remains at 74%, unchanged from commit cdd1db5 in the main branch.

Show a line coverage summary of the most impacted files.
File main cdd1db5 claude/adr-003-capab... 8aebfb0 +/-
crates/node/src/dht/publish.rs 80% 78% -2%
crates/client/src/lib.rs 89% 89% 0%
crates/client/src/scheduler.rs 93% 93% 0%
crates/cache/src/engine.rs 91% 91% 0%
crates/protocol/src/framing.rs 93% 93% 0%
crates/client/src/streamer.rs 84% 85% +1%
crates/client/src/sink.rs 93% 95% +2%

@yigitdot
yigitdot merged commit 94844ae into main Oct 9, 2026
30 checks passed
@yigitdot
yigitdot deleted the claude/adr-003-capability-renewal-465d7c branch October 9, 2026 02:27
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.

docs(adr-003): drop the stale capability renewal wording in capability delegation

2 participants