diff --git a/tests/enh-2427-sycophancy-hardening.test.cjs b/tests/enh-2427-sycophancy-hardening.test.cjs index 009ae8274..30a0f1914 100644 --- a/tests/enh-2427-sycophancy-hardening.test.cjs +++ b/tests/enh-2427-sycophancy-hardening.test.cjs @@ -15,7 +15,6 @@ const fs = require('node:fs'); const path = require('node:path'); const AGENTS_DIR = path.join(__dirname, '../agents'); -const SDK_AGENTS_DIR = path.join(__dirname, '../sdk/prompts/agents'); const AUDIT_AGENTS = [ 'gsd-plan-checker.md', @@ -29,11 +28,6 @@ const AUDIT_AGENTS = [ 'gsd-doc-verifier.md', ]; -const SDK_AUDIT_AGENTS = [ - 'gsd-plan-checker.md', - 'gsd-verifier.md', -]; - function readAgent(agentsDir, filename) { return fs.readFileSync(path.join(agentsDir, filename), 'utf-8'); } @@ -102,26 +96,5 @@ describe('enh-2427 — sycophancy hardening: audit-class agents', () => { }); } - describe('sdk/prompts/agents variants', () => { - for (const filename of SDK_AUDIT_AGENTS) { - const label = `sdk/${filename.replace('.md', '')}`; - - describe(label, () => { - test('third-person framing and adversarial_stance block present', () => { - const content = readAgent(SDK_AGENTS_DIR, filename); - const role = extractRole(content); - const firstSentence = role.trim().slice(0, 80); - - assert.ok( - !firstSentence.startsWith('You are a GSD'), - `${filename}: SDK variant must not open with "You are a GSD"` - ); - assert.ok( - content.includes(''), - `${filename}: SDK variant must contain block` - ); - }); - }); - } - }); }); +// sdk/prompts/agents/ was removed in 377a6d2 — SDK now loads installed agents directly. diff --git a/tests/post-planning-gaps-2493.test.cjs b/tests/post-planning-gaps-2493.test.cjs index 296581c3c..c671b17b5 100644 --- a/tests/post-planning-gaps-2493.test.cjs +++ b/tests/post-planning-gaps-2493.test.cjs @@ -30,7 +30,6 @@ const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs'); const REPO_ROOT = path.join(__dirname, '..'); const PLAN_PHASE_PATH = path.join(REPO_ROOT, 'get-shit-done', 'workflows', 'plan-phase.md'); -const PLAN_PHASE_SDK_PATH = path.join(REPO_ROOT, 'sdk', 'prompts', 'workflows', 'plan-phase.md'); // ─── Workflow file structure ────────────────────────────────────────────────── @@ -77,10 +76,7 @@ describe('plan-phase.md Step 13e insertion (#2493)', () => { assert.match(content, /## 13\.\s*Requirements Coverage Gate/); }); - test('Headless plan-phase variant has post_planning_gaps step', () => { - const content = fs.readFileSync(PLAN_PHASE_SDK_PATH, 'utf-8'); - assert.match(content, /post_planning_gaps/); - }); + // sdk/prompts/workflows/plan-phase.md removed in 377a6d2 — SDK loads installed workflow directly. }); // ─── Decisions parser ──────────────────────────────────────────────────────── diff --git a/tests/verifier-deferred-items.test.cjs b/tests/verifier-deferred-items.test.cjs index 786a43892..609c13beb 100644 --- a/tests/verifier-deferred-items.test.cjs +++ b/tests/verifier-deferred-items.test.cjs @@ -150,34 +150,7 @@ describe('verifier deferred-items filtering (#1624)', () => { }); }); - // ── verify-phase.md (SDK variant) ────────────────────────────────────────── - - describe('sdk/prompts/workflows/verify-phase.md', () => { - const sdkPath = path.join(ROOT, 'sdk', 'prompts', 'workflows', 'verify-phase.md'); - let sdkContent; - - test('file exists', () => { - assert.ok(fs.existsSync(sdkPath), 'SDK verify-phase.md should exist'); - sdkContent = fs.readFileSync(sdkPath, 'utf-8'); - }); - - test('loads roadmap analyze in context step', () => { - sdkContent = sdkContent || fs.readFileSync(sdkPath, 'utf-8'); - assert.ok( - sdkContent.includes('roadmap analyze'), - 'SDK verify-phase.md should reference roadmap analyze for deferred-item filtering' - ); - }); - - test('contains deferred-item filtering step', () => { - sdkContent = sdkContent || fs.readFileSync(sdkPath, 'utf-8'); - assert.ok( - sdkContent.includes('filter_deferred_items') || - sdkContent.includes('deferred'), - 'SDK verify-phase.md should contain deferred-item filtering logic' - ); - }); - }); + // sdk/prompts/workflows/verify-phase.md removed in 377a6d2 — SDK loads installed workflow directly. // ── planner-gap-closure.md ─────────────────────────────────────────────────