NeMo Guardrails 0.23 to 0.24 upgrade: RailOutcome and server changes

Teams on NeMo Guardrails 0.23 need to move custom rail actions to RailOutcome and update server clients before 0.24 goes into production. This page covers the changes, the upgrade path, testing, rollback and effort drivers.

On this page

Why a NeMo Guardrails upgrade from 0.23 to 0.24 touches custom actions first

For a team running NeMo Guardrails 0.23 with custom actions, a guardrails server, or both, the move to 0.24 is mainly a change to code and contracts, so it is more than a library version bump. The changes that matter most sit where your code meets the framework: custom rail actions that return results through the older output_mapping pattern, the response objects your code receives, and the calls your services make to /v1/checks and to Chat Completions validation. Plan the upgrade around those interfaces first, then check dependency pins and configuration files as a second pass. Each custom action and each client call should have a test that runs against both versions before you change production traffic.

Start by deciding how far to go. The latest 0.24 patch release supplied for this plan is 0.24.1, which is a clean stopping point if you need to leave 0.23 without taking on the next step. The current release is 0.25.0, published on 19 November 2026. It deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0, and it requires Python 3.11, 3.12 or 3.13. If you stop at 0.24.x, record a dated follow-up to move off LLMRails before a later release removes it. If you continue to 0.25.0, plan for two sets of changes and read the NeMo Guardrails releases notes for each version before you choose a target.

Confirm early which server you run. NVIDIA's NGC catalog entry for the NeMo Guardrails microservice container says the NeMo microservices were sunset as of October 1, 2026, with no new releases and no continued support for the artifact. The archived NeMo Microservices documentation asks existing users to contact their NVIDIA account team about next steps. If your 0.23 deployment uses that container, moving to a supported runtime is a separate decision from the 0.24 library upgrade and should be scoped and approved on its own. If you run the guardrails server from the open-source package, the 0.24 server changes in this guide still apply to your clients. Ask your NVIDIA account team and your platform owners which path applies before you fix a target version.

Which 0.24 changes break custom rails, server clients and installs

This table lists the 0.24 changes most likely to break an existing NeMo Guardrails setup across custom rails, server clients and installs. Read each row as a checklist: the impact column says what can fail, and the action column says what to verify before upgrading. Exact field names and behavior come from the 0.24.0 release notes and migration guidance, so read those before changing any code.

ChangeImpactAction needed
output_mapping to RailOutcomeCustom rail actions written against output_mapping may not return the outcome type the rail flow now expects.Map each action's return value to RailOutcome as the 0.24.0 release notes describe, then test every rail that calls it.
GenerationResponse return typeCode that reads plain strings or older response fields from generation calls or actions can fail on the new return type.List every caller of generation and custom actions, and update attribute access to match GenerationResponse.
/v1/checks validationClients posting to the server's checks endpoint can receive new validation errors for payloads they send today.Replay recorded request bodies against a 0.24 test server and confirm the response schema before cutover.
Chat Completions validationRequests that passed earlier may be rejected if they omit fields or use message structures the stricter validation now refuses.Check the message structure and optional fields your clients send, and add contract tests for each request shape.
Renamed actionsConfigurations that call an action by its old name can fail to resolve it at load or run time.Search config.yml, Colang files and Python code for old action names, and update them to the names listed in the release notes.
Removed hf-classifier extraInstalls that depend on the hf-classifier extra stop pulling its dependencies, so classifier rails can fail at startup.Remove the extra from install definitions and confirm in the release notes which packages your classifier rails need.
Colang 1.0 to 2.x migration (conditional)Applies only if the team also changes Colang versions. Converted configurations still need manual review.Use the migration guide and the nemoguardrails convert tool only in that case, and review converted files by hand.

Which upgrade path fits a Python API, server or NeMo Helix deployment

Applications that import NeMo Guardrails and call it from their own process own the full upgrade: the Python environment, the dependency pins and the code that builds and runs the rails. The 0.23 to 0.24 changes that matter most here are the move from output_mapping to RailOutcome in custom actions, the GenerationResponse return type, and the removal of the hf-classifier extra. Review the GitHub releases page for the target version before you change any code.

  • Custom actions: Rewrite each action that returns output_mapping results so it returns RailOutcome values, then rerun every rail that calls it.
  • Return types: Update callers that read raw strings from generation calls so they handle GenerationResponse.
  • Extras: Remove hf-classifier from install commands and confirm that the classifier models you use still install through a supported path.
  • Renamed actions: Compare action names against the release notes and update config references and tests to match.
  • Python environment: Build a fresh virtual environment for the target version. If the target includes 0.25.0, use Python 3.11, 3.12 or 3.13.

Before you deploy, confirm that pinned dependencies resolve on the target interpreter and that your test suite covers every rail that returns a RailOutcome.

Preparing the NeMo Guardrails upgrade before touching production

Most failed NeMo Guardrails upgrades trace back to work that was never written down: an unlisted action, a provider that only worked in one environment, or a configuration nobody could restore. The six items below give the upgrade team a record to test against and a rollback point. Each one has a named owner and an output the team can check before the production change window.

Inventory custom actions and providers

List every Python action, every LLM provider entry and every Colang file loaded by each guardrails configuration. For each action, record which rail or flow calls it and whether it returns a plain value or a structured result. The application team owns the list, and the platform team confirms it matches what the running server actually loads. Actions that write to the output_mapping key or depend on it are the first items to re-test against the 0.24 change.

NeMo Guardrails docs

Snapshot the 0.23 dependency set

Capture the exact installed package versions from the current 0.23 environment, including the Python interpreter version and any optional extras. Store the frozen list next to the deployment manifests so the team can rebuild the old environment on demand. The owner is the platform engineer who builds the server image. Confirm that the Python version used in staging is one the target release supports before anything else is installed.

Python for 0.25.0
3.11 to 3.13
nemoguardrails on PyPI

Back up configuration and action folders

Archive the config.yml files, Colang files and actions folders from every environment, with a checksum and the date taken. Keep the archive outside the directory the server reads, so a rollback restores known files rather than whatever a later edit left behind. The release owner signs off that the archive can be restored into a clean directory and produces the same server startup log.

Build a staging environment that matches production

Stand up a staging server that uses the same model endpoints, network path, proxies and TLS trust as production, so that connectivity problems surface before the change. Include the same guardrail server network position, meaning the same ingress, firewall rules and service accounts. The infrastructure owner maintains staging and confirms that calls from staging reach each model endpoint the production configuration names.

Assemble a regression test corpus

Collect representative user inputs, model outputs and retrieved chunks that each rail must handle, and write the expected outcome for each: allowed, blocked, rewritten or escalated. Include cases that currently trigger custom actions and cases that should pass untouched. The QA or security engineer owns the corpus, and the outcomes are recorded from the 0.23 run so that any difference after the upgrade is visible and can be explained.

Confirm API and server consumers

List every client that calls the Python API or the guardrails server's HTTP endpoints, including any code that reads the Chat Completions response or calls the checks endpoint. Ask each owning team to name the response fields they parse and to run their integration tests against staging. Consumers that depend on response shapes need a named contact and a sign-off date before the production window is set.

The upgrade reaches production only after the staging gate passes

The upgrade starts with an inventory of every custom action, rail and server client that touches NeMo Guardrails. Teams that call the Python API only follow one branch, and teams that run the guardrails server follow another, because the server contract changes as well. Both paths meet in a migration branch where custom actions move to RailOutcome and server request and response handling is updated. The changed build then passes a staging test gate built on the test corpus. A failed gate returns the work to fixes, and a passed gate reaches a go or no-go decision. Production cutover keeps the previous version available for rollback.

Upgrade path from inventory through staging gates to production cutover.

NeMo Guardrails upgrade sequence with checks and rollback points

This sequence moves a NeMo Guardrails 0.23 deployment to 0.24 in an order where each step has a recorded check, so the team knows what changed, what failed before the change and how to return to 0.23 if cutover goes wrong. It covers the Python library, the custom actions and the guardrails server.

  1. Freeze the current version and back up

    The platform owner records the exact running version of nemoguardrails, the Python version, the pinned dependency lock file and the container image tag, then backs up the configuration folder with its config.yml, Colang files and Python actions. Store the backup in version control or object storage you control, and keep a copy of the currently deployed server image. Done means you can list the 0.23 version string, the image digest and the backup location in one change record, and a test restore of the configuration folder into an empty directory loads without errors.

  2. Build a separate 0.24 environment

    A developer creates a new virtual environment on a supported Python version and installs the 0.24 line of nemoguardrails, pinned to a specific patch release such as 0.24.1, the most recent 0.24 release in the researched release history. Keep the 0.23 environment untouched so both can run side by side. Confirm the Python version requirement for the exact 0.24 release you pin, since the supplied Python 3.11 to 3.13 range applies to 0.25.0. Done means pip show nemoguardrails reports the pinned version in the new environment and the dependency resolution completes with no conflicts.

  3. Record baseline failures on 0.23

    Before changing any code, run the existing test suite against the 0.23 environment and then against the 0.24 environment without code changes. Save both outputs with test names, error types and tracebacks. Failures present on 0.23 are existing debt and should be tracked separately from failures caused by the upgrade. Expect the 0.24 run to fail on the custom actions and client calls covered in the next steps, and treat any failure outside those areas as something to investigate before continuing. Done means you have a dated baseline file that lists every failing test under each version.

  4. Migrate custom actions to RailOutcome

    A developer finds every custom action that uses the older output_mapping approach and rewrites its return path to use RailOutcome, following the 0.24 release notes and API documentation for the exact fields and signatures. Each action should be covered by a unit test that asserts the outcome an input produces, both allowed and blocked. Run the action tests in the 0.24 environment only. Done means no action in the configuration folder still uses output_mapping, the unit tests for each action pass, and the diff for each action is saved with the change record.

  5. Update clients for response and validation changes

    The application team updates every caller that reads responses from the Python API or the server so that it handles the GenerationResponse return type. They also update calls to the /v1/checks endpoint and to the Chat Completions validation path to match the 0.24 request and response shapes. Replay a fixed set of recorded requests from the baseline against the 0.24 server and compare the responses field by field, noting every intended difference. Done means each client has a passing contract test, and the replay report shows no unexplained change in status codes or response fields.

  6. Replace renamed actions and drop hf-classifier

    The developer checks the 0.24 release notes for renamed actions and updates every flow and config reference to the new names, then searches the configuration and the requirements files for the hf-classifier extra and removes it, along with any direct dependency it pulled in that the application does not use. Confirm that any classifier the application still needs is provided through a supported path that the release notes name. Done means a search for old action names and for hf-classifier returns no matches, the configuration loads without warnings in the 0.24 environment, and the lock file reflects the removal.

  7. Rebuild the server image from the Dockerfile

    The platform engineer builds a new server image from the Dockerfile included in the NeMo Guardrails repository, pinned to the 0.24 version, and tags it with the release and a commit identifier so it is distinct from the 0.23 image. Scan the image with the scanner your organization already uses and record the result. Start the container locally with the migrated configuration folder mounted and confirm the health endpoint responds. Done means the image builds from a clean checkout, starts with the 0.24 configuration, and its tag and digest are recorded next to the 0.23 image.

  8. Test in staging and cut over with a rollback point

    Deploy the new image to a staging environment that mirrors production configuration, then run the full baseline suite, the replayed client requests and a sample of production-like traffic. Compare results with the baseline file and sign off only when every difference is explained. For cutover, keep the 0.23 image and configuration deployable and name the rollback point as the previous image digest plus the backup from the first step. Set a monitoring check on blocked-request rates and error responses for the first period after cutover. Done means staging sign-off is recorded, the rollback point is documented, and a rollback has been rehearsed in staging.

Testing custom actions and server responses after the upgrade

Before cutover, test the upgrade at three layers: the return value of each custom action, the HTTP responses that downstream applications parse, and the blocked or allowed decisions users actually experience. Passing functional tests does not prove that outcome handling is correct. A test that asserts a request succeeds can pass while a rail that should block now returns a result the application reads as allowed, or a field moved and the caller silently falls back to a default. Write unit tests that assert the exact RailOutcome produced by each custom action for known inputs, including the stop and modification cases, and assert the GenerationResponse fields your code reads. Confirm the exact names and shapes against the NeMo Guardrails documentation and the 0.24 release notes for your pinned version, rather than relying on memory of 0.23.

Contract tests cover the server side. Capture real responses from /v1/checks and the Chat Completions endpoint on the 0.23 build, then replay the same requests against 0.24 and diff the structure, not just the status code. Check every field your downstream services parse, including how blocked messages are represented and whether any field your parser treats as required is now absent or nested differently. Run a regression set of representative prompts, including known jailbreak attempts, off-topic requests and legitimate edge cases, and compare each blocked or allowed decision against the pre-upgrade baseline. Investigate every difference, even ones that look like improvements, because each one is a behavior change your reviewers have not approved. Also confirm that logs and traces still record the rail names, decisions and latency fields your operations team alerts on, since renamed actions can break dashboards and queries without any functional failure.

Test the rollback path before you need it. Deploy the 0.23 configuration and images to a staging environment that mirrors production, run the upgrade, then roll back and confirm the service returns to baseline behavior with the same decisions and logs. Record who can trigger the rollback, what evidence confirms it succeeded, and how long the team expects it to take, using measurements from your own staging runs rather than estimates. Keep the pre-upgrade container image and the pinned package versions available for the rollback window, and confirm the configuration files are version-controlled so the previous state can be restored exactly.

What lengthens a NeMo Guardrails upgrade from 0.23 to 0.24

This table lists the factors that change how much work a 0.23 to 0.24 upgrade takes, with the effect of each and the figure to confirm from your own inventory. Read each row against your environment: the more rows that describe your estate, the more testing and sign-off the upgrade needs. No durations are given because they depend on counts only your team can collect.

DriverEffect on effortWhat to confirm
Custom actions returning output_mapping logicEach action that maps outcomes through output_mapping needs rewriting to return RailOutcome and be re-tested. Effort grows with both count and branching logic.Number of actions, how many use output_mapping, and how many outcome branches each one defines
Client applications calling the serverEvery client that parses server responses may need changes for the GenerationResponse return type and /v1/checks or Chat Completions validation changes.Number of client applications, their owners, and which response fields each one reads
Colang files or LLM providers changing in the same windowConcurrent changes to Colang files or model providers multiply the test matrix, making it hard to tell which change caused a failure.Whether Colang files or provider entries are scheduled for change, and who owns each change
Use of the hf-classifier extraThe removed extra means deployments that depend on it must find a replacement or change their install. Images and lockfiles also need updating.Whether any environment, Dockerfile or requirements file installs hf-classifier
Renamed actions referenced in configurationRenamed actions must be updated wherever configuration, Colang or client code calls them, and any miss fails at runtime.Full list of actions referenced in config.yml, Colang files and client code
Size and existence of the test corpusWithout a regression corpus, the team must build expected outcomes by hand, which is often the largest single effort item. A corpus with recorded expected outcomes shortens verification.Whether a labeled set of prompts and expected rail outcomes exists, and how many cases it covers
Separate staging and production environmentsA staging environment that mirrors production allows the upgrade to be proven before cutover. Without one, verification and rollback planning take more time.Whether staging matches production in configuration, models, Python version and server image
Approval and change control requirementsFormal change records, risk reviews and evidence retention add steps before and after the change window.Required approvers, change-record templates, and the evidence your assessors expect to see

What buyers ask before a NeMo Guardrails upgrade: cost, time and team effort

What drives the cost of an outside NeMo Guardrails upgrade?

The biggest cost driver is how much custom code and configuration the upgrade touches, not the version number itself. Cost rises with the number of custom actions that return output_mapping results, the number of Colang files and rails in use, how many applications call the Python API or the server, and how many test suites must be rebuilt. Recurring costs are separate from the one-time migration: ongoing support, upgrades and continuous testing are offered as retainers. Ask for a fixed-scope quote that lists each component, what is one-time, what recurs, and what is excluded. DeployOpen does not publish a price list, so the written scope sets the figure.

Can our own team upgrade NeMo Guardrails without a partner?

Yes, many teams can, provided they have Python engineers who know their custom actions and a test suite that exercises every rail. The release notes and migration guide for each version describe the breaking changes, and the work is mostly code and configuration review. A partner adds value when the team lacks capacity, when the application is in a regulated environment that needs documented evidence of each change, or when the upgrade must be coordinated with a server or infrastructure move. Confirm your Python version first, since NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13.

What does the upgrade need from our engineers and security reviewers?

Engineers need to own the application code, custom actions, configuration files and the test cases that prove behavior. Security reviewers need to check that the changed rail outcomes still block what they blocked before, that server validation on Chat Completions still behaves as expected, and that removed extras or renamed actions do not leave a control silently disabled. Plan time for both groups to review a diff, not just a passing build. Ask the partner to name who on your side signs off each change.

How does the NeMo microservice sunset change the upgrade plan?

If you run the NeMo Guardrails microservice container, the plan changes because NVIDIA states that NeMo microservices was sunset as of October 1, 2026, with no new releases and no continued support for the artifact. That means moving to the open-source library and a server you build and run yourself, or contacting your NVIDIA account team about the NeMo Platform path. Confirm which of these applies to your contract before you scope the work, because it decides whether the upgrade is a version change or a deployment change.

Should we stop at 0.24.1 or move to 0.25.0?

Stop at 0.24.1 only if you need a short stabilization window and have a reason to delay the LLMRails change. The current release is 0.25.0, published on 19 November 2026, and it deprecates the LLMRails class in favor of Guardrails, with removal planned no earlier than 0.27.0. Going to 0.25.0 means adopting the Guardrails entry point or accepting deprecation warnings for now, and NVIDIA publishes a 0.25 migration guide to follow. Both paths need your full test suite, so decide based on your deprecation timeline and your support requirements.

What should a quote for this upgrade include?

A useful quote lists the starting and target versions, the inventory of custom actions, configurations, Colang files and server endpoints in scope, and the tests that will prove behavior before and after. It should state deliverables such as a change log, updated code, a verification report and a rollback procedure, along with what the client provides, such as test environments and access. It should name exclusions, timelines agreed in writing, and whether retesting and post-upgrade support are included. Engagements are normally fixed-scope, so ask for the written scope and its acceptance criteria before accepting any figure.

How is rollback handled if the upgraded configuration misbehaves?

Rollback should be designed before the upgrade starts. Keep the previous package version pinned, the previous configuration and action code in version control, and a deployment that can return to them without a rebuild. Run the same test suite against both versions and record the outputs so that a changed rail decision can be traced. Confirm with the partner which rollback steps are included in the fixed scope and how a failed cutover is handled, because the answer differs between a library change inside your application and a server change in shared infrastructure.

How DeployOpen scopes and delivers a NeMo Guardrails upgrade

DeployOpen starts an upgrade from your current configuration, custom actions and server setup, then agrees the scope in writing before any change is made. The work covers the 0.23 to 0.24 changes in RailOutcome, the server and the Chat Completions validation path, and it runs in infrastructure you control.

How we scope

  • Inventory every custom action, output_mapping usage, renamed action and hf-classifier dependency in your current release.
  • Confirm which NeMo Guardrails version you run today and which server endpoints and clients call your deployment.
  • Agree a written, fixed scope listing the actions, configurations and server paths to migrate, test and document.

How we build

  • Port custom actions from output_mapping to RailOutcome and update return handling to the GenerationResponse type.
  • Adjust /v1/checks and Chat Completions validation calls, then run them against recorded requests from your own applications.
  • Replace the removed hf-classifier extra with the dependency path you choose and confirm the Python 3.11 to 3.13 runtime.

How we hand over

  • Deliver the upgraded configuration, actions and server image with a changelog that maps each change to the 0.24 behavior.
  • Provide a test suite and before and after results so your team can rerun the checks on its own environment.
  • Document rollback steps for the previous release and record the items that still need manual review by your team.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, so later NeMo Guardrails releases can follow the same process.
  • Confirm with your account team how the NeMo Microservices sunset affects any deployment that still runs the retired microservice.
  • Ask for a quote based on the written scope, which sets the deliverables, environments and timeline before work starts.

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.