From ff315a60158be2aba620b9d1129558f93693baca Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sun, 12 Jul 2026 17:57:06 -0700 Subject: [PATCH] Align Live reference tests with routed setup AI-assisted: OpenAI Codex. --- tests/live-reference.test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/live-reference.test.mjs b/tests/live-reference.test.mjs index 8e0d03b3f..dcb02dcf6 100644 --- a/tests/live-reference.test.mjs +++ b/tests/live-reference.test.mjs @@ -7,11 +7,11 @@ import { compileProviderBlocks } from '../scripts/lib/utils.js'; const ROOT = process.cwd(); describe('live reference authoring contract', () => { - it('keeps setup guidance focused on inferred target paths', () => { + it('keeps setup guidance focused on routing live to its reference', () => { const skillSrc = readFileSync(join(ROOT, 'skill/SKILL.src.md'), 'utf-8'); const liveMd = readFileSync(join(ROOT, 'skill/reference/live.md'), 'utf-8'); - assert.match(skillSrc, /infer the concrete path and append `--target ` to the same command/); + assert.match(skillSrc, /If the user invoked a sub-command \(`audit`, `polish`, `live`, \.\.\.\), read \*\*`reference\/\.md`\*\*/); assert.doesNotMatch(skillSrc, /Use this same scripts directory for all Impeccable helper commands/); assert.doesNotMatch(skillSrc, /walk upward for the nearest project `\.agents`, `\.claude`, or `\.cursor` skill/); assert.doesNotMatch(skillSrc, /## Context diagnostics/); @@ -22,7 +22,7 @@ describe('live reference authoring contract', () => { const skillSrc = readFileSync(join(ROOT, 'skill/SKILL.src.md'), 'utf-8'); const liveMd = readFileSync(join(ROOT, 'skill/reference/live.md'), 'utf-8'); - assert.match(skillSrc, /--target /); + assert.match(skillSrc, /If the user invoked a sub-command \(`audit`, `polish`, `live`, \.\.\.\), read \*\*`reference\/\.md`\*\*/); assert.doesNotMatch(skillSrc, /TARGET_SELECTION_REQUIRED/); assert.doesNotMatch(skillSrc, /productStatus/); assert.doesNotMatch(skillSrc, /designStatus/);