Skip to content

docs(adr): surface-lock ADR 026/028/032 (resolve #451) - #575

Merged
alpergundogdu merged 3 commits into
mainfrom
adr/451-surface-lock-026-028-032
May 18, 2026
Merged

alpergundogdu merged 3 commits into
mainfrom
adr/451-surface-lock-026-028-032

Conversation

@thiras

@thiras thiras commented May 16, 2026

Copy link
Copy Markdown
Contributor

Surface-lock review pass for #451 over ADR 026 (gauge-boost tokenomics), ADR 028 (slashing appeals), and ADR 032 (the appeal contract-surface pin ADR 028 normatively defers to).

Context

#451 names "ADR 026/027/028". ADR 027 no longer exists — its distinct-client / delivery-receipt machinery (DeliveryReceipt EIP-712 shape, receipt-batch Merkle anchoring, commitEpochReceiptRoot/commitEpochSummary) was deliberately collapsed into the ADR 026 §3 per-operator gauge-share cap. ADR 003 §116 and ADR 016 §249 both pin the replacement invariant ("gauge bytes flow through settleChannel directly with no separate commit step"). There are zero dangling references to the removed surface. So #451 §B is resolved-by-removal, not relocated — there is no receipt surface left to lock.

Findings resolved in this PR

  • ADR 026 §A — claim-rounding direction was unspecified. A genuine surface-changing gap: floor-vs-round and dust disposition compile into bytecode. Pinned floored integer division (no round-up, for final-claimant revert safety) with per-claim truncation dust routed through the existing 26-epoch claim-window treasury sweep — explicitly distinct from the §3 next-epoch rollover path (which is reserved for the whole-bucket degenerate cases).
  • §B — stale ex-ADR-027 reference. Dropped "delivery receipts" from the adr/README.md reading order to match architecture.md Chapter 4.

No surface change required

ADR 028 §C lock-targets (appeal state machine; the six SafetyReserve entry points; the three-window timing model; payout integration; bond/restitution caps) are fully pinned across ADR 028 §6 + ADR 032 §1–4. ADR 032 pins the exact 6-state machine, all six event signatures, escrow accounting, and CEI ordering — it is ADR 028's normative contract-surface dependency, so it is locked alongside.

Status

Draft → Locked-for-implementation on ADR 026, 028, 032. This satisfies the #451 acceptance criteria and unblocks #452.

Per-ADR sign-off / findings reasoning posted as review comments on #451.

🤖 Generated with Claude Code

Surface-lock review pass for #451 over ADR 026 (gauge-boost
tokenomics), ADR 028 (slashing appeals), and ADR 032 (the appeal
contract-surface pin ADR 028 normatively defers to). ADR 027 no
longer exists — its distinct-client/receipt machinery was
deliberately collapsed into the ADR 026 §3 per-operator
gauge-share cap (ADR 003 §116 / ADR 016 §249 pin "no separate
commit step"), so #451 §B is resolved-by-removal.

Findings resolved:

- ADR 026 §A: claim-rounding direction was unspecified — a
  surface-changing gap (compiles into bytecode). Pin floored
  integer division (no round-up; final-claimant revert safety)
  and route per-claim truncation dust through the existing
  26-epoch claim-window treasury sweep, explicitly distinct from
  the §3 next-epoch rollover path.
- §B: drop the stale "delivery receipts" item from the
  adr/README.md reading order (ex-ADR-027 remnant; matches
  architecture.md Chapter 4).

ADR 028 §C lock-targets (appeal state machine, six SafetyReserve
entry points, three-window timing model, payout integration,
bond/restitution caps) are fully pinned across ADR 028 §6 + ADR
032 §1–4; no surface change required.

Status flipped Draft -> Locked-for-implementation on ADR 026,
028, 032, unblocking #452.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the status of several Architecture Decision Records (ADRs) to 'Locked-for-implementation' and introduces a new 'Claim rounding' section to ADR 026, which specifies the use of floored integer division for payouts and the handling of truncation remainders. A review comment correctly identified an internal documentation inconsistency in ADR 026 regarding a section reference for 'Pre-launch gauge accumulation'.

Comment thread adr/026-gauge-boost-tokenomics.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR locks down the implementation surface for ADR 026/028/032 in response to #451 by marking them “Locked-for-implementation”, clarifying a previously underspecified rounding rule in ADR 026, and removing a stale “delivery receipts” reference from the ADR reading order.

Changes:

  • Mark ADR 026, ADR 028, and ADR 032 as Status: Locked-for-implementation.
  • Specify claim rounding direction and dust handling for gauge/delegator bucket claims in ADR 026.
  • Update adr/README.md reading order to drop the removed “delivery receipts” reference.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
adr/README.md Removes the stale “delivery receipts” mention from the suggested reading order.
adr/026-gauge-boost-tokenomics.md Adds an explicit “Claim rounding” rule and updates status to locked.
adr/028-slashing-appeals.md Updates ADR status to locked.
adr/032-safety-reserve-appeals-contract.md Updates ADR status to locked.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adr/026-gauge-boost-tokenomics.md Resolved
Review feedback on #575:
- "Pre-launch gauge accumulation" is in §2, not §3 — corrected the
  cross-ref to §2 (matches the existing §627 prose style).
- "§Epoch-mechanics" → "[§2 Epoch mechanics](#epoch-mechanics)"
  for consistency with the rest of the ADR and a working anchor.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…sion

PR #575 review: "round toward zero — the EVM's native /" was
accurate (all operands uint) but could be misread as a signed-
division claim by an implementer. State unsignedness explicitly.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@alpergundogdu
alpergundogdu merged commit 32b543a into main May 18, 2026
11 checks passed
@alpergundogdu
alpergundogdu deleted the adr/451-surface-lock-026-028-032 branch May 18, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR 026 / 027 / 028 surface lock-down: review formula shapes, state machines, and signatures before implementation

3 participants