Skip to content

ADR cross-reference hygiene: pre-existing broken anchors in unmodified files #339

Closed

Description

@alpergundogdu

PR #338 surfaced a class of broken cross-references in ADR files that the PR doesn't otherwise touch. Filing this as a tracking issue for a one-shot cleanup.

Pattern

Two recurring causes:

  1. Em-dash collapse mistake. GFM strips em-dashes (—) from headings and collapses surrounding whitespace into a single hyphen, but several anchors were written assuming --. Affects most of the broken links below.
  2. Renamed / removed target sections. A handful point at section headings that have been renamed or no longer exist.

Inventory (programmatic scan against current main)

Source Target Cause
adr/002-content-addressing.md:34 005-protocol.md#cdnprobev1--latency-probe em-dash collapse
adr/005-protocol.md:81 013-schema-evolution.md#tier-1--minor-no-coordination em-dash collapse
adr/005-protocol.md:111 001-network.md#content-discovery-dht--probe em-dash collapse
adr/005-protocol.md:154 013-schema-evolution.md#tier-1--minor-no-coordination em-dash collapse
adr/005-protocol.md:355 self #gossip--rate-change-announcements em-dash collapse
adr/011-content-takedown.md:165 005-protocol.md#phantom-announcement-slashing target heading missing
adr/012-client.md:99 024-account-abstraction.md#3-session-keys-via-safe-modules target heading missing
adr/013-schema-evolution.md:65 self #tier-1--minor-no-coordination em-dash collapse
adr/013-schema-evolution.md:378 self #tier-1--minor-no-coordination em-dash collapse
adr/015-zero-rtt.md:8 001-network.md#content-discovery-probe-fan-out target heading renamed/missing
adr/015-zero-rtt.md:79 001-network.md#content-discovery-probe-fan-out same
adr/015-zero-rtt.md:107 001-network.md#content-discovery-probe-fan-out same
adr/022-content-discovery.md:229 013-schema-evolution.md#schema-evolution-strategy target heading missing

13 broken anchors across 7 files.

Suggested fix shape

For em-dash collapse: replace -- with - in the anchor.

For renamed/missing targets: either retitle the target to match the existing references, or rewrite the references to point at the closest existing heading.

PR #338 already applied the same em-dash fix pattern to anchors in PR-touched files; the fix shape is well-understood.

Why this didn't land in #338

Out of scope — these files aren't otherwise modified by the v3 rollout. Surfaced incidentally by an integrity-audit pass during that PR's review.

Acceptance

Programmatic scan after the fix should report zero broken anchors across the entire adr/ tree. (PR #338's own check verified zero in PR-touched files.)

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

Metadata

Metadata

Assignees

Labels

kind: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