Strategic Improvement
Faster test feedback reduces wasted build loop iterations and context exhaustion. Build an optimizer that tracks test execution time and failure rates, runs fast tests first, samples slow tests adaptively, and learns which tests fail most frequently. Integrate with build loop to provide sub-30-second smoke test results before running full suite. Reduces cost (P3) and improves reliability (P0) simultaneously.
Acceptance Criteria
- Track per-test execution time and failure rate in .claude/test-stats.json
- Generate test execution plan: fast tests first, then stratified sample of slow tests
- Smoke test mode runs top-20 fastest tests + top-10 historically-failing tests
- Full test mode runs all tests but in optimized order (likely-to-fail first)
- Integration with sw-loop.sh --fast-test-cmd for automatic smoke test usage
- Dashboard showing test execution time distribution and failure hotspots
- Measure and report feedback time improvement (target: <30s for smoke tests)
Context
- Priority: P0
- Complexity: standard
- Generated by: Strategic Intelligence Agent
- Strategy alignment: P0: Reliability & Success Rate (via faster feedback)
Strategic Improvement
Faster test feedback reduces wasted build loop iterations and context exhaustion. Build an optimizer that tracks test execution time and failure rates, runs fast tests first, samples slow tests adaptively, and learns which tests fail most frequently. Integrate with build loop to provide sub-30-second smoke test results before running full suite. Reduces cost (P3) and improves reliability (P0) simultaneously.
Acceptance Criteria
Context