{"question":"Our AI agent approved a refund that a policy should have blocked, and the customer's lawyer is asking which rules were in force at that moment and who approved them. Our logs show the action but not the rule set. How can we prove which rules the agent was following, and what does the new IETF rule provenance draft say to record?","slug":"how-to-prove-which-rules-an-ai-agent-was-following-when-it-made-a-decision","url":"https://www.rightshold.com/answers/how-to-prove-which-rules-an-ai-agent-was-following-when-it-made-a-decision","short_answer":"An action log shows what an AI agent did. After an incident, the harder question is whether it was allowed to, and that needs facts fixed at the moment of the decision: which rules were in force, who wrote and approved them, what the check returned, and whether a person stepped in. An experimental IETF Internet-Draft posted on October 11, 2026, Rule Provenance for Autonomous AI Agent Audit Records, proposes a way to record exactly that on top of the Agent Audit Trail log format. Every rule change becomes a new numbered version with who set it, who approved it, when it takes effect and a SHA-256 hash, and a recorder has to receipt it before any decision can rely on it. A version whose effective time is earlier than the moment the recorder took it in is marked void, so a rule can't be backdated after an incident. Before a consequential action, the evaluator signs a decision record that binds the exact request to a hash of every rule version in force (the policy snapshot), and approvals and overrides go in separate later records. Records of consequential actions must reach a recorder outside the operator's control, and that recorder must publish its log head to an external log within 24 hours. The draft is frank about the limits: a verified session still doesn't prove the agent obeyed every rule, it can't catch an action or rule that was never recorded, and an evaluator the operator runs gives the operator's own account. It is an individual draft with no known implementations, not an IETF standard.","checklist":["Give every rule a stable ID and a version number, and never edit a version in place. A change, including switching a rule off, is a new version that names the version it replaces.","For each version, record who set it and when, who approved it and when, the rule language, its scope (which agents, action types and tools) and the time it takes effect. Hash those fields so the version can't be quietly rewritten later.","Send each version to a recorder you don't run before it takes effect. The draft suggests setting the effective time at least the receipt deadline after sending (60 seconds unless the session sets another value), so the version arrives first.","Before any action that can move money, commit you to an obligation, change data outside the agent's own workspace or contact someone outside your organization, write a signed decision record with the exact request, a hash of every rule in force for that agent, the result and the governing rule.","Write approval requests, answers and overrides as separate later records that repeat the original request and result, so the first evaluation is never rewritten. An override needs a named principal, a time and a reason.","Let a permitted decision be used once, before its expiry time, and only while the agent's rule set is unchanged. Mark it used in durable storage before the action starts, and derive the downstream idempotency key from it where the system accepts one.","Keep the rule history and decision records for at least a year (the draft asks for at least 365 days for sessions with consequential actions), and have the recorder publish its log head to an external transparency log.","When you show the records to someone, say what they can't prove: an action or rule that was never recorded is invisible, and an evaluation run on your own systems is still your own account."],"sections":[{"heading":"What the IETF rule provenance draft adds to an agent audit log","points":["The draft starts from the Agent Audit Trail format, which gives agents a tamper-evident log. In that format a decision record can name the policy it relied on, an action can be marked denied, and a human override can be noted. What it doesn't record, the draft says, is the rules themselves: nothing says when a policy was written or by whom, so a rule added after an incident looks the same as one that was there all along, and nothing records the full set of rules in force, so an operator can show a reviewer the rules that suit it and leave out the one that applied. The base format also can't tell \"no rule applied\" apart from \"the rules could not be checked\".","The draft also raises the question of who holds the log. The base format asks for the recorder to be a separate component with its own key, which protects the log from the agent but not from the organization that runs the agent, because that organization still owns the recorder. The profile's answer is to require that records of consequential actions reach a recorder outside the operator's control.","It is an individual Internet-Draft posted on October 11, 2026, with intended status Experimental, and it expires on April 14, 2027. It is written against revision -06 of the Agent Audit Trail draft, which the IETF datatracker shows reached revision -11 on November 21, 2026; the profile says a base change it depends on would bring a new profile version. Its implementation status section says no implementations are known."]},{"heading":"How each rule version is recorded so it can't be backdated","points":["A rule record carries a rule ID that stays the same across versions, a version number that starts at 1 and goes up by exactly one each time, the rule language, the rule body (or a reference to it with a hash of the content), an effect of allow, deny, limit, require_approval or retired, a scope naming the agents, action types and optionally tools it covers, and the time it takes effect. It also names who set the version and when, who approved it and when, and which version it supersedes. The rule hash is the SHA-256 of the canonical JSON of the fields that identify the version and decide what it means, so a verifier that computes a different value reports a mismatch.","Approval is required for any version that a decision about a consequential action relies on; a verifier flags reliance on a version with no approver as an unapproved rule. The draft notes that the approval fields are the operator's own statements, made attributable by the record's signature, and that this version of the profile can't prove the approver actually held that authority.","The recorder decides each version's status. It rejects a second, different record for the same rule and version number, a version whose supersedes link doesn't match the last accepted one, and a version whose effective time isn't later than its predecessor's. A version whose effective time is earlier than the moment the recorder took it into its log is marked void, with no tolerance, and never becomes active. Rejected and void records stay in the log as evidence of the attempt. A verifier reports a decision that relied on a version the recorder received after the decision was evaluated, or one approved after that point, as a retroactive rule."]},{"heading":"What a decision record shows before the agent acts","points":["For an agent at a given time, the policy snapshot is a sorted JSON list of the rule ID, version and hash of every version active for that agent, and its hash goes into every decision record. Anyone holding the rule records can recompute the snapshot for the same agent and time. A mismatch means the evaluator used rules the recorder was never given or left out rules the recorder holds. A match shows the evaluator used the same rules the recorder holds, but on its own it can't show the operator handed over every rule it has.","When several rules match, all of them apply and the strongest effect wins, in the order deny, require_approval, limit, allow. A limit result means the request exactly as recorded is within every matching limit; the evaluator must not quietly change a request to make it fit. When nothing matches, the result is no_rule and the posture the session declared for that case (allow or deny) decides.","Approval requests carry an expiry, and an answer counts only if it arrives in time and matches the request's digest. An override, letting through something the decision would have refused, records who, when, why and which rules it overrode. The last record of a decision is the final authorization, marked permitted or refused with its basis: the rules, an approval, an override or the session's no-rule posture. A permitted authorization allows exactly one execution, stops being usable at its expiry time or as soon as the agent's rule set changes, and the record of the action has to point back to it and repeat the request exactly. The draft adds that it can't promise an external side effect happened exactly once if the outside system can't enforce or report that."]},{"heading":"Who holds the records and what a verifier can conclude","points":["Records of consequential actions must go to at least one independent recorder. For the records in question, that means none of the operator, vendor, integrator or model provider has control (10 percent or more beneficial ownership, or the right to direct it) of the recorder; nobody with administrative or key access to the recorder works for or has such access at those parties; its keys, storage and hosting aren't controlled by them; its fees don't depend on what the records show; and no more than half its revenue in the previous 12 months came from those parties. A recorder component inside the operator's own systems doesn't qualify. The recorder publishes a signed independence statement, and a verifier reports independence as \"asserted\" unless an audit report for the period is available.","An independent recorder must publish a signed head of its log, covering each consequential record and each rule record, to an external service within 24 hours: either a transparency log with inclusion and consistency proofs as in RFC 9162, or a time-stamping authority under RFC 3161 together with publicly retrievable heads and consistency proofs on request. Two heads of the same size with different roots are reported as recorder equivocation.","A verifier runs every named check and reports each problem in one of four classes: failure, exception (such as running without receipts in a declared degraded mode), not performed, or informational. The overall result is unsupported, a fail if any failure was found, unverifiable if a check couldn't be run, verified_effects_only if the verifier doesn't implement the rule language, or verified. The draft says even a verified session is not proof that the agent obeyed every rule. It separates integrity (records unchanged since receipt), which it provides; completeness, where it catches gaps, missed heartbeats and snapshot mismatches but not an action or rule never recorded at all; and authenticity, where an evaluation is only as good as the evaluator that signed it. It recommends, without requiring, an in-path evaluator run by an independent party that works only from rule versions received from an independent recorder."]}],"checks":[],"ask_rightshold":{"start":"https://www.rightshold.com/start?ref=seo","mcp_endpoint":"https://www.rightshold.com/mcp","ask":"Before the new version of our support agent's refund-limit rule takes effect, record a receipt for it: rule ID and version, the version it replaces, effect, scope, effective time, who set and approved it by role, and the SHA-256 of the full rule record, with no customer data.","mcp_call":{"tool":"record_action","arguments":{"action_type":"agent.rule_version_recorded","outcome":"success","occurred_at":"2026-11-21T16:50:00Z","client_event_id":"support-agent:rule:refund-limit:v4","summary":"rule refund-limit v4 supersedes v3; effect limit (refunds up to 100 USD); scope agent support-agent, action type tool_call, tool payments.refund; effective_from 2026-11-21T17:00:00Z; set by role support operations lead, approved by role finance controller; full rule record and rule_hash kept in our policy log","action_sha256":"<sha256 of the canonical JSON of the full rule record>"}},"also":["Needs an API key. Send the hash and a summary without personal data; keep the full rule record and decision records in your own systems.","Record each rule version before its effective time, with its own client_event_id, so a retry doesn't create a second entry.","Anyone you share the receipt with can check it against your stored rule record without an account.","A receipt shows what you submitted and when. It isn't an implementation of the IETF draft, doesn't evaluate rules or gate the agent, and doesn't prove the agent followed the rule."],"scope":"Rightshold isn't affiliated with the IETF or the draft's author, and its ledger isn't an implementation of this profile or of the Agent Audit Trail format. Details are from draft-piehl-agent-rule-provenance-00 (October 11, 2026) and the IETF datatracker pages for it and for draft-sharif-agent-audit-trail, read November 21, 2026. Internet-Drafts are works in progress that can change or lapse at any time; this one is an individual submission, not an IETF standard or working-group document. Not legal or compliance advice."},"sources":[{"title":"IETF: draft-piehl-agent-rule-provenance-00, Rule Provenance for Autonomous AI Agent Audit Records (October 11, 2026)","url":"https://www.ietf.org/archive/id/draft-piehl-agent-rule-provenance-00.txt"},{"title":"IETF Datatracker: draft-piehl-agent-rule-provenance (status)","url":"https://datatracker.ietf.org/doc/draft-piehl-agent-rule-provenance/"},{"title":"IETF Datatracker: draft-sharif-agent-audit-trail (status and revision history)","url":"https://datatracker.ietf.org/doc/draft-sharif-agent-audit-trail/"}],"related":[{"title":"What does the IETF Agent Audit Trail draft require in each AI agent log record?","url":"https://www.rightshold.com/answers/what-does-the-ietf-agent-audit-trail-draft-require-in-each-ai-agent-log-record"},{"title":"How to audit which human authorized an AI agent action","url":"https://www.rightshold.com/answers/how-to-audit-which-human-authorized-an-ai-agent-action"},{"title":"Make an AI agent's audit log append-only","url":"https://www.rightshold.com/answers/how-to-make-an-ai-agents-audit-log-append-only-so-even-an-admin-cant-silently-delete-entries"},{"title":"What does an Azure agent controls receipt record?","url":"https://www.rightshold.com/answers/what-does-an-azure-agent-controls-receipt-record-and-is-it-an-audit-trail-for-ai-agent-actions"},{"title":"Show a customer or regulator that a human reviewed an AI decision","url":"https://www.rightshold.com/answers/how-to-show-a-customer-or-regulator-that-a-human-reviewed-an-ai-decision-before-it-went-out"}],"computed_from":"Curated guidance; license verdicts computed from Rightshold's license profiles at render time. Not legal advice.","updated":"2026-11-21"}