Technical Guide

    ISO/IEC 5338 System Requirements Definition: How to Write AI Behavior Limits You Can Enforce at Runtime

    Write each AI behavior limit as a requirement with five parts: a subject, a condition, a scope of one interaction or tool call, an enforcement action (allow, redact, block, rate limit or escalate for human approval), and an evidence output. A limit written this way can be tested, enforced at the point of execution and verified later. Limits that depend on judgment across many interactions, or on organizational decisions, need design-time or organizational controls instead.

    Checking requirement quality and traceability

    • Unambiguous: two reviewers would read the subject, condition and action the same way.
    • Evaluatable: the condition can be tested on one interaction or tool call with a clear pass or fail.
    • Accurate and achievable: the condition reflects the stakeholder need and the enforcement point can actually inspect the data it names.
    • Comprehensive: the limit states what happens on a match and, where it matters, what happens when evaluation cannot complete.
    • Evidence-bearing: the limit defines the record that shows what was permitted and what occurred.
    • Traceable: each limit links to its stakeholder need, the system element that enforces it, and its verification evidence.

    Where system requirements definition sits in the 5338 lifecycle

    ISO/IEC 5338:2023 defines processes and associated concepts for describing the life cycle of AI systems based on machine learning and heuristic systems. The processes support the definition, control, management, execution and improvement of the AI system across its life cycle stages, and they can be used within an organization or a project when developing or acquiring AI systems. System requirements definition is one of those processes. Its job is to turn stakeholder needs into a set of requirements that later verification work can check.

    The standard also draws a boundary that matters for architecture. When an element of an AI system is traditional software or a traditional system, the software life cycle processes in ISO/IEC/IEEE 12207 and the system life cycle processes in ISO/IEC/IEEE 15288 can be used to implement that element. A requirement on a model component and a requirement on a conventional tool or API wrapper may therefore draw on different process families. Decide this per element before writing limits, so each requirement is owned by the right process.

    This guide describes a requirement-writing pattern. It does not reproduce the clause text of the standard, which you should read directly when mapping your own process documentation.

    Which limits can be enforced at runtime

    A statement such as "the assistant must not disclose sensitive data" records intent. It does not say what is inspected, when, or what happens on a match. NIST SP 800-160 Volume 1 Revision 1 describes a requirement as a statement that translates a specific need together with its constraints and conditions, and it asks that requirements be unambiguous and evaluatable. An intent statement fails both tests.

    A useful sorting question is whether the limit can be expressed as a condition on a single interaction or tool call. If it can, a runtime control in the execution path can evaluate it and apply an action. If it cannot, it belongs elsewhere. Limits that require judgment across many interactions, or that depend on organizational decisions, fall outside single-call conditions. NIST SP 1270 reflects this separation by treating pre-deployment assessment against pre-specified limits and continuous monitoring after deployment as distinct activities, and by calling for detailed policies and procedures for handling system output and behavior.

    Sorting limits by where they are controlled

    Use this split when reviewing a requirements backlog. The examples are illustrative.

    • Runtime enforcement: Conditions on one request, response or tool call: personal data patterns in an output, a tool call outside an approved list, a call rate above a set threshold, a write action that needs a named approver.
    • Design-time controls: Properties established before release and checked through verification: training and evaluation choices, model selection, and testing against pre-specified limits.
    • Organizational controls: Decisions and procedures: who may approve an escalation, how output handling policies are maintained, how monitoring findings are reviewed and acted on.

    A pattern for writing an enforceable behavior limit

    Each limit should state five elements. Leaving any of them implicit is where ambiguity enters. The sequence below also gives you a natural review order.

    • 1. Subject: Name the actor: a specific model, agent, tool or class of tool call. "The system" is too broad to enforce.
    • 2. Condition: State a test that returns true or false on one interaction, such as "the tool name is not in the approved list for this agent".
    • 3. Scope: Bound the data, action or resource covered, and state that evaluation happens per interaction or per tool call.
    • 4. Enforcement action: Choose one outcome when the condition is met: allow, redact, block, rate limit, or escalate for human approval. For escalation, name the approver role and the default if no one responds.
    • 5. Evidence output: Specify the record produced: the limit identifier, the interaction evaluated, the decision and the action taken.

    Before and after: vague and enforceable limits

    The rewrites below keep the original intent but make it testable. Thresholds are placeholders to be set from your own stakeholder needs.

    • Sensitive data: Before: the assistant must not disclose sensitive data. After: when a model response to a user contains a value matching a defined sensitive-data pattern, the response is redacted at that value before delivery, and the matched category, the limit identifier and the action are recorded.
    • Agent scope: Before: agents must act within approved scope. After: when an agent issues a tool call, the call is blocked if the tool is not in that agent's approved list, and the agent, tool, arguments class and decision are recorded.
    • Volume: Before: agents must not overuse external services. After: when an agent exceeds a set number of calls to a named tool in a defined window, further calls are rate limited, and each limited call is recorded.
    • High-impact actions: Before: humans must oversee risky actions. After: a tool call that writes to a defined system of record is held and escalated to an approver in a named role, and the request, approver identity and outcome are recorded.

    Enforcement in the execution path, and its limits

    Enforcing a limit in the execution path means the condition is evaluated and the action applied when the model, agent or tool call runs, not reviewed after the fact. That gives a single place where a requirement becomes behavior and a single place where evidence of that behavior originates. The decision record for each interaction is what lets a reviewer later confirm that a requirement was fulfilled, and what lets an auditor see what the system was allowed to do and what it did.

    Trussed enforces policy in the execution path across models, agents, tools, MCP servers, AI sites and coding assistants, with allow, redact, block, rate limit and escalate for human approval as the available actions. Its scope is individual interactions and tool calls, which matches the pattern above. Enforcement generates audit-ready evidence that is mapped to frameworks including HIPAA, NAIC, NYDFS, the EU AI Act and NIST. It does not address limits that depend on judgment across many interactions or on organizational decisions, and it does not replace the design-time controls described earlier.

    Keep expectations calibrated. NIST notes that requirements and their verification and validation methods are necessary but not sufficient to deem a system adequately secure, and that requirements can contain errors, inconsistencies or gaps in coverage. Treat runtime limits as one verifiable layer alongside pre-deployment verification, continuous monitoring and the organizational procedures that govern them. A practical first step is to take ten existing behavior statements, sort them using the table above, and rewrite the runtime-eligible ones with all five elements.

    Anatomy of an enforceable behavior limit

    Subject

    The model, agent or tool the limit applies to.

    Condition

    A test that can be evaluated on a single request, response or tool call.

    Scope

    The data, action or resource the condition covers.

    Enforcement action

    Allow, redact, block, rate limit or escalate for human approval.

    Evidence output

    A record of what was permitted and what happened.

    Turn behavior statements into enforceable requirements

    See how policy is enforced in the execution path and how each decision becomes audit-ready evidence for a regulated enterprise.

    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.