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
ADR 011 contradicts shipped ContentBlacklist on removal roles and global-entry appealability #1309
Two ADR-vs-code divergences found during the review of #1304. Both are in ADR 011, both predate that PR, and both are narrow enough to fix in place.
1. § Global Override (adr/011-content-takedown.md:309) — wrong role
The ADR states the removal functions are "Both functions are restricted to GOVERNANCE_ROLE".
Shipped code: removeHashGlobal (ContentBlacklist.sol:401) is onlyRole(GOVERNANCE_ROLE), but removeHashRegional (:408) is onlyRole(REGIONAL_BODY_ROLE) — with an explicit guard barring regional bodies from the GLOBAL_REGION sentinel. So regional removals are a regional body power, not a governance one.
This matters beyond pedantry: regional entries are the appeal-relevant ones, so the actor that triggers the mid-appeal removal path described in § Global Override is usually a regional body. #1304 corrected the equivalent claim in the Solidity comments; the ADR still carries the old version.
2. § Contract surface (:301) — global entries are appealable as built
The ADR says openBlacklistAppeal "reverts if region == \"\" (global entries — including emergency entries — are out of scope)".
Shipped code: openBlacklistAppeal (:519) rejects only bytes32(0), and a comment at :531 explicitly instructs callers to pass GLOBAL_REGION for global scope. So global entries can be appealed. That is also what makes the removeHashGlobal half of the mid-appeal-removal scenario reachable at all.
Ask
Decide which side is right for each, then align. Per repo convention the ADR is the source of truth, so if the code is the intended behavior the ADR must be edited in place with no tombstone text. If global entries genuinely should not be appealable, that is a contract fix instead and deserves its own issue.
Resolved by #1326 (4a527b1). Both divergences were fixed in the ADR (code is authoritative, edited in place, no tombstone text).
1. § Global Override — removal roles. Now states the two functions are not the same access-control surface: removeHashGlobal is GOVERNANCE_ROLE, removeHashRegional is REGIONAL_BODY_ROLE and reverts on the GLOBAL_REGION sentinel. The text also keeps the threat-model point this issue made — that a regional body can unilaterally delete a regional entry mid-appeal, so the actor triggering the mid-appeal removal path is usually a regional body, not a timelocked vote. (Overlapped with #1313, closed alongside.)
2. § Contract surface — global-entry appealability. Corrected: openBlacklistAppeal reverts only on the unset sentinel (bytes32(0) → MissingRegion); the caller passes GLOBAL_REGION to contest a global entry, and global and emergency entries are in scope. This matches ContentBlacklist.sol and is what makes the removeHashGlobal leg of the mid-appeal-removal scenario reachable at all.
Activity
thiras commentedon Jul 20, 2026
Resolved by #1326 (
4a527b1). Both divergences were fixed in the ADR (code is authoritative, edited in place, no tombstone text).1. § Global Override — removal roles. Now states the two functions are not the same access-control surface:
removeHashGlobalisGOVERNANCE_ROLE,removeHashRegionalisREGIONAL_BODY_ROLEand reverts on theGLOBAL_REGIONsentinel. The text also keeps the threat-model point this issue made — that a regional body can unilaterally delete a regional entry mid-appeal, so the actor triggering the mid-appeal removal path is usually a regional body, not a timelocked vote. (Overlapped with #1313, closed alongside.)2. § Contract surface — global-entry appealability. Corrected:
openBlacklistAppealreverts only on the unset sentinel (bytes32(0)→MissingRegion); the caller passesGLOBAL_REGIONto contest a global entry, and global and emergency entries are in scope. This matchesContentBlacklist.soland is what makes theremoveHashGloballeg of the mid-appeal-removal scenario reachable at all.