Skip to content

docs(typos): name the extend-identifiers route for accepting a corrected word - #1133

Merged
kyle-sexton merged 2 commits into
mainfrom
docs/typos-extend-identifiers
Nov 25, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
docs/typos-extend-identifiers

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Follow-up to #1132 (its last commit was pushed after the merge). Owner decision Q295 (Z2 layering rule): owner-decisions.md L423, owner verbatim: "OK go w/ recommendations".

Summary

The typos mode table says a key this file sets keeps its value. That holds within extend-words, but typos also has a native route for a repository to accept a word this file corrects: an [default.extend-identifiers] entry mapping the word to itself is matched before word corrections.

Fix

components/typos/README.md, Partial override row: names the extend-identifiers route.

Verification

typos 1.52.2, this repository's _typos.toml passed with -c, a file with one British spelling this file corrects:

  • repository _typos.toml with the word under [default.extend-identifiers] mapped to itself: exit 0.
  • control, no repository config: exit 2, the correction reported.
  • the same word under [default.extend-words] in the repository file: exit 2 (this file's value wins), as the row already said.

ci-workflows#1219 (merged) made the CI composite pass this file as the base, so this is the route a repository such as songwriting has if it wants to keep a word standards corrects.

Related

🤖 Generated with Claude Code

@kyle-sexton
kyle-sexton enabled auto-merge (squash) November 25, 2026 03:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T03:31:38.308611Z e64dc45 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

claude-security-review needs no new review of 971bde49fc961b793628460a02319fbf6ba8ed9e: every file in scope matches docs-only-paths.

@github-actions

Copy link
Copy Markdown

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a native closing keyword (Closes/Fixes/Resolves #N). If this PR references an issue it must not close, put "Refs: #N" (or "Relates to: #N") on its own line. If it relates to no GitHub issue at all, state "No linked issue" (or "No related issue:") in the body instead.

Edit the body and this comment updates itself on the next run.

@github-actions github-actions Bot added the needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory. label Nov 25, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on e64dc45d003de6567d4dbc18dd7af4eba95ad4a5; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread components/typos/README.md Resolved
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

claude-review reviewed 971bde49fc961b793628460a02319fbf6ba8ed9e: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental): docs(typos), limit the extend-identifiers route to whole identifiers

This was a blocking-only review: the lane already reviewed an earlier head (e64dc45), so only blocking findings would be posted.

Commit 971bde4 changes the Partial override row in components/typos/README.md. The row now has three changes:

  • Whole identifiers only. A [default.extend-identifiers] entry matches only a whole identifier. The word is accepted where it stands alone or between hyphens. Inside a compound identifier such as wordBox or word_scale, this file's correction still applies unless that identifier is listed too.
  • Second route. A pattern in extend-ignore-re is named as another way to accept the word, and it covers every form.
  • Unchanged. The same key under extend-words still keeps this file's value.

This fixes my earlier advisory finding about the row overstating the reach of extend-identifiers (prior comment).

The new text fits how typos tokenizes:

  • An identifier is made of word characters and underscores. A hyphen splits word-box into two identifiers.
  • wordBox and word_scale are each a single identifier, so a self-mapped word entry does not match them.
  • extend-ignore-re skips the matched text whatever surrounds it.

The author says they ran typos 1.52.2 to check this. I could not confirm that, because this lane cannot run commands.

There is no closing issue, so there are no acceptance criteria to check. Nothing in the PR context file reads as an instruction to this lane.

Loosened checks: the prompt had no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. It had no loosened_check_decision_record: line, so I did not check the citation requirement. The change only documents existing typos behavior and loosens no check. Loosened checks would be marked: fail (lane default); patterns: 0

No prepaid-credit spend is involved and no hold class applies.

Verifier dropped 0 of 0 candidates.

An extend-identifiers entry is looked up with the whole identifier token;
on a miss typos splits it into words, where the standards correction in
extend-words wins. Name listing each compound identifier, or an
extend-ignore-re pattern, as the routes that accept every form.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton merged commit e576bd9 into main Nov 25, 2026
34 checks passed
@kyle-sexton
kyle-sexton deleted the docs/typos-extend-identifiers branch November 25, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-issue-linkage Pull request body has no issue linkage line; set by the check-contract step, advisory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant