ISO/IEC 5338 Infrastructure Management for LLM Gateways and Policy Enforcement Proxies
ISO/IEC 5338:2023 defines life cycle processes for AI systems but does not address inline gateways or proxies directly. Applying it means treating the LLM gateway or policy enforcement proxy as lifecycle-managed infrastructure: policy held as versioned configuration, changes controlled and tested, failure behaviour decided in advance, operation monitored, evidence retained, and retirement planned. The mapping in this guide is an architect's interpretation, not text from the standard.
Evaluation criteria for runtime enforcement infrastructure
Why an enforcement layer needs a lifecycle
ISO/IEC 5338:2023, "Information technology — Artificial intelligence — AI system life cycle processes", provides processes that support the definition, control, management, execution and improvement of an AI system across its life cycle stages. It is a general standard. It says nothing specific about an LLM gateway or a policy enforcement proxy, so any application to inline infrastructure is interpretation and should be presented that way to auditors.
The case for applying it is practical. A gateway or proxy sits in the path of every model call. Its rule set decides what is allowed, redacted, blocked, rate limited or escalated for human approval. A change to that rule set changes what AI is permitted to do, even if no model or application code changes. Teams that run the layer as a convenience router, outside a defined lifecycle, cannot easily show when permitted behaviour changed or who approved it.
This also separates enforcement in the execution path from after-the-fact review. Review reads records of what already happened. An inline layer determines the outcome of the call itself, so it carries the operational obligations of production infrastructure: it must be available, controlled, monitored and demonstrable.
Mapping lifecycle activities to infrastructure practice
The activities below are the ones most directly relevant to inline infrastructure. The right-hand column is the author's mapping. NIST has published a crosswalk between the AI RMF 1.0 and ISO/IEC 5338:2023 that shows aligned life cycle stages, which is a useful bridge when your risk programme is organised around the AI RMF.
- Operation: Run the layer as production infrastructure with defined ownership, runbooks and on-call coverage.
- Monitoring: Track decision outcomes, latency, error rates, capacity and unexpected shifts in block or redact rates.
- Maintenance: Patch the runtime, update rule sets and rotate credentials under a scheduled, recorded process.
- Configuration and change management: Version policies, keep baselines and an inventory of components, and require approval for each change.
- Verification and validation: Test every policy change against known cases before promotion, and re-test after runtime upgrades.
- Retirement: Export retained evidence, revoke credentials, remove the layer from the call path and record the decommissioning.
Configuration and policy change control
NIST SP 800-53 Rev. 5 supplies a useful vocabulary here. Its configuration change control concepts include testing, validation and documentation of changes, review of system changes, automated notification and prohibition of unauthorized changes, and restriction of who can alter configuration. Its configuration management plans define how changes advance through change management, how baselines are updated, how component inventories are kept, and how development, test and operational environments are controlled. Older NIST text also describes proxies and gateways as boundary devices that use rule sets or configuration settings to restrict services, which supports treating the rule set as a controlled configuration item.
In practice, keep enforcement policy separate from application code, in version control, with a baseline for each environment. Each change should carry a diff, test results and a recorded approver. Promote through separate development, test and production environments, and alert on any change to production policy that did not pass through that path. Give the gateway and any agents behind it identities and credentials managed separately from human users, so that policy administration and runtime access can be reviewed independently.
Availability and failure-mode design
Because the layer is in the path of every call, its failure modes are business decisions, not defaults. Fail-closed stops model traffic when enforcement cannot evaluate a request. That preserves control but turns an enforcement outage into an application outage. Fail-open keeps traffic flowing but allows calls that were never evaluated, and those calls will have no enforcement evidence.
There is no single correct answer. A sensible approach is to decide per route or per policy, based on the consequence of an unevaluated call. A low-risk internal summarisation route may tolerate fail-open with an alert. A route that handles regulated data or triggers tool calls generally should not. Document each decision, test it deliberately as part of verification, and record any period in which a fail-open route operated unenforced.
Capacity management follows the same logic. Enforcement adds latency to every request, so size the layer for peak load plus headroom, redundancy across failure domains, and tested degradation behaviour. Treat availability targets for the enforcement layer as part of the AI system's own service definition.
Evidence, retention and regulatory context
An enforcement layer should emit a record for every decision: the request context, the policy version applied, the outcome (allow, redact, block, rate limit or escalate) and, for escalations, the approver and result. Recording the policy version is what lets you show an auditor what the layer was configured to permit at a given time. Change records, test results and availability incidents complete the picture of lifecycle control.
NIST's agent identity guidance recommends that agent logging infrastructure be independent of the agent so it cannot be modified by it. By analogy, store enforcement evidence outside the enforcement runtime, protect it against alteration, and set retention deliberately rather than inheriting a default. Retention periods and data location should follow your own regulatory obligations.
On the regulatory side, the EU AI Act is Regulation (EU) 2024/1689. As of November 2026, the Commission's Digital Omnibus on AI proposal of 19 November 2025 would set 2 December 2027 for stand-alone high-risk AI systems and 2 August 2028 for those embedded in products, but adoption rests with the legislator. Track the outcome rather than assuming fixed dates. ISO/IEC 5338 is a lifecycle standard and this guide does not imply certification or conformance to it.
Retirement belongs in the same evidence model. Before removing the layer, export retained evidence in a usable form, revoke its credentials, and record the date from which calls are no longer enforced by it.
Lifecycle view of an inline enforcement layer
Configure
Policies and routing held as versioned, baselined configuration items
Change
Test, approve and promote rule changes across separate environments
Operate
Monitor decisions, availability and capacity in the execution path
Evidence
Retain per-decision records in a store independent of the runtime
Retire
Export evidence, revoke credentials, remove the layer from the path
Review your enforcement layer against its lifecycle
Talk through how policy change control, failure modes and evidence retention apply to your inline enforcement infrastructure.
Talk to an Expert