Skip to content

fix: keep lowercase dojo.<platform> package names during defrag#497

Merged
kronosapiens merged 1 commit intomainfrom
kronosapiens/lib-casing-q
Apr 22, 2026
Merged

fix: keep lowercase dojo.<platform> package names during defrag#497
kronosapiens merged 1 commit intomainfrom
kronosapiens/lib-casing-q

Conversation

@kronosapiens
Copy link
Copy Markdown
Collaborator

Summary

The terminology defrag pass was proper-noun-capitalizing package identifiers (dojo.unreal, dojo.unity, dojo.js, etc.) in prose, creating a mismatch with the actual repo URLs and package names.
Prompt guardrails alone weren't holding — the PR in #496 shows the LLM capitalizing these despite the explicit "leave alone" example.
This adds a deterministic normalizePackageNames post-pass that reverts Dojo.<platform>dojo.<platform> in prose only, skipping fenced code blocks, inline code spans, and markdown link targets.

Test plan

  • Run node scripts/defrag-terminology.mjs --dry-run on a sample and confirm package-name capitalizations get reverted while other terminology fixes (e.g. Starknet, Katana) still land.
  • Confirm the next monthly defrag PR no longer contains Dojo.unreal/Dojo.unity diffs.

🤖 Generated with Claude Code

Add normalizePackageNames post-pass to the terminology defrag. The LLM
was proper-noun-capitalizing package identifiers like dojo.unreal and
dojo.unity in prose, creating a mismatch with the actual repo URLs and
package names. The deterministic revert runs after the LLM output,
skipping fenced code blocks, inline code spans, and link targets.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
book Ready Ready Preview Apr 22, 2026 2:00pm

Request Review

@kronosapiens kronosapiens merged commit 19197d0 into main Apr 22, 2026
2 checks passed
@kronosapiens kronosapiens deleted the kronosapiens/lib-casing-q branch April 22, 2026 14:04
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