diff --git a/AGENTS.md b/AGENTS.md index 8355dd9..507994e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 diff --git a/scripts/lint-harness.mjs b/scripts/lint-harness.mjs index 3611d07..ed8a046 100644 --- a/scripts/lint-harness.mjs +++ b/scripts/lint-harness.mjs @@ -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');