docs(agents): standardize required_reading patterns across agent specs (#2176)

Closes #2168

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tibsfox
2026-04-12 14:56:19 -07:00
committed by GitHub
parent b2febdec2f
commit 67f5c6fd1d
30 changed files with 130 additions and 50 deletions

View File

@@ -217,7 +217,9 @@ describe('verification overrides reference (#1747)', () => {
verifierContent = verifierContent || fs.readFileSync(verifierPath, 'utf-8');
const roleEnd = verifierContent.indexOf('</role>');
const projectCtx = verifierContent.indexOf('<project_context>');
const reqReading = verifierContent.indexOf('<required_reading>');
// Use regex to find the actual XML tag (on its own line), not backtick-escaped prose mentions
const reqMatch = verifierContent.match(/^<required_reading>/m);
const reqReading = reqMatch ? reqMatch.index : -1;
assert.ok(roleEnd > -1, '</role> tag should exist');
assert.ok(projectCtx > -1, '<project_context> tag should exist');
assert.ok(reqReading > -1, '<required_reading> tag should exist');