Technical Guide

    ISO/IEC 5338 Applied to RAG Pipelines

    ISO/IEC 5338:2023 defines life cycle processes for AI systems. It does not describe RAG pipelines, so the mapping is an architectural exercise: assign each process (requirements, design, implementation, verification, validation, operation, maintenance) to each pipeline component. Most of the work happens before deployment. Runtime policy enforcement on individual interactions can supply evidence for operation-phase processes, but it does not replace design, verification or data-integrity practices.

    Mapping life cycle processes to RAG components

    1. 1

      Document ingestion and chunking

      Requirements define which sources are in scope and who may see them. Design and implementation decide how source permissions and sensitivity labels travel with each chunk. Verification confirms that they do. Poisoning of data sources is an ingestion-side concern, so evidence comes mainly from build-time and data-handling controls.

    2. 2

      Embedding and vector store

      Design covers index structure, tenancy and access boundaries. Vector and embedding weaknesses are a recognised risk class, tracked by OWASP as LLM09:2026, and the same machinery underlies agent memory and semantic caches. Include those components in scope if you run them.

    3. 3

      Retrieval

      Retrieval is the key component of a RAG pipeline. Requirements should state which users may retrieve which content. Verification tests that unauthorized content is not returned. Operation records what was actually retrieved in each interaction.

    4. 4

      Prompt assembly

      Design determines what enters the context window and how sensitive data is treated before it reaches the model. Verification checks those rules against test cases. Operation needs per-interaction evidence that the rules applied.

    5. 5

      Model generation

      Validation asks whether outputs meet the stated requirements, including whether answers can be checked against retrieved material. Operation covers behaviour on live traffic.

    6. 6

      Maintenance

      Re-indexing, embedding model changes, prompt template edits and model upgrades each change system behaviour. Each needs change control and re-verification, with outputs retained for audit.

    Practices that remain outside runtime enforcement

    • Documented requirements for retrieval authorization and data handling, owned by a named role
    • Ingestion controls that address source integrity and the risk of RAG poisoning
    • Verification tests for unauthorized retrieval and sensitive data in assembled prompts
    • Validation of output quality and checkability against retrieved material
    • Change control for re-indexing, embedding models, prompt templates and model versions
    • Provenance records for models and datasets, held in other systems

    What ISO/IEC 5338 covers and what it leaves out

    ISO/IEC 5338:2023 is titled "Information technology — Artificial intelligence — AI system life cycle processes". It sits in the ISO/IEC JTC 1/SC 42 catalogue, where it is listed at stage code 60.60 as of November 2026. NIST publishes a crosswalk between the AI RMF and ISO/IEC 5338, which notes that the AI RMF life cycle stages align with those used in 5338.

    It is best read as a framework of life cycle processes, not as a checklist of technical controls. It tells you which kinds of activity an AI system life cycle should include. It does not tell you how to secure a vector store or how to decide whether a retrieved passage is safe to place in a prompt. Those decisions remain with the architect.

    Two neighbouring standards help with scoping. ISO/IEC 42001 addresses AI management systems, which is a different layer from system life cycle processes, and NIST publishes a separate crosswalk from the AI RMF to the 42001 draft. ISO/IEC 22989 supplies AI terminology. Its generative AI amendment, along with the generative AI amendment to ISO/IEC 23053, was still under development as of November 2026, so avoid building control language that depends on final generative AI definitions.

    The standard does not mention retrieval, embeddings or prompt assembly. Everything that follows is an architectural reading that applies general life cycle stages to RAG components.

    Which processes apply at design time and which at operation time

    Requirements, design, implementation, verification and validation are predominantly design-time activities. In a RAG system they produce the artefacts an auditor reads first: a statement of what content may be retrieved by whom, an architecture that carries permissions through chunking and indexing, test results showing unauthorized retrieval is prevented, and validation results for output quality.

    The RAG-specific risks named in most audit conversations sort roughly as follows. Retrieval of unauthorized content is a design and verification problem that also needs operation-time confirmation. Sensitive data exposure in context is a prompt assembly design problem that also needs operation-time evidence on live traffic. Unverifiable outputs are largely a validation and design problem, because they depend on whether the system was built to expose what it retrieved.

    Operation and maintenance are where design-time claims meet production. A passed test shows the system behaved correctly on the cases you tried. An operating record shows what happened on the interactions that actually occurred. NIST AI 800-4, which proposes six monitoring categories for deployed AI systems and lists challenges to robust monitoring, is a useful reference when deciding how much the operation phase should cover.

    The tradeoff is that operation-time evidence is only as good as the design behind it. A runtime record cannot show that a knowledge base was free of poisoned documents, and it cannot substitute for a verification plan.

    Where runtime policy enforcement supplies operation-phase evidence

    Trussed enforces policy in the execution path, at the level of individual interactions and tool calls. For a RAG pipeline, that means a retrieval interaction or a generation interaction can be allowed, redacted or blocked at runtime, not reviewed after the fact. Each enforcement decision produces audit-ready evidence, mapped to frameworks including NIST and the EU AI Act, and deployment is self-managed in the customer cloud with configurable retention and data residency.

    In life cycle terms, this evidence supports operation-phase processes. It can show that a stated retrieval or data-handling requirement was enforced on a specific interaction, which turns a design-time statement into an operating record. It also gives maintenance reviews something concrete to examine, such as which interactions were redacted or blocked after a change to the index or prompt template.

    The boundaries matter for an honest mapping. Enforcement at the interaction level does not cover model provenance, model lineage or dataset provenance, and it does not provide end-to-end tracing of agentic workflows. It does not verify ingestion integrity or substitute for validation against requirements. Those remain with the practices described in the previous sections.

    Presenting the mapping to an auditor

    Lead with scope. State that ISO/IEC 5338 is applied as a life cycle process framework, list the pipeline components in scope, and name any vector-backed components such as agent memory or semantic caches. Then give one row per process and component pair, with the artefact that satisfies it and where it is stored.

    Separate design-time artefacts from operation-time records. Where you cite verification and validation, note that the NIST crosswalk to the ISO/IEC 42001 draft maps AI RMF Measure functions to the control titled "AI system verification and validation". Check control numbering against the published 42001 text before reproducing it in audit material.

    Finally, state what each control does not cover. A mapping that names its gaps is easier to defend than one that implies full coverage. For most regulated enterprises the practical next step is a one-page matrix of components against life cycle processes, with each cell marked as design-time evidence, operation-time evidence, or an open gap.

    RAG pipeline stages and where life cycle evidence comes from

    Ingestion, chunking, embedding

    Requirements, design, implementation and verification evidence

    Vector store and retrieval

    Access design, verification and operation-phase records

    Prompt assembly

    Context content rules, verification and per-interaction records

    Generation

    Validation against requirements and operation-phase records

    Maintenance

    Change control for indexes, prompts and models

    Review what the operation phase should produce

    See how policy enforced in the execution path at retrieval and generation interactions generates audit-ready evidence for a regulated enterprise.

    See How Evidence Is Produced