How to use this LLM guardrails requirements checklist
Agree the requirements before choosing a guardrail tool. When an assistant or AI feature is about to reach users, the team needs a written set of requirements first: which risks must be blocked, where the checks run, how much latency the product can absorb, and what evidence the organization must keep. Only then does it make sense to compare NeMo Guardrails, Guardrails AI, a gateway-level control or a combination. The checklist is a scoping tool for that agreement, not a product comparison and not a finished control design.
Security, compliance, platform and product owners should sign off on the requirements together, because each group sets a different limit. Security defines the risks in scope, compliance defines the logging and retention duties, platform engineering defines the latency and hosting constraints, and product owners decide which refusals and topic limits the user experience can tolerate. Each row of the checklist needs a named owner and a test that proves the requirement is met, such as a set of known injection prompts that must be blocked or a log record that must show the reason for a blocked response. A row without a test is a wish, not a requirement.
DeployOpen plans, implements and tests self-hosted guardrails inside the client's own infrastructure, and prepares systems, controls and evidence for compliance reviews. It does not issue audit reports, attestations or certifications; independent auditors and certification bodies do that work. Treat the sign-off record as an input to those reviews, and confirm with your auditor or assessor which evidence they expect before the checklist is finalized.
Functional requirements to agree on for LLM guardrails
This table lists the functional requirements to agree before choosing guardrails, with why each matters and how to verify it on your own test set. Read each row as a question to settle with your security, product and compliance owners before any platform is selected. The main takeaway is that every requirement needs a labeled test set that measures false positives and false negatives, not only a demo.
| Requirement | Why it matters | How to verify on your own test set |
|---|---|---|
| Risks to block | Prompt injection, sensitive data disclosure and off-topic or unsafe output need different detectors and different owners. Agreeing the list first sets the scope for every later decision. | Write one named risk per row with an owner. Build labeled attack and benign prompts for each, then record which risks the guard covers and which need other controls. |
| Input versus output checks | Input rails stop malicious or out-of-scope prompts before a model call. Output rails catch leaked data or unsafe answers that inputs cannot predict. | Decide per use case which checks run on input, output or both. Test each side separately so a blocked input is not mistaken for a working output control. |
| NeMo Guardrails rail types | NeMo Guardrails provides input, dialog, retrieval, execution and output rails. Choosing which rail types apply determines where RAG chunks and tool calls are inspected. | Map each use case to the rails it needs. For each enabled rail, run a scripted conversation that should trigger it and one that should not, and record the outcome. |
| Guardrails AI validators | Guards are built from validators, such as regex or toxicity checks, that can be chained. Each validator has its own accuracy profile and must be chosen deliberately. | List every validator, its version and its threshold. Test each one alone and in the chain, and confirm that the chain order does not change outcomes. |
| Structured output validation | Applications that parse model output into fields fail when the format is wrong. Validation rules must reject malformed or injected fields before downstream systems read them. | Use a schema-based test set with valid, malformed and adversarial outputs. Confirm that rejected outputs are retried or blocked as designed and that no invalid field reaches a downstream system. |
| Per-use-case policy scope | A single global policy blocks legitimate work in some assistants and misses risks in others. Each use case needs its own allowed topics, data classes and thresholds. | Document one policy per use case. Run each policy against that use case's own prompts and against prompts from other use cases to confirm that scope limits work as intended. |
| False positive review | Over-blocking stops staff and customers from completing legitimate tasks and encourages workarounds. Thresholds set without measurement often block too much. | Run benign production-like prompts and record every block. Review each block with the business owner and report the rate by use case and by rule before approving a threshold. |
| False negative review | Missed attacks and leaks are the failures assessors and incident responders care about most. Demos rarely reveal them. | Run a red-team set of injection, jailbreak and data extraction prompts. Review each pass result manually and record which attacks succeeded, then retest after each policy change. |
Which risks to scope into the guardrail layer
Guardrails only reduce some LLM risks, and each control is only as good as the test that proves it. The cards below pair each risk with the rail or validator type that addresses it, the part that stays with the application, and the check to run before go-live. Confirm detection coverage for each risk with your guardrail vendor or implementation partner against your own data.
Prompt injection and jailbreaks
Input rails inspect user messages before they reach the model and can flag injection and jailbreak attempts through NeMo Guardrails jailbreak and injection detection or a Guardrails Hub validator chained into the input path. They cannot guarantee that a model will ignore a crafted instruction, so the design must assume some attempts pass. Test with a maintained set of attack prompts run against the live configuration, and record the detection rate per attack family. Ask each vendor which attack classes its detectors were trained and evaluated on.
NeMo Guardrails repositorySensitive information disclosure
Input and output rails can screen prompts and responses for personal data, credentials and internal identifiers using self-check moderation or regex and detection validators. They cannot decide whether a given user is allowed to see a record, which is an authorization decision that belongs in the source system or the application. Test by seeding known identifiers into test documents and confirming they are blocked or masked in responses and in logs. Confirm which entity types the detector supports.
Improper output handling
Output rails and structured-output validators check that model responses match an expected schema, contain no unsafe markup, and do not contain executable content before the application renders or passes them onward. Guardrails AI generates output matching Pydantic models and can validate it, which gives the application a typed contract. These checks do not verify that the content is factually correct. Test with malformed, oversized and script-bearing outputs, and confirm the application still escapes content on its own.
Off-topic or policy-violating content
Dialog rails and topic safety models in NeMo Guardrails, configured in Colang, keep an assistant within approved subjects and refuse out-of-scope requests with a defined response. Output rails can block content that violates a content policy. Topic boundaries are only as clear as the policy text, so write them with the business owner and version them. Test with in-scope and out-of-scope prompts, including borderline cases, and track false positives on legitimate questions.
Retrieved-content injection
Retrieval rails inspect document chunks returned by a RAG pipeline before they enter the prompt, which reduces the risk that instructions hidden in indexed files or web pages take control of the model. Retrieval rails do not remove the need to separate untrusted content from system instructions, and they cannot verify that a source is trustworthy. Test by planting instructions in a sample document and confirming the assistant ignores them and that citations still point to the true source. See the RAG guardrails topic for detail.
Excessive agency
Execution rails in NeMo Guardrails check custom actions and tool calls before they run, so an allowlist or approval step can stop an unexpected action. Rails cannot grant or revoke rights in the target system, so each tool still needs scoped credentials and its own authorization. Test by asking the model to call disallowed tools, to exceed permitted parameters and to act without approval, then confirm the call is denied and logged. Confirm with the vendor how rails interact with tool-calling frameworks you plan to use.
Setting a latency budget and choosing self-hosted classifier models
Set the latency budget for each route before choosing any guardrail tooling. Every input rail, output rail and validator adds time to the request, and those checks run in sequence unless you design them otherwise. Decide, per route, how many milliseconds of added p95 latency the user experience can absorb, how much of that budget goes to input checks before the model call, and how much to output checks after it. A customer-facing chat route and an internal batch summarization job will need very different numbers, and a single global figure usually fails both. Write the budget into the requirements so that NeMo Guardrails, Guardrails AI and the gateway are all evaluated against the same target.
Decide where each classifier and safety model runs. Any self-hosted classifier used for prompt injection, personal data detection, toxicity or topic checks must load from inside your environment, so that prompts and responses are never sent to a hosted moderation service. Confirm which models the chosen library calls by default and which ones you must replace, because some built-in safety and content models are fetched from external sources at first use. Confirm the Python runtime as well: NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so the guard host and any container image must be built on one of those versions. Ask for the license of every model file and validator package, since a permissive library license does not automatically cover the weights or the validators pulled from a hub.
Agree how model files and validator packages move into the environment and who approves them. Record the exact version of each model, package and configuration, pin them, and store them in an internal artifact repository after a review by security and the owner of the use case. Define the update cadence and a retest step: every change to a classifier or validator should rerun your own test set and latency measurements before it reaches production. Measure p95 added latency on your own hardware, with your own prompt lengths and concurrency, rather than relying on published figures, and repeat the measurement after each model or policy change. Ask implementation partners to show the measurement method and the results per route, and to state how air-gapped hosts receive updates.
Policy configuration, versioning and change control
This group approves the policy itself: which risks the rails must block, which data classes must never appear in prompts or responses, which topics are out of scope, and what happens on a block (refuse, redact, or escalate). Approval should be recorded against a named policy version, not against a verbal agreement or a slide. Compliance owners also need to know which decisions must be logged, how long those logs are kept, and who can read them, since the EU AI Act sets a minimum retention period for logs of high-risk systems that the organization must confirm applies to its own use case.
- Written policy statements: Each rail or validator maps to a stated risk, a data class and an expected action, so approvers sign off on intent rather than syntax.
- Exception register: Any allowed exception, such as a permitted identifier in a support workflow, carries an owner, a reason and an expiry date.
- Approval gate for changes that loosen controls: Any change that removes a rail or raises a threshold needs security sign-off, while tightening changes follow a lighter path.
- Evidence package per release: The approved policy file, test results and the list of logged decision types are archived together for each version.
- Retention and access rules for decision logs: Confirm with counsel how long blocked-request records are kept and who may view prompt content inside them.
Check that every approver can point to a specific version identifier and that no control can be loosened without leaving a record.
Platform engineers store policies as code in version control and deploy them the same way they deploy application code. For NeMo Guardrails, that means Colang configurations and the model and rail settings in the configuration folder that the guardrails server loads. For Guardrails AI, it means validator choices, their parameters and the guard definitions in the application repository, with validators installed from Guardrails Hub at fixed versions. Engineers should pin library versions, because NeMo Guardrails 0.25.0 deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, so an unpinned upgrade can change behavior without a policy change.
- Configuration in Git: Colang files, YAML settings and validator definitions live in a repository with branch protection and required reviews.
- Automated tests on every change: A fixed set of attack prompts, benign prompts and expected outcomes runs in continuous integration before merge.
- Staged rollout and rollback: Deploy to a test gateway first, then promote the same artifact, and keep the previous configuration tagged so a rollback is a redeploy, not a rewrite.
- Version stamping at runtime: Each request's log record includes the policy commit or image tag that evaluated it, which is what makes traceability possible.
- Pinned dependencies and offline artifacts: Library and model versions are recorded in the lockfile, and in air-gapped sites they are mirrored with the same checksums.
Confirm that a decision log entry can be joined to a Git commit within minutes, using only the logs and the repository.
Product owners decide how the assistant should behave, which is where many guardrail failures start. They own the scope statement, the list of supported tasks, the wording of refusals and the thresholds that trade false positives against missed attacks. Because a blocked answer is a user-facing outcome, product owners should review sample blocks regularly and sign off on any change that alters what users see. They also need a process for false-positive reports, so a legitimate question blocked by a rule can be reviewed and the policy adjusted through the same change path.
- Scope and refusal wording: Document what the assistant will not answer and the exact message users receive, so refusals are consistent and testable.
- Threshold decisions with data: Ask for a sample of blocked and allowed requests from the test set before setting thresholds, and record the reasoning.
- False-positive workflow: Reported blocks are triaged, reproduced in the test set and either fixed or closed with a documented reason.
- Change calendar and notice: Behavior changes that users will notice are scheduled and communicated to the business owners of the assistant.
- Ownership per use case: Each deployed assistant names one accountable product owner who can approve changes to its policy set.
Ask the vendor or partner to show how a product owner can see which policy version is live and what changed since the previous release, without reading code.
Operational requirements and how to verify them
This table lists the operational requirements a guardrail layer must meet once it runs in production, with the test or evidence artifact that proves each one. Read each row as a question to put to the implementation partner and to the platform team before any tool is chosen. The main takeaway is that the deployment path for NeMo Guardrails must be confirmed first, because NVIDIA has sunset the microservice as of October 1, 2026.
| Requirement | What to agree | Evidence to request |
|---|---|---|
| Failure behavior per route | Decide fail closed or fail open for each route, such as blocking all output on a PHI-handling assistant versus allowing a low-risk FAQ bot to continue when a guard times out. | Written route matrix and a test log showing the guard timing out and the gateway responding as specified. |
| Guard latency monitoring | Set a per-route latency budget for input and output checks and track p50 and p95 separately for each rail or validator. | Dashboard export and a load test report run at expected concurrency on the self-hosted hardware. |
| Block and flag rate monitoring | Track blocked, flagged and allowed counts per policy version, per route and per user group so sudden shifts are visible. | Sample dashboard screenshots and a report showing rate changes after a policy update in a staging run. |
| Alerting thresholds | Define who is paged when latency, error rate or block rate crosses an agreed threshold, and what the first response step is. | Alert rule configuration exported from the monitoring tool and a fired-alert test record. |
| Upgrade and deprecation handling | Confirm the supported deployment path before committing. NVIDIA sunset the NeMo Guardrails microservice as of October 1, 2026 and points existing users to NeMo Platform, so confirm whether NeMo Helix or a self-run guardrails server applies. Pin library versions and plan migration for deprecated APIs such as LLMRails. | Written support statement from the vendor or account team, a pinned version manifest, and a staged upgrade record with rollback steps. |
| Ownership of false positive triage | Name the team that reviews blocked requests, the response time expected, and the path for changing a rule or allowlisting a pattern through the policy versioning process. | Triage runbook, a sample of reviewed blocks with decisions, and change tickets linked to policy versions. |
| Blocked request logging retention | Decide what is stored for each blocked request, who can read it, and how long it is kept. Prompts may contain personal data, so access controls apply to the log store itself. | Log schema, retention settings, and an access review showing who can query blocked-request records. |
| Gateway integration health | Confirm that the AI gateway reports guard outcomes back to monitoring and that a guard outage does not silently bypass checks. | Gateway configuration export and a test where a guard is stopped and the gateway response is recorded. |
Security requirements for the guardrail layer
Guardrails sit on the path of every prompt and response, so they inherit the sensitivity of the data they inspect. The cards below cover the security requirements to agree before choosing a framework, and each one ends with a check the reader can run in their own environment.
Guardrail endpoints reachable only from the gateway
Whether a guard runs as a NeMo Guardrails server, a Guardrails AI REST service or an in-process library, its HTTP interface should accept calls only from the AI gateway and the workloads that host it. Confirm that the guard service has no public ingress, that network policies or firewall rules limit callers to the gateway's address range, and that the service is unreachable from developer laptops. Test this by attempting a direct call from outside the gateway and recording the refusal.
NeMo Guardrails repositoryGateway secrets held in a secret manager
The gateway's master key, such as LITELLM_MASTER_KEY, which LiteLLM requires to start with sk-, controls key issuance and budgets for every application behind it. Store it and provider API keys in a secret manager, not in configuration files or container images, and restrict who can read them. Verify by reviewing the deployment manifest, searching the repository and image layers for the key value, and confirming that rotation is documented and has been rehearsed.
LiteLLM production guideLeast-privilege access to policy repositories
Colang flows, Guardrails AI configurations and validator settings define what the organization blocks, so changing them is a security change. Limit write access to a named group, require a second reviewer for every merge, and deploy only from tagged commits. Check the repository's branch protection settings, review the list of accounts with write access each quarter, and confirm that a policy rollback can be performed without a code change.
NeMo Guardrails docsProtection of guard logs with sensitive prompts
Logs of blocked requests often hold the exact prompt that triggered a rail, which can include personal data, credentials or confidential text. Decide which fields are stored in full, which are masked or hashed, and who may read them. Set retention in line with the policy the organization adopts for AI event records, and confirm that log access is audited. Verify by sampling stored entries and checking that restricted fields are absent or masked.
- Minimum log retention
- 6 months
Supply chain checks on validators and models
Guardrails AI validators come from Guardrails Hub, and classifier models such as NVIDIA's safety models are downloaded as files. Each package and model artifact should be pinned to a version, checked against a recorded checksum, and approved through a mirror inside the trust boundary, especially in air-gapped environments. Verify by confirming that the build fails on an unpinned or altered artifact and that an approved list of packages is maintained.
- Latest Guardrails AI release
- v0.11.0
Independent testing of guard effectiveness
A guard that passes its own examples may still miss injection attempts, encoded payloads or leaked identifiers. Define a test set of attacks and sensitive data, run it against every policy change, and record the block rate and false positive rate. Have a team separate from the policy authors run the tests, and repeat them after each framework upgrade. Verify by checking that the test results are stored with the policy version they measured.
Guardrails AI quickstartLogging blocked requests without creating a new data risk
A useful guard log answers four questions after the fact: what was decided, by which control, under which policy, and for whom. Each blocked or modified request should record a timestamp, the rail or validator that fired (for example, an input rail in NeMo Guardrails or a validator from Guardrails Hub), the policy version in force, the decision (allowed, blocked, redacted or escalated), the model and route it was headed for, and the user or service identity behind the call. Agree the schema before choosing a platform, because the gateway, the guard library and the observability tool will each emit a different shape. At the AI gateway, LiteLLM can attach key, team and model metadata to each request, so confirm which of those fields your deployment exposes in logs and which need configuration.
The riskiest part of a guard log is the content it copies. A blocked prompt is often the exact place where personal data, credentials or confidential text appeared, so storing it verbatim creates a second copy of the leak in a log store that is usually less protected than the model path. Decide up front which fields are stored raw, which are stored as hashes or masked excerpts, and which are never stored. Define short retention periods for raw excerpts, restrict who can read them, and confirm that the observability tools you pair with the guard, such as Langfuse or Phoenix, apply the same rules. Test the redaction itself with sample prompts that contain synthetic identifiers before go-live.
The EU AI Act sets logging expectations for certain systems. Article 12(1) requires high-risk AI systems to technically allow automatic recording of events over the system's lifetime, and Article 19(1) requires providers to keep those logs for at least six months unless other law provides otherwise. Whether your assistant is high-risk, and which retention period your sector requires, must be confirmed with counsel. Design the guard log so it can satisfy those duties if they apply: event records that are complete, time-stamped and tied to a policy version, stored in your own infrastructure, and separated from raw content so the retention period for evidence does not force long retention of sensitive text.
Questions buyers ask before choosing LLM guardrails
What drives the cost of an LLM guardrails project from requirements to rollout?
The cost depends mostly on how many risks the guardrails must cover, how many applications and model endpoints they sit in front of, and how much policy tuning and testing the organization needs. Costs fall into three groups: the engineering effort to scope, build and integrate the rails or validators, the compute for self-hosted classifier models, and the ongoing work to test and update policies. Some costs are one-time, such as design and initial integration, while others recur, such as running the infrastructure, retuning policies after model changes and repeating red-team tests. Ask any partner for a written quote that separates these items, names the applications and endpoints in scope, and states which tests and handover documents are included.
How long does scoping an LLM guardrails project take?
Scoping length is set by the number of applications, the data types involved and how many people must approve policies. A project with one assistant, a clear list of risks and existing logging usually scopes faster than one that spans several models, languages and regulated data categories. Scoping normally covers risk selection, input and output checks, latency targets, where classifier models run, how policies are versioned and where blocked requests are logged. Ask for the scoping deliverables and the approval steps in writing, and confirm the timeline with the partner against your own environment, since no standard duration applies to every organization.
What does the client need to provide for a guardrails implementation?
The work needs four inputs from the client: representative test data, named policy owners, access to the infrastructure and a decision on who receives the logs. Test data should include normal user prompts, edge cases and known attack patterns, handled under the organization's data rules. Policy owners, often from legal, compliance or the business, must sign off on what is blocked, redacted or escalated. Infrastructure access covers the AI gateway, the Kubernetes or server environment, secret storage and the model endpoints. Confirm these inputs, their owners and the dates they are needed before work starts, and list them as dependencies in the written scope.
Can an internal team build LLM guardrails without an outside partner?
An internal team can build guardrails if it has engineers who can write and test rails or validators, operate the gateway and classifier models, and keep policies current. The harder parts are usually the ongoing ones: tuning false positives on the organization's own data, testing guards against new attack techniques and documenting the evidence that reviewers request. Teams should check whether they have capacity for those recurring tasks, not only the initial build. A partner can cover part of the work, such as design, testing or evidence preparation, while the internal team keeps ownership of policies and operations. Decide which tasks stay in-house before requesting quotes.
How do NeMo Guardrails and Guardrails AI differ for a self-hosted deployment?
NeMo Guardrails and Guardrails AI are both Apache-2.0 licensed open-source options, but they are built around different designs. NeMo Guardrails configures input, dialog, retrieval, execution and output rails in the Colang language, and its library includes self-check moderation, jailbreak and injection detection and topic safety models. Guardrails AI builds guards from validators published on Guardrails Hub, such as regex matching or toxicity detection, which can be chained, and it also generates structured output that matches Pydantic models. Before choosing, confirm the NVIDIA support status for the product you plan to run, since NVIDIA has retired the NeMo Guardrails microservice and points users to its NeMo Platform, and test both options on your own data.
What should I ask an implementation partner before hiring them for guardrails?
Ask how the partner will show that each guard works, not only that it is installed. Useful questions include which risks each control addresses, how false positives are measured on your data, where classifier models run, how policy changes are reviewed and versioned, and how blocked requests are logged and retained. Ask who owns the policies after handover, what the retest process looks like and which deliverables are fixed in writing. Be cautious of partners who promise that guardrails will block every attack or who cannot name the open-source components they would deploy. DeployOpen can provide this scope in writing, with the specific deliverables agreed before work starts.
Do guardrails alone satisfy a compliance framework?
No. Runtime guardrails are one control among several, and they do not on their own satisfy a compliance framework or regulation. They can support technical duties such as input and output checks, and they can produce logs. For example, Article 12(1) of the EU AI Act requires high-risk AI systems to technically allow automatic event logging, and Article 19(1) requires providers to keep those logs for at least six months unless other law provides otherwise. Frameworks also require governance, access control, testing, documentation and risk management that guardrails do not provide. Ask your compliance team and assessor which controls they expect, and treat the guardrail evidence as one input to the wider assessment. DeployOpen prepares systems and evidence for assessments, but independent auditors and certification bodies issue the audit reports and certifications.
How DeployOpen scopes and delivers this requirements work
The sequence turns the open questions in this checklist into a written, agreed scope that guardrail tooling can be selected and tested against. Each step produces a document or check the client can review before the next one starts.
Hold a scoping workshop with owners
DeployOpen runs a scoping workshop with security, platform engineering and product owners for the assistant or AI feature in question. The group walks through the risks in scope, which application paths carry prompts and responses, who owns each policy decision, and which teams must approve changes to blocking rules. The step is complete when each risk has a named owner and each open question has a person responsible for answering it.
Write the requirements document
DeployOpen turns the workshop notes into a written requirements document covering input and output checks, the latency budget per request, where classifier models must run, how policies are versioned and approved, what is logged for blocked requests, and how the AI gateway hands traffic to the guardrail layer. The client's security and compliance leads review the draft and sign off the wording. The step closes when the document is accepted as the baseline for tooling decisions.
Agree a fixed scope in writing
Before any build work starts, DeployOpen and the client agree the scope, deliverables, responsibilities and acceptance criteria in writing. The scope states which platforms are in play, which rails or validators are included, what testing is performed, and what the client's teams are expected to provide, such as test data, model access and gateway configuration rights. The step is complete when both parties have signed the scope document.
Evaluate candidate tooling against requirements
DeployOpen compares candidate open-source options, such as NeMo Guardrails, Guardrails AI and gateway-level controls, against the agreed requirements. The evaluation checks licensing, deployment model, supported runtime environments, the current maintenance status of each project, how policies are expressed and versioned, and whether the logging output can feed the client's existing records. Where a vendor or project has changed its support status, the evaluation records that finding and the alternatives considered. The output is a decision record that names the chosen approach and the reasons it fits or does not fit each requirement.
Implement guardrails in the client environment
DeployOpen deploys the selected guardrail components inside the client's own cloud accounts, data centers or air-gapped network. Work includes policy configuration, connection to the AI gateway, logging of blocked and allowed decisions, and access control for policy changes. Policy files are kept under version control so each change has an author and a review record. The step closes when the components run in the target environment with configuration matching the requirements document.
Test guards and retest after fixes
DeployOpen tests each input and output rail against the risks in the requirements document, using prompt injection attempts, data leakage scenarios and unsafe output cases defined during scoping. Findings, including false positives on the client's own sample data, are written up with fixes and then retested. The step is complete when the agreed acceptance criteria are met or the client accepts documented residual risk. The test record is handed over as evidence for internal reviews and compliance assessments.
Support operations under a retainer
After handover, ongoing support can be provided under a retainer. Typical retainer work covers upgrades to guardrail libraries and gateway components, policy changes that go through the agreed review process, periodic retesting as models and prompts change, and review of blocked-request logs with the client's teams. The retainer scope, service expectations and response arrangements are set in writing before the retainer begins. The step produces a maintained guardrail layer with a record of each change and test result.

