chore(agents): prohibit em dashes

This commit is contained in:
jjbrunton committed 2026-08-30 10:17:37 +01:00
1 parent 7b3de48dbd
commit 2481956c11
2 files changed
+8

No files matched your search

+1
View File
@@ -36,6 +36,7 @@ MCP service in one npm/Turborepo workspace.
mechanical one-line edit whose coordination cost exceeds the work.
11. Use high-effort reviewers only for the risk triggers in
`docs/agents/routing.md`.
12. Agents must not use em dash characters in text they add to this repository.
## Repository map
+7
View File
@@ -40,6 +40,13 @@ for (const file of allFiles) {
}
if (!scoped) {
const agentsFile = path.join(root, 'AGENTS.md');
const agents = await readFile(agentsFile, 'utf8');
const noEmDashRule = 'Agents must not use em dash characters in text they add to this repository.';
if (!agents.includes(noEmDashRule)) {
fail(agentsFile, 'agent writing rule against em dash characters is missing', `restore: ${noEmDashRule}`);
}
const packageJson = JSON.parse(await readFile(path.join(root, 'package.json'), 'utf8'));
const codexConfigFile = path.join(root, '.codex', 'config.toml');
const codexConfig = await readFile(codexConfigFile, 'utf8');