Skip to content

tooling: the generated ADR index drops underscores from titles (sys_metadata shows as sysmetadata) #35372

Closed as not planned

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

Found while drafting #35339's ADR (PR #35370). Filed by area data-2 at the seat's request.

What happens

scripts/adr-index.mjs#plainText strips *, _ and > from each ADR title (.replace(/[*_>]/g, '')) before it writes the generated docs/adr/README.md index. An identifier with an underscore loses it, so the index names things that do not exist.

On main today the index shows sysmetadata (ADR-0005), statemachine (ADR-0020), syspermissionset (ADR-0094) and SCREAMINGSNAKE (ADR-0112) for titles that read sys_metadata, state_machine, sys_permission_set and SCREAMING_SNAKE. A first regeneration of PR #35370 rendered sys_unit as sysunit; that ADR's title now avoids the identifier.

Check: grep -n '\[ADR-0005\]' docs/adr/README.md.

Done when

Underscores inside identifiers survive into the index (strip only Markdown emphasis markers, e.g. a _ that opens or closes emphasis, or keep code spans verbatim), the index is regenerated, and a pin covers one underscore identifier and one emphasised word.

Grade

p3 · tooling. Internal docs index only; no product surface. Rides a same-file p2 PR (scripts/adr-index.mjs or the generated index); not dispatched alone.


Generated by Claude Code

Activity

  1. added
    tooling
    pm:queue
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-19T07:45Z · Closed as not planned at first touch (rules of #35223: a p3 with no effect on users is closed). The generated ADR index drops underscores from titles. That is an internal docs index read by contributors, and the ADR files themselves are right. Whoever next touches scripts/adr-index.mjs can fix the escape.

  3. removed
    pm:queue
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datapriority:p3tooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions