ACAgentic Craft

AdvancedHazelJS

Compensating action

A deliberate follow-up effect that reverses or mitigates a previously committed side effect.

Authors
editorial-team
Published
Last reviewed

Direct answer

A deliberate follow-up effect that reverses or mitigates a previously committed side effect.

Plain language

The “undo” you design when a true transaction across systems isn’t possible.

Technical explanation

Saga-style compensations (often via @hazeljs/flow): cancel reservation, issue refund, reopen ticket; must themselves be idempotent @Tool calls and authorized under PolicyEngine.

Example

If provisioning fails after creating a billing seat, run remove_billing_seat with the same logical key from a compensation step.

Related

← All glossary terms