ISO/IEC 5338 Measurement Process: Which Runtime Metrics Should LLMs and AI Agents Report?
Start from information needs, not from available telemetry. Each runtime metric should answer a stated question and fall into one of four categories: operational, quality, safety or policy enforcement. Policy-enforcement outcomes (allow, redact, block, rate limit, escalate) and the evidence attributes behind them should be captured for every interaction and tool call, because that is the level at which an auditor can verify what the AI was allowed to do and what it did.
Mapping the measurement process to an LLM or agent deployment
- 1
1. Information needs
Write the questions down. Examples: Did every interaction and tool call pass an enforcement point? Which policy version applied? How often did a human approve an escalated action?
- 2
2. Measures
Define each metric with its construct, unit, source and intended use. Do not combine different constructs into one aggregate score.
- 3
3. Data collection
Capture records at the interaction and tool-call level, with consistent timestamps, identifiers and policy context.
- 4
4. Analysis
Apply the validity activity. Decide in advance how you will conclude that a result is trustworthy, for example by checking for gaps in coverage.
- 5
5. Reporting
Report to named roles at a defined frequency, with enough record detail that results can be traced back to individual events.
Checklist: evaluating your runtime measurement coverage
- Each metric traces to a documented information need and a named consumer.
- Each metric has a stated construct, unit and intended use, and no aggregate blends unrelated constructs.
- Model performance metrics are reported separately from policy-enforcement metrics.
- Every interaction and tool call produces a record with timestamp, policy version, decision and action taken.
- Bypass coverage is measured, and you can say how bypass would be detected.
- Validity criteria, reviewer roles and review frequency are defined before results are reported.
What the standards give you, and what they leave to you
ISO/IEC 5338:2023 defines processes and concepts for describing the life cycle of AI systems based on machine learning and heuristic systems. Its processes support the definition, control, management, execution and improvement of the AI system across life cycle stages. Measurement is one of those supporting activities.
The most useful reference for how to run measurement is ISO/IEC/IEEE 15939:2017. It elaborates the measurement process from ISO/IEC 15288 and ISO/IEC 12207, and defines the activities needed to specify what measurement information is required, how measures and analysis results are applied, and how to decide whether results are valid. It describes a process for defining a suitable set of measures that address specific information needs, and ISO describes it as tailorable. A revision, ISO/IEC/IEEE DIS 15939, is listed as a draft as of November 2026, so the 2017 edition remains the published text.
Neither standard supplies a list of LLM or agent metrics. The metric set in this guide is a practical derivation from the measurement activities, not a requirement of either standard. That distinction matters when you present it to an auditor: you are showing a reasoned measurement design, not claiming a prescribed list.
Four metric categories, organized by the question they answer
NIST AI 800-2 (initial public draft) addresses benchmark evaluation rather than production monitoring, but one principle transfers well. The evaluation objective, including what is being measured, should drive design and reporting, and aggregates should not blend multiple constructs arbitrarily. For runtime measurement, this argues for keeping model performance separate from policy enforcement. A deployment can score well on latency and answer quality while enforcing policy on only part of its traffic.
The categories below are an editorial structure. Each answers a different question for a different reader.
- Operational: is the system running as designed?: End-to-end latency, enforcement-path latency overhead, token usage, error rate and availability, by model and by tool.
- Quality: is it doing the task well?: Task success against defined evaluation criteria, tool-call success and failure rates, and refusal rates where refusals indicate degraded usefulness.
- Safety: is it avoiding harmful behavior?: Detections of sensitive data, attempts to trigger prohibited actions, and unsafe output flags, each with a defined detection method.
- Policy enforcement: was policy applied, and with what result?: Counts of allow, redact, block, rate limit and escalate outcomes, policy version applied, bypass coverage, human approval outcomes and evidence freshness.
What must be captured per interaction and per tool call
Aggregate dashboards show trends. They do not show what happened on a specific request. To demonstrate what an AI system was allowed to do and what it did, the unit of record needs to be the individual interaction and the individual tool call.
A record an auditor can use will typically carry a timestamp, an identifier for the interaction or tool call, the calling user or agent, the target model or tool, the policy version evaluated, the decision, the action actually taken, the outcome of any human escalation, and a retention class. This attribute list is a recommended design, not a statement of what any specific regulator requires. Confirm the required attributes against the frameworks that apply to you.
The decision and the action taken should be recorded separately. A policy may decide to redact, and the record should show what was redacted before the content reached the model or tool. Bypass coverage deserves its own measure: the share of interactions and tool calls that passed through an enforcement point, and how you would detect traffic that did not. Evidence freshness and enforcement-path latency are related measures. Both are worth defining, and no threshold is universal.
Some measures sit outside this scope. Workflow completion across multiple tasks, or causal chains across several agents, need correlation beyond a single interaction or tool call. Treat those as a separate measurement need with its own design, rather than assuming per-call records will answer them.
Governance alignment and where runtime enforcement fits
NIST publishes crosswalks between the AI RMF and both ISO/IEC 5338 and ISO/IEC 42001. The 5338 crosswalk aligns AI RMF life cycle stages with those in 5338, which helps place runtime measurement within risk management activities. In NIST's mapping to the FDIS text of 42001, AI RMF Govern 1.5, on ongoing monitoring and periodic review with defined roles and review frequency, maps to clause 8.2, and 42001 B.6.2.6 on AI system operation and monitoring maps to Govern 1.7. Treat these as NIST's mappings to the draft text. The practical implication is the same either way: monitoring needs owners and a review cadence, not only instrumentation.
A measurement design that treats policy outcomes as events is easier to defend than one that reconstructs them later. Trussed enforces policy in the execution path across models, agents, tools and MCP servers, with outcomes of allow, redact, block, rate limit or escalate for human approval. Because enforcement happens at runtime, not reviewed after the fact, each decision generates audit-ready evidence as a byproduct. The scope is individual interactions and tool calls, which is the level this guide recommends for per-event records.
From measurement process to runtime metrics
Information needs
The questions architects, risk owners and auditors need answered.
Measures
Operational, quality, safety and policy-enforcement metrics, each with a stated construct.
Collection and analysis
Interaction-level and tool-call-level records, checked for validity.
Reporting
Evidence that shows what the AI was allowed to do and what it did.
Test your runtime measurement coverage
Walk through your current metrics against the checklist, and see how enforcement in the execution path produces evidence at the interaction and tool-call level.
Talk to an Expert