Skip to content
Back to skills

Partial Failure Handling

ASecurity

Handle operations that touch several services where some succeed and some fail, without leaving inconsistent state. Use when a single user action calls multiple systems.

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentsgo

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add Amey-Thakur/AI-SKILLS --skill partial-failure-handling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Partial Failure Handling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Partial Failure Handling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/amey-thakur-partial-failure-handling/badge)](https://www.skillsdirectory.com/skills/amey-thakur-partial-failure-handling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: partial-failure-handling
description: Handle operations that touch several services where some succeed and some fail, without leaving inconsistent state. Use when a single user action calls multiple systems.
---

# Partial failure handling

An action spanning several services succeeds partially by default: the
payment took, the record did not save, the email never sent. Distributed
transactions are not available, so the answer is design rather than
rollback.

## Method

1. **Order operations so the reversible ones come first.** Do the
   undoable work last, which minimises what must be compensated (see
   agent-delegation-protocol for the analogous reasoning).
2. **Make each step idempotent.** Retrying the whole operation must not
   duplicate the steps that already succeeded (see idempotency).
3. **Record progress durably between steps.** A record of what has
   completed is what lets a retry resume rather than restart.
4. **Design compensating actions for what cannot be retried.** A refund
   compensates a charge, since undoing is often impossible but
   compensating is not (see saga-pattern).
5. **Prefer eventual consistency with a reconciler.** A background
   process that detects and repairs mismatches is more robust than
   attempting atomicity across services.
6. **Surface partial state honestly to the user.** Payment taken, order
   pending is better than a success that is not true or an error that
   hides a completed charge.
7. **Alert on unreconciled states.** Records stuck mid-operation are the
   signal that the compensation path is broken (see
   integration-monitoring).

## Boundaries

Compensation is not rollback: side effects such as sent emails and
charged cards leave traces. Reconciliation adds a system to build and
operate. Some operations genuinely cannot be made safe and need a human
process for the failure case.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…