Skip to content

docs(adr): split SafetyReserve out of ADR 026 → ADR 033 (#590 part 1) - #595

Merged
alpergundogdu merged 2 commits into
mainfrom
claude/split-adr-026
May 19, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
claude/split-adr-026

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Summary

First extraction of the ADR 026 per-bucket split (#590). The 3% safety/insurance bucket (§5) moves verbatim into a new self-contained ADR 033 — Safety and Insurance Reserve; ADR 026 §5 becomes a one-paragraph umbrella pointer. ADR 026: 659 → 469 lines (−190).

I scoped this PR to the SafetyReserve bucket because (a) it's the single largest block (~30% of the file), (b) it has a natural pair already in the corpus (ADR 032, the appeal-surface), and (c) it bounds the cross-reference blast radius to 18 refs in 2 files vs. ~62 across 21 for the full split — reviewable and verifiable in one pass.

What changed (7 files, +227/−213)

  • New adr/033-safety-insurance-reserve.md — §5 moved verbatim (payout categories, four-gate spending controls, epoch-FIFO cross-category ordering, permissionless queued disbursement, interface stability, full ISafetyReserve contract) + a short Context linking the umbrella (026 §2) and the appeal-surface (032). Status: Draft.
  • ADR 026 §5 → umbrella pointer. The ### 5. heading is kept (so #5-safety-and-insurance-reserve-3-bucket and its 5 inbound refs stay valid) with a 1-paragraph summary + link to 033. Nothing else in 026 changed (verified byte-identical pre/post the §5 block).
  • Anchor-safe technique: §5 subsection headings moved with text unchanged (####→### promotion only → slugs identical), so #spending-controls, #cross-category-payout-ordering, #interface-stability, #contract-safetyreserve resolve in 033. The one intra-026 link in the moved content ([§2 Epoch mechanics]) was rewritten to a cross-ADR link.
  • 18 inbound refs repointed 026→033: 4 in ADR 028, 14 in ADR 032 (the appeals ADRs that pair with the reserve).
  • architecture.md Chapter 4 reading order + numeric index; Makefile BOOK_SRCS (033 after 026); CLAUDE.md ADR note (next → 034; 033 canonical).

Verification

The repo's check-book-list only checks file presence, not anchor resolution, so I built a github-slugger-accurate corpus link checker:

  • Total broken links: 10 → 10 (all pre-existing and unrelated; e.g. some #6-delegator…/#10-bootstrap… em-dash-slug mismatches that predate this PR). 0 new breaks; 0 on any §5/033/026 anchor.
  • make check-book-list green (24 ADRs + 12 appendices).
  • MD001 heading levels clean; adr/ self-contained (033 has no issue/PR refs); pre-commit/markdownlint green.

Part of #590 — not closing it

This does the first (largest, naturally-paired) extraction. The remaining split is the planned follow-up, and the boundaries are still your call per the issue:

  1. Gauge-boost formula + VotingEscrow (§3 + §4, incl. the per-operator gauge-share cap and the VotingEscrow contract) → proposed ADR 034.
  2. Delegator pool (§6 + DelegatorBuyer contract) → proposed ADR 035.
  3. Grouping of the remainder (§1 supply, §7 operator economics, §8 slashing-burn, §9 governance-weight, §10 bootstrap, §11 governable params): I'd keep these in the slim 026 umbrella alongside §2's six-bucket table. Confirm, or split differently?

Your call on whether to merge this as part 1 and proceed with 034/035 as separate PRs (my recommendation, same anchor-safe technique), or adjust the boundaries/titles/numbers first.

First extraction of the ADR 026 per-bucket split. The 3% safety/
insurance bucket (§5: payout categories, four-gate spending controls,
epoch-FIFO cross-category ordering, permissionless queued disbursement,
interface stability, ISafetyReserve contract) moves verbatim to a new
self-contained ADR 033; ADR 026 §5 becomes a one-paragraph umbrella
pointer (heading kept, so #5-safety-and-insurance-reserve-3-bucket and
its 5 inbound refs stay valid). 026: 659 -> 469 lines.

- Anchor-safe technique: §5 subsection headings moved verbatim
  (####->### promotion only; slugs unchanged), so #spending-controls,
  #cross-category-payout-ordering, #interface-stability,
  #contract-safetyreserve resolve in 033. The one intra-026 link in the
  moved content ([§2 Epoch mechanics]) rewritten to a cross-ADR link.
- 18 inbound refs repointed 026->033 (4 in ADR 028, 14 in ADR 032 —
  the appeals ADRs that pair with the reserve).
- architecture.md Chapter 4 reading order + numeric index updated;
  Makefile BOOK_SRCS adds 033 after 026; CLAUDE.md ADR note bumped
  (next 034; 033 canonical).

Verified with a github-slugger-accurate corpus link checker: total
broken links unchanged at 10 (all pre-existing, none §5/033/026),
0 new breaks; make check-book-list green (24 ADRs + 12 appendices);
MD001 headings clean; adr/ self-contained; pre-commit green.

Part of #590 (gauge-boost/VotingEscrow §3-4 and delegator-pool §6
extractions are the planned follow-ups; grouping/titles/numbers are
open for your call).

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 refactors the documentation by moving the Safety and Insurance Reserve specification from ADR 026 into a new standalone document, ADR 033, and updating all internal cross-references. The review feedback identifies several instances where the descriptive text still incorrectly cites ADR 026 as the canonical source for the ISafetyReserve interface and spending controls. Additionally, a gas optimization was suggested for the Incident struct in ADR 033 to improve storage packing.

Comment on lines +79 to +86
struct Incident {
bytes32 bundle; // attested evidence hash
address recipient; // payout target
uint256 usdcAmount; // USDC base units (6 decimals)
uint64 paidAt; // block timestamp
address paidBy; // Governor or emergency-multisig that authorized
IncidentReason reason; // categorical tag for indexers and audit
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

For gas optimization, the fields in the Incident struct should be reordered to allow for tighter packing. By grouping smaller types together, you can reduce the number of storage slots used by the struct from 6 to 4.

This is an important optimization for Solidity contracts to reduce gas costs for storage operations.

Suggested change
struct Incident {
bytes32 bundle; // attested evidence hash
address recipient; // payout target
uint256 usdcAmount; // USDC base units (6 decimals)
uint64 paidAt; // block timestamp
address paidBy; // Governor or emergency-multisig that authorized
IncidentReason reason; // categorical tag for indexers and audit
}
struct Incident {
bytes32 bundle;
uint256 usdcAmount;
address recipient;
uint64 paidAt;
IncidentReason reason;
address paidBy;
}
References
  1. Optimize Solidity storage by reordering struct fields to group types smaller than 32 bytes (e.g., address, uint64, and enums) together. This allows multiple fields to be packed into a single 32-byte storage slot, reducing gas consumption for storage operations.

Comment thread adr/028-slashing-appeals.md Outdated
The sworn declaration is an EIP-712-signed statement (secp256k1, signed by the operator's registered Ethereum address — distinct from the Ed25519 wire identity used in `cdn/probe/v1` and `cdn/client/v1`), attesting under penalty of stake that the outage was genuine and no slashable offense was committed during the window. **Perjury — proven by post-hoc evidence — is grounds for re-slashing at the next escalation tier (5%→15%→50%; if already at the 50% tier, perjury triggers immediate auto-ejection per [ADR 026 §8](026-gauge-boost-tokenomics.md#8-slashing-and-burn) and full forfeit of the remaining stake) and full forfeit of the appeal bond, in addition to the original slash.** The re-slash executes via the standard `SlashJudge.submit*Challenge()` flow with the sworn declaration entered as evidence.

Evidence type (b) is the on-chain-verifiable path; (a) and (c) are off-chain-rooted but hash-referenced on-chain. The bundle format mirrors `SafetyReserve`'s existing attested-incident-bundle format ([ADR 026 §5 Spending controls](026-gauge-boost-tokenomics.md#spending-controls)).
Evidence type (b) is the on-chain-verifiable path; (a) and (c) are off-chain-rooted but hash-referenced on-chain. The bundle format mirrors `SafetyReserve`'s existing attested-incident-bundle format ([ADR 026 §5 Spending controls](033-safety-insurance-reserve.md#spending-controls)).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

To improve clarity and avoid confusion, the link texts that now point to 033-safety-insurance-reserve.md should be updated to refer to ADR 033 instead of ADR 026.

For example, here [ADR 026 §5 Spending controls] should be [ADR 033 § Spending controls].

This applies to other similar links in this file that now point to ADR 033, for example on lines 108, 129, and 189.

Suggested change
Evidence type (b) is the on-chain-verifiable path; (a) and (c) are off-chain-rooted but hash-referenced on-chain. The bundle format mirrors `SafetyReserve`'s existing attested-incident-bundle format ([ADR 026 §5 Spending controls](033-safety-insurance-reserve.md#spending-controls)).
Evidence type (b) is the on-chain-verifiable path; (a) and (c) are off-chain-rooted but hash-referenced on-chain. The bundle format mirrors SafetyReserve's existing attested-incident-bundle format ([ADR 033 § Spending controls](033-safety-insurance-reserve.md#spending-controls)).
References
  1. When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.
  2. When renumbering or removing sections in a document, update all internal cross-references to reflect the new section numbers.

## Context

[ADR 028 § Slashing Appeals](028-slashing-appeals.md) specifies the post-slash appeal-flow semantics (30-day filing window, multisig fast-track + ve-Governor ratification, per-appeal escrow, bond economics, 365-day per-operator frequency cap). [ADR 028 §6](028-slashing-appeals.md#6-contract-surface) names five `SafetyReserve` entry points and pins the `Slashed`-event coupling; the [`ISafetyReserve` interface](026-gauge-boost-tokenomics.md#contract-safetyreserve) in ADR 026 §5 carries five appeal-flow event-name stubs. Storage layout, per-appeal escrow accounting, and the full Solidity event signatures (including `SlashAppealLapsed`, named in ADR 028's [Cross-ADR Impact](028-slashing-appeals.md#cross-adr-impact) but absent from ADR 026 §5's stub) live nowhere canonical.
[ADR 028 § Slashing Appeals](028-slashing-appeals.md) specifies the post-slash appeal-flow semantics (30-day filing window, multisig fast-track + ve-Governor ratification, per-appeal escrow, bond economics, 365-day per-operator frequency cap). [ADR 028 §6](028-slashing-appeals.md#6-contract-surface) names five `SafetyReserve` entry points and pins the `Slashed`-event coupling; the [`ISafetyReserve` interface](033-safety-insurance-reserve.md#contract-safetyreserve) in ADR 026 §5 carries five appeal-flow event-name stubs. Storage layout, per-appeal escrow accounting, and the full Solidity event signatures (including `SlashAppealLapsed`, named in ADR 028's [Cross-ADR Impact](028-slashing-appeals.md#cross-adr-impact) but absent from ADR 026 §5's stub) live nowhere canonical.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This sentence is now factually incorrect after refactoring. The ISafetyReserve interface is now defined in ADR 033, not 'in ADR 026 §5'. Please update the text to reflect this.

Suggested change
[ADR 028 § Slashing Appeals](028-slashing-appeals.md) specifies the post-slash appeal-flow semantics (30-day filing window, multisig fast-track + ve-Governor ratification, per-appeal escrow, bond economics, 365-day per-operator frequency cap). [ADR 028 §6](028-slashing-appeals.md#6-contract-surface) names five `SafetyReserve` entry points and pins the `Slashed`-event coupling; the [`ISafetyReserve` interface](033-safety-insurance-reserve.md#contract-safetyreserve) in ADR 026 §5 carries five appeal-flow event-name stubs. Storage layout, per-appeal escrow accounting, and the full Solidity event signatures (including `SlashAppealLapsed`, named in ADR 028's [Cross-ADR Impact](028-slashing-appeals.md#cross-adr-impact) but absent from ADR 026 §5's stub) live nowhere canonical.
[ADR 028 § Slashing Appeals](028-slashing-appeals.md) specifies the post-slash appeal-flow semantics (30-day filing window, multisig fast-track + ve-Governor ratification, per-appeal escrow, bond economics, 365-day per-operator frequency cap). [ADR 028 §6](028-slashing-appeals.md#6-contract-surface) names five SafetyReserve entry points and pins the Slashed-event coupling; the [ISafetyReserve interface](033-safety-insurance-reserve.md#contract-safetyreserve) in ADR 033 carries five appeal-flow event-name stubs. Storage layout, per-appeal escrow accounting, and the full Solidity event signatures (including SlashAppealLapsed, named in ADR 028's Cross-ADR Impact(028-slashing-appeals.md#cross-adr-impact) but absent from ADR 026 §5's stub) live nowhere canonical.
References
  1. When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.
  2. When renumbering or removing sections in a document, update all internal cross-references to reflect the new section numbers.

[ADR 028 § Slashing Appeals](028-slashing-appeals.md) specifies the post-slash appeal-flow semantics (30-day filing window, multisig fast-track + ve-Governor ratification, per-appeal escrow, bond economics, 365-day per-operator frequency cap). [ADR 028 §6](028-slashing-appeals.md#6-contract-surface) names five `SafetyReserve` entry points and pins the `Slashed`-event coupling; the [`ISafetyReserve` interface](033-safety-insurance-reserve.md#contract-safetyreserve) in ADR 026 §5 carries five appeal-flow event-name stubs. Storage layout, per-appeal escrow accounting, and the full Solidity event signatures (including `SlashAppealLapsed`, named in ADR 028's [Cross-ADR Impact](028-slashing-appeals.md#cross-adr-impact) but absent from ADR 026 §5's stub) live nowhere canonical.

This is the contract-implementation ADR for the slash-appeal surface — the slashing-side analogue of [ADR 031 — ContentBlacklist appeal-contract surface](031-content-blacklist-appeals-contract.md), which does the same for [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals). It pins the per-appeal storage layout, the per-appeal escrow accounting from [ADR 028 §2](028-slashing-appeals.md#2-appeal-flow), all six canonical event signatures (resolving the `SlashAppealLapsed` gap), the state machine, and the integration with the cross-category pending-claim queue from [ADR 026 §5 Cross-category payout ordering](026-gauge-boost-tokenomics.md#cross-category-payout-ordering).
This is the contract-implementation ADR for the slash-appeal surface — the slashing-side analogue of [ADR 031 — ContentBlacklist appeal-contract surface](031-content-blacklist-appeals-contract.md), which does the same for [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals). It pins the per-appeal storage layout, the per-appeal escrow accounting from [ADR 028 §2](028-slashing-appeals.md#2-appeal-flow), all six canonical event signatures (resolving the `SlashAppealLapsed` gap), the state machine, and the integration with the cross-category pending-claim queue from [ADR 026 §5 Cross-category payout ordering](033-safety-insurance-reserve.md#cross-category-payout-ordering).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

To improve clarity, link texts pointing to the newly created ADR 033 should be updated to refer to ADR 033 instead of ADR 026.

For example, [ADR 026 §5 Cross-category payout ordering] should be [ADR 033 § Cross-category payout ordering].

This will make the documentation easier to navigate. Please apply this change consistently throughout the file for all links that have been repointed to 033-safety-insurance-reserve.md (e.g., on lines 16, 80, 92, 101, 112, 136, 170, 174, 178, 218, 219).

Suggested change
This is the contract-implementation ADR for the slash-appeal surface — the slashing-side analogue of [ADR 031 — ContentBlacklist appeal-contract surface](031-content-blacklist-appeals-contract.md), which does the same for [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals). It pins the per-appeal storage layout, the per-appeal escrow accounting from [ADR 028 §2](028-slashing-appeals.md#2-appeal-flow), all six canonical event signatures (resolving the `SlashAppealLapsed` gap), the state machine, and the integration with the cross-category pending-claim queue from [ADR 026 §5 Cross-category payout ordering](033-safety-insurance-reserve.md#cross-category-payout-ordering).
This is the contract-implementation ADR for the slash-appeal surface — the slashing-side analogue of [ADR 031 — ContentBlacklist appeal-contract surface](031-content-blacklist-appeals-contract.md), which does the same for [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals). It pins the per-appeal storage layout, the per-appeal escrow accounting from [ADR 028 §2](028-slashing-appeals.md#2-appeal-flow), all six canonical event signatures (resolving the SlashAppealLapsed gap), the state machine, and the integration with the cross-category pending-claim queue from [ADR 033 § Cross-category payout ordering](033-safety-insurance-reserve.md#cross-category-payout-ordering).
References
  1. When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.
  2. When renumbering or removing sections in a document, update all internal cross-references to reflect the new section numbers.

This is the contract-implementation ADR for the slash-appeal surface — the slashing-side analogue of [ADR 031 — ContentBlacklist appeal-contract surface](031-content-blacklist-appeals-contract.md), which does the same for [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals). It pins the per-appeal storage layout, the per-appeal escrow accounting from [ADR 028 §2](028-slashing-appeals.md#2-appeal-flow), all six canonical event signatures (resolving the `SlashAppealLapsed` gap), the state machine, and the integration with the cross-category pending-claim queue from [ADR 026 §5 Cross-category payout ordering](026-gauge-boost-tokenomics.md#cross-category-payout-ordering).
This is the contract-implementation ADR for the slash-appeal surface — the slashing-side analogue of [ADR 031 — ContentBlacklist appeal-contract surface](031-content-blacklist-appeals-contract.md), which does the same for [ADR 011 § Blacklist Entry Appeals](011-content-takedown.md#blacklist-entry-appeals). It pins the per-appeal storage layout, the per-appeal escrow accounting from [ADR 028 §2](028-slashing-appeals.md#2-appeal-flow), all six canonical event signatures (resolving the `SlashAppealLapsed` gap), the state machine, and the integration with the cross-category pending-claim queue from [ADR 026 §5 Cross-category payout ordering](033-safety-insurance-reserve.md#cross-category-payout-ordering).

This ADR does **not** re-litigate ADR 028 semantic decisions (bond size, filing windows, evidence rules, frequency caps, the 48-hour SafetyReserve counter-bundle window, restitution caps, reputation-preservation rule); restatements here are for self-containedness, with canonical authority remaining ADR 028 and ADR 026 §5. Parameter values (`APPEAL_BOND`, `MULTISIG_REVIEW_WINDOW`, `RATIFICATION_WINDOW`, `MAX_APPEAL_RESTITUTION`, `OPERATOR_APPEAL_FREQUENCY`) remain ADR 028 §5's responsibility. Reserve sizing against the 3.3× depletion ratio, audit-pinned constants, and gas micro-tuning are out of scope.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Following the refactoring, the canonical authority for this content is now ADR 033, not ADR 026 §5. Please update the text to reflect the new source of truth.

Suggested change
This ADR does **not** re-litigate ADR 028 semantic decisions (bond size, filing windows, evidence rules, frequency caps, the 48-hour SafetyReserve counter-bundle window, restitution caps, reputation-preservation rule); restatements here are for self-containedness, with canonical authority remaining ADR 028 and ADR 026 §5. Parameter values (`APPEAL_BOND`, `MULTISIG_REVIEW_WINDOW`, `RATIFICATION_WINDOW`, `MAX_APPEAL_RESTITUTION`, `OPERATOR_APPEAL_FREQUENCY`) remain ADR 028 §5's responsibility. Reserve sizing against the 3.3× depletion ratio, audit-pinned constants, and gas micro-tuning are out of scope.
This ADR does **not** re-litigate ADR 028 semantic decisions (bond size, filing windows, evidence rules, frequency caps, the 48-hour SafetyReserve counter-bundle window, restitution caps, reputation-preservation rule); restatements here are for self-containedness, with canonical authority remaining ADR 028 and ADR 033. Parameter values (APPEAL_BOND, MULTISIG_REVIEW_WINDOW, RATIFICATION_WINDOW, MAX_APPEAL_RESTITUTION, OPERATOR_APPEAL_FREQUENCY) remain ADR 028 §5's responsibility. Reserve sizing against the 3.3× depletion ratio, audit-pinned constants, and gas micro-tuning are out of scope.
References
  1. When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.
  2. When renumbering or removing sections in a document, update all internal cross-references to reflect the new section numbers.

- Parallel structure to [ADR 031](031-content-blacklist-appeals-contract.md) keeps both appeal-contract surfaces auditable under one pattern: slot-aligned struct, event-topic table, Mermaid state machine, permissionless cleanup.
- Permissionless `cleanupExpiredAppeal` plus the two admissibility conditions removes any dependency on a privileged scheduler; escrow return, bond refund, and slot release are eventually consistent through any caller.
- Adding `SlashAppealLapsed` to [ADR 026 §5](026-gauge-boost-tokenomics.md#contract-safetyreserve)'s interface stub closes the ADR 026 / ADR 028 forward-reference gap — the six-event set is now canonical in three places (ADR 032 §3, ADR 026 §5, the eventual Solidity).
- Adding `SlashAppealLapsed` to [ADR 026 §5](033-safety-insurance-reserve.md#contract-safetyreserve)'s interface stub closes the ADR 026 / ADR 028 forward-reference gap — the six-event set is now canonical in three places (ADR 032 §3, ADR 026 §5, the eventual Solidity).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This sentence contains references to ADR 026 §5 which are now incorrect after the refactor. The interface stub is in ADR 033, and the canonical location is ADR 033, not ADR 026 §5.

Suggested change
- Adding `SlashAppealLapsed` to [ADR 026 §5](033-safety-insurance-reserve.md#contract-safetyreserve)'s interface stub closes the ADR 026 / ADR 028 forward-reference gap — the six-event set is now canonical in three places (ADR 032 §3, ADR 026 §5, the eventual Solidity).
- Adding SlashAppealLapsed to [ADR 033](033-safety-insurance-reserve.md#contract-safetyreserve)'s interface stub closes the ADR 026 / ADR 028 forward-reference gap — the six-event set is now canonical in three places (ADR 032 §3, ADR 033, the eventual Solidity).
References
  1. When refactoring or removing protocol features, perform a comprehensive update of all related documentation, including ADR tables and diagrams, to eliminate stale references.
  2. When renumbering or removing sections in a document, update all internal cross-references to reflect the new section numbers.

gemini-code-assist flagged that the §5->033 repoint updated hrefs but
not the visible link text / prose (still said "ADR 026 §5"). Fixed in
028 + 032: link text and prose that now point to or describe content in
ADR 033 say "ADR 033 §..."; links that legitimately still target ADR
026 (§2, §8, the preserved umbrella §5 heading) left unchanged.

Declined the Incident-struct field-reorder suggestion: both the
current and suggested orders pack to 4 storage slots (not 6->4 as the
bot stated), and storage-packing of an illustrative interface stub is
an implementation/audit concern explicitly out of scope per ADR 032.
Added a one-line note in the struct documenting this instead.

Verified: corpus link checker unchanged at 10 pre-existing breaks
(0 new, 0 in 028/032/033); pre-commit/markdownlint green.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@alpergundogdu
alpergundogdu merged commit a5a56ae into main May 19, 2026
11 checks passed
@alpergundogdu
alpergundogdu deleted the claude/split-adr-026 branch May 19, 2026 13:44
alpergundogdu added a commit that referenced this pull request May 19, 2026
…tor; 026 → Tokenomics umbrella (#590)

Second and final extraction of the per-bucket split (part 1 was #595,
SafetyReserve → ADR 033).

- New ADR 034 (Gauge Boost and Voting Escrow): §3 gauge-boost formula
  (degenerate-input fallbacks, per-operator gauge-share cap) + §4
  VotingEscrow (checkpointing, lock ownership, contract) moved verbatim.
- New ADR 035 (Delegator Pool): §6 USDC→TOKEN pipeline + DelegatorBuyer
  moved verbatim.
- ADR 026 retitled "# ADR 026: Tokenomics" — it is now the canonical
  economic-model umbrella (Context, §1 supply, §2 FeeRouter six-bucket
  split, §7 operator economics, §8 slashing-burn, §9 governance-weight,
  §10 bootstrap, §11 governable params, Consequences). §3/§4/§5/§6 are
  one-paragraph umbrella pointers; the numbered headings are kept so
  #3/#4/#5/#6 top anchors and their inbound refs stay valid. 026:
  659 (pre-split) → 254 lines. Filename unchanged
  (026-gauge-boost-tokenomics.md) — renaming would break ~100 inbound
  links; an optional filename-rename can be a separate PR.

Anchor-safe technique (same as #595): subsection headings moved with
text unchanged so slugs are identical (only the file changes).
13 inbound subsection refs repointed (11 #per-operator-gauge-share-cap
→ 034, 2 #contract-delegatorbuyer → 035); 3 026-internal dangles fixed;
link text/prose that now points to 034/035 updated from "ADR 026 §N"
to "ADR 034/035 §" (the text/href consistency class flagged by review
on #595). architecture.md Chapter 4 desc/list/numeric index, Makefile
BOOK_SRCS, and CLAUDE.md ADR note updated.

Verified with the github-slugger-accurate corpus link checker: total
broken links unchanged at 10 (all pre-existing, none on any split
anchor); 0 new breaks. make check-book-list green (26 ADRs + 12
appendices); MD001 headings clean; adr/ self-contained; pre-commit
green.

Closes #590. Grouping note: §1/§7/§8/§9/§10/§11 kept in the 026
umbrella (the recommended grouping) — confirmable in review.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alpergundogdu added a commit that referenced this pull request May 19, 2026
…nomics.md umbrella (#590)

Rebuilt on post-#599 main (resolves the #599 conflict by re-deriving
034/035 from #599-improved content rather than merging stale copies)
and addresses all PR #598 review comments.

- ADR 034 (Gauge Boost and Voting Escrow) = §3+§4; ADR 035 (Delegator
  Pool) = §6, moved verbatim from post-#599 026 (so they inherit #599's
  cross-ref linking). 026 → slim "Tokenomics" umbrella (254 lines),
  numbered §3/§4/§6 stub headings kept for anchor stability; §5 stays
  (umbrella from #595).
- File renamed 026-gauge-boost-tokenomics.md → 026-tokenomics.md; all
  refs updated corpus-wide (incl. _history, Makefile, architecture
  reading-order + numeric index, CONTRIBUTING).
- Review comments (gemini-code-assist):
  * 034 broken intra-doc §N refs (§11/§2/§7/§4 + governance §8→§9
    correction) → proper cross-ADR / intra-034 links. The §8→§9 fix
    corrects "governance pattern in §8 (Slashing)" to §9 (Governance);
    flagging as a content correctness change, not just a move.
  * 19 empty-"§" link-text artifacts filled corpus-wide (Gemini flagged
    2: 003:116/446, 016:249); 016:249 redundant phrasing removed;
    026:211 "§ "-prefix nit fixed; architecture §6 entry now uses the
    correct double-dash slug.
- Subsection refs repointed corpus-wide (#per-operator-gauge-share-cap
  → 034, #contract-delegatorbuyer → 035, §3/§4/§6 top refs → 034/035);
  3 026-internal dangles fixed. de-PoC: "PoC `PaymentChannel`" →
  "`PaymentChannel`" (003:532) — single launch+prod contract.
- CLAUDE next→036 (+034/035 canonical, on top of #596's ledger);
  architecture Chapter 4 + numeric index updated.

Verified: github-slugger-accurate link checker — broken links 7
(post-#599 baseline) → 5 on this branch (0 new, 2 pre-existing §6
em-dash refs fixed); no bare §N prose in 034/035; make
check-book-list green (26 ADRs + 12 appendices); MD001 clean;
adr/ self-contained; pre-commit green.

Closes #590.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.

1 participant