Skip to content

feat(docs-hygiene): rename-references handles glossary-driven renames - #14955

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/rename-references-glossary
Nov 10, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/rename-references-glossary

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: implements owner decisions Q78 and Q80 from a domain-language design interview; no tracker item was filed for them.

Summary

When a glossary term changes, the rejected word lives on in code, stored data and the text users see. The owner decided that code names follow the glossary through rename-references in their own reviewed change (Q80), and that user-facing copy and error messages are reported, never rewritten automatically (Q78).

Fix

  • New "Glossary-driven renames" section in /docs-hygiene:rename-references: code names are swept as their own reviewed change; stored values (persisted enum values, schema or API fields) are listed for a data migration or versioned contract change and never edited in place; user-facing copy and error messages are a report-only bucket, with a glossary entry's Shown to users as: wording treated as intended.

Verification

  • check-skill.sh plugins/docs-hygiene/skills: 10 passed; check-changelog-fragments.sh --check valid.
  • Left out: no eval case for the new section yet; the section adds report rules, not a new sweep form.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG

Owner decisions Q78 and Q80: when a rename comes from a glossary change,
code names follow the glossary in their own reviewed change, stored values
are listed for a data migration, and user-facing copy and error messages
are reported, never rewritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 10, 2026 02:52
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T02:52:05.481246Z
We couldn’t complete this review. Comment @codex review to try again.
0db87a9 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 0df6f46137a732238594596281a721880ef5ecb4: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no findings

Scope: this covers only what changed since 0470431f8cfccf51db477742026217ae03a81c36. I read every hunk of both files on the incremental list:

  • plugins/docs-hygiene/skills/rename-references/context/apply.md
  • plugins/docs-hygiene/skills/rename-references/context/triage.md

Neither path matches a trusted-path glob.

What changed: both edits are one-line prose changes to the rename-references skill.

  • apply.md (Phase 6 bookkeeping): after each same-line edit, the skill already shifted the offsets of stored skip spans. It now shifts the glossary report-only spans the same way, so they keep pointing at the right text.
  • triage.md: each report-only span is now recorded with its matched snippet. That lets apply.md's existing snippet-mismatch check catch a span that was shifted wrong.

Instruction-surface check: no rule is deleted, narrowed or softened. Both edits make the existing never-edit and report-only handling of stored values and user-facing copy stricter, because report-only spans now stay accurate after earlier edits on the same line.

Other surfaces: the change adds no tool grants, commands, hooks, scripts, manifest fields or userConfig keys. No plugin.json or marketplace.json is touched, and no untrusted input gets a new route to a credentialed path.

Prior findings: this lane's earlier summary reported no findings, so there is nothing to restate. The review ran blocking only (blocking only: yes), so it would have reported only CRITICAL or IMPORTANT findings, and it found none.

Embedded text: the PR context contains no instructions aimed at this lane.

No security issues found.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review, incremental: PR #14955, 0470431f → 0df6f461

I read every hunk in both files in scope: context/apply.md and context/triage.md. This lane already reviewed an earlier head, so this pass looked for blocking findings only.

What the push fixed. The earlier blocking finding was that a protected glossary span could stop matching after an edit earlier on the same line, and the hit would then be auto-applied as Certain. This push fixes that:

  • Remap rule now covers glossary spans. After each Phase 5 edit, the rule in apply.md L138-L140 now shifts every glossary report-only span on the edited line, as well as the skip spans. Per L121-L123, "report-only spans" means both the stored-value spans and the user-facing-copy spans. So in a line like // Customer lookup; throw new NotFound("Customer not found"), the error-message span moves with the comment edit. The Phase 6 rescan then subtracts it, and Outcome B never sees it again.
  • Glossary spans now carry their snippet. triage.md L159-L160 records each glossary span with its matched snippet. The snippet-mismatch check at apply.md L142-L143 therefore applies to these spans too, as the earlier fix asked.

The owner's reply settles that thread, and the lines changed match what the reply describes.

Blocking: none.

Other notes

  • No plugin manifest changed in this push, so the manifest checks do not apply.
  • No cost change and no security finding in scope.
  • The PR has no closing issue. I checked the change against the PR description only. The owner decisions Q78 and Q80 it cites are not available to me.
  • The author says they ran check-skill.sh and check-changelog-fragments.sh. I did not run them: this lane has no shell.
  • I found no embedded instructions in the PR context, the settled threads or the prior findings.

… the re-sweep

Review findings on #14955: stored-value and user-facing-copy hits of a
glossary-driven rename are classified before the edit buckets, recorded
as spans, subtracted from the Phase 6 actionable count and listed in the
Phase 7 summary; the code-name boundary with "does not perform AST-level
renames" is stated outright.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

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 0470431f8cfccf51db477742026217ae03a81c36; the summary is in this lane's pull request comment.

claude-lane: claude-review

…dits

Review finding on #14955: a recorded stored-value or user-facing-copy span
now shifts with an earlier edit on its line, as a skip span does, and
carries its snippet for the mismatch check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJUn7MP8mf6tssdESwUFjG
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 895c353 Nov 10, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the feat/rename-references-glossary branch November 10, 2026 03:27
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant