Strategic Improvement
Execute tests in smart order based on file changes and historical failure patterns, running high-risk tests first. When tests fail, pipeline aborts in minutes instead of completing full suite. Saves 30-50% of test execution time on failing runs, improves feedback speed, reduces wasted iterations.
Acceptance Criteria
- Test-to-file dependency mapping (which tests cover which source files)
- Historical test failure rate tracking stored in memory system
- Smart test ordering algorithm: prioritize tests covering changed files + high historical failure rate
- Fast-fail mode: abort test execution on first failure for rapid feedback
- Configurable via daemon-config.json (enable_test_prioritization, fast_fail_mode)
- Dashboard metrics showing test execution time savings from prioritization
- Documentation in CLAUDE.md under build loop and intelligence sections
Context
- Priority: P0
- Complexity: standard
- Generated by: Strategic Intelligence Agent
- Strategy alignment: P0: Reliability & Success Rate
Strategic Improvement
Execute tests in smart order based on file changes and historical failure patterns, running high-risk tests first. When tests fail, pipeline aborts in minutes instead of completing full suite. Saves 30-50% of test execution time on failing runs, improves feedback speed, reduces wasted iterations.
Acceptance Criteria
Context