Repository navigation
Description
Summary
End-to-end review pass over ADR 026 (gauge-boost tokenomics), ADR 027 (distinct-client receipts), and ADR 028 (slashing appeals) to lock the contract-shape decisions before implementation. Parameter values stay governance-tunable post-deploy; this review locks the shape — formula structure, state machines, function signatures, storage commitments, event shapes — that compiles into bytecode and cannot be changed without redeployment.
Why now
Surfaced as a hard prerequisite by #449 and #450. The unified contract surface (#449) and the canonical interface specs (#450) both reference this trio extensively. The implementation issue (downstream) cannot start until each ADR is signed off as surface-final.
The earlier framing — "ADR 026/027/028 are still settling, defer the production-only contracts" — is no longer valid under #449's tunable-from-launch design. We're shipping the full surface; the surface needs to lock.
Scope
A single review pass per ADR. Each yields either a sign-off comment or a list of surface-changing concerns to resolve before sign-off.
A. ADR 026 — gauge-boost tokenomics
Lock-targets:
- Gauge-boost formula structure (§3) — the parametric form
min(bytes_i, bytes_i^veShare × boostFloor + bytes_i × (1 - boostFloor))or whatever the current canonical form is. Constants stay tunable; the formula shape compiles in. - Six-bucket structure (§2) — bucket count, bucket categories, sum-to-100 invariant. Share percentages stay tunable per ADR: unify contract surface; drop PoC/Production phasing in favor of tunable economics #449.
- Epoch mechanics (§2) — epoch length unit, claim window length unit, epoch-rollover semantics, claim-rounding direction. Specific durations stay tunable.
- VotingEscrow lock semantics (§4) — max lock duration ceiling, no-early-exit invariant, checkpoint pattern,
balanceOfAt/totalSupplyAtsignatures. - Slashing distribution (§8) — 50/30/20 split structure (challenger / SafetyReserve / burn). Percentages stay tunable.
- Burn semantics —
ERC20Burnable.burnFromintegration; how SafetyReserve / FeeRouter authorize burns.
Out of lock: parameter values, governable bounds, rollout schedule.
B. ADR 027 — distinct-client receipts
Lock-targets:
DeliveryReceiptEIP-712 typed-data shape (§1) — fields, ordering, type hash structure.- Receipt-batch Merkle anchoring (§4) — root commitment shape, who-can-call rules, when-callable rules, storage layout.
commitEpochReceiptRoot/commitEpochSummarysignatures — currently referenced from ADR 003 §407 and ADR 016 §538 but the canonical spec lives here. Surface needs to be pinned.- Distinct-client diversity threshold structure — the formula gating gauge eligibility on receipt counts (parameters tunable; structure compiled in).
- Challenge path interaction — how individual receipts surface on-challenge via
SlashJudgeper ADR 008's reputation gate.
Out of lock: parameter values (diversity thresholds, batch size limits), reputation-gate constants.
C. ADR 028 — slashing appeals
Lock-targets:
- Appeal state machine — states (
Open,FastTracked,Rejected,Ratified,Reversed,Lapsed) and the legal transitions between them. State graph compiles in; window durations stay tunable. SafetyReserveextension function signatures (§123) —openSlashAppeal,fastTrackAppeal,rejectAppeal,ratifyAppeal,reverseAppealparameters and access control.- Three-window timing model (§112) —
APPEAL_FILING_WINDOW,MULTISIG_REVIEW_WINDOW,RATIFICATION_WINDOWindependence and per-clock semantics. Window durations stay tunable. payoutintegration — how the appeal-ratification path uses the existingSafetyReserve.payoutinterface (per §130: "additional authorization path into the same payout machinery").- Bond / restitution caps — the structural caps (per-operator yearly limits, coordinated-attack waiver path). Specific cap values stay tunable.
Out of lock: window durations, bond size, restitution cap values, frequency-cap thresholds.
Out of scope
- Parameter value finalization — deliberately out of scope. Every parameter referenced in this review is governance-tunable post-deploy; we are NOT trying to converge on final values here.
- New economic decisions. This is a review-and-lock pass over decisions already documented. If a reviewer surfaces a missing decision, it gets recorded as a finding and resolved in a separate ADR PR — not as a fork of this issue.
- Cross-ADR consistency cleanup. That belongs in ADR surface-gap audit: missing interface blocks and unspecified function signatures across the unified contract surface #450's gap-fill PRs.
Acceptance
- ADR 026 reviewed end-to-end; surface-lock sign-off or findings list comment posted
- ADR 027 reviewed end-to-end; surface-lock sign-off or findings list comment posted
- ADR 028 reviewed end-to-end; surface-lock sign-off or findings list comment posted
- Any findings resolved via separate ADR PRs and re-reviewed
- All three ADRs marked Status: Locked-for-implementation in their headers (currently all three are
Status: Draft)
Related
- Surfaces requirement from: ADR: unify contract surface; drop PoC/Production phasing in favor of tunable economics #449, ADR surface-gap audit: missing interface blocks and unspecified function signatures across the unified contract surface #450
- Blocks: implementation issue (TBD)
- References: ADR 026, ADR 027, ADR 028
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
alpergundogdu commentedon May 7, 2026
Cross-link: decdn#453 is the complementary execution-risk register for 026/027/028 — surfaces decisions the ADRs explicitly defer (slashId emission, MMR vs plain-hash accumulator, gauge-pause mechanism, funding-source diversity enforceability) that need to land before this surface-lock review can sign off.
In particular, ADR 028 sign-off depends on the
SlashJudgeslashId-emission gap (Risk 1) and ADR 027 sign-off depends on the MMR pinning decision (Risk 2). SafetyReserve sizing validation (Risk 3) moved to a finance/ issue; the remaining items resolve in this repo.docs(adr): unify contract surface; drop PoC/Production phasing (#449)
docs(adr): unify contract surface; drop PoC/Production phasing (#449) (…
docs(adr): drop phantom ADR 026 §11 reference for receipt-anchoring w…
docs(adr): align IFeeRouter ReceiptSummary + events to ADR 027 §4 can…
docs(adr): FeeRouter interface block in ADR 016 §1 (#450 §A.2 + §B.4 …
docs(adr): SafetyReserve + DelegatorBuyer interface blocks (#450 §A.3…
docs(adr): full receipt-anchoring spec in ADR 027 §4 (#450 §B.3) (#460)
docs(adr): pin gap-fix items (timing bounds, commitEpochSummary valid…
thiras commentedon May 16, 2026
Surface-lock review — sign-off (ADR 026 / 028 / 032)
End-to-end review pass complete. Findings resolved in #575; re-reviewed below. Note up front: ADR 027 no longer exists — its distinct-client / delivery-receipt surface was deliberately collapsed into the ADR 026 §3 per-operator gauge-share cap. The "three ADRs" of this issue resolve to 026, 028, and 032 (the contract-surface pin ADR 028 normatively defers to).
A. ADR 026 — gauge-boost tokenomics — ✅ SIGN-OFF (one finding resolved)
working_bytes_i = min(bytes_i, 0.4·bytes_i + 0.6·(ve_i/total_ve)·total_bytes),share_i = min(working_bytes_i/sum, MAX_GAUGE_SHARE_PER_OPERATOR); degenerate fallbacks (total_ve==0,sum==0,bytes_i==0) pinned.setShares.balanceOfAt/totalSupplyAtsignatures all present.ERC20Burnableburn/burnFrom; standard-interface integration.B. ex-ADR-027 — distinct-client receipts — ✅ RESOLVED-BY-REMOVAL
The §B lock-targets (
DeliveryReceiptEIP-712 shape, receipt-batch Merkle anchoring,commitEpochReceiptRoot/commitEpochSummary, distinct-client diversity threshold) do not exist anywhere canonical and have zero dangling references. This is an architecture decision already taken, not a gap: the receipt-counting wash-trading defense was replaced by the ADR 026 §3 per-operator gauge-share cap. The byte source is the EIP-712 voucherbytesDeliveredfield flowingsettleChannel → routeSettlement → FeeRouter.bytesPerEpoch; ADR 003 §116 and ADR 016 §249 pin the "no separate commit step" invariant. Nothing left to lock for §B.adr/README.mdreading order — corrected in docs(adr): surface-lock ADR 026/028/032 (resolve #451) #575.StablePaymentChannel(…commitReceiptRootper ADR 003)". No such function exists in the locked design —StablePaymentChannelonly doessettleChannel → routeSettlement. Suggest editing Implement unified deCDN contract surface for audit (full 14-contract scope) #452 item 3 to drop thecommitReceiptRootclause so implementers don't chase a removed surface.C. ADR 028 — slashing appeals — ✅ SIGN-OFF (no surface change)
Open/FastTracked/Ratified/Reversed/Rejected/Lapsed) and the legal transitions.SafetyReserveextension signatures (§6)openSlashAppeal/fastTrackAppeal/rejectAppeal/ratifyAppeal/reverseAppeal+ permissionlesscleanupExpiredAppeal, with access-control modifiers, across ADR 028 §6 + ADR 026 §5ISafetyReserve+ ADR 032.APPEAL_FILING_WINDOW/MULTISIG_REVIEW_WINDOW/RATIFICATION_WINDOWindependence + per-clock semantics + window-timing invariant pinned; durations tunable.payoutintegrationpayout(bundleHash, recipient, amount)entry point (§6); ADR 032 §2 pins the CEI lien-release-then-payout sequence.MAX_APPEAL_RESTITUTION/OPERATOR_APPEAL_FREQUENCYstructural caps; values tunable.Dependency note: ADR 028's state machine, storage layout, and six event signatures are normatively delegated to ADR 032, which fully pins them. ADR 032 is therefore locked alongside 028 (it would be incoherent to lock 028 against a
Draftcontract-surface dependency). Risk-1 (Slashed/slashId) is canonical in ADR 014 §2 — appeal pinning is sound.Acceptance
Closing recommended on #575 merge. #453 Risk 3 (
decdn/finance#3, SafetyReserve sizing) is finance-tracked and explicitly not a surface-shape blocker — does not gate this lock or #452.docs(adr): surface-lock ADR 026/028/032 (resolve #451) (#575)