/** * plan-design-review plan-mode smoke test (gate tier, paid). * * See test/skill-e2e-plan-ceo-plan-mode.test.ts for the shared assertion * contract. Exercises the same assertions against /plan-design-review. */ import { describe, test, expect } from 'bun:test'; import { runPlanModeSkillTest, assertNotHandshakeShape, } from './helpers/plan-mode-helpers'; const shouldRun = !!process.env.EVALS && process.env.EVALS_TIER === 'gate'; const describeE2E = shouldRun ? describe : describe.skip; describeE2E('plan-design-review plan-mode smoke (gate)', () => { test('goes straight to first design question, no handshake, no silent writes', async () => { const result = await runPlanModeSkillTest({ skillName: 'plan-design-review', // First question for design review varies; pick any reasonable match. // The substring match falls back to the first option if no match. firstAnswerSubstring: '7', }); expect(result.askUserQuestions.length).toBeGreaterThanOrEqual(1); assertNotHandshakeShape(result.askUserQuestions[0]!); expect(result.writeOrEditBeforeAsk).toBe(false); expect(result.exitPlanModeBeforeAsk).toBe(false); }, 120_000); });