NeMo Guardrails for the public sector

How government teams use self-hosted NeMo Guardrails to keep citizen-facing and internal assistants on approved topics, refuse out-of-scope requests in every language they serve, and keep logs that oversight bodies can read inside their own network.

On this page

NeMo Guardrails for the public sector: why agencies host their own rails

A benefits, permits or caseworker assistant has to refuse off-topic and unsafe requests in every language the agency serves, and it cannot send case data to a third party to do so. Self-hosted NeMo Guardrails fits when the agency controls the runtime. The library is licensed under Apache 2.0, and the current release is 0.25.0, so the agency can run the rails, the model calls and the logs inside its own cloud account, data center or isolated network, and have its security and compliance teams review each component directly.

The practical question is what the agency is deciding to own. The rails are defined in a config.yml file, optional Python actions and Colang files, which means refusal behavior, topic boundaries and escalation paths become versioned artifacts the agency can read, test and approve. Teams should confirm which safety models they intend to run locally, whether each one's license permits their use in government systems, and whether their chosen models can be served without internet access. Language coverage also has to be tested per language rather than assumed from the English configuration.

What changes is the delivery path. NVIDIA has sunset the NeMo Guardrails microservice as of October 1, 2026, and the NGC container is no longer supported, so a plan that depends on that artifact needs to be rebuilt. The plan should rest on the open-source library or the guardrails server, which can be built from the project's Dockerfile and run on infrastructure the agency operates. Agencies with an existing NVIDIA relationship should ask their account team about next steps, but the hosting design should not wait on that answer.

Which public sector requirements shape a NeMo Guardrails build

This table maps the federal, criminal justice, controlled information, accessibility and EU requirements most likely to reach a public sector assistant to the build decisions they affect. Read each row as a question to answer before design starts: which rule applies to your system, and what the guardrail configuration, hosting account and test plan must show as a result.

RequirementSourceWhat it means for the build
NIST SP 800-53 baselines for federal systemsNIST SP 800-53 Rev. 5 and SP 800-53B (Release 5.2.0)Confirm which baseline (low, moderate or high, selecting 149, 287 or 370 controls and enhancements) your authorizing official expects, then map guardrail logging, access control and configuration management to those control IDs.
FedRAMP scope for cloud-hosted assistantsOMB M-24-15 and FedRAMP scope rules for 2026If the assistant serves an agency from a shared cloud service, the hosting provider needs FedRAMP authorization. A system used only for one agency's own operations on cloud infrastructure may fall outside scope, so confirm this with the agency before choosing the hosting account.
CJIS Security Policy v6.1 encryption and scanningFBI CJIS Security Policy v6.1 (effective 26 June 2026)If criminal justice information reaches prompts, retrieved records or logs, select FIPS 140-3 validated modules or AES with at least 256-bit keys for data in transit and at rest, and schedule vulnerability scans at least monthly for the guardrail server and its images.
CUI on non-federal systems32 CFR 2002.14(h)(2) and NIST SP 800-171When a contractor or partner hosts the assistant and handles controlled unclassified information, the agency's requirements typically point to NIST SP 800-171. Scope the self-hosted model servers, log stores and guardrail configurations into that boundary and document who can change Colang and config.yml files.
Defense contractor cloud hosting32 CFR 170.17(c)(5) (CMMC Level 2)Where a defense contractor runs the assistant in a cloud service that stores or processes CUI, confirm FedRAMP Moderate or equivalent before deployment. Keep the self-hosted deployment in the contractor's own assessed scope rather than assuming the cloud provider covers it.
Web and app accessibility28 CFR 35.200 (ADA Title II, WCAG 2.1 Level A and AA)Public-facing chat interfaces must meet WCAG 2.1 AA from 26 April 2027 for entities serving 50,000 or more people, and from 26 April 2028 for smaller entities and special districts. Include refusal messages, timeouts and multilingual replies in the accessibility test plan, not only the page layout.
NIS2 coverage of public administrationDirective (EU) 2022/2555, Articles 2 and 3 and Annex ICentral government entities fall under NIS2 regardless of size, and Member States may extend it to local administration. Confirm whether the assistant's hosting, logging and incident handling fall under the entity's obligations, and exclude national security, defense and law enforcement uses, which the directive does not cover.

How a resident request passes through NeMo Guardrails inside the agency boundary

The request starts at a citizen-facing or caseworker web front end inside the agency network and enters the input rails, which check for off-topic requests, jailbreak and injection attempts. Allowed requests move through the dialog layer and a retrieval step that searches only approved agency content, with retrieval rails screening the chunks before they reach the self-hosted model endpoint. Output rails check the answer before it is returned, and each step writes to an audit log in agency-controlled storage. Check that no step calls an external service and that the log captures both blocked and allowed requests.

Request flow through NeMo Guardrails with the agency trust boundary and audit logging.

Which NeMo Guardrails modules and settings matter for government assistants

A government assistant is only as defensible as the rails around it and the way those rails are hosted and logged. The cards below cover the NeMo Guardrails components that carry agency rules, from input and dialog rails to the server image that runs them in your own network.

Input rails for jailbreak and injection

Input rails inspect each citizen or employee message before it reaches the model. For a public-facing assistant, this is where jailbreak attempts, prompt injection and requests for another person's records are caught. Ask the team to test these rails against phrasing in every language the service supports, because a rail tuned only in English can pass translated attacks. Confirm which detection models run in your environment before you rely on them.

NeMo Guardrails docs

Dialog rails and topic control

Dialog rails define how the assistant handles multi-turn conversations, and topic control keeps it on agency services such as permits, benefits status or office hours. Write the approved topics as Colang flows and list the out-of-scope subjects with a fixed, plain refusal. Review the flows with service owners, since a topic that is missing from the list will be refused by default or answered without a source.

Retrieval rails over an approved corpus

Retrieval rails check the chunks a RAG pipeline passes to the model. For government assistants, the corpus should be a versioned set of published policies, forms and program rules that the agency owns. Record which document version each answer used, so that a staff member can show a citizen or an auditor which rule the answer came from.

Output rails for refusals and content checks

Output rails check each response before it is shown, and they are where a standard refusal message is enforced for content the agency will not give. Decide in advance who reviews refused and blocked outputs, and how often, since that review shows whether the rails are too strict for legitimate questions or too loose for sensitive ones.

config.yml, actions and Colang files

The config.yml file, optional Python actions and Colang files hold the agency's rules and are the artifacts a reviewer will read. Colang 1.0 is the default, and Colang 2.0 is also supported, so choose one version for the project and record it. The LLMRails class is deprecated in 0.25.0 in favor of Guardrails, with removal planned no earlier than 0.27.0, so new code should use Guardrails from the start.

Guardrails server and Dockerfile

The guardrails server loads configurations from a folder and exposes an HTTP API, and the provided Dockerfile builds a server image for your own registry. Run it on infrastructure the agency controls, and pin the Python version to 3.11, 3.12 or 3.13, which NeMo Guardrails 0.25.0 requires. Confirm with your security team how images are scanned and approved before they are deployed to a network that handles government data.

Guardrails repository

Choosing a hosting model: sovereign cloud, on-premises or air-gapped

A sovereign or government cloud tenancy keeps the guardrails server, model endpoint and logs in a cloud account that your agency or contractor controls, in a region approved for government data. The provider's own authorization is only part of the picture. FedRAMP's scope covers cloud products that create, store or process federal information on an agency's behalf, so confirm which services inside the tenancy sit within the authorization boundary before the build starts.

  • Pull in advance. Mirror the NeMo Guardrails Python package, which requires Python 3.11, 3.12 or 3.13, and build the server image from the Dockerfile into a registry inside the tenancy. Include any self-hosted safety model weights.
  • Model endpoint. Run vLLM or Ollama on accelerator nodes in the tenancy. Use a provider-managed model service only after confirming it is inside the authorized boundary and that prompts stay under your control.
  • SSO and admin access. Federate assistant users and administrators to the agency identity provider over OIDC or SAML. Limit configuration changes to a named admin group with audited sessions.
  • Offline update path. The tenancy can usually reach a managed package mirror, so updates still pass through change control: review release notes, rebuild the image, test in staging, then promote.

Confirm that every component in the chain, including base images, the model server and any marketplace image, has a license and an authorization that covers your agency's data.

How multilingual refusals and topic limits are built and tested

The agency first defines the approved topics and the refusal wording for each language it serves, and that definition is the source for everything else. Topics go into the configuration as Colang flows that match user intent and return a fixed refusal, and the same topic list drives a self-check prompt on input and a model-based topic check where a classifier is used. In NeMo Guardrails, config.yml binds these together, so the team should keep one approved topic list that every language variant maps to, rather than separate lists that drift apart over time. Confirm with the vendor documentation which topic-control models your chosen release supports before committing to a design, because the built-in NemoGuard TopicControl option and self-check prompts have different hosting and latency implications.

The test matrix is where most public-sector deployments succeed or fail. For each supported language, the team should run every out-of-scope category, a set of borderline questions that sit near the topic boundary, and jailbreak attempts written natively in that language, not translated from English. Record which refusals fire, which requests leak through to the model, and whether a refusal in one language is applied consistently in the others. Colang 1.0 configurations converted to 2.x with the nemoguardrails convert tool still need manual review, according to NVIDIA's migration guide, so every converted flow should be retested against this matrix before go-live. Refusal text should be reviewed by the agency's own language and accessibility staff. A machine translation tool can produce grammatically plausible wording that is wrong in tone, legally loaded or unreadable with assistive technology, and that review is a sign-off item, not a formatting pass.

Which federal, state and EU obligations touch the assistant

A public sector assistant rarely answers to one rule. Federal control catalogs, cloud authorization scope, criminal justice data rules, accessibility deadlines and EU cybersecurity law each reach a different part of the design. Map which of these apply to your agency or public body before choosing rails, hosting and logging.

NIST SP 800-53 as the control basis

Federal systems commonly organize security controls around NIST SP 800-53 Rev. 5, currently at Release 5.2.0. SP 800-53B selects low, moderate and high baselines containing 149, 287 and 370 controls and enhancements respectively. Ask your authorizing official which baseline the assistant's system falls under, then map guardrail configuration, logging and access controls to the controls that baseline requires. Guardrail policy files and test results should be kept as evidence against those controls.

SP 800-53B baselines

FedRAMP scope for hosted assistants

FedRAMP applies only when the cloud service is offered as a shared service that handles federal information for agencies. A system run only for one agency on cloud infrastructure may fall outside that scope. Whether a NeMo Guardrails deployment in a cloud account counts depends on who operates it and who else uses it. Confirm the classification with your authorizing official and your FedRAMP program contact before choosing a hosting location.

FedRAMP scope rules

CJIS controls for criminal justice data

Where the assistant touches criminal justice information, FBI CJIS Security Policy v6.1 applies, in effect since 26 June 2026. It requires FIPS 140-3 certified modules or AES with at least 256-bit keys for CJI in transit and at rest outside physically secure locations, and vulnerability scanning at least monthly. Check whether prompts, retrieved records, model caches and guardrail logs can contain CJI, and extend encryption and scanning to those stores.

ADA Title II accessibility for assistants

Under the ADA Title II rule, state and local government web content and mobile apps, including content delivered by contractors, must meet WCAG 2.1 Level A and AA. The deadline is 26 April 2027 for entities serving 50,000 or more people and 26 April 2028 for smaller entities and special districts. Guardrail refusal messages and chat interface text are part of that content, so test refusal wording and error states with assistive technology.

NIS2 for EU public administration

NIS2 covers central government entities regardless of size and lists public administration as a sector of high criticality. Member States may extend it to local public administration. It does not apply to entities working in national security, public security, defense or law enforcement. Confirm with your national authority whether your body is in scope, and document how the assistant's logs, incident handling and supplier controls fit those obligations.

NIS2 Directive text

Transparent logging that oversight bodies and inspectors can read

The log should show which policy governed each answer and why it was changed. For a public sector assistant, each interaction record should capture the policy version in force, which rail blocked or altered the response (input, dialog, retrieval, execution or output), the language and topic classification the assistant assigned, and the exact refusal text the citizen or employee received. Without the policy version, an inspector cannot tell whether a refusal reflects the rules approved at the time or a later change. Configure NeMo Guardrails so the configuration folder is versioned in your source control, record the version identifier in each log entry, and confirm with your team how the rail outcome fields are emitted in the release you run, since field names vary between the library and any server layer you place in front of it. Retention and access should follow the agency's records schedule, which your records officer sets, not the logging defaults of the platform.

Logs should hold decisions, not the citizen's personal data. Raw prompts often contain names, national identifiers, case numbers and health or benefit details, so the default should be to store the rail decision, classification labels and a hash or reference to the input rather than the full text. Where investigators need the full exchange, define a separate, short-lived capture path with its own access approval, and document who may enable it. Test this before launch: send synthetic inputs that contain fabricated identifiers through each rail and check what lands in the log store, the trace backend and any error output. Inspectors General and auditors assessing FISMA controls work from evidence you can produce on request, so the team should be able to export a bounded set of records for a date range, with the policy versions attached, without reconstructing them from memory.

Log integrity needs its own test, not an assumption. Records that oversight bodies rely on must be shown to be complete and unaltered. Plan for write-once or append-only storage where your platform supports it, restricted deletion rights, time synchronization across the guardrails servers and the log store, and a periodic check that counts events per rail against the request totals reported by the front end. Run a tamper test: edit or delete a record in a test copy and confirm that the control you chose detects it. Ask your security team which controls in NIST SP 800-53 Rev. 5 cover audit record content, protection and review in the baseline your system is categorized under, and map each log field to the control it supports. Also confirm that log access itself is recorded, so that the people who read the logs can be reviewed.

How a public sector rollout moves from pilot to production

The sequence moves a NeMo Guardrails assistant from agreed control scope to a monitored production service, with each phase closing on a named sign-off and a retained piece of evidence that the agency's security, records and accessibility owners can review.

  1. Agree scope and map controls with the agency

    The rollout starts with a written scope covering the assistant's users, data types, topics to refuse and the systems it may call. DeployOpen maps the planned controls to the agency's security baseline, such as the NIST SP 800-53 control families the agency already uses, and reviews records retention and public-information obligations with the records team. The agency's security lead and records officer sign off on the control map and scope statement. Done means both signatures sit on a control matrix that names each guardrail, its owner and the log that will show it working.

  2. Prepare the isolated environment and verify supply chain

    Before anything crosses into a restricted or air-gapped network, every Python package, container image and model artifact is pulled from a controlled source, checked for integrity and authenticity, and stored in an internal registry or mirror. NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, so the runtime image is pinned to a supported version. The agency's infrastructure owner signs off on the bill of materials and the hash record. Done means every artifact in the deployment has a recorded source, version and checksum that matches what was approved.

  3. Build rails and multilingual test sets

    DeployOpen writes the config.yml, Colang flows and any Python actions for the approved topics, refusal wording and escalation paths, and builds test sets in each language the assistant will serve. Refusals are written with the agency's content owners so that wording is consistent across languages. Colang version choice is confirmed at this stage, since Colang 1.0 is the default and migration of existing flows needs manual review. The content owner and the engineering lead sign off on the test set. Done means each rail has passing test cases in every supported language and a changelog of approved wording.

  4. Test accessibility and security, including red teaming

    The assistant's web interface is tested against WCAG 2.1 Level A and AA, the success criteria named in the ADA Title II web rule, and the agency's accessibility lead reviews the results. In parallel, the security team runs prompt injection, jailbreak and data exposure tests, plus a red teaming exercise against the guardrail configuration. Findings are logged with severity, fix and retest result. The security lead signs off once critical and high findings are closed or formally accepted. Done means a signed findings report and a retest record exist for the release candidate.

  5. Run a limited pilot with human escalation

    The assistant is opened to a limited, agreed group of users, with a named staff member who receives every escalated or refused conversation that the rails route to a person. Blocked requests, low-confidence answers and escalations are reviewed weekly against the test sets, and new failure cases are added as regression tests. The program owner and the security lead decide on the exit criteria in writing before the pilot starts. Done means a pilot report lists refusal accuracy by language, escalation volume, unresolved issues and the decision to proceed or stop.

  6. Cut over to production with monitoring

    The production release is deployed from the verified artifacts, with logging of guardrail decisions, access controls and alerting on rail failures, errors and unusual refusal rates. Logs are retained according to the agency's records schedule, and dashboards are handed to the operations team. The operations lead and the security lead sign off on the cutover checklist and the monitoring runbook. Done means the production configuration matches the approved release record and alerts have been tested.

  7. Document the upgrade plan for future releases

    The upgrade plan records how each NeMo Guardrails release is evaluated before it reaches production: the new package is verified, the test sets are rerun, and the migration notes for any deprecations are reviewed. The current 0.25.0 release deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, so the plan lists that change as a required task. NVIDIA's sunset of the NeMo Guardrails microservice is also recorded, so the agency knows which deployment path it follows. The engineering lead and the security lead sign off on the plan. Done means a versioned upgrade runbook exists and has been tested against the current release.

What does a NeMo Guardrails for the public sector project cost and require?

What drives the cost of a public sector NeMo Guardrails project?

Cost follows the written scope, and five inputs move it most: the number of languages the assistant must refuse and respond in correctly, the number of citizen-facing or internal services covered, the hosting environment, the accessibility testing required, and how much evidence the agency needs to produce. Each language adds policy wording, reviewer time and test cases. Each service adds its own topic boundaries, data flows and logging. A sovereign or air-gapped network adds offline packaging, model transfer and extra verification work. Accessibility testing against WCAG 2.1 Level AA adds effort on the interface side. Ask any quote to break out each of these items separately, to state which parts are one-time (design, build, initial testing) and which recur (upgrades, retesting, model updates), and to name who pays for licenses and hardware.

How long does a NeMo Guardrails build take for government?

Duration depends on how many languages and services are in scope, how quickly the agency can approve policies and models, and how long security review and network approvals take inside the agency. Offline or air-gapped hosting usually adds time because every package and model must be brought across the boundary and checked. Procurement and accreditation steps often take longer than the technical build, so ask for a timeline with named approval gates and a note of which tasks depend on agency staff. Most engagements are fixed-scope, so the agreed timeline should appear in the written scope before work starts.

What must the agency provide for a guardrails project?

The agency typically supplies the following:

  • Security staff who approve the hosting design, access model and logging retention
  • Language reviewers who check refusal wording and approved responses in each language
  • A named policy owner who decides which topics are in and out of scope
  • Network access to the target cloud, data center or isolated enclave, including change approvals
  • Approved models and the safety or classifier models the agency has cleared for use

Late delivery of any of these usually moves the schedule more than technical problems do. Confirm in the scope who signs off each item and how changes to policies are handled after launch.

Can our own team deploy NeMo Guardrails without a partner?

Yes, the library is open source under Apache 2.0, so an in-house team can install and configure it. Your team needs Python 3.11, 3.12 or 3.13, experience with the config.yml file and Colang configuration, and enough capacity to write tests and keep the policy current. The harder parts for government are usually hosting in a sovereign or isolated network, producing evidence for assessors, and testing refusals across languages and attack patterns. DeployOpen can take on the planning, implementation, hardening, testing and documentation within a fixed scope, so your staff keep ownership of the policies and the resulting system. Ask a partner to show which tasks they will perform and which your team will keep.

Does a public sector NeMo Guardrails deployment need FedRAMP?

It depends on whether the system is a cloud product or service that a provider offers to an agency as a shared service. FedRAMP's scope covers cloud products and services that create, collect, process, store or maintain federal information on behalf of an agency, and systems used only for one agency's operations on cloud infrastructure that are not offered as a shared service are out of scope, according to the FedRAMP scope guidance under OMB M-24-15. A self-hosted NeMo Guardrails deployment inside the agency's own infrastructure is often assessed under the agency's own authorization process, using NIST SP 800-53 controls. Confirm the classification with your authorizing official, and ask any partner to state whether the work touches a FedRAMP-authorized cloud service.

What does the NeMo Guardrails microservice sunset mean for an existing deployment?

NVIDIA has retired the NeMo Guardrails microservice, and its NGC container page says NeMo microservices has been sunset as of October 1, 2026, with no new releases and no further support for that artifact. If your agency runs that container, plan a migration rather than waiting for fixes. NVIDIA's archived documentation asks existing users to contact their account team about next steps. The open-source library continues: the current release is 0.25.0, published 19 November 2026, and the previous one was 0.24.1. Ask any quote to inventory which artifacts you run, to plan the move to the library or the successor platform, and to cover retesting after the change.

What should a public sector guardrails quote include?

Ask for a written quote that lists each deliverable and the environment it targets, including the languages, services, hosting model and accessibility scope. It should separate one-time build work from recurring upgrades and retesting, and state what the agency must provide. Request the security testing and evidence package in writing, including logging design, access records and test results, plus the handover documents your staff will need. Confirm which licenses and hardware are the agency's cost, and whether air-gapped packaging or verification steps are included. A quote that cannot describe these items in writing is not yet a fixed scope.

How DeployOpen scopes and delivers a public sector guardrail build

DeployOpen plans, builds, tests and hands over self-hosted NeMo Guardrails configurations inside the agency's or public body's own infrastructure. Each engagement starts from a written scope that sets the languages, topics, models, logging and evidence the assistant must support before any build work begins.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • The written scope lists supported languages, approved and refused topic areas, and the user groups each assistant serves.
  • We map which hosting boundary applies, whether a cloud tenancy, government data center or air-gapped network.
  • Scoping records which federal, state or national frameworks the assistant's logs and controls must be prepared against.
  • Ask for a quote that separates scoping, rail configuration, testing, hosting setup and handover as distinct line items.

How we build

  • We configure rails in config.yml, Colang files and optional Python actions for each approved topic and refusal path.
  • Multilingual refusal and topic-control behavior is tested per language before the assistant is released to users.
  • Self-hosted models and safety classifiers are deployed inside the boundary the written scope defines.
  • Logging is configured so blocked requests, rail outcomes and administrative changes can be traced and reviewed.
  • Accessibility, access control and single sign-on requirements are built into the hosting design, not added afterwards.

How we hand over

  • Deliverables include the configuration repository, deployment documentation and a record of the tests that were run.
  • Operators receive runbooks for upgrades, model updates, log retention and rail changes, with the handover walkthrough recorded.
  • Evidence packs map controls and logs to the frameworks named in scope, so your compliance team can review them.
  • We prepare evidence for independent assessors but do not issue audit reports, attestations or certifications ourselves.
  • Open questions and residual risks are listed in writing so your security team can accept or act on them.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover NeMo Guardrails version upgrades, including the Colang and Python API changes listed in the release notes.
  • Periodic retesting checks multilingual refusals, topic boundaries and jailbreak handling after model or rail changes.
  • Ask any provider to confirm in writing how they handle the NeMo Guardrails microservice sunset and the upgrade path.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.