Phase 1 -- Context Loading: Every session begins by loading the full project context: files, constraints, objectives, existing knowledge, and lessons learned from previous sessions. This ensures continuity across sessions.
Phase 2 -- Complexity Analysis: A weighted scoring system classifies tasks as TRIVIAL, STANDARD, or CRITICAL. This determines the level of governance, validation, and documentation required -- avoiding over-engineering simple tasks while ensuring rigour for complex ones.
Phase 3 -- Architecture Design: Solution architecture is designed with clear component boundaries, interfaces, and data flows. For CRITICAL tasks, this includes threat modelling and failure mode analysis.