Strategic Improvement
Static stage timeouts cause premature failures on complex repos (wasting iterations and reducing success rate) or excessive waits on simple repos (wasting cost). Build a system that learns from historical build durations and adjusts timeouts dynamically based on issue complexity metrics (LoC changed, test count, past duration for similar issues). This directly targets the success rate goal (77% → >85%) by preventing false timeout failures.
Acceptance Criteria
- Collects historical build duration data per repo to
.claude/build-history.json
- Calculates dynamic timeout based on: lines changed, test file count, past avg duration ± 2σ
- Applies adaptive timeout to build stage with floor (15min) and ceiling (180min)
- Logs timeout decision rationale to pipeline artifacts for observability
- Reduces premature timeout failures by 30%+ (measured over 10 pipeline runs)
Context
- Priority: P0
- Complexity: standard
- Generated by: Strategic Intelligence Agent
- Strategy alignment: P0: Reliability & Success Rate
Strategic Improvement
Static stage timeouts cause premature failures on complex repos (wasting iterations and reducing success rate) or excessive waits on simple repos (wasting cost). Build a system that learns from historical build durations and adjusts timeouts dynamically based on issue complexity metrics (LoC changed, test count, past duration for similar issues). This directly targets the success rate goal (77% → >85%) by preventing false timeout failures.
Acceptance Criteria
.claude/build-history.jsonContext