Repository navigation
docs: resync protocol docs with decdn ADRs since #147 - #187
Conversation
Closes #185 Co-Authored-By: Claude Opus 4.8 <[email protected]>
Deploying website with
|
| Latest commit: |
9d80ee2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8f5b0eb1.website-70y.pages.dev |
| Branch Preview URL: | https://docs-sync-adrs-since-147.website-70y.pages.dev |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughDocumentation updates synchronize public docs with revised ADRs: governance and takedown now describe a capability-split emergency multisig sunset, payments and overview add cooperative close settlement, and network registration adds terms-hash acceptance. ChangesDocs sync with ADR updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the protocol documentation to reflect several new design decisions and features. Key updates include the addition of design decisions 038 and 039, the introduction of a cooperative close fast-path for payment channels, a split-sunset mechanism for the emergency multisig (where protocol pausing sunsets but emergency blacklisting remains permanent), and the requirement of accepting the DAO-canonical operator terms hash during node registration. Feedback was provided to align the terminology in the network documentation with the migration guidelines from 'staking' to 'bonding'.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| ## On-chain registration | ||
|
|
||
| Nodes register through an on-chain staking registry that binds a network identity to an Ethereum address. Registration requires proof of control of both keys — preventing identity squatting and ensuring every staked node is slashable. Key rotation remains available post-registration. | ||
| Nodes register through an on-chain staking registry that binds a network identity to an Ethereum address. Registration requires proof of control of both keys — preventing identity squatting and ensuring every staked node is slashable. Registration also carries acceptance of the DAO-canonical operator terms hash, signed into the registration message and enforced on-chain; the terms hash is governance-swappable, so the accepted version is recorded at registration. Key rotation remains available post-registration. |
There was a problem hiding this comment.
According to the terminology migration guidelines, technical protocol terms should be migrated from 'staking' to 'bonding' (e.g., 'bonding registry' and 'bonded node'), while preserving 'stake' only when used in idiomatic expressions. Since 'staking registry' and 'staked node' are technical protocol terms, they should be updated to 'bonding registry' and 'bonded node' respectively.
Nodes register through an on-chain bonding registry that binds a network identity to an Ethereum address. Registration requires proof of control of both keys — preventing identity squatting and ensuring every bonded node is slashable. Registration also carries acceptance of the DAO-canonical operator terms hash, signed into the registration message and enforced on-chain; the terms hash is governance-swappable, so the accepted version is recorded at registration. Key rotation remains available post-registration.
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.
Deferring this rather than changing it here. Two reasons:
- Out of scope for this PR. docs: resync protocol docs with decdn ADRs since #147 #187 is the ADR-sync for docs: sync docs.decdn.org with decdn ADRs changed since the last review (#147) #185; the
staking→bondingmigration is tracked separately in docs: migrate remaining 'staking' terms to 'bonding' #146. - A one-line change would create inconsistency.
network.mdx:8(untouched here) still reads "All staked nodes form a flat mesh", andstaked/stakingpersists in ~7 non-glossary spots (reputation.mdx,introduction.mdx,takedown.mdx,how-it-works.mdx,docs.json). Editing only line 16 leaves the file internally mismatched.
The instinct is right, though — the economic mechanism is consistently "bond" elsewhere (the contract is CapacityBond). I've broadened #146 to cover these remaining non-glossary occurrences (its scope was glossary-only), so this line will be migrated there as part of the full sweep.
There was a problem hiding this comment.
Weighing in on bonding vs. staking as terms, since the deferral to #146 settles when but not whether: bonding is the right word for this protocol, and the sweep is worth doing.
-
It describes the actual mechanism. Under the work-token model (ADR 026, no emissions), the locked tokens are slashable performance collateral — operators earn from serving bytes, not from locking tokens. "Staking" in current usage strongly implies PoS validation and passive yield; it invites the wrong question ("what's the APY?") and misdescribes the security model. A bond that gets slashed on misbehavior is precisely what this is.
-
Docs should follow the code. The contract is
CapacityBondand the glossary term is Bond. Every surviving "staked node" is drift between the docs and the thing they document. -
Optics. "Staking" carries yield-product connotations (and the regulatory baggage that comes with them); "bond/collateral" reads as an operational requirement to participate. For public-facing docs that's the safer and more honest frame.
-
It's not obscure. Cosmos says "bonded", Livepeer says "bond" — operators in this space will parse it fine.
The one real cost is familiarity/search: newcomers look for "staking". That's better solved with a single glossary line (e.g. "Bond — the slashable collateral a node posts; what other networks call a stake") than by keeping the inaccurate term in running text.
On process I agree with the deferral: a one-line fix here would leave network.mdx saying both "staked nodes" (line 8) and "bonded node" (line 16) in the same file. Doing it as one sweep in #146 — with the "preserve idiomatic stake" rule — is the right shape.
Generated by Claude Code
There was a problem hiding this comment.
Pull request overview
This PR resynchronizes Mintlify protocol documentation (docs/) with the latest canonical ADR behavior since the previous sync, focusing on governance/emergency capability semantics, payment-channel settlement paths, and the ADR index.
Changes:
- Clarifies that the emergency multisig sunset is capability-split:
pause()sunsets at 12 months, while unlawful-content emergency blacklisting is permanent (and mirrors the clarification into takedown docs). - Documents the cooperativeClose(...) one-transaction fast-settle path for payment channels and adds it to the high-level “three lines” overview.
- Extends the ADR index table with entries 038 (verified-range streaming) and 039 (multi-source parallel fetch), and notes terms-hash acceptance at registration.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/protocol/governance.mdx | Updates governance description and emergency multisig section to reflect capability-split sunset semantics. |
| docs/protocol/takedown.mdx | Adds an explicit clarification that emergency blacklisting is permanent (while pause() sunsets) with internal cross-links. |
| docs/protocol/payments.mdx | Adds a new “Cooperative close” section describing the one-tx fast-settle path and fallback behavior. |
| docs/overview/how-it-works.mdx | Adds cooperative close as the fast-path bullet in the payment channel overview list. |
| docs/overview/design-decisions.mdx | Appends ADR rows 038 and 039 to the accepted decisions table. |
| docs/protocol/network.mdx | Notes terms-hash acceptance at registration and that the accepted version is recorded on-chain. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
# Conflicts: # docs/overview/design-decisions.mdx
Co-Authored-By: Claude Opus 4.8 <[email protected]>
ReviewOverall: LGTM with one small nit. Docs-only, tightly scoped to the three items from #185, and internally consistent. Verified each change against the surrounding doc text at the PR head: What checks out
Nit
Non-blocking observations
Generated by Claude Code |
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Summary
Resyncs the public docs (
docs/) with the canonicaldecdn/adr/ADRs that changed since the last sync in #147 (2026-05-30). Addresses the review findings in #185. Docs-only; no website code touched.mainhas since merged #184 (ADR 038/039 sync), which this branch now merges in — see Relationship to #184 below.Changes
governance.mdx, mirrored intakedown.mdx). The docs claimed a blanket 12-month sunset over bothpause()and emergency blacklisting, which now directly contradicts ADR 009/011/016 (decdn #977). Corrected to:pause()sunsets hard at 12 months (immutable), while unlawful-content removal (emergencyAdd/emergencyAddOrigin/suspendRegionalBody) is permanent. Fixed frontmatter, the Decision paragraph, and the Emergency-multisig section; added a one-line clarification + cross-link intakedown.mdx. The permanence rationale cites the ~11-day governance takedown path (the ~10-day governance minimum plus the 24-hour compliance window), matchinggovernance.mdx"Proposal flow" andtakedown.mdx.payments.mdx,how-it-works.mdx). Adds the one-txcooperativeClose(...)fast-settle path (no dispute window, EIP-712 waiver, falls back tocloseChannel) per ADR 003 (decdn #973), plus a fourth bullet in the "three lines" section.network.mdx). Notes the DAO-canonical terms hash accepted at registration and enforced on-chain, per ADR 019 (contracts #1078, CLI #1077).Relationship to #184
#184 (already on
main) covered issue #185's item 3 — the ADR 038/039 index rows and an ADR-039 "Multi-source parallel fetch" section. This branch mergesorigin/main; the only conflict was the ADR 038 label, resolved to #184's "Bao verified-range streaming". No duplicate rows or sections resulted. The net-new content unique to this PR is the three changes listed above (issue items 1, 2, and 4).Verification
All three
docsCI checks pass locally after the merge:prettier --check "docs/**/*.{md,mdx,json}"— cleanmarkdownlint-cli2— 15 files, 0 errorsmintlify broken-links— no broken links (new#emergency-multisig/#entry-typesanchors resolve)Reviewed by a docs-focused consistency pass (cross-links resolve, capability-split wording stays self-consistent between the Decision and Emergency-multisig sections,
cooperativeClosefallback matches the documented close lifecycle) — no blocking findings. The~11-daytiming above was tightened from an earlier~10-dayphrasing flagged as a slight understatement.Notes for reviewers
decdn/decdnADRs live in a separate repo, so wording follows the docs: sync docs.decdn.org with decdn ADRs changed since the last review (#147) #185 review (maintainer-authored) as the source of upstream truth. Every edit was verified against the current doc text, which matched the issue's line references exactly.staking→bondingterminology drift touched bynetwork.mdxis out of scope here and tracked in docs: migrate remaining 'staking' terms to 'bonding' #146.docs/is built by Mintlify Cloud, independent ofpnpm build.node_modules; the equivalent checks were run manually (see above).Closes #185
🤖 Generated with Claude Code
Summary by CodeRabbit