flowchart LR
    classDef stage fill:#1565c0,stroke:#0d47a1,color:#fff,stroke-width:2px
    classDef hook fill:#fff8e1,stroke:#bf360c,color:#bf360c

    S1[1 Intake]:::stage
    S2[2 Triage]:::stage
    S3[3 Build]:::stage
    S4[4 Deploy]:::stage
    S5[5 Monitor]:::stage
    S6[6 Improve]:::stage
    S7[7 Retire]:::stage

    S1 --> S2 --> S3 --> S4 --> S5 --> S6 --> S7
    S6 -. iteration loop .-> S3

    H1["FSI hook: Control 3.1 inventory<br/>FINRA 4511 / SEC 17a-3 books and records"]:::hook
    H2["FSI hook: Control 2.6 model risk OCC 2011-12 / SR 26-2<br/>Control 2.12 supervision FINRA 3110"]:::hook
    H3["FSI hook: Control 2.1 Managed Environments<br/>Control 2.16 RAG source integrity"]:::hook
    H4["FSI hook: release gates + governance committee approval<br/>Control 2.3 / 2.5 · FINRA 4511 · SOX 404 ICFR"]:::hook
    H5["FSI hook: Control 3.2 usage analytics<br/>Control 3.10 hallucination feedback · FINRA 3110 ongoing"]:::hook
    H6["FSI hook: re-validation + SME attestation<br/>Control 2.3 / 2.16 · OCC 2011-12 / SR 26-2 material change"]:::hook
    H7["FSI hook: decommissioning evidence<br/>Control 1.7 audit · Control 1.9 retention · SEC 17a-4"]:::hook

    S1 --- H1
    S2 --- H2
    S3 --- H3
    S4 --- H4
    S5 --- H5
    S6 --- H6
    S7 --- H7

    %% Source: CAPE 7-stage lifecycle (Intake -> Triage -> Build -> Deploy -> Monitor -> Improve -> Retire)
    %% per agentic-coe-playbook page 41 ("Agents need a lifecycle") and docs/framework/agent-lifecycle.md
    %% "Microsoft CAPE 7-Stage Lifecycle Alignment" section. FSI hooks per stage cross-reference the
    %% controls catalog and US regulatory regimes treated in the framework.
