From 39280e251bec48a7ebc9e04eb5c535b071f84ec9 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Thu, 12 Feb 2026 17:33:17 -0800 Subject: [PATCH] fix: use valid model name in colon-in-values frontmatter test The test was using 'claude-sonnet-4-5-20250929' which isn't in VALID_MODELS (haiku/sonnet/opus). Use 'sonnet' with a description field containing colons to properly test colon handling in frontmatter values. --- tests/ci/validators.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/validators.test.js b/tests/ci/validators.test.js index 2c05045..c83dd2b 100644 --- a/tests/ci/validators.test.js +++ b/tests/ci/validators.test.js @@ -193,7 +193,7 @@ function runTests() { if (test('handles frontmatter with colons in values', () => { const testDir = createTestDir(); - fs.writeFileSync(path.join(testDir, 'colon-agent.md'), '---\nmodel: claude-sonnet-4-5-20250929\ntools: Read, Write, Bash\n---\n# Agent'); + fs.writeFileSync(path.join(testDir, 'colon-agent.md'), '---\nmodel: sonnet\ntools: Read, Write, Bash\ndescription: Run this: always check: everything\n---\n# Agent'); const result = runValidatorWithDir('validate-agents', 'AGENTS_DIR', testDir); assert.strictEqual(result.code, 0, 'Should handle colons in values');