Skip to content

docs(adr): record operator safety obligations at onboarding (#825) - #1023

Merged
alpergundogdu merged 2 commits into
mainfrom
claude/mystifying-rubin-d2f265
Jun 30, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
claude/mystifying-rubin-d2f265

Conversation

@alpergundogdu

@alpergundogdu alpergundogdu commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #825 — records the missing decision rather than leaving operator CSAM/illegal-content screening wholly discretionary, while keeping the protocol content-agnostic (no on-chain content gate).

What this PR does (ADR decision only)

  • ADR 019 — new § Operator Safety Obligations. Acknowledged operator duty accepted at registration via an in-binary terms clickwrap: the accepted termsHash = keccak256(termsText) is carried in the registration signature and recorded by a TermsAccepted event. currentTermsHash is a DAO-controlled parameter (DecdnGovernor + timelock, no owner path), enforced at registration, registration-time-only for cache nodes (a later hash bump binds new registrants; prior assent stands). Terms are globally applicable via three layers — acknowledge applicable law / region-route via regionHint / universal knowledge-triggered floor — with jurisdiction-specific mechanism guidance kept out of the hashed text. Two compliance paths: cache nodes (+ optional pull_through_require_authorized_origin) and DAO-authorized origins (+ optional continued-compliance). The on-chain record is assent, not proof of compliance.
  • ADR 011 — the perceptual-hashing off-protocol note now points at ADR 019 instead of dead-ending.
  • ADR 037 — names the authorized-origin gate as the recognized cache-operator compliance posture.

Decisions recorded

  • Enforce-current termsHash at registration; currentTermsHash DAO-controlled (no [floor,ceiling] rail — the rail is the governance norm that each proposal references the document + its review record).
  • Registration-time-only enforcement for cache nodes; continued-compliance reserved for the origin path.
  • Ship a flagged draft terms version before testnet; counsel validation later lands as a governance hash bump — no contract migration.

Deliberately out of scope (follow-ups)

  • Terms text (TERMS.md v1 draft) — separate PR, routed to counsel via internal after merge.
  • Contract surface — termsHash in the EIP-712 BindNodeId struct (typehash bump), TermsAccepted event, setCurrentTermsHash governance setter — lands with companion edits to ADR 003 / ADR 016 / ADR 019 Step 2.3 so the canonical surface stays consistent.
  • CLI consent flow — decdn node register / decdn setup display + explicit approval + submit.
  • Optional tier-2 — gating OriginAssignment authorization on acceptance.

Open decision still pending: tier-1-only vs. building tier-2 origin teeth (does not block this ADR).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Expanded operator obligations guidance for perceptual-hash checking, clarifying it’s managed off-chain via industry databases and formally acknowledged as a binding duty at operator registration.
    • Updated node onboarding terms acceptance to emphasize registration-time acknowledgement, versioned governance terms, and the tradeoffs of requiring accurate terms during setup.
    • Clarified regional proxy warming behavior by explaining how pull restrictions for unclaimed content affect cache warming and relay exposure.

Resolve the missing-decision in #825 by recording an operator-safety
duty in ADR 019 rather than leaving CSAM/illegal-content screening
wholly discretionary — without adding any on-chain content gate.

- ADR 019: new § Operator Safety Obligations. Acknowledged duty
  accepted at registration via an in-binary terms clickwrap; the
  accepted termsHash is carried in the registration signature and
  recorded by a TermsAccepted event. currentTermsHash is a
  DAO-controlled parameter (DecdnGovernor + timelock), enforced at
  registration, registration-time-only for cache nodes. Terms are
  globally applicable via three layers (acknowledge applicable law /
  region-route via regionHint / universal knowledge-triggered floor);
  mechanism specifics stay out of the hashed text. Two compliance
  paths (cache nodes + optional pull_through_require_authorized_origin;
  DAO origins + optional continued-compliance). Record is assent, not
  proof of compliance.
- ADR 011: the perceptual-hashing off-protocol note now points at
  ADR 019 instead of dead-ending.
- ADR 037: name the authorized-origin gate as the recognized
  cache-operator compliance posture.

The terms text itself, the contract surface (termsHash in the EIP-712
BindNodeId struct, TermsAccepted event, governance setter), and the
CLI consent flow land in follow-up PRs.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI review requested due to automatic review settings June 30, 2026 12:59
@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: b0238450-f9f6-4ead-91d8-923015372188

📥 Commits

Reviewing files that changed from the base of the PR and between 705b056 and 9ae77c6.

📒 Files selected for processing (3)
  • adr/011-content-takedown.md
  • adr/019-node-onboarding.md
  • adr/037-regional-proxy-warming.md
✅ Files skipped from review due to trivial changes (2)
  • adr/011-content-takedown.md
  • adr/037-regional-proxy-warming.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • adr/019-node-onboarding.md

Walkthrough

Three ADRs are updated to formalize operator safety obligations. ADR 019 adds a new "Operator Safety Obligations" section specifying termsHash-based registration acceptance enforced by CapacityBond, updates Step 2.3 and Consequences accordingly. ADR 011 cross-references the on-chain acknowledgement. ADR 037 clarifies the pull_through_require_authorized_origin gate's compliance relationship.

Changes

Operator Safety Obligations across ADRs

Layer / File(s) Summary
ADR 019: Operator Safety Obligations section and Consequences
adr/019-node-onboarding.md
Step 2.3 is extended to note that decdn node register records operator acceptance of current terms in the binding signature. A new "Operator Safety Obligations" section defines termsHash derivation from embedded text, CapacityBond enforcement against currentTermsHash, TermsAccepted as assent evidence (not on-chain compliance proof), and a three-layer global duty structure. Consequences gains positive bullets for the operator-duty floor and terms versioning, and negative bullets for registration termsHash requirements and assent-vs-compliance tradeoffs.
ADR 011: Cross-reference on-chain acknowledgement
adr/011-content-takedown.md
The perceptual-hashing out-of-scope paragraph is extended to state that CSAM hash-checking is an operator duty acknowledged and accepted at registration on-chain under ADR 019.
ADR 037: pull_through_require_authorized_origin clarifications
adr/037-regional-proxy-warming.md
Seed-leech caps guidance is expanded to document the opt-in gate's scope and its compliance posture under ADR 019.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 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 concisely summarizes the onboarding operator-duty documentation and matches the main change.
Linked Issues check ✅ Passed The ADR updates document a required operator safety duty at registration, matching the requested CSAM/NCMEC onboarding obligation.
Out of Scope Changes check ✅ Passed The changes stay within ADR documentation updates tied to operator onboarding, ADR 011, and ADR 037.
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 claude/mystifying-rubin-d2f265

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 several Architecture Decision Records (ADRs) to introduce and define 'Operator Safety Obligations' during node onboarding, establishing an on-chain record of operator assent to terms without introducing content primitives to the protocol. Feedback on these changes highlights a broken Markdown link in the proxy warming ADR and suggests addressing potential compliance drift by incorporating a change of terms clause and clarifying the DAO's authority to eject operators who fail to comply with updated terms.

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 adr/037-regional-proxy-warming.md Resolved
Comment thread adr/019-node-onboarding.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 updates the ADR documentation to record operator safety obligations as part of node onboarding, while keeping the underlying protocol content-agnostic (no on-chain content gate). It adds a new decision section to the onboarding ADR and connects related ADRs to that decision for cross-ADR consistency.

Changes:

  • Add ADR 019 § Operator Safety Obligations, describing registration-time terms acceptance (hash-recorded assent) and governance-controlled terms versioning.
  • Update ADR 011 to point the off-protocol perceptual hashing/operator-duty note to ADR 019 instead of leaving it discretionary.
  • Update ADR 037 to explicitly recognize the authorized-origin pull-through gate as a compliance posture referenced by ADR 019.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
adr/019-node-onboarding.md Adds a new “Operator Safety Obligations” section and references terms acceptance as part of registration.
adr/011-content-takedown.md Updates perceptual-hashing note to reference onboarding-recorded operator duties.
adr/037-regional-proxy-warming.md Extends the pull-through authorized-origin gate discussion to reference ADR 019’s compliance posture.

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

Comment thread adr/037-regional-proxy-warming.md Resolved
Comment thread adr/019-node-onboarding.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 `@adr/011-content-takedown.md`:
- Line 345: The operator-obligation paragraph in the perceptual hashing section
conflates CSAM and NCII references. Update the sentence near the perceptual hash
discussion to split the off-chain database examples: use the appropriate CSAM
program for NCMEC, and mention StopNCII separately only for NCII, keeping the
reference in ADR 019’s operator safety obligations context.
🪄 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: b1c63fd4-7374-47c2-b23b-48e7718e4610

📥 Commits

Reviewing files that changed from the base of the PR and between 44afd1c and 705b056.

📒 Files selected for processing (3)
  • adr/011-content-takedown.md
  • adr/019-node-onboarding.md
  • adr/037-regional-proxy-warming.md

Comment thread adr/011-content-takedown.md Resolved
- ADR 037 / ADR 011: fix broken ContentBlacklist anchor
  (#adr-011-content-takedown-and-hash-blacklisting) and stop conflating
  CSAM (NCMEC) with NCII (StopNCII) in the perceptual-hashing note.
- ADR 019: clarify that registration-time-only on-chain enforcement does
  not freeze obligations — operators are bound to governance-adopted terms
  revisions and governance may act on breach of the current terms
  regardless of the recorded termsHash.
- ADR 019 Step 2.3: signpost that the BindNodeId termsHash extension and
  TermsAccepted event are specified with the contract change (ADR 003);
  this step shows the pre-extension surface.

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.

node onboarding: make operator CSAM hash-matching + NCMEC reporting a required duty, not just off-protocol

2 participants