Strategic Improvement
Cache build artifacts (installed dependencies, compiled code) between pipeline runs to eliminate redundant setup work. Smart invalidation detects when cache is stale based on dependency file changes. Faster setup means more iterations for actual development work, improving both cost and success rate.
Acceptance Criteria
- Cache npm/pip/go dependencies in ~/.shipwright/cache/{repo-hash}/{dependency-hash}/
- Detect dependency file changes (package.json, requirements.txt, go.mod) and invalidate cache
- Restore cache at build loop start if valid (add --use-cache flag to sw-loop.sh)
- Track cache hit rate in pipeline metrics
- Reduce dependency installation time by >60% on cache hits
Context
- Priority: P3
- Complexity: fast
- Generated by: Strategic Intelligence Agent
- Strategy alignment: P3: Cost Efficiency
Strategic Improvement
Cache build artifacts (installed dependencies, compiled code) between pipeline runs to eliminate redundant setup work. Smart invalidation detects when cache is stale based on dependency file changes. Faster setup means more iterations for actual development work, improving both cost and success rate.
Acceptance Criteria
Context