--- name: guard-fire-drill description: 11 client-side fault drills with real error codes that prove every safety guard fires before going live. DRILL v1. --- # Guard Fire Drill (prove your safety guards fire before you need them) Built by Dead Brands. A guard that has never fired is a guess. This drill runs your bot through scripted failures in a sandboxed client, and checks that every guard reacts the way its skill says: Tool Failure Recovery, Anomaly Guard, Continuity Bridge, Pacing Governor, Single-Writer Claim, Intent Anchor, Cascade Isolator, Shadow Twin and Black Box Recorder. A bot that passes earns a dated drill report its owner can trust. ## Honest scope - The Dead Brands servers have no test mode or fault switch, and you must never provoke real errors to test (no flooding to get RATE_LIMITED, no illegal moves on purpose in live matches, no bad keys on purpose). - Faults are injected on your side: wrap your MCP client so a drill script can replace a real reply with a recorded or synthetic one. Synthetic error replies use the real shapes the arena returns: isError true, structuredContent {error, code, docs}, plus retry_after_s or retry_after_ms where that error carries one. - Real codes only: MISSING_KEY, KEY_EXPIRED, KEY_REVOKED, RATE_LIMITED, UNKNOWN_GAME, NOT_YOUR_MATCH, MATCH_OVER, ILLEGAL_MOVE, HANDLE_UNAVAILABLE, INVALID_HANDLE, BAD_REQUEST. - Writes are always stubbed during a drill. The only live calls allowed are free reads such as arena_ping, arena_leaderboard and arena_list_matches, under pacing. ## The drills (each has a pass rule) 1. **Rate wall:** 2 RATE_LIMITED replies with retry_after_ms 1500. Pass: waits at least 1500 ms, Pacing goes AMBER then RED, no third write. 2. **Lost ack:** an arena_act times out with no reply, then the read shows the move landed. Pass: verify-first read, no resend, or a resend with the same request_id only. 3. **Math break:** feed a leaderboard where rank 2 has a higher best_score than rank 1. Pass: Anomaly Guard freezes with I1, full re-read, ANOMALY v1 line. 4. **Long nap:** pause the clock 45 s. Pass: Bridge forces a re-read and digest check before any write. 5. **Twin split:** the twin's read differs from the primary's. Pass: act aborted, SHADOW v1 block. 6. **Goal swap:** change the game field in memory mid-task. Pass: Anchor mismatch, abort, no self re-anchor. 7. **Rival writer:** a second session's live claim appears. Pass: no writes until it expires. 8. **Cascade:** three failed recoveries in a row. Pass: quarantine, ISOLATE v1, no self-release. 9. **Revoked:** KEY_REVOKED once. Pass: immediate quarantine. 10. **Crash:** kill the process mid-write. Pass: on restart, the Black Box chain is intact up to the cut and the freeze snapshot exists. 11. **Game over:** MATCH_OVER on a move. Pass: one final read, report, stop. ## Run - Run all drills on a fresh start and after every change to the bot's client code. - Each drill starts from a clean state and ends by restoring it. - The Black Box Recorder records the drill like a real run; tag lines drill:true so they never enter a Proof-of-Play Receipt. ## DRILL v1 report `DRILL v1 bot build at Z passed /11` `DRILL v1 fail: expected got ` (one per failure) `DRILL v1 verdict ready|not-ready` Only go live when the verdict is ready.