When an internal AI application changes model version, rerun guardrail checks against the candidate model and the existing policy. Bind the approval to the model deployment, guardrail configuration, input or output surface and the application path you tested. A policy can remain identical while a model changes the text, structure or timing that the policy receives.
Model changes can also happen outside an application release. Microsoft documents configurable upgrade behavior for Azure OpenAI deployments, including automatic upgrades and a no-auto-upgrade option that can leave a retired deployment unavailable. Amazon Bedrock documents separate guardrail versions that represent snapshots of a configuration. These are separate controls. Check the model settings and guardrail settings independently, then test the pair you will operate.
Compare the same cases on both deployments
Keep the prompt template, policy, user role, approved sources and app version fixed for the first comparison. Run the old and candidate model through the application path and record the expected decision before viewing outputs. Include permitted cases as well as cases that should be blocked, masked or held for review. Use approved synthetic inputs for tests that require sensitive-looking values. For variable outputs, repeat selected cases and record the individual decisions, sample size and conditions.
| Test surface | Evidence to capture | Example acceptance condition |
|---|---|---|
| User input | Observed action and provider dispatch status | A blocked input never reaches the provider |
| Complete response | Guardrail action and text delivered to the client | The application delivers only the permitted transformation |
| Streamed response | Client-visible events and termination status | A blocked value is not disclosed on the tested path |
| Allowed workflow | Valid response and completion outcome | An authorized user can still finish the task |
| Unsupported or skipped check | What was skipped, and why | The release owner explicitly accepts the gap or disables the path |
A pre-recorded model response is useful for isolating detector behavior. Use an end-to-end run as well. That test catches differences in routing, parser behavior and when the app delivers text. If a policy action blocks output, inspect the client-visible stream. A server log can confirm that a finding fired after the first part of the response had already reached the user.
Record what changed and what you can roll back
Consider a hypothetical finance assistant whose first model reports a synthetic employee identifier in plain text. Its replacement renders the identifier inside a table and splits the value across streamed events. The old and new releases both generate a detection event, but a test client receives part of the value on the candidate stream. Record that case as a failure against the expected disclosure behavior. Keep the candidate out of production until the team can verify a supported mode that meets the requirement, or disable the affected streaming path and verify the remaining path.
Keep a manifest with the deployment and model version, provider upgrade setting, guardrail configuration version, app commit, test fixture revision and run timestamp. Where the provider omits a version from individual responses, link the run to the deployment configuration you observed and record that limit. Label who can switch traffic back and the last date the approved rollback route will still be available. A retired model may require a second approved deployment or a deliberately reduced service mode.
Verify enforcement where users will run the app
After switching traffic, repeat a small set of synthetic checks on the production route with an authorized test identity. Watch the rate of block and transform actions alongside the count of requests covered by the check. A decrease in detections can come from a new model, changed traffic or missing coverage. Require the coverage data before deciding which explanation to investigate.
Use the guardrail coverage matrix to list the surfaces your application uses. Alectura's guardrail documentation describes supported inspection and stream modes. Its draft-policy test can exercise the built-in tier on text. Use the full application route to verify the selected model, policy action and actual text delivery before you sign off.
Source documents (2)
Trace a request through Alectura.
Bring a sample prompt and a customer policy. See what reaches the model and which decisions appear in the request record.