You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tooling: the generated ADR index drops underscores from titles (sys_metadata shows as sysmetadata) #35372
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.
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.
Activity
objectstack-fleet commentedon Nov 19, 2026
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.mjscan fix the escape.