Repository navigation
docs: adopt work-token tokenomics v2.2 (no-emission variant) - #679
Conversation
Brainstorming output proposing a work-token model (Livepeer/Helium-style) to replace the Curve-style ve-gauge tokenomics in ADRs 026/034/035. Targets four user-stated priorities: smaller contract surface, strong token value accrual, operator decentralization, and Howey prong-4 regulatory defensibility. Not yet adopted; awaiting review before ADR rewrites land. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…stor-governance question Replaces the lone "S2-scale" supply-impact paragraph with a four-scenario table (1/10/100/500 PB monthly traffic) showing bonded-token totals at default α=1.2 and the α-tuning lever for the S4 design-tension case. Investigates whether private investors need a DAO governance mechanism; resolves no, citing Pattern A in internal/Legal/entity-structure-design.md which already routes investor influence to the Labs equity layer. Updates Section 4 political-cost framing, Open Question 6, and the closing recommendation to reflect the finding — no new contract surface required. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Adopts a 13-group supply distribution aligned with conventional fundraising-tool category names (Core Contributors, Private Investors, Treasury, Public Sale, Ecosystem Incentives, Marketing, Liquidity Provision). Mechanics in Sections 1–4 and 6 are unchanged from v1; only Section 5 is rewritten. Two buckets carry explicit work-token reinterpretations: "Staking Rewards" (20%) is reframed as Operator Service Emissions (service-based, auto-deposited into CapacityBond), and "Liquidity Mining Rewards" (15%) is a hard-sunsetting 12-month bootstrap subsidy with an additional-POL fallback flagged for counsel-driven pre-TGE decision. v1 spec is preserved alongside v2 — either is internally consistent and can be adopted. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…deployed LM bucket Middle-path variant of v2: adopts the 13-group fundraising-tool taxonomy and the Operator Service Emissions reinterpretation of "Staking Rewards", but resolves the v2 §5.2 Bootstrap LM decision to the POL-redeployment fallback. The 15% formerly allocated to Liquidity Mining Rewards moves to Protocol-Owned Liquidity (Liquidity Provision group grows 4% → 19%). Restores v1-level regulatory cleanliness (no LM program, no passive-yield exposure to any non-operator class) while keeping v2's fundraising-tool compatibility and richer ecosystem-program structure. One fewer new contract than v2 (no BootstrapLMRewards). v1 and v2 specs are preserved alongside v2.1 — all three are internally consistent. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Sweeps five archetypically-different tokenomics frames around v2.1 (pure work-token baseline, dual-token, restaking-delegated bond, Filecoin-style emission-heavy, no-TOKEN) with a comparison matrix and hybrid candidates, as input to the next design decision rather than a supersede of v2.1. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
v2.1 is the canonical work-token tokenomics spec. Status flipped from Draft → Accepted; v1 and v2 marked Superseded with forward pointers. The rewrite commits below replace ADRs 026/034/035 and edit 003/009/ 016/018/028/032 to align with this acceptance. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The gauge-boost mechanism (034) and delegator pool (035) are replaced by the work-token CapacityBond model per spec v2.1. 034 maps to the CapacityBond lock-to-capacity curve (bond = k × Mbps^α); 035 has no v2.1 analog (passive yield to ve-lockers is eliminated to break Howey prong 4). Both files are moved to adr/_history/ with retirement banners; original bodies preserved verbatim. This is a new artifact category in _history/ (retired-after-acceptance ADRs) distinct from the existing alternatives-pre-launch.md (rejected- pre-launch alternatives). A cross-link from alternatives-pre-launch.md makes the retired files discoverable. Meta updates: - adr/Makefile BOOK_SRCS: drop 034/035 (make check-book-list passes). - adr/glossary.md: prune gauge / ve / working_bytes / delegator vocabulary; add CapacityBond, Bond, Operator Service Emissions entries; FeeRouter row repointed to 4-bucket split; StakingRegistry → CapacityBond rename in NodeId and on-chain-enforcement entries. - decdn/CLAUDE.md ADR-counter note: 034/035 marked retired. ADR 026 rewrite (which replaces the cross-links inside the retired files' bodies) lands in the next commit. Hygiene guards (check-book-list, check-bare-refs, check-md-anchors, check-no-section-numbers) all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Substantial rewrite of the canonical tokenomics ADR under spec v2.1. The Curve-style ve-gauge model (six-bucket FeeRouter, gauge formula, VotingEscrow, delegator pool) is replaced with a work-token / CapacityBond model. Decision changes: - Allocation: 6-bucket / 7-row → 13-group v2.1 distribution (Operator Service Emissions 20%, LP/MM/POL 19%, LM 0%, etc.). - FeeRouter: six buckets (40/40/7/5/5/3) → four buckets (60 operator / 25 burn / 10 treasury / 5 safety), all same-tx. - Operator bonding: 50K flat minimum stake → CapacityBond curve bond = k × Mbps^α (defaults k=12.6, α=1.2), governable. - Operator Service Emissions: 20% bucket distributed to active operators by verified delivery; auto-deposited into CapacityBond; not withdrawable as liquid until full unbond. - Capacity-shortfall slashing: new deterministic auto-downgrade path on probe data; replaces the gauge-share-cap wash-trade defense. - Governance: voting weight = capacity × age_ramp; non-operator holders zero-weighted; 5% per-operator cap; multisig bootstrap phase with transition thresholds (≥30 ops AND ≥100 Gbps); EIP-712 delegation (voting power delegable, bond non-delegable). - POL allocation: 19% (4pp MM + 15pp treasury-owned Balancer V3 80/20 position). - Buyback share: 5% → 25% (5× current rate). - Governable bounds: rewritten 4-bucket + CapacityBond params + voting cap + multisig transition thresholds. Cross-link breakage: ADRs 003, 009, 016, 018, 028, 032 still reference pre-rewrite anchors in 026. Those land in commits 4-6. Hygiene guards (check-book-list, check-bare-refs, check-md-anchors, check-no-section-numbers) all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Substantial rewrite of the contract-interaction model to reflect the v2.1 work-token tokenomics. Net change is subtractive: - StakingRegistry renamed to CapacityBond throughout (curve-locked bond = k × Mbps^α, capacity-shortfall slashing path added). - VotingEscrow and DelegatorBuyer removed from Contract Inventory, class diagram, call graph, deployment order, access matrix, and fund-flow tables. Their roles no longer exist under v2.1. - OperatorEmissions added as a new contract: distributes the 20% Operator Service Emissions bucket; auto-deposits TOKEN grants into CapacityBond via the new BOND_GRANTOR_ROLE so granted TOKEN is non-withdrawable until full unbond. - FeeRouter interface simplified to the 4-bucket split (60/25/10/5): epoch buckets, claim windows, sweepUnclaimed, delegator-swap pipeline, gauge-formula glue, and boostFloor are all deleted. - DecdnGovernor voting source switched: VotingEscrow.balanceOfAt → CapacityBond.capacityAt × age_ramp; per-operator 5% voting cap; EIP-712 Governor Bravo delegation. - Class diagram, deployment-order graph, cross-contract call graph, USDC / TOKEN flow diagrams, access-control matrix, reentrancy analysis, OZ-usage table, and launch-vs-steady-state config table all updated to the 4-bucket / no-ve / no-delegator surface. - Governance-controlled parameters table updated to CapacityBond bounds (α, k, MAX_CAPACITY_PER_OPERATOR, min_delivery_ratio, age_ramp_months, unbonding 14d) and the 4-bucket FeeRouter bounds. Minimum-stake and lock-duration rows removed. - Treasury bucket grows 5% → 10%; safety 3% → 5%; burn 5% → 25% (5× volume on BuybackBurner, load-bearing on ADR 018's per-epoch liquidity cap). The 'Shared swap helper' section (BuybackBurner ↔ DelegatorBuyer) is replaced by the OperatorEmissions contract specification. Hygiene guards all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
ADR 009 (Governance Model): - Voting source ve-balance → CapacityBond.capacityAt × age_ramp (full weight at 6mo, half at 3mo, zero at registration). - Add bootstrap-multisig phase (first 6–12 months post-launch); data-driven transition to operator-weighted DAO governance when active operators ≥ 30 AND total declared capacity ≥ 100 Gbps. - Operator-only voting (non-operator holders zero-weighted); 5% per-operator voting cap; EIP-712 Governor Bravo delegation. - FeeRouter shares table: 6 buckets → 4 (operator 60 / burn 25 / treasury 10 / safety 5), with bounds (40–90, 5–50, 0–30, 0–20). - New CapacityBond curve / governance parameters table: α (1.0–1.8), k (bounded by 1G-tier bond), MAX_CAPACITY_PER_OPERATOR, min delivery ratio, age ramp months, per-operator voting cap, multisig transition thresholds, unbonding window. - Drop boostFloor, gauge-boost, delegator-pool, ve-supply quorum, flat min-stake, lock-duration parameters. Drop the "Bootstrap consideration" ve-lock-on-claim airdrop recommendation (obsolete). - Resolve spec Open Q #7 (non-operator DAO path) inline citing entity-structure-design.md § Pattern A as the pre-existing exclusion. - Update SafetyReserve payout authorization section to 5% bucket references and add capacity-shortfall-slashing reversals to the payout eligibility list. - Consequences rewritten for the new framing. ADR 018 (Liquidity Strategy): - POL allocation grows 10% → 19% (15pp Protocol-Owned Liquidity + 4pp Market-Maker partner allocation); the 15pp Liquidity Mining Rewards bucket from prior designs is redeployed here. - BuybackBurner inflow 5% → 25% of routed USDC (5× volume); flag the per-epoch liquidity cap as binding more frequently and the TWAP subSwapCount default as potentially needing to grow. - Delete entire "Delegator-pool swap path" subsection and "Liquidity-cap interaction" (single-consumer pool under v2.1). - Add new "POL Governance" section resolving spec Open Q #4: 10% per 30-day window withdraw cap (immutable); permitted operations; rebalance authority; venue migration path. Resolve Open Q #8 inline: POL trading-fee yield flows treasury-direct (not re-routed through FeeRouter), preserving FeeRouter's strict per-byte settlement accounting. - Parameter table: POL TOKEN-side allocation 100M → 150M; production USDC seed ~$300K nominal (vs prior ~$100K); add POL withdraw cap row. - Activation criteria updated: drop delegator-pool keeper requirement; tighten per-epoch liquidity cap calibration. - Consequences rewritten: add LM-free regulatory cleanliness; add 10%/30-day cap as POL governance discipline; add 5× burn flow operational risk; add smaller-external-LP-base trade-off vs LM. Hygiene guards all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Minor-edit sweep across all ADRs that referenced the retired ve-gauge tokenomics vocabulary (gauge, delegator, VotingEscrow, DelegatorBuyer, working_bytes, ve-lock, six-bucket / 40-40-7-5-5-3, boostFloor) and StakingRegistry. Most edits rewrite narrative paragraphs to point at the v2.1 CapacityBond curve, four-bucket FeeRouter (60/25/10/5), Operator Service Emissions, and capacity-shortfall slashing. Major touchpoints: - ADR 003: rewrite FeeRouter integration sections and the bytesDelivered analytics-counter framing; drop gauge / delegator / per-operator-gauge-share-cap references throughout. - ADR 008: rewrite the tokenomics cross-reference + "Capacity- Shortfall and Wash-Trading" section (formerly "Gauge-Pool Wash- Trading"). Wash-trading defense is per-byte settlement (paid by real clients) + capacity-shortfall slashing; reputation is the soft signal feeding governance threshold-tuning. - ADR 019: rewrite Phase 2 to use `CapacityBond.register(declaredMbps)` with curve-based bond; drop ve-position / VotingEscrow paragraph. - ADRs 028, 032: status flipped from Locked-for-implementation to Draft pending CapacityBond rebase; cross-references updated. ADR 028: 50K min-stake → capacity-curve framing; preserve reputation/Operator Service Emissions trade-off. - ADR 033: 3% safety bucket → 5%; six-bucket → four-bucket. - ADR architecture.md: Chapter 4 + numeric index rewritten; drop 034 and 035 entries with retirement note; Key Invariants minStake invariant → CapacityBond curve invariant. - ADR README.md: intro paragraph + design-principles bullet + reading-order chapter 4 description updated. - adr/glossary.md (handled in commit 2): already updated. - adr/appendix-observability.md: substantial rewrite of Tokenomics Metrics — drop gauge-pool / VotingEscrow / DelegatorBuyer subsections, add CapacityBond / OperatorEmissions subsections; FeeRouter bucket labels updated to operator_base/burn/treasury/safety. - adr/appendix-l2-deployment.md: rewrite the FeeRouter / keeper gas paragraphs for the 4-bucket + 25% burn flow under v2.1. - adr/appendix-operator-key-rotation.md: replace ve-lock / gauge-claim vocabulary with capacity-bond / service-emission grant; firstBondedAt + age_ramp reset on rotation. - adr/appendix-poc-production-seams.md: trait-seam list updated to include OperatorEmissions, drop VotingEscrow. - adr/appendix-fraud-detection.md: wash-trading defense now points at capacity-shortfall slashing. Plus global StakingRegistry → CapacityBond rename via sed across 16 ADRs and appendices (the renamed contract still serves the same operator-registry purpose, with capacity-curve logic added under v2.1). finance/notebooks/_shared/params.py — wholesale rebase: - Drop the legacy ADR 004 vocabulary (`min_stake`, `discount_stake_threshold`, `alloc_dev_fund/audits/ecosystem/ buyback_burn`, etc.). - TokenomicsParams: 13-group allocation summing to 1.0 (Operator Service Emissions 20%, LP 19%, LM 0%, etc.) + four-bucket FeeRouter split (60/25/10/5) + governable bounds + slashing distribution (50/30/20). Validation in __post_init__. - New CapacityBondParams dataclass with bond_required() and age_ramp() helpers (verified: 1G=50.2K, 10G=795K, 100G=12.6M TOKEN). - PolParams: split pol_share_of_supply (0.15) + mm_partner_share_of_supply (0.04); production_seed_usdc grows to $300K; add POL withdraw cap (10% per 30-day window, immutable); add epoch_liquidity_cap_fraction with min/max bounds. - BootstrapParams: rename to "Operator Service Emissions and pre-seed USDC subsidy"; emission-curve placeholder share fields; pre-seed USDC allocation shares. Retains poc_target_node_count and bootstrap_token_allocation as back-compat aliases for existing notebook references. - GasCostParams: header / row labels updated (StakingRegistry → CapacityBond; new register_bond_usd row). - WatchtowerParams (ADR 007) dataclass removed (ADR 007 retired pre-launch per workspace CLAUDE.md). - Module docstring re-points to ADR 026 (v2.1) as the canonical source. Hygiene guards all pass; the import + constant validation runs clean (allocation sums = 1.0, fee split sums = 1.0, capacity-bond worked numbers match spec §2). This closes the v2.1 adoption work. Solidity contract changes (VotingEscrow.sol deletion, StakingRegistry.sol → CapacityBond.sol rename, OperatorEmissions.sol addition, DecdnGovernor voting-source plug retarget) and the Rust-side StakingRegistry config field renames remain out of scope per the spec's "What this spec is NOT" guidance and are tracked as follow-up work. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ions
PR review surfaced critical and important findings; this commit applies
the agreed fixes.
Critical fixes:
1. Broken anchor sweep across all canonical ADRs. ADR 026's section
headings changed under the v2.1 rewrite but 18+ cross-links still
pointed at old slugs. Fixed via sed:
- #operator-economics-and-minimum-stake -> #operator-economics
- #safety-and-insurance-reserve-3-bucket
-> #safety-and-insurance-reserve-5-bucket
- #feerouter-split-40407553 -> #feerouter-split
- #voting-weight--ve-balance -> #governance
- #voting-escrow-votingescrow -> #capacity-bond-curve
2. ADR 003 § FeeRouter Integration / invariants block: replaced two
"40% base share" instances with "60%" (lines 121, 517).
3. glossary.md SafetyReserve row: "(3% bucket)" prose prefix updated
to "(5% bucket)".
Important fixes:
4. "ve-Governor" sweep -> "DecdnGovernor" across 36 instances in
003, 011, 028, 031, 032, architecture.
5. ADR 003 § Sybil node attack analysis rewritten for v2.1: minimum
stake framing replaced with the capacity-bond curve cost (1G tier
~50K TOKEN); Option A replaced with the k-bound mechanism; Option D
(capacity-shortfall slashing) added.
6. ADR 003 broader minStake / MIN_STAKE / stakeOf cleanup: function
doc comments, off-chain read API descriptions, auto-ejection
paragraph, gas-cost paragraph, channel-vs-slashing all migrated
to capacity-bond vocabulary.
7. ADR 011 line 334: "7 days PoC / minimum 3 days" stake-unbonding
replaced with v2.1's "14 days default, governable [7, 60]".
Line 335 "minimum 50,000 TOKEN" rewritten as the bond curve.
8. ADR 014 line 237: auto-ejection threshold "50% of minStake"
replaced with "50% of the minimum bond for the operator's
declared tier".
9. ADR 008 line 354: gauge-eligibility / "earns gauge" replaced with
"earns per-byte settlement and Operator Service Emissions".
10. WatchtowerParams restored in finance/params.py as a back-compat
shim (ADR 007 retired pre-launch). Removal was a critical issue:
scenarios.py imports WatchtowerParams at module top; ImportError
would propagate to every notebook. Verified scenarios.py imports
clean again.
Hygiene guards all pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Second review pass found 12 leftover items the first cleanup missed. Fixed in this commit. ADR 016 bytesPerEpoch ownership contradiction (most substantive): The IFeeRouter.routeSettlement comment block claimed routeSettlement updates bytesPerEpoch on CapacityBond, but the view function is declared on IFeeRouter. Mermaid edge and call-graph row inherited the same confusion. Fix: CapacityBond.recordSettlement updates ONLY lastSettlementAt; FeeRouter maintains the bytesPerEpoch analytics counter internally. Affected lines: 113-117, 417, 451, 676, 710. Straggler vocabulary fixes: - ADR 019:229 — "below 50% of minStake" → "below 50% of the minimum bond for its declared tier"; firstRegisteredAt → firstBondedAt. - ADR 028:101 — MAX_APPEAL_RESTITUTION "1x minimum stake" → "1x minimum bond for the operator's declared tier". - ADR 030:92 — staking-cost framing → capacity-bond cost. - ADR 008:85 — "separate staking deposit (minimum 50K TOKEN)" → "separate capacity bond (~50K TOKEN at the 1 Gbps entry tier)". - ADR 003:677,728 — requestUnstake/unstake → unbond() to match the canonical ADR 016 surface; line 910 "re-stake at the full minimum" → "re-bond at the full tier minimum". Documentation framing fixes: - README.md:7 — "Nodes stake TOKEN" → "Nodes bond TOKEN proportional to declared bandwidth capacity". - architecture.md:149 — ADR 009 summary "ve-weighted Governor + Timelock" → bootstrap-multisig phase + capacity-weighted Governor. - appendix-poc-production-seams.md:7 — "admin key vs ve-weighted Governor" → "admin key vs capacity-weighted Governor with the bootstrap-multisig transition phase". - _build/part-4-tokenomics.md — chapter intro to v2.1 (4-bucket, CapacityBond curve, Operator Service Emissions, POL-heavy POL, capacity-shortfall slashing). - _build/part-6-governance.md — chapter intro to v2.1 (admin key → bootstrap multisig → capacity-weighted Governor). Hygiene guards all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request implements a major tokenomics redesign, transitioning the protocol from a Curve-style ve-gauge model to a work-token model (v2.1). Key changes include replacing the StakingRegistry and VotingEscrow contracts with a unified CapacityBond contract, simplifying the FeeRouter split from six buckets to four (60% operator base, 25% buyback-and-burn, 10% treasury, 5% safety), introducing OperatorEmissions for service-based emissions, and transitioning to capacity-weighted DAO governance. The review comments identify several documentation inconsistencies and broken anchor links resulting from this refactoring, which should be addressed to ensure the specification remains cohesive.
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s canonical protocol documentation to adopt the work-token tokenomics spec v2.1 as the new source of truth, replacing the prior ve-gauge model. It realigns ADRs, glossaries, and architecture docs around CapacityBond-based operator economics, operator-only governance, and the simplified 4-bucket FeeRouter.
Changes:
- Promote work-token tokenomics v2.1 terminology/mechanics across the ADR set (CapacityBond, operator-only governance, 60/25/10/5 FeeRouter).
- Retire prior gauge/ve/delegator ADRs into
adr/_history/and remove them from the ADR book build list. - Add supporting spec-history documents (superseded design spec + alternatives investigation) and update overview/appendix docs to match the new contract surface.
Reviewed changes
Copilot reviewed 40 out of 41 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates high-level project summary to “bond” TOKEN proportional to capacity. |
| docs/superpowers/specs/2026-05-25-work-token-tokenomics-alternatives-investigation.md | Adds a brainstorming/alternatives sweep around v2.1. |
| docs/superpowers/specs/2026-05-23-work-token-tokenomics-redesign-design.md | Archives the superseded design spec with a v2.1 supersession banner. |
| CLAUDE.md | Updates ADR numbering guidance to reflect ADR 034/035 retirement. |
| adr/README.md | Updates protocol intro/reading order to work-token framing. |
| adr/Makefile | Removes retired ADRs 034/035 from the book build source list. |
| adr/glossary.md | Rewrites tokenomics terms (Stake/ve/gauge → Bond/CapacityBond/OperatorEmissions). |
| adr/architecture.md | Updates architecture + index references from ve-gauge to work-token model and notes retirees. |
| adr/appendix-poc-production-seams.md | Updates contract-client list to CapacityBond/OperatorEmissions-era surface. |
| adr/appendix-peer-table-eviction.md | Updates registry references from StakingRegistry to CapacityBond. |
| adr/appendix-operator-key-rotation.md | Updates key-rotation runbook to CapacityBond-era API/terms. |
| adr/appendix-observability.md | Replaces gauge/ve/delegator metrics section with v2.1 FeeRouter/Emissions/CapacityBond metrics. |
| adr/appendix-l2-deployment.md | Updates tokenomics gas considerations for v2.1 settlement + buyback flow. |
| adr/appendix-fraud-detection.md | Updates wash-trade defense description to capacity-shortfall slashing framing. |
| adr/033-safety-insurance-reserve.md | Updates SafetyReserve bucket from 3%→5% and StakingRegistry→CapacityBond references. |
| adr/032-safety-reserve-appeals-contract.md | Updates appeal-surface ADR text to DecdnGovernor + v2.1 epoch framing. |
| adr/031-content-blacklist-appeals-contract.md | Updates ve-Governor references to DecdnGovernor in appeal flow. |
| adr/030-node-region-self-attestation.md | Updates registry/field names to CapacityBond-era naming in region self-attestation ADR. |
| adr/028-slashing-appeals.md | Updates slashing appeals flow for DecdnGovernor and v2.1 bond framing. |
| adr/024-account-abstraction.md | Updates account abstraction guidance to reference CapacityBond instead of StakingRegistry. |
| adr/022-content-discovery.md | Updates registry bootstrap and origin fallback reads to CapacityBond. |
| adr/019-node-onboarding.md | Updates onboarding procedure to CapacityBond bonding + registration flow. |
| adr/017-privacy.md | Updates privacy note to CapacityBond publishing node identity. |
| adr/014-on-chain-verification.md | Updates SlashJudge integration references to CapacityBond (slash target + registry lookup). |
| adr/012-client.md | Updates client bootstrap/identity binding references to CapacityBond. |
| adr/011-content-takedown.md | Updates governance and origin-ejection wiring to DecdnGovernor + CapacityBond. |
| adr/009-governance.md | Substantial rewrite: bootstrap multisig phase + capacity-weighted governance. |
| adr/008-reputation.md | Updates tokenomics cross-references and wash-trading discussion for v2.1. |
| adr/005-protocol.md | Updates slash_sig signer-binding references from StakingRegistry to CapacityBond. |
| adr/001-network.md | Updates registration section to CapacityBond registry terminology. |
| adr/_history/alternatives-pre-launch.md | Adds note distinguishing retired full ADRs from rejected alternatives archive. |
| adr/_history/035-delegator-pool.md | Adds retirement banner pointing to v2.1 and preserves original body. |
| adr/_history/034-gauge-boost-voting-escrow.md | Adds retirement banner pointing to v2.1 and preserves original body. |
| adr/_build/part-6-governance.md | Updates Chapter 6 intro text to bootstrap-multisig + capacity-governor framing. |
| adr/_build/part-4-tokenomics.md | Updates Chapter 4 intro text to 4-bucket FeeRouter + CapacityBond + emissions framing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Both PR review bots flagged 14 items on PR #679. 13 are valid; 2 (Copilot 8 + 9 on firstBondedAt vs firstRegisteredAt) are resolved by accepting Gemini #3's rename. Fixed: 1. ADR 009:139 — `unbondingWindow` / `setUnbondingWindow` → `unbondingPeriod` / `setUnbondingPeriod` to match the actual contract surface in ADR 014 (Gemini #1). 2. ADR 014:167+170 — unbonding bounds `[3 days, 30 days]` → `[7 days, 60 days]` matching ADRs 009/026; PoC default "unbonding 7 days" → "unbonding 14 days" matching v2.1 default (Gemini #2). 3. Rename `firstRegisteredAt` → `firstBondedAt` (and `getFirstRegisteredAt` → `getFirstBondedAt`) across ADRs 003, 008, 016, 019, 030, and the operator-key-rotation appendix. Under v2.1 the single `CapacityBond.register(declaredMbps)` call is both registration and bonding, so one field serves both the cold-start bootstrap bonus (ADR 008) and the governance `age_ramp` (ADR 026 § Governance). This resolves Gemini #3 and the Copilot 8/9 "mixes two concepts" thread — under v2.1 the two timestamps coincide. 4. ADR 030:43 — anchor `#interface-additions-to-stakingregistry` → `#interface-additions-to-capacitybond` matching the renamed heading in ADR 003 (Gemini #4). 5. appendix-operator-key-rotation:55 — row content rewritten from "Cleared only by `deregisterNode`" (contradicted ADR 003's write-once invariant) → "Write-once; never cleared by `deregisterNode` or auto-ejection" (Copilot #5). 6. appendix-operator-key-rotation:109-111 — `CapacityBond.deregisterNode()` no longer claimed to start unbonding (it only deactivates per ADR 003 § Node Registry). Added explicit `CapacityBond.unbond()` step with the v2.1 14-day default. The withdraw step now follows the unbonding window (Copilot #6). 7. appendix-operator-key-rotation:114 — re-bond flow rewritten: `TOKEN.approve` → `CapacityBond.register(declaredMbps)` → `CapacityBond.registerNode(...)` matching ADR 019 Phase 2 sequence (Copilot #7). The prior `CapacityBond.stake` was a pre-v2.1 carryover. 8. ADR 024:80 — Bond-management bullet rewritten from `CapacityBond.stake()` / `deregister()` to `CapacityBond.register(declaredMbps)` / `deregisterNode()` / `unbond()` matching the v2.1 surface in ADR 003 / 016 (Copilot #10). 9. appendix-l2-deployment:181-186 — bytesPerEpoch ownership corrected: "CapacityBond.recordSettlement SSTORE that also increments bytesPerEpoch" → "FeeRouter-internal `bytesPerEpoch` write + single CapacityBond.recordSettlement SSTORE updating lastSettlementAt". Matches ADR 016's interface and the prior commit-8 fix to 016 (Copilot #11). 10. appendix-peer-table-eviction:45-47 — "active staked node set" / "staking gate" → "active bonded operator set" / "CapacityBond registry gate" (Copilot #12). 11. ADR 001:204 — "All staked nodes register in CapacityBond" → "All bonded nodes register in CapacityBond" (Copilot #13). 12. appendix-observability:187 — metric source `CapacityBond.activeOperatorCount()` (function didn't exist) → `CapacityBond.getActiveNodeCount()` matching the documented Off-Chain Read API in ADR 016 line 482. Added a sentence noting that 1:1 NodeId↔Ethereum binding makes node-count and operator-count equivalent (Copilot #14). Hygiene guards all pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Six categories of dead or noise-only declarations across the v2.1 work-token PR. Audit traced each candidate to confirm zero readers in adr/, contracts/, crates/, finance/, and the v2.1 spec. Voucher / wire format - Drop epochId from the EIP-712 Voucher type and digest in ADR 003. No Rust code carries the field (voucher.rs has the 5-field pre-v2.1 type and a locked type-hash test), the v2.1 spec does not require client- signed epochs, and ADR 003 contradicted itself (line 569 had epochId in the type; line 878's wire-format summary did not). FeeRouter now derives epoch = uint64(block.timestamp / EPOCH_LENGTH) inside routeSettlement. Cascaded to ADR 016 routeSettlement signature, the classDiagram, the Settled event, the call/reentrancy tables, ADR 003 prose references, and appendix-l2-deployment.md. - Delete Channel.lastDisputor (ADR 003): declared but never read by any close/dispute/settle path. Contract surface - Delete IFeeRouter.epochTotalBytes(uint64) (ADR 016): zero readers in adr/, contracts/, crates/, spec, or appendix-observability.md. - Delete IOperatorEmissions.emittedForEpoch(uint64) (ADR 016): zero readers; the EpochDistributed event already carries the per-epoch total as an event field. Metadata noise - Drop Type column from ADR 026 Allocation table: 1:1 derivable from Category and already restated in the Internal/External rollup paragraph two lines later. - Collapse ADR 018 parameter table from PoC | Production | Governable to Value: 11 of 18 rows had PoC = N/A (execution disabled); the Governable column duplicated ADR 026's authoritative governable- parameter table. Added a one-line cross-link to ADR 026 for governance. - Delete **Deciders:** Core team from ADR 022 (singleton across the corpus). - Delete **Touches:** from ADR 028, 030, appendix-blob-cache-eviction, appendix-peer-table-eviction (half-adopted; no Makefile check for back-references; already drifted). - Trim status-banner parentheticals on ADR 028 and ADR 032 (the rebase history is already in decdn/CLAUDE.md's ADR note and git log). Skipped from the audit - finance/params.py dead fields and the live stake_usd regression in finance/notebooks/_shared/scenarios.py are deferred per user request. - Spec frontmatters (**Supersedes:** / **Relationship to v*:**) are kept: they carry per-version diff info that is not in the Status line. Hygiene - make check-book-list check-bare-refs check-md-anchors check-no-section-numbers passes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…8 cross-link Addresses three findings from the review of 2788ccc. - ADR 003:572 was overconfident: said operator epoch-gaming "bounded by the 48-hour dispute window" but the dispute window is the lower bound on settlement, not the upper bound. settleChannel has no settle-by deadline; practical cap is maxChannelDuration (90 days). Rewrote to describe the real attribution surface: operator picks settlement timing within [disputeDeadline, expiresAt] (permissionless callability exists but only the operator has incentive to pay gas), shifting attribution across roughly 4–12 weekly epochs within a monthly emission distribution. Documented as a second-order effect shrinking with the active-operator set. - ADR 018:138 cross-link claimed ADR 026 § Governable parameters owns the governability bounds for every BuybackBurner parameter, but ADR 026's table only covers FeeRouter shares, capacity-curve params, voting cap, bootstrap thresholds, and unbonding window — none of BuybackBurner's setters or epochLiquidityCapFraction. Replaced with an honest summary: setters above are GOVERNANCE_ROLE-gated via the 48h timelock per ADR 009; epochLiquidityCapFraction's [1%, 30%] bound is inline in § TWAP policy; pool weights / swap fee / POL allocation / private-RPC / POL withdraw cap are structural, not parameter-tunable. - ADR 018:133 had a parallel false claim attributing epochLiquidityCapFraction's bound to ADR 026; corrected to cross-reference § TWAP policy where the bound actually originates. - ADR 018:52-53 and 146: drifted "PoC seed" / "Production seed" vocabulary carried over from the dropped table column. Collapsed to "Initial pool seed size" matching the renamed table row. Hygiene - make check-book-list check-bare-refs check-md-anchors check-no-section-numbers passes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request implements a major redesign of the protocol's tokenomics (v2.1 work-token redesign), replacing the previous Curve-style ve-gauge model with a work-token model centered around a lock-to-capacity curve (CapacityBond). It simplifies the FeeRouter split into four buckets (60% operator base, 25% burn, 10% treasury, and 5% safety), introduces Operator Service Emissions, and retires ADRs 034 and 035. The review feedback correctly points out two broken internal Markdown links in the updated adr/026-tokenomics.md file: one referencing a deleted section in adr/018-liquidity-strategy.md and another with an incorrect anchor slug due to heading slugification.
…links Addresses the seven inline review comments left by Gemini and Copilot on commit 531ed39. Stake → bond vocabulary drift (Copilot) - ADR 022: every "active-staker" / "non-staked publishers" / "staked node" / "stakes a node" reference in the DHT participation gate is now "active-bonded-operator" / "unbonded publishers" / "bonded operator" / "bonds a node" to match the v2.1 CapacityBond model. - ADR 012: "staked node", "staked only", "staking enough nodes to dominate", "accurately reflects staked nodes", "seeds must be staked nodes" all retargeted to bond terminology. Client-wallet purpose line dropped the stale "optionally stakes TOKEN for priority" — under v2.1 only operators bond TOKEN (CapacityBond); clients have no bonding path. - ADR 011: "stake is exposed to slashing", "operator stake is unbond-locked" (twice), "stake-based auto-ejection", "stake is not burned / stake is partially burned", "fresh stake", "standard staking check", "any staked operator", "cumulative stake loss", "fresh stake and a new identity", "filer's TOKEN holdings, staking position" — all migrated to bond terminology. Broken anchors in ADR 026 (Gemini) - Line 210: [ADR 018 § Liquidity-cap interaction] pointed to a section that was deleted when its content was merged into § TWAP policy. Link now points to the TWAP policy section and surfaces the actual parameter (epochLiquidityCapFraction, default 10%, bounded [1%, 30%]). - Line 359: [ADR 018 § POL Governance](#pol-governance) was broken because the heading included a parenthetical "(resolves spec Open Q #4 and #8)" that slugifies to "pol-governance-resolves-spec-open-q-4-and-8". Simplified the heading to "### POL Governance" so the clean anchor works; moved the open-question reference into the first paragraph as a clarifying sentence. Spec frontmatter date clarification (Copilot) - v1 and v2 spec Status lines said "Superseded by v2.1 (2026-05-25)" while the linked v2.1 filename is dated 2026-05-24. Clarified to "accepted 2026-05-25" since 2026-05-24 is the creation date and 2026-05-25 is the acceptance/canonical-rewrite date (matches the ADR 026 § Date). Hygiene - make check-book-list check-bare-refs check-md-anchors check-no-section-numbers passes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…asing Addresses five findings from the third in-house review cycle on 779134f. - ADR 011:354 and :471 — missed in the 779134f stake → bond sweep. "anyone with stake can claim to be an origin" → "any bonded operator can claim to be an origin"; "cache-only serving from any staked operator" → "cache-only serving from any bonded operator". - ADR 003:572 — the previous rewrite said "operator chooses when to invoke settleChannel within [disputeDeadline, expiresAt]" but settleChannel has no expiresAt upper bound; expiresAt only gates reclaimExpired, which requires status Open. Real invariant: operator must call closeChannel before expiresAt or the client may reclaim; once Closing, settleChannel has no on-chain settle-by deadline. Practical bound is maxChannelDuration via the closeChannel deadline. Reworded accordingly. - ADR 018:137 — corrected setter names against the canonical BuybackBurner table in ADR 003. setSlippageBps → setSlippageTolerance (the canonical name in ADR 003:500); dropped setSubSwapCount and setSubSwapMinBlockGap from the listed setters since they aren't in ADR 003's canonical interface yet; added a follow-up note that the TWAP params are tunable but their setters need to be canonicalised in ADR 003 (or accepted as constructor-set immutables). Added setKeeper, which is canonical. - ADR 018:59 — broadened the Q#4 parenthetical. v2.1 spec Q#4 covers rebalance authority, withdraw cap, and trading-fee accounting; the prior parenthetical collapsed it to just "POL withdraw cap" which undersold the scope of what the section resolves. - v2.1 spec frontmatter — added explicit "Accepted 2026-05-25" to the Status line so the downstream "Superseded by v2.1 (accepted 2026-05-25)" references in v1 and v2 frontmatters have a canonical source rather than deriving from ADR 026's Date field. Hygiene - make check-book-list check-bare-refs check-md-anchors check-no-section-numbers passes. Out of scope - Reviewer flagged broader stake → bond drift across glossary.md and ~7 other ADRs (001, 002, 003, 005, 008, 016, 017, 019, 024, 030, appendix-peer-table-eviction). The bots only flagged 022/012/011 and this PR's scope is matching the bot-flagged sites; the broader sweep is a follow-up. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…missions Proposes superseding v2.1 by eliminating the 20% Operator Service Emissions bucket entirely. Replaces operator bootstrap with a bounded, one-time Genesis Bond Credits program (50M TOKEN, carved from DAO Treasury, conditional on incentivized-testnet contribution, auto-bonded, 24mo vest via continued operation). Adds new App Incentives bucket (14%) for publisher rebates + integration grants. Contract surface is net-subtractive: OperatorEmissions deleted, CapacityBond extended with PendingCredit fields. Strengthens Howey prong 4 by eliminating any ongoing TOKEN-denominated flow to bonders. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…rewrite 15-task plan covering PR-adr (rewrites to ADR 026, 016, 028 + CLAUDE.md ADR note + v2.1 spec status downgrade) and PR-params (finance/notebooks params.py rebase + notebook re-runs). Each task names exact files, exact text replacements, expected grep output, pre-commit verification, and commit-message HEREDOC. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The v2.2 no-emission design (2026-05-27) replaces v2.1's Operator Service Emissions with bounded Genesis Bond Credits and adds the App Incentives bucket. v2.1 retained as historical record. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replace the v2.1 13-group table with the v2.2 11-group table. Remove Operator Service Emissions (20%), Liquidity Mining (0%), Airdrops (3%), and Incentivized Testnet (3%) as standalone groups. Add App Incentives (14%) as a new External / Ecosystem Incentives line. Public Sale Type changes Internal→External; remaining groups absorb the freed allocation per the v2.2 spec table. Anchors for §Genesis Bond Credits and §App Incentives land in subsequent commits. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…s Bond Credits + §App Incentives
Delete the v2.1 §Operator Service Emissions section. Add two new
sections matching the v2.2 spec:
§Genesis Bond Credits — 5pp/50M TOKEN carve from Group 2 (Treasury),
testnet-conditional, auto-bonded into CapacityBond, 24mo vest via
continued operation, slashable, unvested-on-exit returns to Treasury.
§App Incentives — 14% / 140M TOKEN demand-side program (publisher
rebates + integration grants), Treasury-multisig administered.
Resolves the spec §8 open question on slashing of vested-but-unclaimed
credit: vested portion is no longer slashable once it has functionally
become voluntarily-bonded TOKEN.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…s for v2.2
Update each remaining reference in ADR 026 to point at §Genesis Bond
Credits or §App Incentives as appropriate. Touched:
- S1–S4 supply-table commentary
- §What the bond grants (eligibility bullet)
- §FeeRouter split (bytesPerEpoch no longer drives any payout)
- §Operator economics (year-by-year narrative; worked example)
- §Bootstrap mechanism — pre-seed USDC (pairing line)
- §Consequences (smaller-contract-surface bullet; capital-cost mitigation)
- §Cross-ADR Impact (ADR 016 row)
- §Deferred & Open (new items: testnet-weighting formula, App
Incentives split governance, PublisherRebateRouter trigger)
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…, header First slice of the ADR 016 v2.2 rewrite. Removes OperatorEmissions from the Contract Inventory table, the Contract Architecture classDiagram, and the header §ADR 026 driver callout. Extends CapacityBond's diagram methods to expose grantGenesisCredit / accrueGenesisVest / claimVestedCredit. Adds Treasury→CapacityBond grantGenesisCredit edge. Sweep of remaining OperatorEmissions references in deployment order, call table, fund flow, access control, and reentrancy lands in subsequent commits. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…peratorEmissions contract section
Replace v2.1's separate OperatorEmissions contract with a small
CapacityBond extension. CapacityBond gains:
- PendingCredit{total, vested, grantedAt} per operator
- grantGenesisCredit(op, amount): TGE-window one-shot, Treasury-only
- accrueGenesisVest(op): permissionless, idempotent vesting accrual
- claimVestedCredit(op): operator-callable promotion to bondedAmount
Deletes the entire §Contract: OperatorEmissions interface block,
EmissionCurve struct, and bytesPerEpoch consumer notes.
ADR 016 did not previously carry a dedicated §Contract: CapacityBond
section (the CapacityBond surface was described via §Contract Inventory,
classDiagram, and the cross-contract tables). To host the new
genesis-credit interface, a new §Contract: CapacityBond section is
introduced in place of the deleted §Contract: OperatorEmissions; it
specifies only the genesis-credit entrypoints and back-links the
broader CapacityBond surface to the existing sections.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…aph, read API Update deployment-order Mermaid, constructor-deps table, post-deploy init steps, cross-contract call graph, call table, and Off-Chain Read API to remove OperatorEmissions. Replace BOND_GRANTOR_ROLE granted to OperatorEmissions with GENESIS_GRANTOR_ROLE granted to Treasury, scoped to the GENESIS_CREDIT_WINDOW (default 30 days post-deploy). bytesPerEpoch is now retained for off-chain analytics only — no on-chain consumer remains under v2.2. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ontrol, reentrancy Final slice of the v2.2 rewrite for ADR 016. Updates TOKEN Flow Mermaid, Contracts Holding Funds Summary, Access Control Matrix (BOND_GRANTOR_ROLE becomes GENESIS_GRANTOR_ROLE on Treasury, time-scoped to TGE window), Reentrancy Analysis (CapacityBond depositGrant entrypoint replaced by grantGenesisCredit / accrueGenesisVest / claimVestedCredit), OpenZeppelin usage table, Launch vs Steady-State table, and §Consequences narrative. Also picks up two stragglers in §Contract: FeeRouter (the bytesPerEpoch consumer comment and the analytics-only bullet) that were technically out of Tasks 5-7's scope. Net new contracts vs v1 is zero. Two fund-holding contracts under v2.2: CapacityBond (now also holds the 50M Genesis Bond Credit allocation) and SafetyReserve. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…edit slashability Update the reputation-hit-persists rationale to cite FeeRouter USDC revenue rather than the (deleted) OperatorEmissions distribution. Add an explicit note that under v2.2, an operator's pending unvested Genesis Bond Credit is slashable on the same terms as voluntarily-bonded TOKEN; vested-but-unclaimed credit is no longer separately slashable because it has functionally become voluntary bond. Appeals flow unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Note that ADR 026 has been rewritten twice — first under v2.1 (now Superseded) and again under v2.2 (canonical) — so future ADR work references the right canonical state of the tokenomics document. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replace `vote_weight = capacityAt × age_ramp` with the trailing-window sum of `FeeRouter.bytesPerEpoch`, capped at `voteCapBps` of the bytes-weighted total and multiplied by the existing `age_ramp`. Promotes the previously analytics-only `bytesPerEpoch` counter to the canonical governance vote-weight source; vote weight now tracks demonstrated network contribution rather than declared capacity. Adds `windowEpochs` governable parameter (default 13 ≈ 1 quarter, bounded [4, 26]) and `CapacityBond.slashedAtEpoch` slash-aware zero-out (cleared on successful slash-appeal reversal via the existing ADR 028 `reverseAppeal` path). `CapacityBond.totalVotingWeightAt` becomes deprecated dead surface. Sibling design spec at `docs/superpowers/specs/2026-05-27-served-bytes-voting-design.md` covers the wash-trading threat model and parameter-bound rationale. No Rust or Solidity code changes — ADRs and the contract-surface documentation only. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The prior v2.2 cleanup correctly purged OperatorEmissions / "Operator Service Emissions" / 20% emissions from ADR 016 and ADR 026, but PR-review test-plan greps were scoped to those two files. This sweeps the rest: - ADR 003 (5 spots): bytesPerEpoch consumer is DecdnGovernor per ADR 036, not OperatorEmissions - ADR 008: tokenomics cross-reference + wash-trading section rewritten — USDC-only operator return; reputation now feeds vote-weight threshold tuning (windowEpochs / voteCapBps), not OperatorEmissions curve - ADR 018 (6 spots): 19% combined POL+MM → 20% (MM grew 4pp→5pp under v2.2 spec); 4pp MM partner → 5pp / 50M TOKEN - ADR 026: non-voting-holder enumeration rebased to v2.2 categorical rollup (18/20/15/5/14/8/20 = 100%); 5 stale POL "19%" framings fixed; "Liquidity Provision allocation" sub-section retitled and split across POL group 3 (15%) + MM group 7 (5%) - ADR 028: date bumped; header note clarifies FeeRouter-USDC vs prior OperatorEmissions-distribution operator-economics context - ADR 009/016/026 headers: cite v2.2 spec alongside v2.1 - architecture.md Chapter 4 + ADR 026 index entry: 13-group → 11-group; drop "20% Operator Service Emissions"; POL-heavy 19% → 15+5=20% combined - _build/part-4-tokenomics.md: same Chapter 4 intro fix - appendix-observability: remove dead Operator Service Emissions Metrics subsection; replace with Served-Bytes Voting + Genesis Bond Credit metrics keyed off FeeRouter.bytesPerEpoch + CapacityBond.PendingCredit - appendix-l2-deployment + appendix-poc-production-seams: drop OperatorEmissions from bytesPerEpoch consumer and trait-seam contract list - glossary: delete "Operator Service Emissions" row; update TOKEN + Epoch rows; add 6 v2.2 entries (Genesis Bond Credits, App Incentives, PendingCredit, slashedAtEpoch, windowEpochs, served-bytes voting weight) Remaining "OperatorEmissions" / "Operator Service Emissions" mentions in canonical ADRs (016/026/028) are scoped historical references explaining what was removed under v2.2; spec files in docs/superpowers/specs/ are historical artifacts of superseded designs and intentionally untouched. Pre-commit hooks pass: markdownlint, cargo-deny, ADR book-list, ADR reference-hygiene (bare-refs / md-anchors / no-section-numbers). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request implements the v2.2 no-emission tokenomics redesign. It eliminates the 20% Operator Service Emissions bucket and replaces it with a bounded, retroactive, one-time Genesis Bond Credits program (5% of supply) auto-bonded into CapacityBond and vesting over 24 months, alongside a new demand-side App Incentives bucket (14% of supply) for publisher rebates and integration grants. It rewrites ADR 026 and updates ADR 016 to remove the OperatorEmissions contract and extend CapacityBond with PendingCredit vesting. Additionally, it introduces ADR 036 to base governance voting weight on trailing-window served bytes with a slashing zero-out mechanism. The reviewer recommends using explicit named links instead of numeric ranges (e.g., §§2–4) in adr/008-reputation.md to ensure automated link rewrites resolve correctly.
Addresses 7 inline comments on commit 5c643ad: - spec: drop /home/thiras/... workstation path from 2026-05-27-served-bytes-voting-design.md §Design Decisions (not reproducible for repo readers — copilot) - ADR 036 §Behaviors: reword quorum/proposalThreshold bullet — the Governor reads FeeRouter.totalBytesInWindow as an UPPER-BOUND PROXY for Σ_op vote_weight, not the exact sum. Per-operator cap + age_ramp multipliers make actual Σ ≤ totalBytesInWindow, so calibrating quorum against the proxy is intentionally conservative and avoids per-castVote summation gas. Proxy is exact in the no-cap, all-tenured steady state. (copilot) - appendix-observability:194 decdn_capacity_bond_amount_token: drop "service-emission grants"; reframe as voluntary bond + vested portion of any Genesis Bond Credit; PendingCredit tracked separately (copilot) - appendix-observability:346 deferred dashboards: drop "operator-emissions tracking"; replace with served-bytes voting + Genesis Bond Credit vesting (copilot) - appendix-operator-key-rotation:53,134: "service-emission grant history" → "Genesis Bond Credit PendingCredit position" (copilot ×2) - ADR 008 §Regional-Coverage: "Sections 3–4" replaced with [§ Local Score Calculation] and [§ Network Score Aggregation] named links; "Section 12" replaced with [§ Capacity-Shortfall and Wash-Trading: Reputation as Off-Chain Signal] named link. (gemini — note: literal suggestion of [§ 3](#3) was rejected because (a) #3/#4 are not valid GFM-slugified anchors of those headings and (b) the §N pattern would trigger the check-no-section-numbers pre-commit hook; implemented the underlying intent properly.) Pre-commit hooks pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- ADR 016: add explicit bondOf(address) + slashedAtEpoch(address) getters to the CapacityBond Off-Chain Read API table, formalizing the surface that ADR 003 § Admission and Priority and appendix-observability already reference. Also add bondOf + slashedAtEpoch to the §Contract: CapacityBond surface enumeration paragraph (line 242), replacing the now-deprecated totalVotingWeightAt that ADR 036 retired. - ADR 008: convert remaining 21 "Section N" prose references to named-anchor links per project convention. The 3 references on line 265 were fixed under 5d72d9a (Gemini's flag); this sweeps the rest (lines 8, 65, 66, 75, 77, 87, 178 (×5), 255, 256, 298, 299, 300, 301, 302 (×2), 305 heading, 307, 314, 328, 344, 352, 354 (×3)). Also renames the heading "#### Decay (mirrors Section 7)" to "#### Decay (mirrors §Score Decay)" — verified no inbound links pointed at the renamed anchor. Pre-commit hooks pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The v1 → v2 → v2.1 → v2.2 rewrite sequence on this branch left review-loop residue in normative ADR text: "Date:" header parentheticals tracking each spec, "under v2.1" / "under v2.2" qualifiers in body paragraphs, dangling "see the v2.2 design spec for the v1→v2.2 delta" breadcrumbs, change-log fragments like "was group 7, 20%", and "(now-deleted)" parentheticals for retired contracts. Sweep all of it; the ADRs now read as the current spec, with supersession history confined to ADR 026's new Supersedes line, ADR 036 and 026 Cross-ADR Impact sections, and the design specs in docs/superpowers/. No economic, contract-surface, or semantic claims change. Verification: make check-refs check-book-list and pre-commit on the modified ADR set pass; PR-test-plan grep checks for OperatorEmissions / retired contract roles and stale capacity-weighted-voting language return clean outside _history/. Also resolved one open editorial item: ADR 018 line 137's "either add TWAP setters to ADR 003 or accept constructor-set immutables" question is now stated plainly as constructor-set immutables, matching ADR 003's actual BuybackBurner interface table. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The implementation plan at docs/superpowers/plans/ was a working artifact for executing the v2.2 no-emission rewrite — that work is complete (the ADRs have absorbed the design; this branch's commit history is the execution record). Nothing in the repo references the plan file. Drop it to keep docs/superpowers/ to the design specs only. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
v1 (2026-05-23-work-token-tokenomics-redesign-design.md) and v2 (2026-05-24-work-token-tokenomics-redesign-v2.md) were superseded first by v2.1 and then by v2.2. They were retained as design-history audit files; their content is preserved in git history. The v2.1 spec's Supersedes line is updated to point at git history instead of dangling file paths. The v2.1 spec stays in tree as the Superseded canonical predecessor of v2.2 (still referenced from CLAUDE.md, adr/_history/034, adr/_history/035, and the v2.2 spec's Supersedes line). The alternatives investigation also stays — it's a companion to v2.1, not a draft. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Removes the four remaining design specs in docs/superpowers/specs/ (v2.1 work-token, alternatives investigation, v2.2 no-emission, served- bytes voting). Their content is fully absorbed into the canonical ADRs; file history is preserved in git. Fixes the references that would otherwise dangle: - adr/036 line 6: drop the "Sibling design spec: ..." pointer - CLAUDE.md ADR note: drop spec-file pointers in the ADR 036 and ADR 026 lineage descriptions; drop "v2.1" / "v2.2" version labels - adr/_history/034 and 035: rewrite "Retired by [spec v2.1 (work-token rewrite)](...)" to "Retired under the work-token rewrite" Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
PR-review caught three spots the version-chatter sweep missed: - adr/architecture.md:82 — drop "under the v2.2 no-emission work-token rewrite" from the Chapter 4 intro - adr/architecture.md:169 — rewrite the retired-ADR parenthetical to drop "prior ve-gauge tokenomics design" and "v2.1 work-token rewrite" - adr/_build/part-4-tokenomics.md:7 — drop "under v2.2" from the book chapter intro The sweep's PR test-plan grep was too permissive: piping through `grep -vE '_history/'` filters by line content (so any line that mentions `adr/_history/` in a markdown link is dropped even if the line lives in architecture.md). The correct form uses path scoping: `grep -rnE '...' adr/ --exclude-dir=_history --exclude-dir=_build`. Also fixes a pre-existing inconsistency the cleanup surfaced — the Genesis liquid float table in ADR 026 still listed Airdrops and Incentivized Testnet as float sources, but neither bucket exists in the 11-group allocation (Airdrops dropped at TGE; Testnet absorbed into Genesis Bond Credits per § Genesis Bond Credits). Updated the table to list only Public Sale (up to 5%) and Market-Maker (5%); new total ~5–10%. The cross-chain TOKEN holders item in § Deferred & Open no longer references the deleted Airdrops bucket. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Three changes shipped together:
CapacityBond, 24mo vest via continued operation). A new App Incentives bucket (14% / 140M TOKEN) funds demand-side adoption (publisher rebates + integration grants, Treasury-multisig administered).CapacityBond.capacityAt × age_ramp(operator-asserted, only loosely tied to delivery) to a trailing-window sum ofFeeRouter.bytesPerEpoch, capped per-operator atvoteCapBpsof the bytes-weighted total. Promotes the previously-analytics-onlybytesPerEpochcounter to governance-canonical.docs/superpowers/are removed; their content is fully absorbed into the canonical ADRs, and file history is preserved in git.Tokenomics v2.2 distribution
DAO Treasury splits at TGE: 5pp earmarked for Genesis Bond Credits (in
CapacityBond), 10pp operational (Timelock wallet).Regulatory posture. Strengthens Howey prong 4 by eliminating any ongoing TOKEN-denominated flow to bonders. No passive yield. No delegator pool. No liquidity mining. Operator-only governance.
Contract surface.
CapacityBond(operator registry, capacity-curve bond, slashing,PendingCreditvesting for Genesis Bond Credits),FeeRouter(four-bucket same-tx split: 60/25/10/5),SafetyReserve,BuybackBurner,DecdnGovernor,TimelockController,PaymentChannel,TOKEN. No separate emissions contract; no epoch / claim / snapshot machinery.ADR 036 — Served-bytes voting weight
Formula:
Governable params:
windowEpochs(new, default 13, bounded[4, 26]);voteCapBps(default 5%, governable[1%, 25%]);age_ramp_monthscarries forward unchanged. The cap is now applied against the bytes-weighted total — the primary defense against bytes-weighted concentration in power-law-skewed CDN traffic.Contract surface delta (additive, no removals):
FeeRoutergainstotalBytesPerEpochmapping,bytesInWindow/totalBytesInWindowtrailing-sum helpers,windowEpochsstorage +setWindowEpochs(uint64)(GOVERNANCE_ROLE).CapacityBondgainsslashedAtEpoch[op]watermark stamped byslash()/slashCapacityShortfall(), cleared byclearSlashedAtEpoch(op)(APPEAL_REVERSAL_ROLE, granted toSafetyReservepost-deploy).DecdnGovernor._getVotesrewrites to readFeeRouter.bytesInWindow×age_ramp(CapacityBond.firstBondedAt); zeroed ifCapacityBond.slashedAtEpoch[op]falls inside the trailing window.SafetyReserve.reverseAppealadditionally callsCapacityBond.clearSlashedAtEpoch(op)on a successful slash reversal.CapacityBond.totalVotingWeightAt(ts)is now deprecated dead surface; no on-chain consumer; flagged for removal in the next contract revision.Wash-trading as vote-buying. Bounded but not zero-cost-prevented — attacker forfeits ~40% of paid USDC per cycle (burn + treasury + safety legs) and recoups 60% as operator base. At early-mainnet revenue ($25K/week) holding 5% vote weight against the cap costs ~$6,500/quarter. The cap floor (1%) is the first tightening response if attacks materialize.
What's in this PR
Doc-only — no Rust or Solidity code changes.
ADRs modified: 003, 008, 009, 012, 016, 018, 019, 026, 028, 032, 036 (new), appendix-fraud-detection, appendix-l2-deployment, appendix-observability, architecture, glossary.
ADRs retired to
_history/: 034 (Gauge Boost / VotingEscrow), 035 (Delegator Pool). Header status notes decoupled from spec-file references.Removed: all
docs/superpowers/specs/(v1 / v2 / v2.1 / alternatives-investigation / v2.2 design / served-bytes-voting design — five files) anddocs/superpowers/plans/(v2.2 implementation plan). Working artifacts of the four rewrite rounds; content fully absorbed into canonical ADRs; file history preserved in git.Follow-up
finance/notebooks/_shared/params.pyrebase and notebook re-runs land in a separate PR on thefinancerepository. AddwindowEpochsto the governance params if the notebooks track it.FeeRouterhelpers,slashedAtEpoch,_getVotesrewrite) is a separate PR on thecontracts/skeleton.Test plan
(cd adr && make check-refs check-book-list)cleanpre-commit run --files adr/*.mdclean on every modified ADROperatorEmissions/Operator Service Emissions/BOND_GRANTOR_ROLE/depositGrant/EmissionCurve/setEmissionCurve/sunsetBucket) in canonical ADRscapacityAt × age_ramp/capacity-weighted voting/Vote weight scales with capacityreferences outside_history/, ADR 036 (which quotes the superseded formula), and the appendix-observability deprecation notegrep -rnE 'v2\.1|v2\.2|under v2|prior design|prior tokenomics' adr/ --exclude-dir=_historyreturns empty)docs/superpowers/specs/ordocs/superpowers/plans/anywhere in the repo (.claude/settings.local.json is gitignored and exempt)#genesis-bond-credits,#app-incentives,#adr-036-served-bytes-voting-weight,#slashing-zero-out,#wash-trading-as-vote-buying)cargo build && cargo clippy && forge build --sizes && forge testclean (no code-surface changes, but verifies the doc edits did not introduce a regression in the unrelated parts of the repo)🤖 Generated with Claude Code