Skip to content

Docs: Add no-emdash / ASCII-only rule to AGENTS.md#16653

Open
wombatu-kun wants to merge 1 commit into
apache:mainfrom
wombatu-kun:docs/agents-no-emdash-ascii
Open

Docs: Add no-emdash / ASCII-only rule to AGENTS.md#16653
wombatu-kun wants to merge 1 commit into
apache:mainfrom
wombatu-kun:docs/agents-no-emdash-ascii

Conversation

@wombatu-kun
Copy link
Copy Markdown
Contributor

What

Adds a Boundaries rule to AGENTS.md: never use em-dashes (U+2014) or other non-ASCII Unicode characters in source code, except in tests or sample data that specifically exercise Unicode or UTF handling.

Why

This came up in review of #16500, where em-dashes introduced as AI artifacts had to be removed from the diff by hand. Capturing the convention in AGENTS.md gives agents and contributors one place to learn it, so the cleanup does not recur per PR. See the review thread: #16500 (comment)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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