Repository navigation
docs(adr): fix ADR/doc drift — stale ADR-007 refs, crate status, provenance - #596
Conversation
…nance) Resolves #580 plus adjacent drift found while validating it. - appendix-l2-deployment.md: repoint 5 stale ADR-007 refs (lines 35/74/76/106/140 — issue listed only 3) to ADR 003 § L2 sequencer censorship, the surviving authority for the 48h dispute window - 015-zero-rtt.md: fix broken link to demoted 020-observability.md -> appendix-observability.md - CLAUDE.md: de-stub incentive/reputation status (substantive impls, 0 unimplemented!/todo!); add ADR 028 to the provenance ledger; correct the absent-number note — 006/020/021/023/025 were demoted to appendices and 004 superseded, NOT "never assigned"; align Crate Structure reputation line with deferred gossip aggregation Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the project documentation to reflect the transition of the incentive and reputation crates from stubs to early implementations and reclassifies several ADRs as appendices. It also consolidates references to L2 sequencer censorship from ADR 007 into ADR 003. Review feedback suggests improving the consistency of these documentation changes by adding missing internal Markdown links and ensuring uniform formatting for ADR section references.
| |--------|--------------------| | ||
| | Gas costs at current fee market | Directly affects channel open/close/settle economics (ADR 003 §Deposit Economics) | | ||
| | Sequencer forced-inclusion delay | Hard lower-bound on dispute window; must exceed this value (ADR 003/007) | | ||
| | Sequencer forced-inclusion delay | Hard lower-bound on dispute window; must exceed this value (ADR 003 §L2 sequencer censorship) | |
There was a problem hiding this comment.
This reference to ADR 003 is missing a link and a space after the section symbol §, which is inconsistent with other references in this document (e.g., lines 5, 19, 74). Adding the link improves navigation between design artifacts. Ensure the anchor link follows GFM slug rules (lowercase, hyphens for spaces).
| | Sequencer forced-inclusion delay | Hard lower-bound on dispute window; must exceed this value (ADR 003 §L2 sequencer censorship) | | |
| | Sequencer forced-inclusion delay | Hard lower-bound on dispute window; must exceed this value ([ADR 003 § L2 sequencer censorship](003-payments.md#l2-sequencer-censorship)) | |
References
- When referencing ADR sections via Markdown links, use stable GitHub Flavored Markdown (GFM) anchor slugs and simplify the target headings to ensure link stability across different renderers.
There was a problem hiding this comment.
Declining. The sibling row in this same Evaluation Criteria table — (ADR 003 §Deposit Economics) on the gas-cost row — is bare and uses § with no space. This file deliberately splits style: linked refs in prose (lines 5/19/74), bare refs in tables/lists. The original ref here ((ADR 003/007)) was bare. Linking + spacing only this row makes it inconsistent with (ADR 003 §Deposit Economics) directly above it. A full table→linked restyle is a separate editorial pass, out of scope for a stale-ref drift fix.
| assumptions, and aggregator density (ADR 018), gas estimates (ADR 003), and the | ||
| forced-inclusion window (ADR 007) are all calibrated for Arbitrum One; changing | ||
| chains would require re-validating all of them. | ||
| forced-inclusion window (ADR 003 § L2 sequencer censorship) are all calibrated |
There was a problem hiding this comment.
This reference to ADR 003 is missing a link. For consistency with the rest of the document and to aid readability, it should be linked to the relevant section in 003-payments.md using a GFM-compliant anchor slug.
| forced-inclusion window (ADR 003 § L2 sequencer censorship) are all calibrated | |
| forced-inclusion window ([ADR 003 § L2 sequencer censorship](003-payments.md#l2-sequencer-censorship)) are all calibrated |
References
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs, which are typically generated by converting headers to lowercase and replacing spaces with hyphens.
There was a problem hiding this comment.
Declining. The adjacent refs in this same rationale sentence — (ADR 018) and (ADR 003) — are bare. The original ref at this spot was (ADR 007), also bare. Keeping (ADR 003 § L2 sequencer censorship) bare matches its immediate siblings; linking only this one breaks consistency with (ADR 018)/(ADR 003) in the very same line.
| |-----|------------| | ||
| | ADR 003 § Deposit Economics | Gas table calibrated against Arbitrum One fee market | | ||
| | ADR 007 § L2 Sequencer Censorship | Forced-inclusion delay ≤ 24 h (Arbitrum value) | | ||
| | ADR 003 § L2 Sequencer Censorship | Forced-inclusion delay ≤ 24 h (Arbitrum value) | |
There was a problem hiding this comment.
This table entry is missing a link and uses inconsistent casing compared to the target header in 003-payments.md (which is #### L2 sequencer censorship). Linking it ensures consistency with the other rows in this table. Ensure the anchor link is correctly formatted as a GFM slug.
| | ADR 003 § L2 Sequencer Censorship | Forced-inclusion delay ≤ 24 h (Arbitrum value) | | |
| | [ADR 003 § L2 sequencer censorship](003-payments.md#l2-sequencer-censorship) | Forced-inclusion delay ≤ 24 h (Arbitrum value) | |
References
- When referencing ADRs, ensure that anchor links are correctly formatted. GitHub Flavored Markdown (GFM) slug generation replaces each whitespace character with a hyphen and removes special characters.
There was a problem hiding this comment.
Declining. The other three rows in this Cross-ADR alignment table — ADR 003 § Deposit Economics, ADR 018 § Buyback execution, ADR 016 § Deployment — are all bare ADR NNN § Section. The original row was ADR 007 § L2 Sequencer Censorship, also bare. The edit keeps the column uniform; linking only this row makes it the lone outlier.
…-fc3a18 # Conflicts: # CLAUDE.md
… PaymentChannel framing - git mv adr/026-gauge-boost-tokenomics.md → adr/026-tokenomics.md (matches the "ADR 026: Tokenomics" umbrella retitle); all 208 references updated corpus-wide (every adr/*.md incl. _history, adr/Makefile BOOK_SRCS, architecture.md reading-order + numeric index, glossary.md, CONTRIBUTING.md). Zero `026-gauge-boost- tokenomics` references remain. - adr/003-payments.md: "The PoC `PaymentChannel`" → "The `PaymentChannel`" — it is the single launch *and* production payment-channel contract (no PoC/prod split since the single-USDC decision); this was the last residual PoC-scoping of the contract. Verified with the github-slugger-accurate corpus link checker (filename-normalized vs post-#596 main): broken links unchanged at 7 pre-existing, 0 new; make check-book-list green (26 ADRs + 12 appendices); MD001 clean; pre-commit green. Anchors unaffected by the rename (only the file path changed, applied consistently). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
* docs(adr): link bare ADR cross-references; normalize § spacing Resolves #597. - 139 bare `ADR NNN` / `ADR NNN § Section` refs across 30 files converted to relative linked form `[ADR NNN § Section](NNN-file.md#anchor)` (107 number-only + 32 §-section), covering table cells and inline rationale lists per the gemini-code-assist review on #596 - Every produced anchor validated against the target file's actual headings using GitHub's slug algorithm (delete punctuation, each space → one hyphen, no collapse); 0 broken anchors introduced (6 pre-existing broken anchors on main left untouched — out of scope) - § spacing normalized to corpus convention: `§ Word` (space), `§N` numeric (no space) - Headings/titles deliberately excluded (linking inside a heading would alter its own slug and break the ADR-book TOC) - 2 residual bare refs left as-is (appendix-l2-deployment.md:140-141: "§ Buyback execution", "§ Deployment" are paraphrases with no matching heading — auto-linking would fabricate a broken anchor) - Self-contained (relative paths only), markdownlint passes Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * docs(adr): link the 2 remaining paraphrased ADR refs Resolves the residual from the prior commit — the Cross-ADR alignment table's last two rows now link to verified headings: - "ADR 018 § Buyback execution" -> § Buyback execution via Balancer V3 (018-liquidity-strategy.md#buyback-execution-via-balancer-v3) — the canonical anchor already used 3x elsewhere (this file lines 22/84, ADR 016 deploy row #7) - "ADR 016 § Deployment" -> § Deployment Order (016-contract-interactions.md#2-deployment-order-and-initialization-dependencies) — the section whose table carries the BuybackBurner deployment row with the Balancer V3 Router / Arbitrum address Zero bare ADR refs now remain in body text; 0 broken anchors introduced. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
…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]>
Summary
Resolves #580 (all three findings) plus adjacent ADR/doc drift surfaced while validating it. Documentation-only — no Rust touched; markdownlint +
cargo deny+adr book listpre-commit hooks pass.Issue #580 findings
adr/appendix-l2-deployment.mdcited retired ADR 007 as authoritative. The issue listed lines 74/106/140; validation found 5 refs (also lines 35 and 76). All repointed to ADR 003 § L2 sequencer censorship (003-payments.md#l2-sequencer-censorship) — the surviving authority for the 48h dispute window / forced-inclusion extension, and the convention the file's own header already uses.incentive≈ 2.8k LOC / 71 tests,reputation≈ 600 LOC / 17 tests, 0unimplemented!/todo!. Rewrote the Project Overview status to state implemented logic and the real gap (network gossip aggregation + Sybil resistance deferred per ADR 008 §14a).028-slashing-appeals.md(Locked-for-implementation) to the CLAUDE.md ADR-note ledger.Adjacent drift also fixed
adr/015-zero-rtt.md:146linked to demoted020-observability.md→ repointed toappendix-observability.md(only broken intra-ADR link corpus-wide; full sweep otherwise clean).reputationstill said "gossip-based reputation scoring", contradicting the corrected Project Overview — aligned to "local EWMA now, gossip aggregation deferred".Out of scope
finance/cross-repo companion (decdn/finance#5) — intentionally untouched per request.Test plan
adr/(excl._history/)adr/files (self-contained rule)003-payments.md#l2-sequencer-censorshipresolves🤖 Generated with Claude Code