From 69f4fed0064286f5cc6efc8d731993493bada37a Mon Sep 17 00:00:00 2001 From: SwiggitySwerve Date: Wed, 4 Mar 2026 18:08:17 -0700 Subject: [PATCH] fix(prometheus): remove BMAD active detection, add missing spec-awareness tests --- src/agents/prometheus-prompt.test.ts | 16 ++++++++++++++++ src/agents/prometheus/interview-mode.ts | 2 +- src/agents/prometheus/spec-driven-mode.ts | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/agents/prometheus-prompt.test.ts b/src/agents/prometheus-prompt.test.ts index e8e6c64c9..18092134a 100644 --- a/src/agents/prometheus-prompt.test.ts +++ b/src/agents/prometheus-prompt.test.ts @@ -160,6 +160,14 @@ describe("PROMETHEUS_SYSTEM_PROMPT spec-driven intent type", () => { expect(prompt).toContain(intent) } }) + + test("should contain spec-first focus description for Spec-Driven intent", () => { + //#given + const prompt = PROMETHEUS_SYSTEM_PROMPT + + //#when / #then + expect(prompt.toLowerCase()).toMatch(/spec.first|spec.aware/) + }) }) describe("PROMETHEUS_SYSTEM_PROMPT spec compliance section", () => { @@ -183,4 +191,12 @@ describe("PROMETHEUS_SYSTEM_PROMPT spec compliance section", () => { const hasOmitNote = lowerPrompt.includes("omit this section") expect(hasIfDetected || hasOmitNote).toBe(true) }) + + test("should contain spec framework section (case-insensitive)", () => { + //#given + const prompt = PROMETHEUS_SYSTEM_PROMPT + + //#when / #then + expect(prompt.toLowerCase()).toMatch(/spec framework/i) + }) }) diff --git a/src/agents/prometheus/interview-mode.ts b/src/agents/prometheus/interview-mode.ts index ca3e1195f..aa8d46b72 100644 --- a/src/agents/prometheus/interview-mode.ts +++ b/src/agents/prometheus/interview-mode.ts @@ -272,7 +272,7 @@ task(subagent_type="librarian", load_skills=[], prompt="I'm looking for battle-t **Pre-Interview Research (MANDATORY):** \`\`\`typescript // Check for SDD framework directories before interviewing -task(subagent_type="explore", load_skills=[], prompt="Check whether this repo contains SDD framework directories: openspec/ (OpenSpec), .specify/ (Spec Kit), _bmad/ (BMAD). For any found, list the spec files inside: openspec/specs/*/spec.md, .specify/specs/*.md. Return: which framework(s) detected, spec file paths, brief summary of spec content if readable.", run_in_background=true) +task(subagent_type="explore", load_skills=[], prompt="Check whether this repo contains SDD framework directories: openspec/ (OpenSpec), .specify/ (Spec Kit). For any found, list the spec files inside: openspec/specs/*/spec.md, .specify/specs/*.md. Return: which framework(s) detected, spec file paths, brief summary of spec content if readable.", run_in_background=true) \`\`\` **Interview Focus** (shortened — specs pre-fill most questions): diff --git a/src/agents/prometheus/spec-driven-mode.ts b/src/agents/prometheus/spec-driven-mode.ts index 716c11808..e528bc6f6 100644 --- a/src/agents/prometheus/spec-driven-mode.ts +++ b/src/agents/prometheus/spec-driven-mode.ts @@ -17,7 +17,7 @@ At the START of every Prometheus session, check the target repo for SDD framewor | GitHub Spec Kit | \`.specify/\` | NOT \`.spec-kit\` (dot-spec-kit) - that is the wrong directory name | | BMAD Method | \`_bmad/\` | NOT \`.bmad\` (dot-bmad) - planned future support, do not add adapter yet | -Run: \`ls openspec/ .specify/ _bmad/ 2>/dev/null\` or use bash to check directory existence. +Run: \`ls openspec/ .specify/ 2>/dev/null\` or use bash to check directory existence. **Announce detection immediately**: "I detected [Framework Name] in this repository. Reading specs before we begin..."