Technical Guide

    LLM Incident Root Cause Analysis: Distinguishing Model Failures from Policy Gaps

    Treat attribution as an evidence question. Ask whether a policy covered the data, tool or action at the time of the interaction and was enforced, then ask whether the model's output deviated from what that policy and the task required. A deviation inside an enforced policy points to a model failure. Harm that occurred because no enforceable rule applied points to a policy gap. Many incidents are a combination of both.

    A decision framework for classifying an incident

    1. 1

      1. Reconstruct the interaction

      Establish the input, the output and any tool call, including parameters, as they occurred.

    2. 2

      2. Identify the applicable policy

      Determine which rule, if any, covered this data, tool or action at that time. Record whether none existed, one existed but was not enforced, or one was enforced.

    3. 3

      3. Check the enforcement decision

      Confirm whether the interaction was allowed, redacted, blocked or escalated, and who approved any escalation.

    4. 4

      4. Compare output to intent

      Judge whether the output deviated from what the policy and the intended task required.

    5. 5

      5. Assign the classification

      Model failure, policy gap, or combination. A defined but unenforced rule is a policy gap with an enforcement cause.

    6. 6

      6. Route remediation and record near misses

      Send each cause to its own path and capture hazards and near misses so repeat patterns become visible.

    Interaction-level evidence the classification depends on

    • Input: the prompt and any retrieved or supplied context, as received.
    • Output: the model response before and after any enforcement action.
    • Tool call: the tool, parameters and result, since prompt and response text alone would miss unsupervised execution.
    • Applicable policy: the rule version that covered the data, tool or action, or an explicit record that none did.
    • Enforcement decision: allow, redact, block or escalate, with a timestamp.
    • Approver: the person who approved an escalated action, where one was required.

    Why attribution goes wrong

    "AI incident" is a broad umbrella. Published definitions describe an event caused by undesirable or unexpected behavior of an AI system that directly or indirectly causes immediate or potential harm, and they cover unintentional failures, intentional misuse and security events. NIST IR 8621 recommends that guidelines distinguish security incidents, safety incidents, misuse, accidents, failures, malfunctions, hazards, vulnerabilities, threats and exposures. Classification therefore has to be an explicit step in the review, not an assumption.

    Without that step, reviews default to the visible symptom. A leaked record or an unwanted tool action looks like the model misbehaving, so the team swaps the model or rewrites the prompt. If the model did what it was permitted to do and nothing restricted the data or action, the same incident returns after the change. Complexity compounds the problem: finding the cause in an AI system can take weeks, which is why the evidence has to exist before the incident.

    This page offers a working framework built from published definitions. It is an editorial synthesis, not a published standard.

    Definitions: model failure, policy gap, and combination

    A model failure is behavior outside the model's expected capability within a task it was allowed to perform. NIST IR 8621 describes one category of incidents as focused on the output and logic of the model itself, including hallucinations, safety-risk outputs and generated misinformation. Instruction-following errors and brittle behavior belong here too.

    A policy gap is the model behaving as designed where no enforceable rule applied. Candidates include a missing restriction on data, tool access or action scope, misconfigured permissions, excessive autonomy, weak validation, and unrestricted downstream use of model output to construct commands. NIST SP 2400-102 notes that output may be used dynamically, for example to build a command executed without human supervision, which makes the absence of a rule on that path a control question rather than a model question.

    A combination occurs when a model error reached harm only because nothing restricted the consequence. A hallucinated instruction is a model failure. A tool that executes it without a restriction or approval step is a policy gap. Both need remediation.

    Misuse and jailbreak definitions add a useful signal. Both depend on a technical restriction or policy existing and being circumvented. Whether a restriction was defined and enforced is therefore the pivot of the classification.

    How each classification maps to a remediation path

    Remediation should follow the cause. Model changes address behavior the model should not have produced. Enforceable rules address what the model was able to reach or do. Continuous review matters in both paths, because no restriction is universally robust and technical restrictions reduce risk rather than eliminate it.

    • Model failure: Evidence: a policy was enforced and the output still deviated from the task. Remediation: model change, fine-tuning or prompt revision, then regression and red-team checks. Add a rule only if one could contain the consequence.
    • Policy gap: Evidence: no rule covered the data, tool or action, and the output was within expected behavior. Remediation: runtime enforcement rule, redaction, tool restriction, scoped permissions or human-approval escalation.
    • Defined but unenforced policy: Evidence: a rule existed on paper but no enforcement decision was recorded. Remediation: move the rule into the execution path and verify that decisions are produced.
    • Combination: Evidence: the output deviated and nothing limited the consequence. Remediation: both paths, tracked as separate actions with separate owners.

    Edge cases and tradeoffs

    Mixed human, agent and permission factors are common. In a publicly reported internal agent incident, an agent supplied a solution that an employee implemented, and sensitive data became available to engineers for two hours. Reports describe misconfigured permissions, excessive autonomy and weak validation as enabling factors for incidents of this kind. Cases like this show why a single label is often wrong. The agent's advice, the human action and the permission scope each need to be assessed against the record.

    Security incidents add another wrinkle. One published framing holds that if a hosted model is not supposed to service a request, serving it is a security incident. That turns on whether a rule defining what the model should service existed and was enforced. A jailbreak against an enforced restriction is a different finding from one against a restriction that was never implemented.

    There is a tradeoff in strictness. Treating every incident as a policy gap can produce overly broad restrictions that block legitimate work. Treating every incident as a model failure leaves the same exposure in place. The classification step keeps both tendencies in check, and tracking repeated incidents of the same class helps decide between a model change and a new rule.

    Governance should also settle ownership. Teams often lack clear channels for reporting model behavior as opposed to a traditional security vulnerability. Define who owns triage, who owns the classification decision and where each remediation path is routed. The NIST Generative AI Profile expects after-action reviews that identify gaps and feed updates to incident response processes.

    Evaluating whether your runtime controls can support this analysis

    Test your environment with a single recent incident. Can you show which policy applied to the prompt, data and tool call, and what decision was recorded? Can you tell an absent policy from one that was defined but not enforced? Are tool-call parameters and approvers captured? Can the record be exported with the incident fields above? If any answer is no, reviews will rely on reconstruction after the fact, and classification will remain a judgment call.

    This is the problem Trussed addresses. It enforces policy in the execution path across models, agents, tools and MCP servers, with allow, redact, block, rate limit and escalate-for-approval decisions applied to individual interactions and tool calls. Enforcement generates audit-ready evidence mapped to HIPAA, NAIC, NYDFS, the EU AI Act and NIST, so an incident can be classified from the record. It is enforced at runtime, not reviewed after the fact. Trussed does not provide model provenance, model lineage or end-to-end tracing of agentic workflows, so those questions need other sources.

    Two questions that classify an LLM incident

    Was a policy defined and enforced?

    For this data, tool or action, at the moment of the interaction or tool call.

    Did the output deviate?

    From what the policy and the intended task required.

    Classification

    Model failure, policy gap, or a combination of both.

    Remediation

    Model-side changes for failures, enforceable rules for gaps.

    Classify incidents from the record, not from memory

    See how enforcement in the execution path produces interaction-level, audit-ready evidence for incident review.

    See How Evidence Is Produced