Skip to content

ADR cleanup: residual v3-iteration framing in ADRs 004, 021, 023, 030 #341

Closed

Description

@alpergundogdu

Summary

PR #338's reframe pass converted the new ADRs (026–032) and most modified ADRs from "v1/v2/v3" internal-iteration framing to definitive design statements. The pass missed several pockets — surfaced this morning during Gemini review pass 2 work.

The deCDN protocol has one contract surface (production), with PoC variants where applicable. Phrases like "the v3 contract surface", "v3 tokenomics", "the v3 model", "under v3" are internal-iteration framing that doesn't exist externally and that should be neutralized.

Inventory

13+ residual instances:

adr/004-tokenomics.md

  • :8 — "[ADR 026], which adopts the v3 economic model: 1B fixed supply..." → drop "the v3" qualifier; ADR 026 IS the economic model.

adr/021-l2-chain-selection.md

  • :199 — section heading "v3 Tokenomics Validation Requirements" → "Tokenomics Validation Requirements"
  • :202 — "before mainnet deployment of v3 contracts" → "before mainnet deployment"
  • :207 — "Every settleChannel call in v3" → drop "in v3"
  • :218 — "v3 requires two TWAP-protected USDC→TOKEN" → "the production design requires..." or restructure
  • :229 — "Before mainnet deployment of v3 contracts" → "Before mainnet deployment"
  • :238 — "adopts under v3 (private RPC required..." → drop "under v3"
  • :239 — "the v3 deployment ..." → drop "v3"
  • :244 — "during v3 contract integration testing" → "during contract integration testing"

adr/023-poc-production-seams.md

  • :15 — "Cross-reference: [ADR 026 — Tokenomics v3]..." (heading shape) plus "applies to v3 tokenomics" plus "v3-mode-branching logic" — multiple residuals in one callout
  • :190 — "atomically splits it into the six v3 buckets" → "the six buckets"
  • :374 — "Leaf-crate principle applies to v3 tokenomics" → "applies to ADR 026 tokenomics"; "the v3 contract surface" → "the contract surface"; "Adding `if v3_enabled` checks" → "Adding ADR-026-mode-branching checks" (or similar)
  • :454 — "v3 contract surface" → "contract surface" in ADR-mapping table

Why this matters

Per #338's reframe rationale: there's no v1/v2/v3 externally — the protocol hasn't launched. ADRs are decision records, and they should read as the canonical design, not as a chronicle of internal redesigns. "v3 contract surface" is internal-iteration narrative; "production contract surface" or just "the contract surface" is the canonical phrasing.

Suggested fix shape

Mechanical: a series of small `sed`-style replacements, mirroring the patterns already applied in PR #338's reframe + cleanup commits (`de6d8fa`, `c0dbbbe`).

Per-section judgment calls:

  • ADR 023's "v3-mode-branching" / "if v3_enabled" examples are about avoiding mode-branching in domain crates. The principle stays; just retitle the example identifier (e.g., "ADR-026-mode-branching" or just "mode-branching" since the leaf-crate principle is generic).
  • ADR 021's §"v3 Tokenomics Validation Requirements" should retitle but keep its content — it's the L2-validation gate for the new contract surface.

Out of scope of #338

These are pre-existing-on-`origin/main` (in the case of ADR 023) or in PR-touched-but-incompletely-cleaned files (ADR 021, 030 — edited but reframe pass missed these instances; ADR 004 — pre-existing). Cleaning them up requires touching the relevant ADRs but not changing any decisions.

Acceptance

`grep -rEn "\bv3\b" adr/*.md | grep -v "Balancer V3"` reports zero hits in the production ADR corpus. (Some references to "Balancer V3" — the actual Balancer protocol version — must remain.)

Related: PR #338, issue #339 (cross-ref hygiene), issue #340 (governance contracts).

Activity

  1. added
    kind:docs
    design:adr
    on Apr 30, 2026
  2. alpergundogdu commented on Apr 30, 2026

    @alpergundogdu
    ContributorAuthor

    Closed by #343 (merged 2026-04-30). All inventoried v3-iteration framing instances in ADRs 004, 021, 023, and 030 are addressed in the merged commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design:adrkind:docs

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions