fix(prometheus): remove BMAD active detection, add missing spec-awareness tests
This commit is contained in:
@@ -160,6 +160,14 @@ describe("PROMETHEUS_SYSTEM_PROMPT spec-driven intent type", () => {
|
|||||||
expect(prompt).toContain(intent)
|
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", () => {
|
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")
|
const hasOmitNote = lowerPrompt.includes("omit this section")
|
||||||
expect(hasIfDetected || hasOmitNote).toBe(true)
|
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)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ task(subagent_type="librarian", load_skills=[], prompt="I'm looking for battle-t
|
|||||||
**Pre-Interview Research (MANDATORY):**
|
**Pre-Interview Research (MANDATORY):**
|
||||||
\`\`\`typescript
|
\`\`\`typescript
|
||||||
// Check for SDD framework directories before interviewing
|
// 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):
|
**Interview Focus** (shortened — specs pre-fill most questions):
|
||||||
|
|||||||
@@ -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 |
|
| 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 |
|
| 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..."
|
**Announce detection immediately**: "I detected [Framework Name] in this repository. Reading specs before we begin..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user