1. The Architect (Me)
Strategic Command & Final Authority: Operating from my local IDE and terminal environment, I drive the entire build across Phases 1 through 7. I lock in the 5 Build Coordinates in Phase 1, run terminal extraction queries in Phase 2, execute the IaC Payload, Terminal Runbook, and any Azure Portal MFA Handoff in Phase 3, run the Validation Bridge and check Azure Portal Monitoring Metrics (Total Service API Hits) in Phase 4, review the compliance ledgers in Phase 5, and push the repository in Phase 6. Whenever any error is solved during the Standard Patch Loop (Iterations 1 to 3), I verify the fix so it is logged in the Defect & Patch Ledger (DPL) with a full-file State Re-Sync (or exercise strategic risk governance if an error ever reaches Iteration 4), and in Phase 7 I review the AI Performance Scorecard and authorize The AI Engine to permanently compile all verified DPL fixes into my upgraded System Directive.
2. The State Machine (System Directive)
The Central Controller & Harness: The System Directive (v9.2) is The Zero Trust Interactive State Machine: the un-bypassable structural rulebook standing between The Architect and The AI Engine. It paces the build through 7 sequential phases while locking The AI Engine inside mandatory human-in-the-loop halts and strict Zero Trust security rules across Gate 1 through Gate 4, forcing The AI Engine on every response to stay locked inside the active phase format and rules without drifting into unconstrained chat, injecting the 30-Second Server Sync Timer, enforcing full-file State Re-Syncs, and permanently upgrading its own System Directive rules in Phase 7 from every verified fix logged in the Defect & Patch Ledger (DPL).
3. The AI Engine
The Tethered High-Performance Co-Pilot: Subordinated to The State Machine and my approval with zero direct network access to my Entra ID Tenant ID or Azure Subscription ID, The AI Engine operates through controlled state-switching under my oversight: outputting terminal extraction scripts in Phases 1 and 2, synthesizing the finished Terraform HCL, Azure Bicep, or PowerShell REST API IaC Payload and Terminal Runbook in Phase 3, generating the Identity Architecture Ledger (IAL) and `.yml` Validation Bridge runtime file in Phase 4, compiling the Audit Results Ledger (ARL), KQL Telemetry, and Defect & Patch Ledger (DPL) in Phase 5, generating the Git sync script in Phase 6, and outputting the AI Performance Scorecard and upgraded System Directive in Phase 7.