Skip to content

adr link gate: anchors unchecked in docs/ and root markdown; _history/ links broken since the archive moves #1559

Closed

Description

@thiras

The adr link gate (#1455: make -C adr check-refs, wired at ci.yml:1439-1442) currently passes — 1614 links resolve, zero dead anchors in its scope — but the scope has two gaps:

  1. Coverage. adr/Makefile ANCHOR_SRCS covers only adr/*.md + README. Not covered: docs/runbook.md (which links into ADR anchors, e.g. runbook.md:376 → ../adr/003-payments.md#deposit-economics), CONTRIBUTING.md, CLAUDE.md, CHANGELOG.md. Compounding it, the CI changes filter (ci.yml:222-228) triggers the job on adr/**/*.md only — a heading rename inside adr/ that breaks a runbook anchor does not even run a check (which would not catch it anyway).
  2. adr/_history/ rot. ~46 sibling-relative links broke when files were archived: _history/031-content-blacklist-appeals-contract.md (~37 links) and _history/032-safety-reserve-appeals-contract.md (~8) need ../ prefixes or _history/-local targets; _history/alternatives-pre-launch.md:238 targets a file now at _history/031-…. One is a genuinely dead anchor, not just a wrong path: _history/032-…​.md:12 → ../011-content-takedown.md#blacklist-entry-appeals (heading removed in the OriginAssignment: vetted-publisher instant origins (collapse assignment into publisher vetting) #1491 rewrite of ADR 011).
  • extend ANCHOR_SRCS (or add a second target) to docs/ + root markdown, and widen the changes filter to match
  • fix _history/ links, or exempt them explicitly in the Makefile so the rot is a decision rather than an accident

Activity

  1. added
    kind:docs
    prio:low
    on Aug 1, 2026
  2. github-actions commented on Aug 1, 2026

    @github-actions

    🎯 Triage report

    The ADR link gate (make -C adr check-refs) has two blind spots: it does not cover docs/runbook.md, CONTRIBUTING.md, CLAUDE.md, or CHANGELOG.md, and its CI changes filter only fires on adr/**/*.md edits — so a heading rename in an ADR that breaks a runbook link goes completely undetected. Separately, ~46 relative links in adr/_history/ broke when files were archived (missing ../ prefixes), with at least one genuinely dead anchor (#blacklist-entry-appeals removed in the #1491 rewrite of ADR 011).

    📊 Assessment

    Dimension Value Reasoning
    Type Task Two concrete, mechanical fixes; no design decisions required
    Labels documentation, technical, low (already applied) Accurate: doc tooling gap, low urgency, no runtime impact
    Coding agent Suitable Requirements are precise with exact file paths and line numbers; success criteria are clear (zero dead anchors in widened scope)

    🔗 Similar issues

    💡 Notes and suggestions

    Sub-tasks:

    • Widen ANCHOR_SRCS in adr/Makefile to include docs/runbook.md, CONTRIBUTING.md, CLAUDE.md, CHANGELOG.md
    • Widen CI changes filter (ci.yml:222-228) to trigger on docs/**, CONTRIBUTING.md, CLAUDE.md, CHANGELOG.md in addition to adr/**/*.md
    • Fix _history/031-content-blacklist-appeals-contract.md (~37 links): add ../ prefixes to sibling-relative paths
    • Fix _history/032-safety-reserve-appeals-contract.md (~8 links): same prefix fix; _history/alternatives-pre-launch.md:238 target is now at _history/031-...
    • Handle dead anchor _history/032-....md:12 → ../011-content-takedown.md#blacklist-entry-appeals (heading removed in OriginAssignment: vetted-publisher instant origins (collapse assignment into publisher vetting) #1491): either update to the current heading name or remove the link
    • Decision point: exempt _history/ from the gate (explicit decision for rotted archive links) or keep them covered — either is fine but should be recorded in the Makefile with a comment

    Approach for the Makefile fix:

    ANCHOR_SRCS := $(wildcard adr/*.md) README.md CONTRIBUTING.md CLAUDE.md CHANGELOG.md docs/runbook.md

    Tip for _history/ links: run grep -rn '\.\.' adr/_history/ to enumerate all relative-upward links and audit them against the current file tree before patching.

    Generated by Agentic Triage for #1559 · sonnet46 · 15.2 AIC · ⌖ 5.58 AIC · ⊞ 6K · ◷

    Add this agentic workflow to your repo

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
  3. self-assigned this
    on Aug 3, 2026
  4. alpergundogdu commented on Aug 3, 2026

    @alpergundogdu
    Contributor

    Resolved by #1581 (merged, commit 373401e). The multi-issue "Closes" line only auto-closed the first number; closing manually.

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

Metadata

Metadata

Assignees

Labels

kind:docsprio:low

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions