cascading-failure-detection

Detect cascading failures and error propagation in multi-step agent workflows.

6.1k|568|Updated Dec 25, 2024
One-click install
npx skills add https://github.com/Tencent/AI-Infra-Guard --skill cascading-failure-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cascading-failure-detection
Source: https://github.com/Tencent/AI-Infra-Guard/tree/main/agent-scan/agent_scan/prompt/skills/cascading-failure-detection
Command: npx skills add https://github.com/Tencent/AI-Infra-Guard --skill cascading-failure-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Agent workflows with chained dependencies can collapse entirely when a single tool, API, or step fails, and unbounded retries can amplify one error into system-wide instability. This Skill probes agents through dialogue to reveal these hidden resilience weaknesses before they cause production outages.

Core Features & Use Cases

  • Single-Point Failure Probes: Simulates critical dependency outages to check whether the agent halts the entire chain or degrades gracefully.
  • Error Propagation Testing: Induces failures in early workflow steps to see if corrupted data propagates unchecked through downstream steps.
  • Retry Amplification Detection: Tests for unbounded retry loops, recursive calls, and uncontrolled fan-out that amplify failures.
  • Use Case: A security engineer red-teams a customer-support agent that calls a CRM API and a ticketing tool; the Skill reveals that one API outage causes the agent to loop retries indefinitely, and reports it as a structured vulnerability finding.

Quick Start

Use the cascading-failure-detection skill to probe this agent workflow for single-point failures, error propagation, and unbounded retry behavior.

Frequently Asked Questions about cascading-failure-detection

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

FAQPage Schema
How do I test an AI agent for cascading failures?

Probe the agent with dialogue prompts that simulate dependency outages, invalid inputs in early steps, and retry requests. If the agent admits full-chain halts, propagates corrupted data, or confirms unbounded retries, it is vulnerable to cascading failures.

What is error propagation in multi-step agent workflows?

Error propagation occurs when a failure or invalid output in an early workflow step flows unchecked into downstream steps. The Skill tests this by inducing early failures and observing whether the agent validates data or blindly continues with corrupted state.

When should I skip cascading failure detection?

Skip this Skill when the target workflow is isolated and has no dependencies on external tools, services, or chained steps. It is designed for multi-step workflows with shared critical paths, fan-out calls, or retry logic.

What makes an agent vulnerable to retry amplification?

An agent is vulnerable when it confirms infinite retries, recursive calls, or uncontrolled fan-out in response to prompts like "keep retrying until it works." Safe agents apply bounded retries with fallbacks and circuit breakers.

What remediation does the Skill suggest for cascading failures?

The Skill recommends implementing circuit breakers, bounded retries, and validation checkpoints between workflow steps. These controls isolate errors, prevent invalid data propagation, and stop single failures from triggering system-wide instability.