Skip to content

docs: resync protocol docs with decdn ADRs since #147 - #187

Merged
yigitdot merged 5 commits into
mainfrom
docs/sync-adrs-since-147
Jul 9, 2026
Merged

yigitdot merged 5 commits into
mainfrom
docs/sync-adrs-since-147

Conversation

@yigitdot

@yigitdot yigitdot commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Resyncs the public docs (docs/) with the canonical decdn/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.

main has since merged #184 (ADR 038/039 sync), which this branch now merges in — see Relationship to #184 below.

Changes

  • HIGH — Emergency-multisig sunset is capability-split (governance.mdx, mirrored in takedown.mdx). The docs claimed a blanket 12-month sunset over both pause() 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 in takedown.mdx. The permanence rationale cites the ~11-day governance takedown path (the ~10-day governance minimum plus the 24-hour compliance window), matching governance.mdx "Proposal flow" and takedown.mdx.
  • MEDIUM — Cooperative close documented (payments.mdx, how-it-works.mdx). Adds the one-tx cooperativeClose(...) fast-settle path (no dispute window, EIP-712 waiver, falls back to closeChannel) per ADR 003 (decdn #973), plus a fourth bullet in the "three lines" section.
  • LOW — Terms-hash at registration (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 merges origin/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 docs CI checks pass locally after the merge:

  • prettier --check "docs/**/*.{md,mdx,json}" — clean
  • markdownlint-cli2 — 15 files, 0 errors
  • mintlify broken-links — no broken links (new #emergency-multisig / #entry-types anchors resolve)

Reviewed by a docs-focused consistency pass (cross-links resolve, capability-split wording stays self-consistent between the Decision and Emergency-multisig sections, cooperativeClose fallback matches the documented close lifecycle) — no blocking findings. The ~11-day timing above was tightened from an earlier ~10-day phrasing flagged as a slight understatement.

Notes for reviewers

Closes #185

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added/expanded guidance for “cooperative close” payment settlement, including an immediate cooperative path when both parties agree, with a fallback to the standard close flow.
    • Updated on-chain registration instructions to require recording acceptance of canonical operator terms via a governance-controlled terms hash.
    • Clarified emergency governance behavior: protocol-wide pausing sunsets after 12 months, while emergency blacklisting/takedown capabilities are permanent (with individual entries still auto-expiring unless ratified).

Copilot AI review requested due to automatic review settings July 9, 2026 11:07
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2ca76f41-2dbf-421b-8a25-c7bc0521f9d6

📥 Commits

Reviewing files that changed from the base of the PR and between eda01be and 9d80ee2.

📒 Files selected for processing (1)
  • docs/overview/how-it-works.mdx
✅ Files skipped from review due to trivial changes (1)
  • docs/overview/how-it-works.mdx

📝 Walkthrough

Walkthrough

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

Changes

Docs sync with ADR updates

Layer / File(s) Summary
Emergency multisig capability-split sunset
docs/protocol/governance.mdx, docs/protocol/takedown.mdx
Governance and takedown text now distinguishes pause() as the 12-month capability-sunset path while emergency blacklisting stays permanent; takedown text also states individual entries still auto-expire unless ratified.
Cooperative close documentation
docs/protocol/payments.mdx, docs/overview/how-it-works.mdx
Payments adds a cooperative-close section for one-transaction settlement via cooperativeClose(...) with an EIP-712 waiver and fallback to closeChannel; the overview page adds the matching fast-path description.
Registration terms-hash acceptance
docs/protocol/network.mdx
On-chain registration now requires acceptance of a DAO-canonical, governance-swappable terms hash.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: alpergundogdu

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately reflects the main change: resyncing protocol docs with upstream ADR updates.
Linked Issues check ✅ Passed The edited docs satisfy #185's main sync items; ADR 038/039 rows were already present in the provided review context.
Out of Scope Changes check ✅ Passed All changes are documentation updates aligned with the stated sync objectives; no unrelated code or behavior changes are introduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/sync-adrs-since-147

Comment @coderabbitai help to get the list of available commands.

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

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

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Deferring this rather than changing it here. Two reasons:

  1. 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→bonding migration is tracked separately in docs: migrate remaining 'staking' terms to 'bonding' #146.
  2. A one-line change would create inconsistency. network.mdx:8 (untouched here) still reads "All staked nodes form a flat mesh", and staked/staking persists 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

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

  2. Docs should follow the code. The contract is CapacityBond and the glossary term is Bond. Every surviving "staked node" is drift between the docs and the thing they document.

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

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

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

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

Copy link
Copy Markdown
Contributor

Review

Overall: 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

  • Timing math is consistent. The new "~11-day governance takedown path" claim lines up with governance.mdx "Proposal flow" (1-day voting delay + 7-day period + 2-day timelock ≈ 10 days) plus the 24-hour compliance window in takedown.mdx. The same figure is used in both edited sections of governance.mdx.
  • Cross-links resolve. /protocol/governance#emergency-multisig matches the ## Emergency multisig heading, and #entry-types matches ## Entry types in takedown.mdx.
  • Capability-split wording is self-consistent across the frontmatter, the Decision paragraph, the Emergency-multisig section, and the mirrored paragraph in takedown.mdx — pause() sunsets, the three blacklisting functions don't, and the entry-level auto-expiry (14/90 days unless ratified) is correctly kept distinct from the capability-level permanence.
  • Cooperative close reads coherently against the existing close lifecycle: the cooperativeClose(...) signature, the EIP-712 waiver, either-party submission, and the closeChannel fallback don't contradict the three-step lifecycle or the dispute-window section. The how-it-works.mdx bullet ("single co-signed transaction") matches the two-signature call in payments.mdx.
  • CodeRabbit's failed "Linked Issues" check is a false positive. It flags missing ADR 038/039 rows in design-decisions.mdx, but those rows are already present at the PR head (they came in via docs: sync public docs to ADR 038/039 #184, which this branch merged) — the ADR 038 label correctly reads "Bao verified-range streaming".

Nit

  • docs/overview/how-it-works.mdx: the section is titled "Payment channels in three lines" but now lists four items. Either retitle (e.g. "Payment channels in four lines") or fold the fast path into bullet 3 as a sub-clause. As written the heading contradicts its own content.

Non-blocking observations

  • The payments.mdx channel-lifecycle mermaid diagram still shows only the dispute-window path. Fine to leave as the standard path, but an alt branch for cooperative close could be a nice follow-up.
  • The new network.mdx sentence is accurate but dense (three clauses chained with a semicolon); could be split for readability. Not worth blocking on.
  • Upstream ADR wording (decdn/decdn) wasn't independently verifiable from this repo; the review checked internal doc consistency and the docs: sync docs.decdn.org with decdn ADRs changed since the last review (#147) #185 line references, which all matched.

Generated by Claude Code

@yigitdot
yigitdot merged commit 57909cd into main Jul 9, 2026
6 checks passed
@yigitdot
yigitdot deleted the docs/sync-adrs-since-147 branch July 9, 2026 14:36
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: sync docs.decdn.org with decdn ADRs changed since the last review (#147)

3 participants