%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#1B1B1B", "primaryBorderColor": "#D6002A", "primaryTextColor": "#fff", "secondaryColor": "#fff", "secondaryBorderColor": "#D6002A", "secondaryTextColor": "#1B1B1B", "tertiaryColor": "#F0F0F0", "clusterBkg": "#F0F0F0", "lineColor": "#1B1B1B", "fontFamily": "\"Akkurat Pro\", \"Helvetica Neue\", \"Arial\", sans-serif"}}}%%

flowchart LR
    subgraph IN ["6 weighted inputs"]
        direction TB
        A["Policy\nconformance"]
        B["Validation"]
        C["Freshness"]
        D["Source\nprovenance"]
        E["History"]
        F["NFRs"]
    end
    IN --> G["Weighted sum\n→ Confidence score"]
    G --> H{"Threshold\ngate"}
    H -->|Meets threshold| I["Proceed"]
    H -->|Below threshold| J["Halt +\nexplainable reason"]
    H -->|Critical finding| J
classDef accent fill:#1B1B1B,color:#fff,stroke:#D6002A,stroke-width:2px
classDef supporting fill:#fff,color:#1B1B1B,stroke:#D6002A,stroke-width:1px
class G,H,J accent

