ModelRefs / Guardrails Pipeline — Architecture Blueprint
Guardrails Pipeline — Architecture Blueprint
Production architecture blueprint for Guardrails Pipeline: components, deployment, cost and latency, failure modes, evaluation and governance.
Overview
This is the implementation view of Guardrails Pipeline: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.
5 components to assemble, 6 documented failure modes, high implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.
- Implementation complexity
- high
- Components
- 5
- Failure modes
- 6
- Evaluation readiness
- documented
- Sources
- 3read 2026-11-20
What this workflow takes in and produces
Takes in
- user prompts
- model outputs
- policy and risk taxonomies
- known attack and violation examples
Produces
- allow, block or escalate decisions with reasons
- redacted text
- policy violation logs
- guardrail performance reports
Applied to
- screening inputs and outputs for policy violations
- blocking prompt injection and data leakage attempts
- routing risky cases to human review
Components you need to assemble
A working implementation needs 5 distinct components. Each is a build-or-buy decision in its own right.
- input and output classifiers or rules
- policy and taxonomy registry
- redaction for personal data
- escalation and human review queue
- logging and red-team test suite
Implementation complexity: high. This describes the integration and evaluation effort, not the difficulty of any single component.
Deployment patterns
Deployment options recorded for this workflow: managed-api, hybrid.
Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.
Cost and latency
- Each check adds latency to every request. Run cheap rules first and a model-based classifier only where needed, and measure the added delay.
- Count the cost of false blocks, which show up as support load and lost use.
How this workflow fails
Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.
- harmful content passes
- legitimate request blocked
- guardrail bypassed by rewording
- classifier trained on a different taxonomy
- personal data leaks in the output
- latency makes users disable it
Risk areas the evidence covers
- detection rate
- false blocks
- bypass resistance
- taxonomy fit
- data leakage
Proving it works before you ship
Evaluation readiness: Documented — Detection rate, false-block rate, bypass resistance, latency and escalation measures are defined; the organisation's policy and risk tolerance remain required.
Worked evaluation case: Guardrails against attacks and legitimate traffic
Send a labelled mix of attack prompts, policy-violating outputs and legitimate requests through the pipeline and measure what is blocked, passed and escalated.
What to measure
- violations detected
- legitimate requests wrongly blocked
- bypass success against reworded attacks
- personal data redacted correctly
- added latency per request
Governance and data handling
- Guardrail logs hold prompts and outputs, so apply access controls and retention to them and decide what a classifier provider may see.
- A guardrail reduces risk and does not remove it. Keep human review and incident handling for what it misses.
Implementation notes
- Define the policy and taxonomy first, then test each guardrail against attacks and legitimate traffic from your own system.
- Treat guardrails as one layer alongside least-privilege access and output handling, and re-test when the model or prompts change.
What this blueprint does not establish
- The Llama Guard paper's results are on two public moderation datasets and do not describe domain-specific policies.
- The NIST page read gives scope and date only and does not list specific risks, and the OWASP list is guidance, not a test.
- No policy, taxonomy, traffic profile or acceptance threshold is registered for a target deployment.
- No measured detection rate, false-block rate or bypass resistance on a target deployment is attached.
Source coverage: Documented — The Llama Guard paper supports an instruction-tuned safeguard model that classifies prompts and responses against a safety taxonomy, can be adapted with a different taxonomy, and was reported to match or exceed existing moderation tools on two public datasets, with its training data described as low in volume. The OWASP Top 10 for LLM Applications names prompt injection, sensitive information disclosure and improper output handling. NIST's generative-AI profile supports voluntary risk management. None measures your traffic.
Sources read on 2026-11-20. Attack techniques evolve, so re-test regularly rather than relying on a one-time result.
Sources
- Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations Inan et al. (arXiv 2312.06674) · primary-research · accessed 2026-11-20
- OWASP Top 10 for LLM Applications 2025 OWASP Gen AI Security Project · official · accessed 2026-11-20
- Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) National Institute of Standards and Technology · official · accessed 2026-11-20
Candidate models and benchmarks
Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the Guardrails Pipeline workflow reference. This blueprint covers implementation; that page covers selection.
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Guardrails Pipeline — Architecture Blueprint.