Context Window Optimization - Token-Aware Artifact Injection (v3.6.0)
Added
- ArtifactContextBuilder with token estimation and priority ordering
- Token-aware artifact budgeting for workflow artifacts
- Configuration options: artifact_context_budget_tokens (default 4000)
- 24 comprehensive unit tests (22 passing)
Changed
- BuildOrchestrator refactored to use token budgets instead of character limits
- Smart artifact prioritization: spec → user_stories → architecture → api_design
Fixed
- Context overflow prevention in implementer steps
- Addresses root cause of 53 failed workflows
Documentation
- Updated CONFIGURATION.md
- Added implementation status tracking documents
- Complete implementation plan documentation
Impact: Prevents context window overflow, improves workflow success rate, reduces token waste through intelligent prioritization.