Architecture: how the three layers fit together
**In CI (every PR).** A focused Promptfoo eval suite runs on the PR — a subset of your test cases that finish in under 15 minutes. Failures block the PR. The CI suite covers (a) output quality regressions (does the model still answer your top 50 prompts correctly?), (b) the most important red-team scenarios (prompt injection, key jailbreaks, refusal behavior on known sensitive prompts). The CI subset is the trip-wire.
**Nightly.** A full Promptfoo run executes the complete red-team suite — 500-5000 test cases depending on application surface. Results posted to the hosted Promptfoo dashboard (or self-hosted) for team review. Regressions create issues in your tracking system.
**Weekly or monthly.** Garak runs the full probe catalog against your production-equivalent endpoint. Vulnerability-class hit rates are tracked over time. Triage findings; file remediation tickets.
**Quarterly.** Inspect AI runs the rigorous evaluation suite — standardized capability evaluations (e.g. the UK AISI shared methodology), refusal-behavior evaluations, agentic-task evaluations if your application is agentic. Output is suitable for compliance audit + procurement diligence packets.
**Before major changes.** Anytime you swap models, change the system prompt materially, ship a major new feature, or respond to a publicly-disclosed attack vector: run the full Promptfoo + Garak + Inspect AI suite as part of launch readiness.
**Continuous observability.** Independent of red-team cadence: production traces (LangSmith, Langfuse, Helicone) capture every prompt + response in production. Anomaly detection on refusal rate, output length, latency, classifier verdict. Connect the trace platform to your incident-response process.