Skip to content

docs(adr): add per-entry blacklist appeal mechanism to ADR 011 - #430

Merged
thiras merged 4 commits into
mainfrom
adr-011-blacklist-appeals
May 7, 2026
Merged

thiras merged 4 commits into
mainfrom
adr-011-blacklist-appeals

Conversation

@thiras

@thiras thiras commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "Blacklist Entry Appeals" section to ADR 011 with a fast-track (emergency multisig) + ratification (ve-Governor) flow, mirroring ADR 028's structure but narrowed to the content-policy domain
  • Standing extends to publishers, affected operators (declared region in scope), and TOKEN holders above APPEAL_FILER_TOKEN_THRESHOLD; bond + 90d filer cap + perjury denylist deter pro-forma filings
  • Five new contract entry points (openBlacklistAppeal / fastTrackAppeal / rejectAppeal / ratifyAppealRemoval / reverseAppeal), six new events, two new BlacklistEntry fields (suspended, suspendedAt); full ABI deferred to a contract-implementation ADR
  • Decoupled from ADR 028: this path covers content-policy challenges to the entry itself; ADR 028 covers operational-failure restitution for slashes already taken. Operational-failure evidence types are explicitly inadmissible here, and vice versa
  • Edge cases handled: evidence-clock-pause across suspension preserves pre-suspension slash evidence; global override mid-appeal terminates cleanly with bond refund; emergency-entry auto-expiry mid-appeal terminates cleanly; explicit PoC degradation note (the path is structurally non-functional until the first regional body is registered)

Closes #131.

Test plan

  • + 'pre-commit run --files adr/011-content-takedown.md' + passes locally (markdownlint, whitespace, EOF, deny)
  • Cross-ADR anchor links render correctly on GitHub (ADRs 002, 009, 014, 028, plus in-file)
  • Reviewers confirm: (a) the + 'suspendedAt' + evidence-window semantics compose cleanly with ADR 014 §2's + 'MAX_EVIDENCE_AGE_US' +; (b) the per-body cap reframed as interim-relief states (not filed appeals) closes the DoS vector; (c) the standing clawback is appropriate scope
  • Follow-up: a separate small PR to update ADR 028's footer (line 211) to anchor-link the new section now that it exists

🤖 Generated with Claude Code

Closes #131. Defines a fast-track + ratification appeal flow for regional
blacklist entries, mirroring ADR 028's structure with content-policy-specific
evidence rules and broader standing (publisher + affected operators + TOKEN
holders above a threshold). The two appeal paths are deliberately decoupled
with disjoint evidence sets.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 6, 2026 13:33

@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 a comprehensive per-entry appeal mechanism for regional blacklist entries, allowing publishers, operators, and token holders to contest specific takedowns. The implementation includes a new fast-track and ratification flow, bond requirements, and evidence standards, while maintaining a clear decoupling from operational slashing appeals. Feedback from the review highlights several internal contradictions in the documentation that need addressing: a unit inconsistency between block timestamps and microsecond-based evidence age, a structural mismatch preventing emergency entries from being appealed, and conflicting descriptions regarding the enforcement of the concurrent appeal cap and the preservation of the 'effectiveAt' timestamp.

Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.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 ADR 011 (Content Takedown) to specify a new per-entry appeal mechanism for regional blacklist entries, introducing a fast-track (emergency multisig) decision with ve-Governor ratification/reversal, plus associated standing rules, bonds/caps, and interactions with slashing.

Changes:

  • Extends the documented IContentBlacklist surface with appeal-related entrypoints/events and adds suspended/suspendedAt fields to BlacklistEntry.
  • Adds a new Blacklist Entry Appeals section covering scope, standing, filing windows, bond/cap parameters, evidence requirements, and lifecycle/edge cases.
  • Documents how interim relief affects enforcement (isBlacklisted* views) and how this composes with slash evidence timing.

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

Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
Comment thread adr/011-content-takedown.md Resolved
thiras and others added 2 commits May 6, 2026 17:14
- suspendedAt -> suspendedAtUs (microseconds, matches ADR 014's
  MAX_EVIDENCE_AGE_US convention; SlashJudge can compare without unit
  conversion)
- Drop emergency entries from appellable list (emergencyAdd has no
  region parameter, so they are structurally global; route via
  ve-Governor removeHash slow path instead)
- BODY_CONCURRENT_APPEAL_CAP gates fastTrackAppeal only, not
  openBlacklistAppeal (filings remain unbounded so adversaries cannot
  block the path with frivolous filings)
- Reversal preserves original effectiveAt (was incorrectly described
  as "resets" in one Contract surface bullet, contradicting the rest
  of the section)
- Fix imprecise "ADR 028 § Slashing appeals" cross-refs (the title is
  not a section heading)
- Synthetic-standing clawback uses pure two-checkpoint balance check
  (off-chain "proportional refund of loan source" wording dropped as
  unverifiable)
- Add permissionless cleanupExpiredAppeal(appealId) for lazy slot
  release, mirroring pruneBlacklistedAssignment

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- §Consequences: "five entry points" -> "six" (cleanupExpiredAppeal
  was added in d511a64 but the enumeration was not updated)
- architecture.md: ADR 011 entry now mentions the appeals mechanism
- §Global Override: clarify that removeHash mid-appeal triggers the
  lapse path (refund) rather than the reversal path (burn) so the
  contradiction-by-implicit-flip is resolved
- IContentBlacklist: cleanupExpiredAppeal interface comment now
  enumerates all four admissibility conditions (timeout, standing,
  global-override, governance silence) in one place

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@thiras
thiras requested a review from alpergundogdu May 6, 2026 14:37

@alpergundogdu alpergundogdu left a comment

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.

Read the diff end-to-end. Composition with ADR 014 (evidence-age clock anchored to suspendedAtUs), ADR 028 (operator-side decoupling), and ADR 009 (multisig sub-mode rather than new authority) is unusually careful, and the bot-review fixes in d511a64 look correct. Issues below ordered by severity.

Substantive

  1. Block-based clawback timing on Arbitrum (real bug). STANDING_LOOKBACK_BLOCKS = 7,200 blocks ≈ 24 hours on a 12-second L2 block time — but the deployment target is Arbitrum Sepolia (per CLAUDE.md), and Arbitrum One blocks are ~250 ms, so 7,200 blocks is ≈30 minutes, not 24 hours. The clawback window ends up one or two orders of magnitude shorter than intended. Should be timestamp-based (STANDING_LOOKBACK_SECONDS = 86_400) to match every other window in this ADR (BLACKLIST_APPEAL_FILING_WINDOW, BLACKLIST_MULTISIG_REVIEW_WINDOW, etc.). Block-derived deltas on Arbitrum are brittle by design.

  2. Operator standing path collides with #400. Standing path 2 keys off node.region matching the entry's region, but regionHint in NodeAnnounce is self-attested (ADR 001), and #400 explicitly tracks that as an unresolved gap. A bad-faith operator can flip their regionHint purely to gain standing to file against an entry in some region they'd otherwise be unaffected by. The 1,000 TOKEN bond + per-address 90-day cap are the only deterrents — there's no analogue of the TOKEN-holder synthetic-standing clawback for operators. Worth either calling out the dependency on #400 in the PoC-degradation note, or requiring sustained regionHint for some lookback window before an operator filing.

  3. Sybil via multiple addresses defeats the 90-day frequency cap. APPEAL_FILER_FREQUENCY is per-address, default 1 successful appeal / 90 days. A 100K TOKEN holder can split across 10 addresses (each at the 10K threshold) and file 10 successful appeals per 90 days at zero net cost — ratified-success refunds the bond. The cap shape only prices off-chain identity, which is free. Worth either documenting this as accepted, or scoping the cap differently (e.g., per-namespace per-90d, which doesn't depend on identity uniqueness).

  4. Multisig signer-overlap with regional bodies in production. The PoC-degradation note correctly identifies that the admin key signs as both regional body and appeal multisig in PoC. In production, the ADR registers regional bodies via governance vote and routes appeals through the existing emergency multisig (ADR 009) — but never says the two signer sets must be disjoint. A regional body whose signers also sit on the emergency multisig effectively grades its own homework. Either add an explicit non-overlap constraint at body registration, or call out that this is governance's responsibility.

  5. Pay-to-spam via repeated rejection. rejectAppeal burns 100% of the bond, and failed appeals don't count against the 90-day cap. A deep-pocketed griefer can openBlacklistAppeal indefinitely at 1,000 TOKEN per shot, forcing the multisig to keep triaging. The bond is the only friction. Either document this as accepted, or add an "N rejections from address within window → cooldown / temporary appeal denylist" rule analogous to the perjury denylist.

Smaller / clarifications

  1. Standing-path determination at filing. A single address can qualify under multiple paths (publisher who also holds ≥10K TOKEN). The synthetic-standing clawback only applies to the TOKEN-holder path. Which path does the contract use when more than one applies? Should be filer-declared at filing, or always pick the path that exempts from clawback when available — but it should be specified.

  2. Clawback vs. early resolution race. If ratifyAppealRemoval or reverseAppeal fires before T + STANDING_LOOKBACK_BLOCKS (or _SECONDS per #1), what happens to the second balance check? Implicitly moot, but worth saying so explicitly so an implementer doesn't add a post-hoc clawback that yanks a refunded bond back.

  3. Default-open publisher standing is hand-wavy. "publisher of record has been independently established off-chain" — the contract has no way to verify this. Either point to a registry call, or restrict path 1 to namespaces with on-chain PublisherRegistry entries and tell default-open complainants to use path 3.

  4. No path back from fast-track. Once fastTrackAppeal flips suspended = true, the only exits are ratify/reverse/lapse via the windows. If the multisig discovers post-fast-track that they were misled (perjury, late evidence), they have to wait out the ratification window. An unFastTrack (multisig-only, returns to "pending review" state) would close that loop.

Bottom line: the core mechanism is sound. #1 is the only thing I'd call a real bug; #2 and #4 are architectural cross-cuts worth resolving in this PR; the rest are clarifications.


Generated by Claude Code

@alpergundogdu

Copy link
Copy Markdown
Contributor

Code review

Found 1 issue:

  1. cleanupExpiredAppeal interface comment claims it unconditionally "releases the body's interim-relief slot" across all four admissibility conditions, but condition (a) — "multisig silent past BLACKLIST_MULTISIG_REVIEW_WINDOW" — never enters interim-relief because fastTrackAppeal was never called and entry.suspended was never set to true. The BODY_CONCURRENT_APPEAL_CAP definition explicitly states the cap counts only "active interim-relief states (entry.suspended == true) ... Filed-but-not-yet-fast-tracked appeals are unaffected by the cap" — so there is no slot to release in case (a). Same applies to case (c) when standing clawback fires before any fast-track. Recommend tightening the comment to say slot release happens "if the appeal had entered interim-relief" (or split the side-effects per condition).

// Permissionless cleanup. Reverts unless one of the following admissibility
// conditions holds for the appeal:
// (a) multisig silent past BLACKLIST_MULTISIG_REVIEW_WINDOW, or
// (b) governance silent past BLACKLIST_RATIFICATION_WINDOW, or
// (c) synthetic-standing second-checkpoint balance check failed (see
// § Standing — Synthetic-standing clawback), or
// (d) the underlying BlacklistEntry has been removed via removeHash /
// removeHashRegional global override (see § Global Override).
// On success, releases the body's interim-relief slot, refunds or burns the
// bond per § Bond and frequency caps for the matched condition, and emits
// BlacklistAppealLapsed. Mirrors OriginAssignment.pruneBlacklistedAssignment.
function cleanupExpiredAppeal(uint256 appealId) external;

Cap definition for reference:

| `APPEAL_FILER_FREQUENCY` | 1 successful appeal per 90 days | (fixed) | Per filing address, regardless of whether the filer is a publisher, operator, or TOKEN holder. Resets on the date of the most recent ratified-success. Failed appeals consume bond but do not count against the cap. |
| `BODY_CONCURRENT_APPEAL_CAP` | 3 | (fixed) | Caps **active interim-relief states** (`entry.suspended == true`) per regional body, **not** filed-but-unresolved appeals. Filings against a body remain unbounded — the cap only constrains how many of the body's entries can simultaneously be in the suspension state. The multisig is the gate: once three of a body's entries are in interim-relief, `fastTrackAppeal` reverts on a fourth until one resolves (ratify / reverse / lapse), so the multisig must triage. Filed-but-not-yet-fast-tracked appeals are unaffected by the cap. This avoids a denial-of-service vector where an adversary files three frivolous appeals to lock out legitimate filings — frivolous filings can be rejected at intake (`rejectAppeal`, 100% bond burn) without ever entering interim-relief. |

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

Substantive changes from the review pass on 23cb5e0:

- Synthetic-standing clawback (real bug): replace STANDING_LOOKBACK_BLOCKS
  (7,200 blocks ≈ 30min on Arbitrum, not the intended 24h) with
  STANDING_LOOKBACK_SECONDS = 86,400. Add the rationale (Arbitrum sub-second
  block time would underrun a block-denominated window by orders of
  magnitude) and explicitly resolve the clawback-vs-early-resolution race
  (the second checkpoint is moot once governance settles the bond).

- Standing-path determination: add a `standingPath` parameter to
  openBlacklistAppeal so the filer declares one of {Publisher, Operator,
  TokenHolder} at filing time. The contract verifies eligibility under the
  declared path only and records it on the appeal; multi-path filers are
  guided to declare the path that exempts them from the synthetic-standing
  clawback. Avoids contract-internal auto-selection ambiguity.

- Default-open publisher standing: restrict path 1 to namespaces with on-
  chain PublisherRegistry entries. Default-open publishers, content
  advocates, and end-user proxies use path 3 (TOKEN holder) — the contract
  has no on-chain way to verify "publisher of record" off-chain claims.

- Operator standing path / #400 dependency: document that node.region is
  self-attested in NodeAnnounce and a bad-faith operator can flip
  regionHint immediately before filing. Bond + 90-day cap + perjury
  denylist are the only deterrents on this path. Resolution depends on
  #400; until then, recent region changes warrant heightened multisig
  scrutiny on intake.

- Multisig signer non-overlap: registerRegionalBody requires (and SHOULD
  verify on-chain when the body exposes an enumerable signer view) that
  the candidate body's signer set is disjoint from the emergency multisig
  signer set. The emergency multisig hears appeals against body-issued
  entries; overlap means a signer would grade their own homework.

- Pay-to-spam mitigation: add APPEAL_FILER_REJECTION_COOLDOWN — three
  rejections in a 90-day rolling window triggers a 90-day cooldown for
  the address. Bond burn alone prices each individual filing but not the
  multisig's review-time externality.

- Sybil-via-addresses (accepted limitation): explicitly document that
  per-filer caps are keyed on address and cannot price identity strictly.
  The deterrents that survive sybil are the bond economics, the
  per-filing 24h synthetic-standing clawback, and the per-body
  concurrent-appeal cap.

- unFastTrackAppeal escape hatch: multisig-only one-shot that clears
  suspended, releases the body's slot, preserves effectiveAt, and opens
  a fresh review window during which rejectAppeal (burn) or lapse
  (refund) can fire. Closes the gap where post-fast-track perjury / late
  evidence forced the multisig to wait out the ratification window.

- cleanupExpiredAppeal interface comment: qualify the slot-release claim
  — only fast-tracked appeals have a slot to release; case (a) and any
  case (c)/(d) firing pre-fast-track have no slot.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@alpergundogdu

Copy link
Copy Markdown
Contributor

Pushed eb2d2c3 addressing both reviews. Mapping below — file-level summary in the commit body.

From the small inline review (cleanupExpiredAppeal slot-release):

  • ✅ Interface comment now qualifies slot release: only fast-tracked appeals have a slot, case (a) and pre-fast-track (c)/(d) don't. Comment also tags (a) "never fast-tracked" and (b) "post-fast-track" inline.

From the 9-item review (CHANGES_REQUESTED):

  1. ✅ Block-based clawback (real bug). Replaced STANDING_LOOKBACK_BLOCKS = 7,200 blocks with STANDING_LOOKBACK_SECONDS = 86,400. Added the rationale (Arbitrum sub-second blocks would underrun a 24h block-denominated window by orders of magnitude). All windows in this ADR are now timestamp-based.

  2. ✅ Operator standing path / ADR gap: node region / geolocation verification #400. Standing path 2 now explicitly documents the self-attested-regionHint collision with ADR gap: node region / geolocation verification #400, and notes that bond + 90-day cap + perjury denylist are the only deterrents on this path. Resolution depends on ADR gap: node region / geolocation verification #400; flagged as heightened-scrutiny territory until then.

  3. ✅ Sybil via addresses. Documented as accepted limitation in § Bond and frequency caps with the three properties that bound the abuse (per-filing bond cost, per-filing 24h clawback, per-body concurrent-appeal cap). On-chain identity uniqueness is out of scope.

  4. ✅ Multisig signer non-overlap. Added a new "Signer non-overlap with the emergency multisig" subsection in § Regional Governance Bodies. registerRegionalBody reverts on overlap (with on-chain enumeration when the body exposes a signer view), governance MUST verify off-chain otherwise, and rotation-induced overlap is a governance obligation.

  5. ✅ Pay-to-spam. Added APPEAL_FILER_REJECTION_COOLDOWN: 3 rejections in a 90-day rolling window → 90-day cooldown for the address. Sits between bond burn (per filing) and perjury denylist (proven bad faith).

  6. ✅ Standing-path determination. Added a standingPath parameter (uint8 enum: Publisher = 1, Operator = 2, TokenHolder = 3) to openBlacklistAppeal. Filer declares at filing time, contract verifies under declared path only, path is fixed for the appeal lifetime, multi-path filers SHOULD pick the path that exempts them from the synthetic-standing clawback. BlacklistAppealOpened event now carries standingPath.

  7. ✅ Clawback vs. early resolution race. Synthetic-standing clawback paragraph now explicitly states: if ratification or reversal fires before T + STANDING_LOOKBACK_SECONDS, the second checkpoint is moot, and the contract does not retroactively pull a refunded bond.

  8. ✅ Default-open publisher standing. Path 1 now restricted to namespaces with on-chain PublisherRegistry entries — derived via the disputed hash's claim record. Default-open complainants explicitly routed to path 3.

  9. ✅ Path back from fast-track. Added unFastTrackAppeal (emergency multisig only, one-shot per appeal). Clears suspended, releases the body's slot, preserves effectiveAt, leaves bond escrowed, opens a fresh BLACKLIST_MULTISIG_REVIEW_WINDOW from the un-fast-track timestamp during which the multisig may rejectAppeal (burn) or do nothing (lapse → refund). Added BlacklistAppealUnFastTracked event. Consequences entry-point count updated to seven.

pre-commit run --files adr/011-content-takedown.md passes locally.

🤖 Generated with Claude Code

@alpergundogdu

Copy link
Copy Markdown
Contributor

/gemini review

@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 a comprehensive per-entry appeal mechanism for regional blacklist entries within ADR 011. It defines new interface methods for the content blacklist contract, including functions to open, fast-track, and resolve appeals through a combination of emergency multisig action and ve-Governor ratification. The update also specifies detailed rules for filer standing, bond requirements, frequency caps, and evidence standards, while ensuring that suspended entries do not result in slashes during the appeal window. I have no feedback to provide as no review comments were submitted for assessment.

@thiras
thiras merged commit 9c5724f into main May 7, 2026
9 checks passed
@thiras
thiras deleted the adr-011-blacklist-appeals branch May 7, 2026 12: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: add appeal mechanism for regional governance blacklists

3 participants