decisions DECIDED

277. Cite a heading or a symbol, never a line number

Raised and decided 2026-10-11 (UTC) in a maintainer session (https://claude.ai/code/session_01XTmzMUrHRuzNPGgiKJjB3q), written by lane maintainer/no-line-links-into-docs. (Section number provisional until the merge queue lands it. The helper's name below is provisional too.)

The ruling, as made

calef, 2026-10-11 (UTC):

Can we establish a standard that we don't link to line numbers but instead section headers in documents?

Asked the same day whether citations into source code fold into the same standard, he answered:

Yes

The rule

It binds every tracked file a person writes: notes, design records, briefs, code comments and scripts.

Why

A line number moves with every edit above it, and nothing tells the citation. A heading moves with the text under it, and a symbol moves with its definition. The same day's ยง212 (a prose budget) splits moved sixty notes into appendices, and every notes/X.md line citation into them went stale at once. Pull requests #1938, #1940 and #1941 repointed them by hand to headings, verifying each target at the commit that wrote it. A stale line citation is also invisible to every gate, because it still resolves, to the wrong line. script/roadmap names that failure as the one no check of its own can see.

What is not a citation

Each is decided structurally by the gate rather than marked, because each is quoted output with a shape a reader can see:

Anything else that must keep a line number carries line-citation: exception. Reason: ... on its line or the line above, so the exception says it is one where a reader meets it. Two do today: the block as raised in milestone 101 (the L4 calibration), kept wrong on purpose, and a comment in script/citations that quotes its own diagnostic.

The gate

helpers/line_citations.py, run by script/lint and by its --no-cargo pre-push mode, with a selftest of fixtures first.

BUGS