Skip to content

docs: sync protocol docs with current ADRs - #147

Merged
yigitdot merged 2 commits into
mainfrom
docs/sync-with-adrs
May 30, 2026
Merged

yigitdot merged 2 commits into
mainfrom
docs/sync-with-adrs

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

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

  • payments — vouchers are cumulative, nonce-ordered (was "highest-value supersedes, discard older"); documented the 3-step closeChannel → disputeChannel → settleChannel lifecycle plus withdraw, and the 48 h default dispute window (12 h–72 h). (ADR 003)
  • governance — emergency-multisig sunset is immutable and non-extendable (was "extend by capped increments"); replaced the stale safety-bounds table (dropped the invented Min stake / Slash percentage / Channel close delay rows) with the real ADR-009 bounds; 7-day voting period (was 3); added the 5-of-9 bootstrap-multisig launch phase. (ADR 009 / 036)
  • slashing — kept the synchronous, no-counter-evidence-window adjudication (this is correct per ADR 014) and instead added escrow-on-slash + the 30-day operator appeal, with the 50 % challenger / 50 % burn split paid at finality; corrected the challenger bond (100 TOKEN, failed challenge just reverts). (ADR 014 / 028)
  • architecture / participants / glossary / introduction — capacity-bond model (bond = k × Mbps^α, no flat minimum stake); DAO-governed origin role; stake→bond terminology.
  • privacy — "Four" mitigations, not "Five" (only four are listed).

Test plan

  • prettier --write + markdownlint-cli2 clean (also enforced via lint-staged pre-commit hook)
  • All internal links resolve to existing pages (only /protocol/slashing added)
  • CI mintlify broken-links passes (not runnable locally offline)
  • Mintlify Cloud preview renders the updated mermaid diagram + tables

🤖 Generated with Claude Code

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]>
Copilot AI review requested due to automatic review settings May 30, 2026 17:32
@mintlify

mintlify Bot commented May 30, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
decdn 🟢 Ready View Preview May 30, 2026, 5:32 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 30, 2026 •

Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

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

View logs

@gemini-code-assist gemini-code-assist Bot 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.

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.

Comment thread docs/overview/architecture.mdx Outdated
- 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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.

Comment thread docs/overview/glossary.mdx Outdated
| 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. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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.

Comment thread docs/overview/participants.mdx Outdated

- **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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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.

Comment thread docs/protocol/slashing.mdx Outdated
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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.

Comment thread docs/protocol/slashing.mdx Outdated

## 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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.

Comment thread docs/protocol/slashing.mdx Outdated
## 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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.

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.

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 → settleChannel lifecycle, 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.

Comment on lines 45 to +67
@@ -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]>
@alpergundogdu

Copy link
Copy Markdown
Contributor Author

Addressed the terminology feedback in fb912a6.

Applied as suggested (stake → bond):

  • slashing.mdx — "stake reduction" → "bond reduction", "reduced stake" → "reduced bond", and both "escrowed stake" → "escrowed bond". These refer to the capacity bond being slashed, so bond is correct and consistent with the rest of the page.

Adjusted rather than applied literally — minimum stake (×3: architecture, glossary, participants):
Swapping "minimum stake" → "minimum bond" would be inaccurate. Bonds are not flat — bond = k × Mbps^α means every operator has a capacity-scaled minimum bond. The sentence is making the point that there's no flat (capacity-independent) floor. So instead of introducing a misleading "minimum bond", I dropped "stake" and reworded:

  • glossary / participants: "…there is no flat minimum stake" → "…the bond scales with declared capacity rather than a flat minimum"
  • architecture: "…not a flat minimum stake" → "…rather than a flat minimum"

Left intentionally (out of scope): three pre-existing stake/staked usages not touched by this PR (introduction.mdx "staked independent nodes"; the client "no stake" entries in glossary.mdx/participants.mdx). The latter read as idiomatic ("no stake in the system"), which the migration guideline says to preserve. Happy to fold a full sweep in if preferred.

@yigitdot
yigitdot merged commit 724c55f into main May 30, 2026
7 checks passed
@yigitdot
yigitdot deleted the docs/sync-with-adrs branch May 30, 2026 18:21
yigitdot added a commit that referenced this pull request Jul 9, 2026
* 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]>

This branch was successfully deployed

1 active deployment
staging - docs — fb912a6a Deployed May 30, 2026 by mintlify[bot]
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.

3 participants