Repository navigation
docs(adr): add per-entry blacklist appeal mechanism to ADR 011 - #430
Conversation
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]>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
IContentBlacklistsurface with appeal-related entrypoints/events and addssuspended/suspendedAtfields toBlacklistEntry. - 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.
- 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]>
alpergundogdu
left a comment
There was a problem hiding this comment.
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
-
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. -
Operator standing path collides with #400. Standing path 2 keys off
node.regionmatching the entry's region, butregionHintinNodeAnnounceis self-attested (ADR 001), and #400 explicitly tracks that as an unresolved gap. A bad-faith operator can flip theirregionHintpurely 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 sustainedregionHintfor some lookback window before an operator filing. -
Sybil via multiple addresses defeats the 90-day frequency cap.
APPEAL_FILER_FREQUENCYis 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). -
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.
-
Pay-to-spam via repeated rejection.
rejectAppealburns 100% of the bond, and failed appeals don't count against the 90-day cap. A deep-pocketed griefer canopenBlacklistAppealindefinitely 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
-
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.
-
Clawback vs. early resolution race. If
ratifyAppealRemovalorreverseAppealfires beforeT + STANDING_LOOKBACK_BLOCKS(or_SECONDSper #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. -
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
PublisherRegistryentries and tell default-open complainants to use path 3. -
No path back from fast-track. Once
fastTrackAppealflipssuspended = 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. AnunFastTrack(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
Code reviewFound 1 issue:
decdn/adr/011-content-takedown.md Lines 81 to 92 in 23cb5e0 Cap definition for reference: decdn/adr/011-content-takedown.md Lines 247 to 249 in 23cb5e0 🤖 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]>
|
Pushed From the small inline review (
From the 9-item review (CHANGES_REQUESTED):
🤖 Generated with Claude Code |
|
/gemini review |
There was a problem hiding this comment.
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.
Summary
APPEAL_FILER_TOKEN_THRESHOLD; bond + 90d filer cap + perjury denylist deter pro-forma filingsopenBlacklistAppeal/fastTrackAppeal/rejectAppeal/ratifyAppealRemoval/reverseAppeal), six new events, two newBlacklistEntryfields (suspended,suspendedAt); full ABI deferred to a contract-implementation ADRCloses #131.
Test plan
+ 'pre-commit run --files adr/011-content-takedown.md' +passes locally (markdownlint, whitespace, EOF, deny)+ '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🤖 Generated with Claude Code