You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ContentBlacklist: ADR 011 § Global Override says removeHashRegional is GOVERNANCE_ROLE, contract gates it on REGIONAL_BODY_ROLE #1313
Flagged during the review of #1304 (comment-accuracy pass). Distinct from the ADR 011 reconciliation already tracked in #1296 (origin-version) and #1300 (indexed version event field) — this is an access-control divergence, not a versioning one.
The drift
ADR 011 (adr/011-content-takedown.md:309), § Global Override:
DecdnGovernor proposals may call removeHash (global entries) and removeHashRegional (regional entries) directly via the standard timelock, regardless of any open appeal. Both functions are restricted to GOVERNANCE_ROLE; this is now explicitly documented as their access control.
Contract (contracts/src/ContentBlacklist.sol):
removeHashGlobal(bytes32 hash) → onlyRole(GOVERNANCE_ROLE) (line 404) — matches, but the ADR names it removeHash.
removeHashRegional(bytes32 region, bytes32 hash) → onlyRole(REGIONAL_BODY_ROLE) (line 411) — contradicts the ADR's GOVERNANCE_ROLE claim, and the signature differs from the ADR's removeHashRegional(bytes32 blake3Hash, string calldata region).
Why it matters
The role is load-bearing for the threat model: REGIONAL_BODY_ROLE lets a regional body unilaterally delete a regional entry mid-appeal (a "global override" with lapse reason code 3), whereas the ADR describes a single GOVERNANCE_ROLE/timelock chokepoint. #1304's own _setEntrySuspended NatSpec now documents the code's REGIONAL_BODY_ROLE behavior, so the ADR is currently the stale side of a claim its own header designates source-of-truth.
Decision needed
Reconcile one way:
ADR is right → tighten removeHashRegional to GOVERNANCE_ROLE (removes regional bodies' unilateral-delete capability — a behavioral change with appeal-flow implications).
Contract is right → correct ADR 011 § Global Override to state removeHashRegional is REGIONAL_BODY_ROLE, and fix the § Interface signature (removeHash→removeHashGlobal, param order/type).
Likely (2), but this is a governance/threat-model call, not a doc typo. Overlaps the wider § Interface divergence noted on #1300.
Resolved by #1326 (4a527b1), taking option 2 — the contract is right, the ADR was stale. No behavioral change: removeHashRegional keeps REGIONAL_BODY_ROLE.
ADR 011 § Global Override now reads that removeHashGlobal (global entries) is GOVERNANCE_ROLE while removeHashRegional (regional entries) is REGIONAL_BODY_ROLE and reverts on the GLOBAL_REGION sentinel — so it is a regional body's unilateral power, not a governance one, and governance reaches a regional entry only by holding that role.
The § Interface signature drift this issue also flagged is fixed: the ADR names removeHashGlobal (was removeHash) with the shipped parameter shape.
The load-bearing threat-model consequence you called out is preserved in the ADR text rather than dropped: because regional entries are the appeal-relevant ones, the actor that triggers the mid-appeal removal path is usually a regional body acting alone.
Activity
fix(contracts): fail loudly on moot fast-track + tighten review comme…
fix(contracts): no phantom blacklist version bump on removed-mid-appe…
thiras commentedon Jul 20, 2026
Resolved by #1326 (
4a527b1), taking option 2 — the contract is right, the ADR was stale. No behavioral change:removeHashRegionalkeepsREGIONAL_BODY_ROLE.ADR 011 § Global Override now reads that
removeHashGlobal(global entries) isGOVERNANCE_ROLEwhileremoveHashRegional(regional entries) isREGIONAL_BODY_ROLEand reverts on theGLOBAL_REGIONsentinel — so it is a regional body's unilateral power, not a governance one, and governance reaches a regional entry only by holding that role.The § Interface signature drift this issue also flagged is fixed: the ADR names
removeHashGlobal(wasremoveHash) with the shipped parameter shape.The load-bearing threat-model consequence you called out is preserved in the ADR text rather than dropped: because regional entries are the appeal-relevant ones, the actor that triggers the mid-appeal removal path is usually a regional body acting alone.
Overlaps #1309 item 1, closed alongside.