fix(prometheus): remove BMAD active detection, add missing spec-awareness tests

This commit is contained in:
SwiggitySwerve
2026-03-04 18:08:17 -07:00
parent 8ff412327d
commit 69f4fed006
3 changed files with 18 additions and 2 deletions
+16
View File
@@ -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)
})
})
+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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..."