Repository navigation
docs: add draft operator terms (TERMS.md) (#825) - #1044
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
Walkthrough
ChangesdeCDN Operator Terms
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 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 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.
There was a problem hiding this comment.
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
📒 Files selected for processing (1)
TERMS.md
There was a problem hiding this comment.
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.mdwith 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.
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]>
There was a problem hiding this comment.
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 liftExclude 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.mdor 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
📒 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]>
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
keccak256is recorded on-chain astermsHash.Structure
Three layers, written to apply across jurisdictions without prescribing any one regime's mechanism:
regionHintand the regional governance body.Deliberate properties
Depends on / relates to
🤖 Generated with Claude Code
Summary by CodeRabbit