Repository navigation
docs: sync protocol docs with current ADRs - #147
Conversation
The ADRs in decdn/decdn were heavily revised (payments, governance, slashing/appeals) after these pages were last touched, leaving several public-facing claims stale. Align the docs with the authoritative ADRs: - payments: vouchers are cumulative nonce-ordered (not "highest-value supersedes"); document the 3-step close + disputeChannel + withdraw lifecycle and the 48h default dispute window (ADR 003) - governance: immutable, non-extendable emergency-multisig sunset; correct safety-bounds table (drop invented min-stake/slash-% rows); 7-day voting period; add the 5-of-9 bootstrap-multisig launch phase (ADR 009/036) - slashing: keep synchronous adjudication (correct per ADR 014) but add escrow-on-slash + the 30-day operator appeal, and the 50/50 challenger/burn split paid at finality (ADR 028) - architecture/participants/glossary/introduction: capacity-bond model (no flat minimum stake), DAO-governed origin role - privacy: four mitigations, not five Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Deploying website with
|
| Latest commit: |
fb912a6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d188f5af.website-70y.pages.dev |
| Branch Preview URL: | https://docs-sync-with-adrs.website-70y.pages.dev |
There was a problem hiding this comment.
Code Review
This pull request updates the deCDN protocol documentation to reflect a terminology migration from "staking" to "bonding" and adds detailed specifications for capacity bonds, DAO-governed origin backends, the bootstrap multisig launch phase, payment channel lifecycles, and post-slash operator appeals. The review feedback identifies several remaining instances of the term "stake" (such as "minimum stake", "stake reduction", and "escrowed stake") that should be updated to "bond" or "bond reduction" to maintain consistency with the new terminology guidelines.
| - No external origin URL exists — content enters the network through origin-backed nodes whose backends are hidden. | ||
| - A node cannot earn without delivering verifiable bytes — hash mismatch voids payment. | ||
| - A node cannot join the mesh without staking — registration enforces a minimum stake before accepting the call. | ||
| - A node cannot join the mesh without bonding — registration enforces a capacity bond (`bond = k × Mbps^α`) scaled to declared bandwidth, not a flat minimum stake. |
There was a problem hiding this comment.
According to the project's terminology migration guidelines, 'stake' should be replaced with 'bond' when used as a technical protocol noun or verb. Please update 'minimum stake' to 'minimum bond' in this sentence.
References
- When migrating terminology from 'staking' to 'bonding' in documentation, preserve 'stake' when used in idiomatic expressions rather than as a technical protocol verb or noun.
| | Term | Definition | | ||
| | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| | **Blob** | A content-addressed byte sequence. Every blob is identified by its hash; clients verify received bytes against the known hash. | | ||
| | **Bond (capacity)** | TOKEN locked in `CapacityBond` proportional to a node's declared bandwidth (`bond = k × Mbps^α`) — the only TOKEN-side requirement to join the mesh; there is no flat minimum stake. Returned on deregistration after an unbonding period. | |
There was a problem hiding this comment.
According to the project's terminology migration guidelines, 'stake' should be replaced with 'bond' when used as a technical protocol noun or verb. Please update 'minimum stake' to 'minimum bond' in this glossary definition.
References
- When migrating terminology from 'staking' to 'bonding' in documentation, preserve 'stake' when used in idiomatic expressions rather than as a technical protocol verb or noun.
|
|
||
| - **Identity.** A network keypair bound on-chain to an Ethereum address at registration ([network](/protocol/network)). | ||
| - **Stake.** Required to join the mesh. | ||
| - **Bond.** A capacity bond in TOKEN, scaled to declared bandwidth (`bond = k × Mbps^α`) — the only TOKEN-side requirement to join the mesh; there is no flat minimum stake. |
There was a problem hiding this comment.
According to the project's terminology migration guidelines, 'stake' should be replaced with 'bond' when used as a technical protocol noun or verb. Please update 'minimum stake' to 'minimum bond' in this participant description.
References
- When migrating terminology from 'staking' to 'bonding' in documentation, preserve 'stake' when used in idiomatic expressions rather than as a technical protocol verb or noun.
| 3. **Blacklist violation** — served a blacklisted hash after the compliance window. | ||
|
|
||
| A unified on-chain judge adjudicates all three synchronously and triggers stake slashing immediately upon verification. | ||
| A unified on-chain judge adjudicates all three synchronously and triggers the stake reduction immediately upon verification — there is no in-protocol counter-evidence window, because each offense rests on cryptographically dispositive signed evidence. The reduced stake is then held in escrow pending a post-slash appeal (below), not distributed on the spot. |
There was a problem hiding this comment.
According to the project's terminology migration guidelines, 'stake' should be replaced with 'bond' when used as a technical protocol noun or verb. Please update 'stake reduction' and 'reduced stake' to 'bond reduction' and 'reduced bond' respectively.
A unified on-chain judge adjudicates all three synchronously and triggers the bond reduction immediately upon verification — there is no in-protocol counter-evidence window, because each offense rests on cryptographically dispositive signed evidence. The reduced bond is then held in escrow pending a post-slash appeal (below), not distributed on the spot.
References
- When migrating terminology from 'staking' to 'bonding' in documentation, preserve 'stake' when used in idiomatic expressions rather than as a technical protocol verb or noun.
|
|
||
| ## Escrow and appeals | ||
|
|
||
| The stake reduction is immediate, but the slashed TOKEN sits in `CapacityBond` escrow rather than being paid out at slash time. The slashed **operator** — and only the operator — may file an **operational-failure appeal** within **30 days** (e.g. a genuine network outage, NTP drift, or hosting incident prevented compliance), posting a TOKEN appeal bond. The emergency multisig fast-tracks or rejects within a fixed window; the Governor then grants or upholds. A **granted** appeal refunds the full escrowed stake to the operator; a **failed** appeal distributes the escrow like an unappealed slash. The lifetime offense counter is unchanged either way — an appeal restitutes capital, not standing. |
There was a problem hiding this comment.
According to the project's terminology migration guidelines, 'stake' should be replaced with 'bond' when used as a technical protocol noun or verb. Please update 'stake reduction' and 'escrowed stake' to 'bond reduction' and 'escrowed bond' respectively in this section.
References
- When migrating terminology from 'staking' to 'bonding' in documentation, preserve 'stake' when used in idiomatic expressions rather than as a technical protocol verb or noun.
| ## Challenger incentives | ||
|
|
||
| Submitting evidence requires a bond. The bond is forfeited if the challenge fails (griefing protection). On a successful challenge a portion of the slashed stake is paid to the challenger; the remainder is burned. | ||
| Submitting evidence requires a **100 TOKEN** bond. A challenge that fails on-chain verification simply reverts — the challenger only loses gas, and the bond is not transferred. A challenge that passes always slashes the node and the bond is returned. At finality (≤ 30 days with no appeal, later if one is filed) the escrowed stake is split **50% to the challenger / 50% burned**, unless the operator's appeal is granted, in which case the operator is refunded and no challenger reward is paid. |
There was a problem hiding this comment.
According to the project's terminology migration guidelines, 'stake' should be replaced with 'bond' when used as a technical protocol noun or verb. Please update 'escrowed stake' to 'escrowed bond' in this challenger incentives description.
Submitting evidence requires a **100 TOKEN** bond. A challenge that fails on-chain verification simply reverts — the challenger only loses gas, and the bond is not transferred. A challenge that passes always slashes the node and the bond is returned. At finality (≤ 30 days with no appeal, later if one is filed) the escrowed bond is split **50% to the challenger / 50% burned**, unless the operator's appeal is granted, in which case the operator is refunded and no challenger reward is paid.
References
- When migrating terminology from 'staking' to 'bonding' in documentation, preserve 'stake' when used in idiomatic expressions rather than as a technical protocol verb or noun.
There was a problem hiding this comment.
Pull request overview
Aligns several docs/ protocol pages with the current ADR set (003 payments, 009 governance, 014 slashing, 028 appeals, 036 voting weight) and propagates the capacity-bond terminology change across overview pages. No code/runtime behavior is affected; this is documentation-only.
Changes:
- Payments: cumulative nonce-ordered vouchers; documented
closeChannel → disputeChannel → settleChannellifecycle,withdraw, and 48 h (12–72 h) dispute window. - Governance: immutable, non-extendable 12-month emergency-multisig sunset; new 5-of-9 bootstrap-multisig launch phase; revised safety-bounds table; 7-day voting period plus 1-day delay; corrected proposal-flow narrative.
- Slashing: added escrow-on-slash + 30-day operator appeal with 50/50 challenger/burn split at finality; corrected 100 TOKEN challenger bond (failed challenge reverts).
- Overview pages: switched from "stake" to capacity-bond (
bond = k × Mbps^α); architecture now describes origin recognition as DAO-governed; privacy mitigation count corrected to four.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| docs/protocol/slashing.mdx | Adds escrow + 30-day appeal flow; fixes challenger-bond mechanics. |
| docs/protocol/privacy.mdx | Mitigation count corrected from "Five" to "Four" to match the four listed items. |
| docs/protocol/payments.mdx | Updates voucher semantics (cumulative + nonce) and close/dispute/settle lifecycle, dispute-window bounds. |
| docs/protocol/governance.mdx | Immutable sunset, bootstrap multisig, revised safety bounds, 7-day voting period. |
| docs/overview/participants.mdx | Stake → bond terminology and table relabeling. |
| docs/overview/introduction.mdx | "Staked and slashable" → "Bonded and slashable" with capacity-bond wording. |
| docs/overview/glossary.mdx | Replaces Stake entry with Bond (capacity); updates Node/Channel/TOKEN/Peer-mesh wording. |
| docs/overview/architecture.mdx | Role table and invariants restated with bond model; adds DAO-recognized origin invariant. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -61,9 +61,10 @@ See [Participants](/overview/participants) for a deeper breakdown per role. | |||
|
|
|||
| - No external origin URL exists — content enters the network through origin-backed nodes whose backends are hidden. | |||
| - A node cannot earn without delivering verifiable bytes — hash mismatch voids payment. | |||
| - A node cannot join the mesh without staking — registration enforces a minimum stake before accepting the call. | |||
| - A node cannot join the mesh without bonding — registration enforces a capacity bond (`bond = k × Mbps^α`) scaled to declared bandwidth, not a flat minimum stake. | |||
| - A node cannot register an identity it does not control — both keys must sign at registration. | |||
| - Safety bounds on all governable parameters are hardcoded — governance cannot set fees to 100% or stake to zero. | |||
| - Safety bounds on all governable parameters are hardcoded — governance cannot set fees to 100% or push the operator revenue share below its floor. | |||
| - Being recognized as an origin is DAO-governed — configuring an origin backend locally without authorization means the node's bytes are served only as cache. | |||
Address gemini-code-assist review on PR #147: - slashing: stake reduction / reduced stake / escrowed stake -> bond - minimum-stake mentions reworded to drop "stake" without implying a flat "minimum bond" (bonds are capacity-scaled, not flat) Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Addressed the terminology feedback in Applied as suggested (stake → bond):
Adjusted rather than applied literally —
Left intentionally (out of scope): three pre-existing |
* docs: resync protocol docs with decdn adrs since #147 Closes #185 Co-Authored-By: Claude Opus 4.8 <[email protected]> * docs: correct governance takedown timing to ~11 days Co-Authored-By: Claude Opus 4.8 <[email protected]> * docs: fold cooperative close into the close step to keep "three lines" Co-Authored-By: Claude Opus 4.8 <[email protected]> * docs: retitle payment channels section to "four lines" Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
Summary
Several public docs pages had drifted from the authoritative ADRs in
decdn/decdn— the ADRs for payments, governance, and slashing/appeals were heavily revised (late May) after these pages were last touched. This aligns the docs with current ADR state. Reputation, network, and content-addressing pages were already accurate and are untouched.Changes by page
closeChannel → disputeChannel → settleChannellifecycle pluswithdraw, and the 48 h default dispute window (12 h–72 h). (ADR 003)Min stake/Slash percentage/Channel close delayrows) with the real ADR-009 bounds; 7-day voting period (was 3); added the 5-of-9 bootstrap-multisig launch phase. (ADR 009 / 036)bond = k × Mbps^α, no flat minimum stake); DAO-governed origin role; stake→bond terminology.Test plan
prettier --write+markdownlint-cli2clean (also enforced via lint-staged pre-commit hook)/protocol/slashingadded)mintlify broken-linkspasses (not runnable locally offline)🤖 Generated with Claude Code