Skip to content

spec: normalize requirement titles and headings to canonical form#3

Merged
kreneskyp merged 1 commit into
mainfrom
spec/normalize-titles-headings
Jun 25, 2026
Merged

spec: normalize requirement titles and headings to canonical form#3
kreneskyp merged 1 commit into
mainfrom
spec/normalize-titles-headings

Conversation

@kreneskyp

Copy link
Copy Markdown
Contributor

What

Normalizes spec requirement titles/headings to the canonical readable form across spec/.

  • Frontmatter title: cleaned — strip placeholder brackets and any duplicated code prefix. id already carries the code.
  • Body headings flipped from # [CODE] Title / # [CODE] [Title] to # CODE: Title, including code-prefixed sub-headings.

Why

Frontmatter id + title are the source of truth so renderers display code and title cleanly without parsing heuristics. The bracketed/placeholder/code-prefixed titles broke that contract. CODE: Title is the canonical heading form (skeletons updated to match).

Safety

No renderer/validator/locator parses the H1 bracket form — all read frontmatter or match full heading text. Pure syntactic rewrite; no prose changed. Part of an ecosystem-wide normalization sweep.

🤖 Generated with Claude Code

Clean frontmatter `title:` values (strip placeholder brackets and any
duplicated `{id}:` prefix) and convert body headings from the bracketed
`# [CODE] Title` / `# [CODE] [Title]` forms to the canonical readable
`# CODE: Title` form, including code-prefixed sub-headings. Frontmatter
`id`+`title` remain the source of truth; no prose changed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kreneskyp kreneskyp requested a review from a team as a code owner June 25, 2026 17:22
@kreneskyp kreneskyp merged commit 9ae8545 into main Jun 25, 2026
4 checks passed
@kreneskyp kreneskyp deleted the spec/normalize-titles-headings branch June 25, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant