- Replace inline prompts with actual BMAD workflow files:
- dev-story workflow (workflow.yaml, instructions.xml, checklist.md)
- code-review workflow (workflow.yaml, instructions.xml, checklist.md)
- UAT generation templates (step-04-generate-uat.md, uat-template.md)
- Add workflow validation at startup to ensure all required files exist
- Implement self-healing fix loop for review failures:
- When review fails, capture HIGH/MEDIUM severity findings
- Spawn new fix phase using dev-story workflow in targeted fix mode
- Re-run review after fixes to verify resolution
- Retry up to 3 times before marking story as failed
- Enhanced metrics tracking:
- fix_loop.total_fix_attempts: count of all fix phases
- fix_loop.stories_requiring_fixes: stories needing at least one fix
- fix_loop.max_retries_hit: stories that failed after 3 attempts
- story_details: per-story fix attempt outcomes with timestamps
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>