failure-recovery

Identify and resolve agent delegation failures using retry budgets and rollback protocols.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCE-Joshhh77/JCE-Opencode-Tools --skill failure-recovery-jce-joshhh77
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: failure-recovery
Source: https://github.com/JCE-Joshhh77/JCE-Opencode-Tools/tree/main/config/skills/failure-recovery
Command: npx skills add https://github.com/JCE-Joshhh77/JCE-Opencode-Tools --skill failure-recovery-jce-joshhh77

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Addresses failures in agent delegations by providing structured recovery guidance, budgets, and escalation protocols to prevent cascading errors.

Core Features & Use Cases

  • Failure budgets and retry governance to cap attempts and guide next steps.
  • Rollback and rollback-ready workflows to safely revert risky changes.
  • Anti-pattern detection and circuit-breaking to stop futile cycles and escalate when needed.
  • Clear escalation chains that move from subordinate agents to human decision-making when necessary.
  • Audit-friendly failure reporting to document root causes and decisions.

Quick Start

Inspect a failing delegation and apply the failure-recovery workflow to plan, execute a fix, and verify recovery.

Frequently Asked Questions about failure-recovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop infinite retry loops when an agent delegation keeps failing?

To stop infinite retry loops during agent delegation, you need a failure recovery workflow that enforces a strict maximum retry budget. This caps attempt counts and triggers circuit-breaking rules to halt futile cycles and prevent cascading errors.

What is a circuit breaker in the context of agent delegation failures?

A circuit breaker in agent delegation is an anti-pattern detection mechanism that stops futile retry cycles. It monitors for stubborn output or loop conditions and automatically halts operations to escalate the failure instead of continuing to attempt failed delegations.

How do I safely rollback changes when a delegated agent verification fails?

To safely rollback changes after a delegated agent verification fails, you need to implement rollback-ready workflows with predefined rollback protocols. These ensure risky changes are safely reverted to maintain system stability while documenting the failure root cause.

When should I escalate an agent failure to a human decision-maker?

You should escalate an agent failure to a human decision-maker when retry budgets are exhausted and circuit-breaking rules trigger. Clear escalation chains move unresolved failures from subordinate agents up to human decision-making to ensure safe, auditable recovery.

Can I apply failure recovery protocols across different types of agents?

Yes, you can apply failure recovery protocols across different agent types. The workflow manages verification failures, stubborn output, and loop conditions uniformly across delegation chains, enforcing retry budgets, rollback steps, and escalation paths regardless of the specific agent.

How do I document agent delegation failures for post-incident audits?

To document agent delegation failures for audits, use audit-friendly failure reporting mechanisms that record root causes and decisions. This ensures safe, auditable recovery by tracking the failure context, rollback steps executed, and escalation paths triggered during resolution.