/ai-audit — AI Audit
Category: Validation & QA · Primary agent: model-risk-governance-specialist
Audits AI/ML/LLM components: benchmarks, leakage, calibration, explainability, bias, red-team, confidentiality, monitoring.
Arguments: whatever the user wrote after the command name.
Purpose
Audit an AI, machine-learning or LLM component before it is used in analysis or advice: whether its evaluation is honest (no leakage, fair benchmarks), whether its uncertainty is calibrated and stable, whether what it learned makes economic sense, whether it performs fairly across country groups, whether it resists red-team attacks, and whether confidentiality and human oversight are in place. The output is a verdict that can block release.
Use it when any AI component (forecaster, classifier, solver, RL policy, LLM pipeline, RAG system) is about to be used in production or published work.
Do not use it when the component is a traditional econometric or structural model (/validate-model).
Before you start
- Check required inputs. For each input below record
FOUNDorABSENT(never 'assumed'):- Experiment log
- Model code
- Evaluation card
If a required input is
ABSENT, that part isNOT ASSESSED — NO DATA: do not estimate or invent it; name what is missing and which skill produces it. If all required inputs are absent, stop and say so.
- Check confidentiality. Identify the data classification level of the inputs (
.claude/docs/confidentiality-and-ai-use.md). Do not proceed with restricted or confidential data in a way the policy does not allow. - Collaboration. Follow
.claude/docs/collaboration-protocol.md: ask questions first, present options, get approval before writing files, and updateproduction/session-state/active.mdafter each approved section.
Agents
model-risk-governance-specialist— primary agent; coordinates the work and integrates resultsai-ethics-fairness-specialist— Reviews AI ethics and fairnessllm-red-team-specialist— Red-teams LLM systemsinterpretable-ml-specialist— Makes AI models explainablemodel-validation-specialist— Performs independent model validation
Each agent is defined in .claude/agents/<name>.md. If your tool runs subagents, run these agents as subagents, in parallel where the steps are independent; otherwise read each agent's file and apply its instructions in turn. Subagents only write to the paths named in your instructions.
Key design decisions (present options, let the user choose)
| Decision | Typical options | What it changes |
|---|---|---|
| Depth | light review, full audit | Effort and assurance |
| Benchmarks | simple econometric models, previous version | Bar for added value |
| Fairness groups | country groups, income levels, regions | Disaggregated results |
| LLM tests | factuality sets, injection, leakage, version regression | Security coverage |
Workflow
- Check data splits for leakage and benchmark fairness
- Time-aware splits; preprocessing fitted on training data only; benchmarks given equal tuning effort
- Check calibration, uncertainty and stability across seeds, windows and versions
- Review explainability and economic plausibility of learned relationships
- Flag counterintuitive relationships for economic review
- Review bias by country group and income level; for LLMs run the red-team harness
- Review confidentiality and human-oversight design; define monitoring
Checkpoints with the user
- After scope: confirm depth and benchmarks
- Before the verdict: review conditions and owners
Common pitfalls
- Accepting reported scores without rerunning
- Benchmarks tuned less carefully than the AI model
- Average performance hiding failures for some groups
- Oversight that exists only on paper
Output
validation/<model>/ai-audit.md
The audit report covers leakage, benchmarks, calibration, stability, plausibility, fairness, red-team results, confidentiality and oversight, with findings, conditions, owners and the verdict.
Gate / verdict
- Verdict: PASS / PASS WITH CONDITIONS / FAIL; failures block release
- Every finding cites evidence and has an owner
Suggested next steps
/validate-model/model-risk-review