Repository navigation
docs(adr): link bare ADR cross-references; normalize § spacing - #599
Conversation
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]>
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]>
There was a problem hiding this comment.
Code Review
This pull request performs a comprehensive update to the ADR documentation across the repository, primarily focusing on fixing broken or mangled internal links and ensuring consistent formatting for cross-references. The changes ensure that all ADR references use correct GFM anchor slugs and proper Markdown formatting. The review comments identified specific instances where link replacement had introduced text mangling, and these have been addressed with the provided suggestions.
| ``` | ||
|
|
||
| `rejectAppealAsPerjury` is a sibling entry point for the ADR 011 § Evidence case where post-hoc evidence shows the sworn declaration was false. It does everything `rejectAppeal` does, plus sets `appeals[appealId].perjuryFlagged = 1` and `perjuryDenylistUntilUs[appeal.filer] = nowUs + 365 days * 1_000_000`. Multisig may call either against an `Open`, `UnFastTracked`, or `FastTracked` appeal; on a `FastTracked` appeal the suspension is released as a side effect (mirrors `unFastTrackAppeal` slot accounting before terminating). | ||
| `rejectAppealAsPerjury` is a sibling entry point for the [ADR 011 § Evidence](011-content-takedown.md#evidence)claration was false. It does everything `rejectAppeal` does, plus sets `appeals[appealId].perjuryFlagged = 1` and `perjuryDenylistUntilUs[appeal.filer] = nowUs + 365 days * 1_000_000`. Multisig may call either against an `Open`, `UnFastTracked`, or `FastTracked` appeal; on a `FastTracked` appeal the suspension is released as a side effect (mirrors `unFastTrackAppeal` slot accounting before terminating). |
There was a problem hiding this comment.
The word 'declaration' was mangled during link replacement. This has been corrected, and the internal link to ADR 011 now uses the correct GFM anchor slug (#evidence) while maintaining backticks for technical terms as per repository rules.
| `rejectAppealAsPerjury` is a sibling entry point for the [ADR 011 § Evidence](011-content-takedown.md#evidence)claration was false. It does everything `rejectAppeal` does, plus sets `appeals[appealId].perjuryFlagged = 1` and `perjuryDenylistUntilUs[appeal.filer] = nowUs + 365 days * 1_000_000`. Multisig may call either against an `Open`, `UnFastTracked`, or `FastTracked` appeal; on a `FastTracked` appeal the suspension is released as a side effect (mirrors `unFastTrackAppeal` slot accounting before terminating). | |
| `rejectAppealAsPerjury` is a sibling entry point for the [ADR 011 § Evidence](011-content-takedown.md#evidence) case where post-hoc evidence shows the sworn declaration was false. |
References
- Maintain backticks for code formatting of technical terms and protocol messages in Markdown files.
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs.
| `reverseAppeal`: | ||
|
|
||
| - `status = Reversed`; `regionActiveReliefCount[appeal.region]--`; `entry.suspended = false`. `entry.effectiveAt` is **preserved** per ADR 011 § Authority and flow — resetting was rejected to avoid retroactively shielding pre-suspension non-compliance. | ||
| - `status = Reversed`; `regionActiveReliefCount[appeal.region]--`; `entry.suspended = false`. `entry.effectiveAt` is **preserved** per [ADR 011 § Authority and flow](011-content-takedown.md#authority-and-flow)roactively shielding pre-suspension non-compliance. |
There was a problem hiding this comment.
The word 'retroactively' was mangled during link replacement. This has been corrected, and the internal link to ADR 011 now uses the correct GFM anchor slug (#authority-and-flow) while maintaining backticks for technical terms as per repository rules.
| - `status = Reversed`; `regionActiveReliefCount[appeal.region]--`; `entry.suspended = false`. `entry.effectiveAt` is **preserved** per [ADR 011 § Authority and flow](011-content-takedown.md#authority-and-flow)roactively shielding pre-suspension non-compliance. | |
| - `status = Reversed`; `regionActiveReliefCount[appeal.region]--`; `entry.suspended = false`. `entry.effectiveAt` is **preserved** per [ADR 011 § Authority and flow](011-content-takedown.md#authority-and-flow) — resetting was rejected to avoid retroactively shielding pre-suspension non-compliance. |
References
- Maintain backticks for code formatting of technical terms and protocol messages in Markdown files.
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs.
| ``` | ||
|
|
||
| `UnFastTracked → FastTracked` is one-shot per ADR 011 § Contract surface — a second `unFastTrackAppeal` against the same `appealId` reverts with `AlreadyUnFastTracked`. | ||
| `UnFastTracked → FastTracked` is one-shot per [ADR 011 § Contract surface](011-content-takedown.md#contract-surface) the same `appealId` reverts with `AlreadyUnFastTracked`. |
There was a problem hiding this comment.
The sentence structure was mangled during link replacement. This has been corrected, and the internal link to ADR 011 now uses the correct GFM anchor slug (#contract-surface) while maintaining backticks for technical terms as per repository rules.
| `UnFastTracked → FastTracked` is one-shot per [ADR 011 § Contract surface](011-content-takedown.md#contract-surface) the same `appealId` reverts with `AlreadyUnFastTracked`. | |
| `UnFastTracked → FastTracked` is one-shot per [ADR 011 § Contract surface](011-content-takedown.md#contract-surface) — a second `unFastTrackAppeal` against the same `appealId` reverts with `AlreadyUnFastTracked`. |
References
- Maintain backticks for code formatting of technical terms and protocol messages in Markdown files.
- Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs.
…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]>
Completes the ADR 026 per-bucket split (#590). ADR 034 (Gauge Boost + VotingEscrow, §3+§4) and ADR 035 (Delegator Pool, §6) extracted; ADR 026 retitled "Tokenomics" as the slim umbrella and file renamed 026-gauge-boost-tokenomics.md → 026-tokenomics.md (all refs updated corpus-wide). Subsection refs repointed; broken intra-doc §N refs and empty-§ link-text fixed (incl. a §8→§9 governance correctness fix); "PoC PaymentChannel" → "PaymentChannel". Rebuilt on post-#599 main so 034/035 inherit #599's cross-ref linking. Verified: link checker 0 new breaks (2 pre-existing fixed), check-book-list green (26 ADRs + 12 appendices), MD001 clean, adr/ self-contained. Closes #590.
Summary
Resolves #597 (the follow-up from #596's gemini-code-assist review). Documentation-only.
Converts 139 bare
ADR NNN/ADR NNN § Sectionreferences across 30 files to relative linked form[ADR NNN § Section](NNN-file.md#anchor)— covering the table cells and inline rationale lists the bot flagged on #596 — and normalizes§spacing to the corpus convention.Method (why this is safe)
NNN→filemap (including the demoted-ADR→appendix mappings from docs(adr): fix ADR/doc drift — stale ADR-007 refs, crate status, provenance #596) and a per-file heading→slug map using GitHub's actual slug algorithm (lowercase, delete punctuation, each space → one hyphen, no collapsing — e.g.Signatures — secp256k1→signatures--secp256k1).§Kmaps to theK.-prefixed heading.origin/mainvs. after —base=6, now=6, **introduced=0**. The 6 pre-existing broken anchors are left untouched (out of scope; not introduced here).Scope decisions
architecture.mdmaintenance note).# ADR 003: Payment Modelstays plain.appendix-l2-deployment.md:140-141(§ Buyback execution,§ Deployment). These section names are paraphrases with no matching heading; auto-linking would fabricate a broken anchor (the issue forbids broken links).[your call]: a human knows the intended targets (e.g.#buyback-execution-via-balancer-v3) — say the word if you want them hand-linked.§spacing normalized to§ Word(space) /§Nnumeric (no space); code blocks and_history/left untouched.Test plan
origin/main, GitHub-accurate slugger)adr book list in sync,cargo deny)adr/🤖 Generated with Claude Code