Skip to content

[finding] 96 of the 128 line citations in scripts/** gate headers name no tracked file, so the new symbol-anchor corpus declines them by name #15809

Description

@claude

Filed by the os-dev on #15765, from PR #15806. Filed bare — domain:*, type and priority are triage's. ⛔ Not fixed there: that card's ruling scoped the migration to citations naming a tracked file, and this is the remainder it declined by name.

What was measured

scripts/check-scripts-symbol-anchors.mjs registers scripts/** .mjs comment prose as a symbol-anchor corpus with judgeUntrackedLineAnchors: false. On 5315098df, over 216 tracked files, that leaves 96 of 128 live line citations unjudged. They are seen and counted — the corpus reports them as unresolvableLineCitation, and its self-test asserts the count, so "declined" is told apart from "blind spot" — but nothing checks them.

n shape example
66 bare filename a census-table row citing engine.ts at some line
22 continuation with no path of its own a bare backticked line-suffix span
11 directory-qualified but untracked an illustration, or a sibling-repo path
1 tilde form the "about line N" spelling

The largest single concentration is 23 rows in one gate's census table.

Why it was declined rather than folded in

The reason is the one docs/adr/** gave for checkBarePaths: false, on the same evidence shape: a bare engine.ts cannot be bound by any resolver to one of this tree's several files of that name, so the gate can neither resolve nor refuse it, and cannot tell its author how to fix it. A gate whose only remedy is "stop writing that" is the permanently-red gate this repo retired. Folding 96 findings in would also bury the 32 the card measured under a corpus-wide cleanup nobody ruled on.

What a fix might owe

Not obviously one card. The 66 bare filenames are mostly dated census rows, where the repair PR #15806 used for the tracked-target ones applies unchanged: name the file as a file-level anchor and keep the number beside it as data, losing no digit. The 11 illustrations want the angle-bracket placeholder spelling scripts/symbol-anchors.mjs#ANCHOR_GRAMMAR already uses. The 22 continuations mostly disappear once their parent is migrated. Whether the corpus should then flip judgeUntrackedLineAnchors on — and what it would do about a genuinely ambiguous abbreviation — is the decision this card exists to put in front of triage, not one to take here.

Refs

#15765 (the corpus and the tracked-target migration) · #13556 (the ADR migration and its 72.1% one-way lower bound) · #13788 (the second-corpus precedent).


🤖 Generated with Claude Code

https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk


Generated by Claude Code

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions