# AI Agent Deleted Production? Evidence-Checked Postmortem

> Turns an AI coding agent incident into a blameless postmortem with a UTC evidence timeline, computed TTD/TTR, blast-radius map and enforced guardrail fixes — verified by a checker.

AI Agent Deleted Production? Evidence-Checked Postmortem is a paid AI agent skill on Agensi by Hamza Alayed, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Hamza Alayed](https://www.agensi.io/creators/hamza-alayed)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ai-agent-deleted-production-evidence-checked-postmortem
- Tags: testing-debugging, devops-cloud, agents-orchestration, security, llm-ops, technical-documentation

## About this skill

**When an AI coding agent drops your tables, wipes a bucket or says "100% verified" when it wasn't — get a postmortem that finds the real cause and stops it happening again.**

Generic postmortem templates treat an agent incident like any outage and end with "be more careful with AI." This skill asks the questions that matter for agent incidents: what credentials the agent could reach, what it was told, what (if anything) besides the model's judgment stood in the way, whether its own reports were true, and where the recovered data came from.

### What you get
- **One UTC timeline with evidence IDs** merged from agent transcripts, audit logs, alerts and chat (ISO, access-log and epoch timestamps; mixed time zones normalised).
- **Computed durations** — TTD, TTA, TTM, TTR — never estimated.
- **Agent failure-mode classification** (FM1–FM8): wrong target, ignored written rule, approval fatigue, scope creep, false report, backup in blast radius, ambiguous selector, injected instruction.
- **Blast-radius table**: for every credential the agent could read — can it write to prod, can it delete backups, what else stops it.
- **Agent claims check**: every claim the agent made, marked True / False / Unverified against system evidence.
- **Action items enforced by tooling**, not by CLAUDE.md text — each with a named owner, due date, type and a runnable verification step. Includes Claude Code deny/ask rule examples checked against the current docs.
- **A checker script** (`pmtool.py check`) that fails the report on missing evidence IDs, mismatched durations, missing sections, ownerless or undated actions, and blame language. The agent must reach `RESULT: PASS` before handing over.

### Why it's different from a free template
Root causes are written as system conditions with confidence labels (Verified / Inferred / Unknown); "the AI hallucinated" and "the engineer approved it" are rejected as root causes. The `prevent` action must remove access or enforce a rule — an instruction-file edit alone never counts.

Standard-library Python only. No network access, no API keys. Works with Claude Code, Cursor, Codex CLI and any agent that reads SKILL.md.

## Requires

- Python 3.8+ (3.9+ for named --tz)
- prisma
- Node.js

## Known limitations

Post-incident review only: it does not contain a live incident (it asks you to confirm containment first) and does not produce legal or regulatory breach notifications. Quality depends on the evidence you provide; without an agent transcript the root cause is labelled Inferred. The checker validates structure, evidence IDs, durations, action fields and common blame phrases — it cannot judge whether a cause is correct, so a manual checklist is included. Permission-rule examples are for Claude Code as documented on 2026-11-28; other agents' syntax must be checked against their current docs.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AI Agent Deleted Production? Evidence-Checked Postmortem skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What kinds of incidents does it cover?

Any case where an AI coding agent damaged or nearly damaged a live system: dropped tables, wrong-environment migrations, deleted buckets or servers, cleanup scripts that removed real data, and false 'verified' or 'unrecoverable' claims. Near misses are covered too.

### How is this different from a free postmortem template?

It adds the agent-specific parts — failure-mode codes, a credential blast-radius table, a check of the agent's own claims — computes durations from evidence instead of memory, and ships a checker that fails the report on missing evidence, wrong durations, ownerless actions and blame language.

### Does it need access to my production systems?

No. It works from files you provide. The optional blast-radius step suggests commands that list credential names, not values, and only runs them if you agree.

### How current are the guardrail recommendations?

The Claude Code permission facts (deny → ask → allow order, enforcement by the tool rather than the model, bypass-mode lockout) were checked against the official docs on 2026-11-28. For other agents the skill tells the agent to check that tool's current docs and record the version.

### Will it blame the engineer or the AI?

No. Root causes are written as system conditions with Verified / Inferred / Unknown labels, and the checker flags phrases like 'human error' or 'careless'.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
