Skip to content

docs: add draft operator terms (TERMS.md) (#825) - #1044

Merged
alpergundogdu merged 3 commits into
mainfrom
docs/operator-terms-draft
Jun 30, 2026
Merged

alpergundogdu merged 3 commits into
mainfrom
docs/operator-terms-draft

Conversation

@alpergundogdu

@alpergundogdu alpergundogdu commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Adds the canonical operator-terms text introduced by ADR 019 § Operator Safety Obligations (see #1023). This is the single source of the in-binary terms constant the registration clickwrap displays and whose keccak256 is recorded on-chain as termsHash.

⚠️ DRAFT — version 1.0.0-draft, not yet validated by counsel. Shipped pre-testnet to establish the mechanism and posture. A counsel-reviewed successor is adopted later by a governance currentTermsHash bump — no contract change. Counsel questions tracked in decdn/internal (Legal).

Structure

Three layers, written to apply across jurisdictions without prescribing any one regime's mechanism:

  1. Compliance with applicable law — incorporates the operator's own law by reference; names no regime.
  2. Region-routed obligations — attach through the declared regionHint and the regional governance body.
  3. Universal knowledge-triggered floor — on actual knowledge, stop serving + report where the operator's law requires. Explicitly not a proactive-scanning mandate.

Deliberate properties

  • No jurisdiction-specific institution appears in the binding text (no NCMEC/PhotoDNA/hotline) — those live in non-binding, region-scoped operator guidance kept out of the hashed bytes, so the hash stays stable across jurisdictions.
  • Operator-facing throughout ("you will…"); § 4 disclaims any network content-screening guarantee.
  • Header comment marks the file as the canonical hash preimage and warns against paraphrasing in code/docs.

Depends on / relates to

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added the full operator terms document for node registration, including compliance obligations, region-specific responsibilities, and breach consequences.
    • Clarified that the network does not inspect content and that acceptance records a terms hash for registration.
    • Included separate maintainer guidance clarifying canonical byte-for-byte terms, hash sensitivity, and versioning requirements (with an excluded guidance section not covered by the acceptance hash).

Canonical operator-terms text and single source of the in-binary terms
constant per ADR 019 § Operator Safety Obligations. The node clickwrap
displays these bytes at registration and records keccak256(bytes) as the
on-chain termsHash.

Three layers, written to apply across jurisdictions without prescribing
any one regime's mechanism: (1) compliance with applicable law, (2)
region-routed obligations via regionHint, (3) a universal
knowledge-triggered floor (stop serving + report where the operator's
law requires). Operator-facing throughout; § 4 disclaims any network
content-screening guarantee. Jurisdiction-specific mechanism guidance
(hash-match databases, reporting endpoints) is kept out of the hashed
text so the bytes stay stable.

Version 1.0.0-draft, shipped pre-testnet to establish the mechanism and
posture. Pending counsel review; a validated successor is adopted later
by a governance currentTermsHash bump, with no contract change.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI review requested due to automatic review settings June 30, 2026 14:04
@coderabbitai

coderabbitai Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 274e538a-72e8-49df-b8a1-ae573914629e

📥 Commits

Reviewing files that changed from the base of the PR and between 675ed47 and 0c95bff.

📒 Files selected for processing (2)
  • TERMS.md
  • TERMS_README.md
💤 Files with no reviewable changes (1)
  • TERMS.md
✅ Files skipped from review due to trivial changes (1)
  • TERMS_README.md

Walkthrough

TERMS.md is populated with the deCDN Operator Terms v1.0.0-draft, and TERMS_README.md adds maintainer guidance for the canonical hashed terms file, versioning, and embedding rules.

Changes

deCDN Operator Terms

Layer / File(s) Summary
Canonical terms header
TERMS.md
Adds the top-level metadata and hash-related framing for the canonical operator terms document.
Operator terms body
TERMS.md
Adds acceptance at node registration, legal compliance duties, region-based obligations, illegal content handling, and the no-network guarantee disclaimer.
Terms revision section
TERMS.md
Adds the governance revision process for later terms versions and the operator exit path through stopping operation and unbonding.
Guidance and footer
TERMS.md, TERMS_README.md
Adds the non-binding operator guidance section, the footer hash rule, and the maintainer README that defines TERMS.md as the canonical hashed text.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 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 clearly matches the main change: adding a draft operator terms document in TERMS.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/operator-terms-draft

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 introduces the canonical TERMS.md file containing the deCDN Operator Terms, which will be embedded verbatim and hashed for on-chain verification. The feedback suggests removing the developer-facing HTML comment block from the top of the file to prevent accidental modifications from altering the file's hash and causing on-chain mismatches.

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 TERMS.md Resolved

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@TERMS.md`:
- Around line 32-39: The Regional obligations section in TERMS.md currently
references mutable external rule sets (“regional obligations”, “content-takedown
rules”, and related enforcement/slashing rules), which can make the canonical
terms hash drift from the actual accepted duties. Update the TERMS content
around the Region obligations clause so the referenced rules are version-pinned
or inlined before hashing, and ensure the same treatment is applied to the
related terms text in the other referenced clause block so `termsHash` remains
stable and uniquely tied to a specific rule set.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 30eacd66-1f68-48f4-a870-9c2ddfdf80c8

📥 Commits

Reviewing files that changed from the base of the PR and between c80fa0d and 7e36599.

📒 Files selected for processing (1)
  • TERMS.md

Comment thread TERMS.md Resolved

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 adds a new canonical TERMS.md document containing draft “deCDN Operator Terms” intended to be the exact-byte preimage for an on-chain-recorded termsHash used during node registration/clickwrap.

Changes:

  • Introduces TERMS.md with a versioned, counsel-unvalidated (draft) operator-terms text.
  • Adds prominent warnings that the file’s bytes are intended to be embedded verbatim and hashed, and that edits change the canonical termsHash.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread TERMS.md Resolved
Comment thread TERMS.md Resolved
Adds § 6 binding the operator to governance-adopted revisions (not only the
version accepted at registration), with an exit-via-unbonding remedy. Bridges
the registration-time-only on-chain enforcement gap raised in review of the
ADR 019 decision PR, so a terms revision reaches existing operators
contractually even though re-acceptance is not forced on-chain.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
TERMS.md (1)

81-93: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Exclude the non-binding guidance from the hashed preimage.

The section says it is outside the acceptance hash, but the footer hashes the bytes of this file, which still include lines 81-89. Either move this guidance out of TERMS.md or change the hash rule to exclude it explicitly; otherwise the “non-binding” text becomes part of the canonical commitment.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@TERMS.md` around lines 81 - 93, The acceptance hash currently covers the
entire TERMS.md bytes, including the “Operator guidance” section that is meant
to be non-binding. Update the hash definition in TERMS.md so the canonical
preimage explicitly excludes that guidance block, or move that block out of
TERMS.md entirely; use the existing termsHash/keccak256 footer and “Operator
guidance” section as the anchor points when making the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@TERMS.md`:
- Around line 81-93: The acceptance hash currently covers the entire TERMS.md
bytes, including the “Operator guidance” section that is meant to be
non-binding. Update the hash definition in TERMS.md so the canonical preimage
explicitly excludes that guidance block, or move that block out of TERMS.md
entirely; use the existing termsHash/keccak256 footer and “Operator guidance”
section as the anchor points when making the change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f58f2548-25a4-40f1-ad6d-3d58b994b74d

📥 Commits

Reviewing files that changed from the base of the PR and between 7e36599 and 675ed47.

📒 Files selected for processing (1)
  • TERMS.md

…825)

Remove the developer HTML comment from TERMS.md so the file's bytes are only
the legal text that gets displayed and hashed — editing maintainer notes can no
longer perturb the termsHash. Move the maintenance guidance (canonical-preimage
rules, version-bump-as-governance-hash-bump, wiring-lands-later note) into a new
un-hashed TERMS_README.md.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.

2 participants