Repository navigation
Description
Context
ADR 030 (§ 52 blacklist-scope / § Eligibility checks) defines a region-ripening predicate: a node is in scope for a blacklist entry iff the entry is global, OR entry.region == regionHint, OR (block.timestamp - effective < REGION_STABILITY_WINDOW AND entry.region == regionPrev). This keeps the previous region's entries — and slash exposure under them — applying until a region change has ripened, foreclosing reactive region-flip evasion.
CapacityBond already stores the inputs (regionPrev, regionLastChanged, updateRegion cooldown), but no contract reads them in this revision. Per the region-attestation storage doc (contracts/src/CapacityBond.sol:264-272):
No contract reads it in this revision — ContentBlacklist's scope test currently covers only GLOBAL ∪ region; the ripening leg lands with the ADR 030 enforcement PR.
This issue tracks that deferred enforcement PR.
Scope
- Implement the ADR 030 § Eligibility ripening predicate against
regionPrev/regionLastChanged, including the read-timeeffective = regionLastChanged != 0 ? regionLastChanged : max(firstBondedAt, regionGateActivatedAt)fallback and the one-timeregionGateActivatedAtcontract-global timestamp (ADR 030 § Region-stability window). - Wire it into
ContentBlacklist's scope/slash-eligibility test (currently GLOBAL ∪ region only) and, where applicable, the appeals-standing path-2 check (ADR 011 § Standing). - Cover the resulting cross-contract behavior — in particular the eject/slash-eligibility path triggered when a region change has not yet ripened / falls outside the attestation window, which was the literal ask of test(contracts): full ADR 030 updateRegion e2e — EIP-712 + ed25519 registerNode signing harness #689 scope item 3 but had no production code to test.
Background
Split out of #689 / #760. The #689 e2e test (CapacityBondRegionE2E.t.sol) covers the existing blacklist-driven ContentBlacklist → CapacityBond.ejectNode cross-contract path and documents inline that the region-window-triggered eligibility is deferred here. Once this lands, extend that suite with the ripening-predicate assertions.
References
- ADR 030 § Region-stability window — canonical spec for the
effective/regionGateActivatedAtsemantics - ADR 011 § Regional Scope / § Slashing / § Standing
contracts/src/CapacityBond.sol:264-272,:707— region-attestation storage docs / ripening-predicate pointers- PR test(contracts): full ADR 030 updateRegion e2e — EIP-712 + ed25519 registerNode signing harness (#689) #760, issue test(contracts): full ADR 030 updateRegion e2e — EIP-712 + ed25519 registerNode signing harness #689 (deferred scope item 3)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
github-actions commentedon Jun 1, 2026
🎯 Triage report
This is the deferred ADR 030 enforcement PR split out from #689/#760. It closes the gap between the
regionPrev/regionLastChangedstorage already inCapacityBondand the currently GLOBAL ∪ region-only scope test inContentBlacklist. The three-leg ripening predicate must be wired into both the blacklist scope/slash-eligibility path and the ADR 011 appeals-standing path-2 check, plus theregionGateActivatedAtcontract-global timestamp needs to be introduced. Scope is clearly bounded and well-referenced.📊 Assessment
testingadded (existing:enhancement,technical,medium)CapacityBondRegionE2E.t.solwith ripening-predicate assertionsREGION_STABILITY_WINDOWvalue is not stated in the issue (must be read from ADR 030 directly), and (2) the appeals-standing path-2 wiring ("where applicable") is underspecified — it's unclear whether full standing-check propagation is in scope or only the eligibility flag🔗 Similar issues
regionGateActivatedAt+ appeals-standing leg was deferred to hereCapacityBondRegionE2E.t.sole2e harness this issue builds on; blocked on feat(contracts): production IEd25519Verifier for on-chain NodeId ownership proof #669💡 Notes and suggestions
Implementation checklist:
regionGateActivatedAtas a one-time-settable contract-global inCapacityBond(orContentBlacklist?) — ADR 030 § Region-stability window specifies semantics; confirm which contract owns iteffectiveread-time fallback:regionLastChanged != 0 ? regionLastChanged : max(firstBondedAt, regionGateActivatedAt)ContentBlacklist's scope predicate fromGLOBAL ∪ regionHintto the three-leg formCapacityBondRegionE2E.t.solwith: (a) in-window ripening —regionPreventry still applies; (b) post-window —regionPreventry no longer applies; (c)regionGateActivatedAtbootstrap edge case (first-ever bonded node,regionLastChanged == 0)CI gotcha: The scope test changes in
ContentBlacklisttouch slash-gating logic; run bothforge testandslither/aderynbefore opening the PR — thenonReentrant+ always-reverting stub trap (see CLAUDE.md) is likely in this area.Dependency note: The e2e leg depends on the
CapacityBondRegionE2E.t.solharness from #689, which is itself blocked on #669 (IEd25519Verifier). The pure predicate-logic unit tests (no signature path) can ship independently; only the full cross-contract ripening e2e needs #689 to land first.Add this agentic workflows to your repo
To install this agentic workflow, run
feat(contracts): enforce ADR 030 region-ripening predicate in blackli…