Why the jailbreak heuristics and AlignScore servers need their own deployment
A team with a NeMo Guardrails configuration that uses jailbreak heuristics and AlignScore must decide where those detectors run before go-live. The heuristics examine incoming prompts for patterns that suggest a jailbreak attempt, and AlignScore scores whether a model response is supported by the source text it was given, which matters for grounded answers. Once either detector moves out of the guardrails process, it becomes a network dependency that needs its own hosting, versions and health checks. This page covers the open-source library and guardrails server path. It does not cover the NeMo Guardrails microservice container, which NVIDIA sunset as of October 1, 2026, as described in its archived NeMo Microservices documentation.
A detector outage changes protection without changing the configuration. If the heuristics or AlignScore endpoint is unreachable, the rail that depends on it may fail, time out or be skipped, depending on how the configuration and server handle errors. The assistant can keep answering, users see no error, and the policy files still show the check as active. Confirm in the NeMo Guardrails documentation how each rail behaves when its endpoint fails. Then decide whether a failed check should block the request, allow it with a logged warning, or fall back to another check, and record that decision before launch.
Running the detectors as their own containers gives them independent sizing, restarts, image versions and health signals. A load spike on the detectors then does not starve the guardrails server, and a detector upgrade does not require redeploying the policy layer. Several guardrails replicas can share one detector endpoint, or each can call a dedicated one. Before building anything, ask which detector versions your configuration was tested against, because a changed detector can shift the scores your thresholds depend on. The sibling pages on the Docker image and Kubernetes layout cover the build and placement details.
Where each detector can run and when each option fits
This table compares three places to run the jailbreak heuristics and AlignScore detectors: inside the guardrails process, as separate containers on the same host, and as separate services in a cluster. Read each row against your own team structure, failure tolerance and release cadence, then measure resource needs in your environment before choosing.
| Criterion | In the guardrails process | Separate containers on one host | Separate cluster services |
|---|---|---|---|
| Ownership | Application or platform team that owns the guardrails configuration also owns the detector code and its dependencies | Platform team runs the host and containers; guardrails team owns configuration and detector versions | Platform or SRE team owns the deployments, probes and scaling; guardrails team consumes stable endpoints |
| Failure isolation | A detector crash or memory spike can take down the guardrails worker that serves user traffic | A detector failure is contained to its container, but a host failure removes every detector at once | Detector failures are isolated to their deployment, and replicas on other nodes can keep answering |
| Scaling | Scales only with the guardrails process, so detector load adds to every replica | Scaling means adding hosts or resizing the host; containers share its CPU and memory | Each detector scales on its own replica count, independent of the guardrails server |
| Upgrade effort | Detector upgrades ride along with library upgrades and need a full guardrails redeploy | Upgrade one container at a time, but the host and its image pulls need coordinated change windows | Rolling updates per service, with versioned endpoints and health checks gating each step |
| Environments where it fits | Local development, proofs of concept and single-team prototypes with low traffic | Small production footprints, single-site deployments and air-gapped networks with a few fixed hosts | Multi-team production, high availability requirements and environments already running Kubernetes |
| What to confirm before choosing | Whether the detector libraries and models fit within the guardrails image without conflicts | Host sizing and whether the host itself is a single point of failure in your design | Cluster capacity, GPU node availability if any model needs one, and your monitoring stack |
How a request reaches the detector services
A client request enters the NeMo Guardrails server, where the input rails send the prompt across the trust boundary to the jailbreak heuristics service and the AlignScore service on the detector network. Each detector returns a verdict to the server, which then either passes the request on or returns a block to the client. Each detector also sends its metrics to the team's metrics stack, so an outage appears in monitoring. Check that the server can reach both detector endpoints and that the metrics scrapes succeed from each one.
Request path to both detectors and the monitoring path from each detector.
Why in-process heuristics are not for production
Running the jailbreak heuristics and AlignScore inside the guardrails process is convenient during development, but it ties detector behavior to the server's own resources, release cycle and failure handling. The cards below describe the production risks that follow from that coupling and what to check before you move the detectors out.
Shared resource contention
Detectors that run in the same process compete with request handling for CPU, memory and threads. A heavy detector call can slow every rail in the same request path, so latency rises for all traffic at once. Check the CPU and memory profile of each detector under load, and confirm whether your NeMo Guardrails version runs detector calls in a thread pool or on the event loop, since that determines how contention shows up.
Coupled upgrades
When detectors are bundled with the guardrails server, a change to a detector model, its Python dependencies or its configuration requires redeploying the whole server. Teams then cannot patch or retune the heuristics without also restarting the component that serves production traffic. Plan separate image tags and rollout steps for the detector services so each can change on its own schedule.
Unclear failure modes
An in-process detector that raises an error or times out can fail the whole request, pass it through unchecked, or return a default verdict, depending on how the rail is configured. Those outcomes look the same in a dashboard unless you test them. Confirm how your version behaves when a detector is unreachable or errors, and record the expected fail-open or fail-closed outcome for each rail.
Detectors that cannot scale separately
Each guardrails replica that loads the detectors carries their memory footprint, even when the bottleneck is only the detector. Adding capacity for detector work means adding full server replicas, which also multiplies configuration and actions overhead. Running the detectors as their own service lets you add replicas where the detector load actually sits, and the guardrails server can scale on request load.
Development and evaluation use
In-process detectors are reasonable for local development, unit tests and evaluation runs, where one process and a single configuration are easier to debug. Keep that setup out of production images. Before you deploy, confirm the exact configuration keys that switch between in-process and remote detector modes in your NeMo Guardrails version, and test both modes against the same rail configuration.
NeMo Guardrails docsHow to deploy each detector container and verify it
This sequence takes each detector service from a compatible library version to a container that answers requests, is wired into the guardrails configuration, and has been checked with known-bad and known-good prompts before any rail depends on it.
Confirm the library and Python version
The platform engineer confirms which NeMo Guardrails release the team will run and checks that the build host or base image uses Python 3.11, 3.12 or 3.13, as NeMo Guardrails 0.25.0 requires. Pin the exact release in the image build so that the guardrails server and the detector services are tested against the same documentation. Done means the pinned version and the Python runtime are recorded in the change ticket and match the release notes for that version.
Obtain detector images or build instructions
The engineer retrieves the detector service images or build instructions for the jailbreak heuristics and AlignScore services from the NeMo Guardrails repository and documentation for the pinned release, and mirrors them into the internal registry if the network requires it. Record the image names, tags, listening ports and environment variables exactly as the release documentation states them, because these details can change between releases and should not be copied from older examples. Done means every image or build step is traceable to a documented source and the parameters are written down.
Start each detector as its own container
The platform engineer runs each detector in a separate container with its own stable network name, such as a service name in the container runtime or a Kubernetes Service, so the guardrails server reaches it by a fixed address. Keep the heuristics and AlignScore services in distinct containers so each can be restarted, scaled and monitored on its own. Done means each container reports running, its logs show a clean startup, and a request to its documented port from another container on the same network gets a response.
Check that each detector responds directly
Before any rail refers to the detectors, the engineer sends a direct request to each service from the guardrails host using the documented endpoint and confirms that the response has the expected structure and status. This check separates detector problems from configuration problems later. Done means each service returns a successful response within the timeout the team has set, and the team has recorded the response shape for later comparison.
Point the guardrails configuration at the endpoints
The engineer updates the guardrails configuration files to reference the detector endpoints by their stable network names and documented ports, passing any required settings through environment variables rather than hard-coding them. Only the rails that use each detector are enabled at this stage, one detector at a time. Done means the configuration loads without errors when the guardrails server starts and the detector endpoints appear in the server's startup log.
Test known-bad and known-good prompts per rail
For each enabled rail, the security or platform engineer runs a set of prompts that should be blocked, such as a known jailbreak attempt for the heuristics rail or an unsupported factual claim for the AlignScore rail, and a set of prompts that should pass unchanged. The team records the rail decision for each prompt, including whether the detector was reached or the request failed. Done means every known-bad prompt is blocked, every known-good prompt is allowed, and the results are saved as evidence for review.
Confirm failure behavior before enabling production traffic
The engineer deliberately stops one detector in a test environment and sends a request through the guardrails server to see what the rail does when the detector is unavailable. The team then decides whether the request fails closed or is allowed, and documents that decision with the owner who approved it. Done means the observed behavior matches the documented decision, and the team knows which monitoring alerts must fire when a detector goes down.
How the detector endpoints change across cloud, Kubernetes and air-gapped setups
On a single virtual machine or in one cloud account, the simplest model is to run the guardrails server and each detector server as separate containers on a host network you control, then address them by private DNS names or fixed private IPs. The guardrails configuration refers to each detector by its endpoint URL, so those addresses should be stable and kept in one reviewed configuration file rather than hard-coded in several places.
- Endpoint addressing: Use private hostnames or static private addresses, and confirm that security groups or host firewalls allow only the guardrails server to reach the detector ports.
- Image supply: Pull images from a registry your account can reach, and pin image tags or digests so a silent update cannot change detection behavior.
- Secrets: Pass any credentials through the host's secret store or the container runtime's secret mechanism, not through committed environment files.
- Restart behavior: Confirm that the container runtime restarts detector containers after a host reboot, since a detector that stays down leaves its rails unprotected.
- Network egress: Check which outbound destinations each container needs, and block the rest.
Before go-live, confirm that each detector responds from the guardrails container's network namespace, that a known-bad test input is flagged, and that a stopped detector causes a visible failure instead of a pass-through. Ask your platform team to document these checks as part of the release record.
In a Kubernetes cluster you control, each detector runs as its own deployment with a Service, and the guardrails server reaches it through cluster DNS. Addresses become Service names, which change only when you rename the Service, so the configuration can reference them directly. Scheduling matters more here, because detectors may need nodes with particular resources, and the scaling and probe design is covered in the Kubernetes topic in this group.
- Endpoint addressing: Reference detectors by in-cluster Service DNS names, and restrict traffic with network policies so only the guardrails pods can call them.
- Image supply: Pull from an internal registry or a mirror that your cluster's admission controls trust, and record the image digest in the deployment manifest.
- Secrets: Use Kubernetes Secrets backed by an external secret manager or a sealed-secrets workflow, and mount them into pods rather than placing values in manifests.
- Health checks: Configure readiness and liveness probes for each detector, so traffic stops reaching a detector that is up but not able to score requests.
- Rollouts: Review how a rolling update changes the detector version seen by traffic during the rollout window.
Before go-live, verify the Service names resolve from the guardrails namespace, that network policies block direct access from other namespaces, and that a failed detector pod produces alerts. The Kubernetes topic in this group covers the deployment steps in detail.
In an air-gapped network, the detector servers cannot pull images or models from the public internet, so every image, model file and dependency has to be transferred in through an approved process and stored in a local registry or artifact store. Addressing usually stays internal and static, but the larger change is supply: the team must know exactly which versions were approved, where each artifact came from, and how it was verified before entry.
- Endpoint addressing: Use fixed internal names or addresses, and document them in the same configuration record as the rest of the deployment.
- Image supply: Mirror approved images into an internal registry through an offline transfer or a controlled one-way transfer, and keep the transfer records with the release.
- Secrets: Supply credentials from an internal secret manager, and confirm that no component attempts to reach an external license or telemetry endpoint at startup.
- Verification: Check image digests against the approved manifest after transfer, since a mismatch means the wrong artifact may be running.
- Model and dependency files: Confirm that any model weights or language resources the detectors load are present locally, because a missing file can cause startup failure or a fallback you did not intend.
Before go-live, test the full startup path with outbound access blocked, confirm each detector returns results to the guardrails server, and check that the approved versions match the transfer record. The air-gapped topic in this group lists the outbound calls to remove and how to handle them.
Monitoring detector health because outages change protection
When a detector is unreachable, the rail that depends on it may fail open (let the content through), fail closed (block it), or be skipped, depending on how the rail and the guardrails server are configured. None of these outcomes necessarily produces an application error, so the assistant keeps answering while its protection quietly changes. Treat detector availability as a security signal, not only an infrastructure metric. Before go-live, confirm how your NeMo Guardrails version behaves on detector timeout and on detector error responses, for both the jailbreak heuristics and the AlignScore service, and record the answer in your configuration review. Then alert on that specific behavior, such as a rail reporting a skipped or failed-open result, rather than waiting for users to notice.
Monitor four things for each detector server. First, availability: whether the container is up and its health endpoint answers. Second, latency per rail, measured at the guardrails server, so you can see when a slow detector pushes requests past your application timeouts. Third, error rates returned from each detector to the guardrails server, including timeouts and connection refusals. Fourth, a synthetic test prompt that exercises each detector on a schedule. A synthetic check proves the full path works end to end, because a container can be healthy while its model or endpoint wiring is broken. Use a benign prompt for the check, and a known-bad prompt that the rail should block, so a silent change in verdicts is also caught. Keep the synthetic prompts in version control next to your configuration.
Use NeMo Guardrails documentation to confirm the exact timeout and error settings for your release, and check that your monitoring stack, whether it is Prometheus and Grafana or another platform, can see those signals per rail. Route detector alerts to the team that owns the guardrails configuration as well as the platform team, because a fail-open event is a policy decision that someone must review. Decide in advance how long a detector can be down before traffic is held, degraded or routed to a fallback, and rehearse that decision during a planned outage.
Security considerations for detector endpoints
Which services should be allowed to call the detector endpoints?
Only the guardrails server, and the specific workloads that run it, should be able to call the jailbreak heuristics and AlignScore services. Treat each detector as an internal dependency with a named caller list, not as a shared utility open to the whole cluster or network. Write the allowed callers down as part of the deployment record, and review the list whenever a new configuration or application is added. In Kubernetes, this is usually expressed as network policy that admits traffic only from the guardrails server pods on the detector port. Confirm the exact port and selector for your release with the image you build, since the detector services are deployed separately from the main server.
How should detector services be separated from public traffic?
Keep detector services on an internal network segment with no route from the internet or from user-facing ingress. The only path into the detectors should come from the guardrails server, and the guardrails server should be the only component that receives traffic from applications. Apply the same rule to any debugging or metrics endpoints the detectors expose. Confirm which ports each container listens on and what it contacts outbound, because a detector that can reach arbitrary destinations is a larger concern than one that only answers requests. Document the segmentation as a diagram with the flows labeled, since that diagram is often the first thing a reviewer asks for.
Do the detector services support authentication between components?
Confirm this with the release you deploy before you design around it. Do not assume the detector services provide their own authentication or client certificates. If they do not, the practical controls are network restriction, a service mesh or sidecar that enforces mutual TLS between workloads, or a reverse proxy in front of each detector that checks a credential issued to the guardrails server. Whichever approach you choose, store any shared secret in your secrets manager, rotate it on a fixed schedule, and test that a request from an unapproved pod is refused. Record the result of that test, since it is direct evidence that the control works.
Should inputs that contain sensitive data be logged, and how long should logs be kept?
Decide this before launch, because detector inputs are often user prompts that may contain personal or confidential data. The safer default is to log detector decisions, scores, rule identifiers, timestamps and request correlation IDs, and to avoid logging the raw text unless a documented investigation needs it. If raw content must be captured for debugging, restrict it to a short-lived store with access limited to named roles, and mask known identifiers before writing. Set retention in writing for each log type, and make sure your log platform enforces it. Your privacy and legal teams should approve the retention periods, not the engineering team alone.
How should detector container images be patched and verified?
Build detector images from source in your own pipeline, pin the base image and Python dependencies to specific versions, and record the digest of every image you deploy. Rebuild on a schedule and when the upstream release or a base image changes, then scan the result for known vulnerabilities before promotion. Run containers as a non-root user where the image allows it, and limit their capabilities in the pod specification. Keep a software bill of materials for each image so you can answer which version runs in which environment. Sign images or verify digests at admission if your cluster supports it, and confirm the signing approach with your platform team.
What should be recorded as evidence that these controls are in place?
Keep records that show the control exists, is configured as designed, and was tested. Useful items include the network policy manifests and their version history, the caller allow list, the segmentation diagram, the authentication configuration and a test log showing an unapproved caller is refused, log retention settings with the approval that set them, image digests with scan results, and the rebuild and patch history. Store these in version control or a controlled document system so they are dated and traceable. Your auditors decide what evidence is sufficient for their assessment. DeployOpen can prepare these records and test the controls, but it does not issue audit reports or certifications.
Limits to confirm before you commit to this design
Running the heuristics and AlignScore servers as separate services gives you control over them, but it also leaves you with work the open-source server does not do for you. The cards below list the limits to confirm with NVIDIA documentation, your own testing and your release owners before you commit to this design.
No built-in high availability or overload handling
The guardrails server does not provide high availability or overload responses out of the box. If a single detector container becomes unavailable, rails that depend on it can fail, and your team must decide whether requests fail open or closed. Confirm with your own design review which replicas, health endpoints and overload behavior you will build around each detector, and test those paths before launch.
NeMo Guardrails docsDetector endpoints and keys vary by release
The endpoint paths, request formats and configuration keys used to point rails at a heuristics or AlignScore service can change between releases. A configuration that works in one version may silently point at the wrong place or fail in another. Check the exact keys for your release in the NVIDIA documentation and keep them under version control with the rest of your configuration.
Microservice sunset rules out a new base
NVIDIA has sunset the NeMo Guardrails microservice, and the NGC container is no longer supported. Do not build a new detector deployment on that artifact. Ask your NVIDIA account team, and read NVIDIA's sunset notice, to confirm which supported path applies to your organization before you write deployment manifests.
Sunset noticeLicense and model terms need review
The NeMo Guardrails library is Apache 2.0, but the detector models and any container images you pull can carry separate license and usage terms. Have your legal and procurement teams review the terms for each detector, including whether your intended use and hosting model are permitted. Record the review so it can be shown during a compliance assessment.
Detector latency depends on your load
The latency each detector adds depends on your hardware, request size, concurrency and the number of rails per request, and no supplied figure should replace your own measurements. Run load tests with production-like traffic on the same hardware class you plan to use, and record p95 and p99 latency for each detector. Use those results to set timeouts and capacity.
Version compatibility must be checked
Confirm that your chosen NeMo Guardrails release supports your Python version, which is 3.11, 3.12 or 3.13 for the 0.25.0 release, and that the detector images match the same release. Mixing library and detector versions across an upgrade can change behavior. Pin both in your build, and test the pair together before each rollout.
Release notesWhat buyers ask before running detector servers themselves
What drives the cost and effort of deploying the detector servers?
The main drivers are how many detector services you run, how many NeMo Guardrails configurations depend on them, and how much of the surrounding platform you must build yourself. Each detector is a separate container with its own image build, resource profile, health checks and network path, so every additional service adds packaging, testing and monitoring work. Cost splits into one-time work (image builds, Kubernetes manifests or Compose files, endpoint wiring, load testing, alert rules) and recurring work (upgrades, dependency patching, monitoring and retesting). Ask any provider to itemize these components separately and to state which environments and clusters are in scope.
How long does it take to deploy the detector servers?
Duration is set by the number of environments, the state of your container and registry pipeline, and how quickly your security and platform teams approve access and network changes. Teams that already run containerized services on Kubernetes usually move faster than teams building their first internal container platform. Time also depends on how many rails call the detectors, because each call path needs its own timeout, fallback and verification. Ask for a written timeline that lists the environments, the approval gates and the point at which a staging environment must pass load and failure tests. Treat any single duration quoted without these inputs as unverified.
What does the work need from our platform and security teams?
Platform teams need to provide a container registry, a build pipeline, a cluster or host where the services can run, storage for model assets if they are bundled, and a way to route traffic from the guardrails server. Security teams need to review image sources, scan dependencies, approve egress rules, and decide how service-to-service traffic is authenticated and logged. Expect to provide access to change windows and to named owners for the detector endpoints. Confirm the exact image sources, base images and network requirements with the NeMo Guardrails documentation and your own security baseline before the work starts.
Can an internal team deploy the detector servers without outside help?
Yes, a team with container and Kubernetes experience can deploy the detector servers in-house, provided it has time to test and document the result. The harder part is usually not the first deployment but proving that a detector outage is detected, that the guardrails fail in the mode you chose, and that the configuration is reviewed when detectors change. Ask yourself whether the team will own these tests after launch and whether it can keep pace with new releases of NeMo Guardrails, which the project publishes on its GitHub releases page. An outside partner is useful when the team lacks capacity, needs an independent review, or wants a fixed-scope handover with runbooks.
What recurs after launch, and what does it cost to keep running?
Recurring work includes upgrading the detector images when NeMo Guardrails or its dependencies change, patching base images, reviewing and tuning monitoring alerts, testing failover again after infrastructure changes, and retesting protection against new jailbreak patterns. Each change to a detector can alter what gets blocked, so each upgrade should go through the same regression tests used at launch. Recurring cost depends on how often you release, how many environments you run, and whether a retainer covers upgrades and continuous testing. Ask who performs each recurring task, how often, and what evidence is delivered afterward.
What should we ask for in a written quote?
A written quote should list the scope in concrete terms: which detector services, which environments, which clusters or hosts, and which NeMo Guardrails configurations are covered. It should separate one-time deliverables (container builds, deployment manifests, monitoring rules, load tests, runbooks) from recurring services (upgrades, monitoring support, retesting). Ask for the client responsibilities, the acceptance criteria, the named dependencies such as registry access and change windows, and the exclusions. DeployOpen plans most engagements as fixed scope, with scope, deliverables and timelines agreed in writing before work starts, and it does not publish a price list, so the quote follows from that written scope.
How DeployOpen works on this
DeployOpen plans and deploys the jailbreak heuristics and AlignScore servers as separate services inside infrastructure you control, with their configuration, health checks and monitoring agreed before work starts. Each engagement ends with documentation your platform and security teams can operate and review.
How we scope
- Written scope lists which detector servers are deployed, which rails call them, and the container platform they run on.
- Scope records the network paths between the guardrails server, each detector and any safety model endpoints.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.
How we build
- Detector servers are built as separate containers, with configuration, resource limits and health probes set for your environment.
- Rail configurations are pointed at the detector endpoints and tested with inputs that should and should not be blocked.
- Outage behavior is tested by stopping each detector and confirming how the guardrails server responds and what gets logged.
How we hand over
- Handover documentation covers image versions, configuration keys, endpoint addresses, and the monitoring alerts for each detector.
- Runbooks describe how to restart a detector, roll back an image and check whether protection is active after a failure.
- Evidence for your compliance or security reviewers includes test results, configuration records and the access controls applied to each service.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, covering detector image updates as the rails change.
- Retesting follows any upgrade of NeMo Guardrails or a detector image, so changes to protection are confirmed before rollout.
- Support scope and response arrangements are written into the retainer, so you can confirm coverage before signing.

