> For the complete documentation index, see [llms.txt](https://docs.aiforglobaleducation.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aiforglobaleducation.org/product-docs/diagrams/publish-your-docs.md).

# 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" %}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.aiforglobaleducation.org/product-docs/diagrams/publish-your-docs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
