Abort template

From PurpleAILAB/Decepticon · View interactive version

Abort template is an AI agent skill from the GitHub repository PurpleAILAB/Decepticon. Abort / crisis plan generator — halt triggers, response actions, AI-aware safety gates (hallucination threshold, destructive-action gate, output validation).

How to use this skill

Skill file

Abort / Crisis Plan Generator

The abort plan defines when the agent stops. Without it, the autonomous loop runs through real-incident alerts, scope violations, and production-data exposures as if they were normal operations.

AI-specific gates address the failure modes documented in OWASP Top 10 for Agentic Applications (2025.12) — hallucination, prompt injection, unverified destructive actions.

When to Use

Workflow

Step 1: Keep the Three Default Triggers

The AbortPlan schema seeds three default halt triggers. Keep all three; do not remove unless the engagement is explicitly read-only:

  1. emergency — Real-incident alert from blue team / SOC
  2. critical — Production data observed in collected evidence
  3. critical — Scope boundary violation detected

Step 2: Add Engagement-Specific Triggers

Based on the interview answers, add custom AbortTrigger entries. Common additions:

| Engagement signal | Severity | Response |

|---|---|---|

| Tier-3+ adversary emulation against critical infrastructure | emergency | Halt + operator-page + 1hr cooldown |

| Compliance-bound data class encountered (GDPR / HIPAA) | critical | Halt; redact; await operator |

| Network outage or latency spike on target | warning | Pause active scanning; resume after 5min |

| LLM cost-per-objective threshold exceeded | warning | Pause; ask operator to approve budget |

| C2 beacon lost for > 30 minutes during active phase | warning | Pause; re-establish C2 before continuing |

Step 3: Set AI Safety Gates

Step 4: Set Abort Signal Channel + Recovery Procedure

Validation Checklist

Before writing plan/abort.json:

Anti-patterns

Output

Write to plan/abort.json validating against decepticon.core.schemas.AbortPlan.

Document schema (derived from the validator's model)

plan/abort.json must validate against AbortPlan. Fields not listed here are not part of the model and are ignored by the validator.

| field | type | required | allowed values / nested keys |

| --- | --- | --- | --- |

| engagement_name | str | yes | |

| halt_triggers | list[AbortTrigger] | no | each object: condition, severity, response_action, auto_halt |

| abort_signal_channel | str | no | |

| recovery_procedure | str | no | |

| hallucination_threshold | int | no | >= 1 |

| destructive_action_gate | bool | no | |

| output_validation | str | no | |

| version | str | no | |

| last_updated | str | no | |

AbortTrigger object:

| field | type | required | allowed values |

| --- | --- | --- | --- |

| condition | str | yes | |

| severity | TriggerSeverity | yes | one of info, warning, critical, emergency |

| response_action | str | yes | |

| auto_halt | bool | no | |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.