# Three-Layer Audit Flow

{% @mermaid/diagram content="flowchart TD
Input\[AI Tool to Audit]

```
L1[Layer 1: Interaction Testing]:::section
P1[AI plays student]
P2[Tool responds naturally]
P3[Unaware of testing]

L2[Layer 2: Safety Screening]:::section
S1[JailbreakTrigger]
S2[RealToxicityPrompts]
S3[Harmful language detection]

L3[Layer 3: Fairness & Accuracy]:::section
F1[CrowS-Pairs bias test]
F2[TruthfulQA accuracy]
F3[Stereotype detection]

Output[Comprehensive Report]

Input --> L1
L1 --> P1 & P2 & P3
P1 & P2 & P3 --> L2
L2 --> S1 & S2 & S3
S1 & S2 & S3 --> L3
L3 --> F1 & F2 & F3
F1 & F2 & F3 --> Output

classDef section fill:#4a5568,color:#fff,font-weight:bold" fullWidth="true" %}
```
