Agentic data workflows need a plan for what happens after the agent was technically allowed to act.

Not every correction is a rollback

Agents will eventually write data, open tickets, update records, trigger workflows, and call operational APIs. Some actions will be valid at the time and wrong after a later validation, approval, policy review, or downstream effect. A database rollback does not cover that whole world.

A compensating transaction is a deliberate follow-up action that offsets or repairs a previous action. For agentic data, compensation should be designed before write access is granted. The platform needs to know which actions are reversible, which require human approval, which create new evidence, and which cannot be safely compensated.

Core idea: Agentic data compensating transactions make AI-initiated changes reviewable, reversible where possible, and honest where reversal is not possible.

Events and provenance give compensation a trail

The CloudEvents specification defines a common event metadata model. W3C PROV gives teams a provenance model for connecting entities, activities, and people involved in producing a data artifact.

Those standards do not define compensation for agentic data by themselves. They give useful building blocks. The original action, compensating action, actor, reason, affected object, and evidence packet can be connected in a portable way.

Design compensation before granting write access

  • Classify each agent action as reversible, compensatable, review-only, or irreversible.
  • Define the compensating action, owner, deadline, and evidence record for each write workflow.
  • Use idempotency keys so retries do not create duplicate changes.
  • Attach policy decision, validation result, and downstream notification to the action pair.
  • Escalate irreversible or externally visible changes before execution.

This extends agentic data and ODI, idempotency keys for write workflows, and state machines for agentic workflows. Reversibility is a design property, not a rescue operation.

What breaks first

  • The agent retries a failed write and creates two downstream actions.
  • A compensating action updates data but not the audit trail.
  • The workflow assumes rollback is possible after an external notification has already been sent.
  • Human approvers see the original action but not the planned compensation path.

Questions to ask before agent writes

  • Which actions can be undone, offset, or only explained?
  • What evidence connects original and compensating actions?
  • Who approves compensation when policy or validation fails later?
  • Can retries, timeouts, and partial failures be handled without duplicate effects?

Sources to start with

These primary sources anchor the technical claims in this guide.

Agent write access is not mature until the undo story is part of the design.