Implementation Guide

    ISO/IEC 5338 Deployment Process for LLM Applications: Release Gates and Rollback Evidence

    Apply the ISO/IEC 5338 deployment process to an LLM application by defining each type of change (model version, prompt, retrieval configuration, tool and MCP permissions, runtime policy) as a release event. Give each event a gate with a testable condition, a named approver and a named evidence output. Define rollback triggers and the record a rollback must leave. Pre-release artifacts can satisfy some gates. Others, such as what the application actually did with tools after release, can only be shown by policy enforced at runtime.

    A release workflow with named evidence at each gate

    1. 1

      1. Classify the change

      Assign the change type and release tier. Evidence: change record with type, owner, tier and release candidate identifier.

    2. 2

      2. Verify before release

      Run tests against metrics and thresholds defined in advance. Evidence: test report tied to the exact versions under test and the thresholds applied.

    3. 3

      3. Review permissions

      Compare effective tool and MCP permissions with the last approved state. Evidence: permission diff with reviewer sign-off.

    4. 4

      4. Approve

      Obtain approvals required for the tier. Evidence: approval record with approver identity, timestamp and candidate identifier.

    5. 5

      5. Release under runtime policy

      Expose the change in stages while policy is enforced. Evidence: policy decisions for interactions and tool calls during rollout.

    6. 6

      6. Verify after release

      Compare observed behaviour with the gate criteria and close or roll back. Evidence: release closure record.

    What the standard provides and what you must decide

    ISO/IEC 5338:2023 defines processes and associated concepts for describing the life cycle of AI systems based on machine learning and heuristic systems. It builds on ISO/IEC/IEEE 15288 and ISO/IEC/IEEE 12207 and adds AI-specific processes drawn from ISO/IEC 22989 and ISO/IEC 23053. Its processes support the definition, control, management, execution and improvement of an AI system across its life cycle stages, and they can be used when developing or acquiring AI systems.

    The standard describes processes. It does not tell you that a system prompt edit is a release event, what a tool permission change must pass, or what a rollback must leave behind. Those mappings are implementer decisions, and your documentation should state them as your own criteria rather than as requirements of the standard.

    Two inherited points help. Where an element of an AI system is traditional software, the 12207 software life cycle processes and 15288 system life cycle processes can implement that element, so your existing build, package and deployment practice covers the conventional parts of an LLM application. ISO/IEC/IEEE 32675:2022 is a catalogued reference for DevOps build, package and deployment if you want one. Also, 12207 does not require a specific life cycle model, which is why the gate and rollback definitions have to be written down by your team. NIST has published a crosswalk between the AI RMF and ISO/IEC 5338 that aligns life cycle stages, which is useful when risk teams report in AI RMF terms.

    Treat each kind of LLM change as a release event

    A common failure is to gate only code and model weights while prompts, retrieval settings and permissions change through configuration edits. Each of the following can alter what the application does, so each should enter the same release workflow with its own criteria. The criteria and approvers below are a reasonable starting design, not a mandated set.

    • Model version change: Gate: results against predefined metrics and thresholds on your evaluation set. Approver: application owner plus risk reviewer.
    • Prompt or system instruction change: Gate: regression results on behaviour the instruction is meant to constrain, with a diff of the instruction. Approver: application owner.
    • Retrieval configuration change: Gate: confirmation that data sources and access scope match the approved list. Approver: data owner.
    • Tool or MCP server permission change: Gate: a diff of the effective permission set and a stated business need for each addition. Approver: security and application owner.
    • Runtime policy change: Gate: policy tested against representative interactions, with intended allow, redact, block and escalate outcomes confirmed. Approver: policy owner and risk reviewer.

    Rollback triggers, procedure and evidence

    Define rollback triggers before release, not during an incident. Useful triggers include a breach of a post-release threshold, tool calls outside the approved permission set, a failure of redaction or blocking behaviour, a failed post-release verification, and withdrawal of an approval. Each trigger should name who may invoke rollback and whether an emergency path allows action first with approval recorded afterward.

    The procedure should restore the previous known-good state as a single versioned unit: model version, prompt, retrieval configuration, tool and MCP permissions, and runtime policy. Rolling back only the model while a new permission set remains in place leaves the application in a state nobody approved. Treat the rollback itself as a release event with its own record, and rehearse it so you know the restore works.

    An auditor will look for a record that answers specific questions. What triggered the rollback and when? Who decided? Which identifiers were restored? Did the permission set after rollback match the earlier approved state? What did the application do between the trigger and completion? Release notes and pipeline logs usually answer the first few questions and fail the last. The interaction-level record for that window is what shows what the application was permitted to do before, during and after the release.

    For systems that are high-risk under the EU AI Act, the consolidated text frames risk management as a continuous, iterative process across the entire lifecycle, with regular systematic review and updating. It also expects testing against prior defined metrics and probabilistic thresholds before placing on the market or putting into service. Confirm first whether your system is high-risk, since those provisions are framed for that category. As of November 2026, the Digital Omnibus on AI is a Commission proposal, not adopted law, that would set 2 December 2027 and 2 August 2028 as fixed high-risk application dates. Conformance with 5338 is a process framework, not legal compliance.

    Which gates pre-release artifacts satisfy and which need runtime enforcement

    Pre-release engineering artifacts can satisfy conditions that are fully knowable before deployment: change classification, evaluation results against predefined thresholds, a permission diff, and approvals. These come from your pipeline, test harness and ticketing system, and they remain the foundation of the release record.

    Other conditions can only be observed on live traffic. Examples are that a tool call outside the approved set was refused, that sensitive content was redacted in practice, that a high-impact action waited for human approval, and that the permission set in force during rollout matched the one approved. A pre-release test shows the intended behaviour. It does not show what happened across real interactions after release or during a rollback window.

    This is where policy enforced in the execution path supplies evidence. Trussed enforces policy at runtime on individual interactions and tool calls across models, agents, tools and MCP servers, with outcomes of allow, redact, block, rate limit or escalate for human approval. Enforcement is applied at runtime, not reviewed after the fact, and it generates audit-ready evidence of each decision. A release gate that depends on observed behaviour can then cite those decision records, and a rollback record can show the permitted behaviour before, during and after the change. Trussed does not replace pre-release testing, and it does not provide model lineage or dataset provenance. Those remain with your engineering and evaluation process.

    The practical split is simple to document. For each gate, state whether its evidence comes from a pre-release artifact or from runtime enforcement, and state where that evidence is retained and for how long.

    From standard to enforceable release

    Classify the change

    Model, prompt, retrieval, tool and MCP permissions, or policy.

    Pass the gate

    A testable condition, a named approver, a named evidence output.

    Release under enforcement

    Runtime policy applies to interactions and tool calls during rollout.

    Roll back with a record

    Trigger, decision, restored state and the interaction window are retained.

    Turn release gates into evidence you can produce on request

    See how policy enforced in the execution path produces audit-ready evidence for interactions and tool calls across a release and a rollback.

    See How Evidence Is Produced
    Next step

    How does your AI governance program compare?

    See where your program has gaps in less than 2 minutes.