Technical Guide

    How ISO/IEC 5338 Applies to AI Coding Agents and AI-Written Code

    ISO/IEC 5338:2023 is a life cycle process standard for AI systems, not a certification you can claim by installing a tool. For AI coding agents, it means your existing development processes must account for an author that is not a person: one that executes commands, writes files, changes pipelines and commits code. Verification, validation, configuration management and operation and monitoring are most affected. Runtime policy enforcement and code provenance can produce the evidence those processes need, but the processes themselves remain yours to define.

    Implementation checklist for aligning AI-assisted development

    • Inventory every place agents can act: application code, build scripts, CI/CD configuration, package scripts and deployment infrastructure.
    • Put those artifacts and agent configuration files under the same version control and change approval as application code.
    • Run coding agents in sandboxed environments such as dev containers, restricted shells, virtual machines or ephemeral cloud workspaces.
    • Define which agent actions are allowed, redacted, blocked or escalated, and enforce that policy before execution completes.
    • Capture origin, licence and security context for AI-written code and retain it with the change record.
    • Retest agents after material changes to prompts, tools, memory, retrieval, policies or model providers, and keep the results.

    What ISO/IEC 5338 covers, and what it does not

    ISO/IEC 5338:2023, titled Information technology, Artificial intelligence, AI system life cycle processes, is a voluntary international standard listed in the ISO/IEC JTC 1/SC 42 catalogue. ISO describes it as a way to develop and manage AI systems in a structured, reliable and scalable manner, so that organisations can innovate while keeping control over quality and performance.

    The useful framing for an architect is that it describes processes, not products. It does not tell you which tool to buy, and it does not give a tool a pass mark. Treat it as a framework against which you describe your own lifecycle, and avoid any claim of conformance or certification for a pipeline, an agent or a vendor product.

    It also does not address coding agents by name. Everything in the mapping below is practitioner interpretation of how general life cycle processes apply when the author is an AI agent. Use it as a working model for your own process documentation, not as a quotation of the standard.

    NIST publishes a crosswalk between AI RMF 1.0 and ISO/IEC 5338, noting that the frameworks were developed independently with shared foundations in ISO/IEC 22989:2022. If your governance programme already uses the AI RMF, that crosswalk is a reasonable starting point for aligning the two.

    Why AI-written code is wider than source files

    Lifecycle processes designed around human authors tend to assume a person types code, reads it, and commits it. Coding agents break each assumption. Agentic tools execute commands, install packages, write files and access the network from the developer's environment. They also modify build scripts, CI/CD configuration, package scripts and deployment infrastructure, not only application code.

    Agent configuration files matter too. Because they steer behaviour across future interactions, they behave like configuration items: a change to one alters the output of every later session. That is an inference rather than a statement in the standard, but it is a sound one for change control.

    The practical consequence is a scoping decision. Define 'AI-written code' to include every artifact an agent can change, then bring all of it into the same review, versioning and approval scope as application code. Where the scope is narrower, a pipeline change made by an agent can bypass the controls your lifecycle assumes are in place.

    Mapping process areas to agent and code activity

    The table gives a practitioner reading of five process areas. It shows what changes when the author is an agent and what a team would need to be able to show.

    • Implementation: Agents author and modify code, scripts and configuration. Define which actions and paths an agent may touch, and record the permitted scope.
    • Verification: Review and testing must cover agent changes to pipelines and dependencies, not only application diffs. Make AI authorship visible to reviewers.
    • Validation: Confirm that agent-assisted changes meet intended use in the target environment. Retest agents after material changes to prompts, tools, memory, retrieval, policies or model providers.
    • Configuration management: Version agent configuration files, build scripts and CI/CD definitions as controlled items. Tie each change to an identifiable actor and an approval.
    • Operation and monitoring: Track what agents actually did at runtime, including commands, file writes, package installs and pushes, and retain that record.

    Where runtime enforcement and provenance support the processes

    Review after the fact catches problems late and depends on reviewers noticing them. OWASP describes pre-execution hooks on shell commands, file edits and pushes as a pattern for coding agents, which supports enforcing policy in the execution path rather than relying only on later review. Sandboxing the agent environment limits what an agent can reach, but it complements per-action policy decisions and does not replace them.

    Human approval needs careful design. OWASP cites an Anthropic report that Claude Code users approve 93% of permission prompts, which suggests that per-action approval becomes habitual. A sensible inference is to reserve human escalation for higher-risk actions and let policy allow, redact or block the rest.

    Trussed enforces policy in the execution path of coding assistants, agents, tools and MCP servers, with decisions to allow, redact, block, rate limit or escalate for human approval, applied to individual interactions and tool calls. It also provides code provenance covering the origin, licence and security context of code, and generates audit-ready evidence from enforcement. These support the implementation, configuration management and operation and monitoring areas above. They do not replace verification and validation design, agent retesting, or your own approval workflows. They also do not cover model or dataset provenance, or end-to-end tracing of agentic workflows.

    Evidence to expect, and gaps you must close yourself

    An auditor reviewing an AI-assisted pipeline would reasonably ask for four things: what each agent was permitted to do, what it did, where the code came from, and how changes were approved. In concrete terms, that means policy definitions with version history, a record of allowed, redacted, blocked and escalated actions, origin, licence and security context for AI-written code, and approval records for changes to pipelines and agent configuration. Runtime enforcement can generate the action records and provenance context. Policy definitions, approval workflows and retention rules come from your own process design.

    Several gaps remain with the enterprise whichever tooling is chosen. Process documentation that names agents as actors is yours to write. Structured security testing before production and after material change is yours to run. Risk management should begin at Plan and Design and continue through the lifecycle, as NIST AI 100-1 describes, rather than concentrating at code review. Frameworks such as the NIST AI RMF can inform governance, but they were developed independently of ISO/IEC 5338, so a crosswalk helps alignment without removing the need for your own control mapping.

    The tradeoff is between friction and coverage. Tight policies reduce risk but slow developers, and broad escalation creates approval fatigue. Start with high-consequence actions such as pushes, pipeline edits and package installs, then tune from the evidence.

    From life cycle process to agent evidence

    Process

    Life cycle processes define what must happen to AI-written code.

    Control

    Policy decides which agent actions are allowed, redacted, blocked or escalated.

    Provenance

    Origin, licence and security context travel with the code.

    Evidence

    Enforcement decisions are retained for review and audit.

    Map your coding agents to your lifecycle processes

    Talk through how runtime enforcement and code provenance can produce audit-ready evidence for AI-assisted development in a regulated enterprise.

    Explore Agent and Tool-Call Enforcement