Home/Catalog/Automation
Automation — does the process hold?
Brief 39

Workflow Resilience Audit

Crash the automation at step 3 of 7 on paper — resumability, idempotency, duplicate side effects, poison inputs, dead letters.

WORKFLOWS.md4 phases7 lenses~2.8k chars

Free & open · no signup · read-only — it ends by asking · nothing leaves your machine

What it does

You are working inside this repo. Mission: crash every automated workflow on paper — mid-step, mid-run, mid-burst — and find where reality diverges from the happy path the code assumes.

Read-only pass. Your only write is the report file.

What it looks for

7 lenses it looks through

Phase 2 sweeps the codebase through every one of these, citing file and line for each finding.

1

Crash mid-run

the process dies at step 3 of 7: does the run resume, orphan, or restart from zero re-doing side effects?

2

Idempotency

re-running a step or a whole run: emails sent twice, records duplicated, charges repeated?

3

Poison inputs

one malformed item that fails every retry: does it wedge the queue or get quarantined?

4

Partial outputs

half-written artifacts and half-applied changes visible to users during or after failure

5

Timeout coverage

every external call and model call: bounded, or able to hang a worker forever

6

Backpressure

a burst of triggers: queued, dropped, or a thundering herd into your rate limits

7

Dead letters

permanently failing items: routed somewhere a human actually sees, or silently retried into eternity (see 03)

The deliverable

What lands in your repo

One structured report at the repo root — or in reports/, if you keep one — the same shape every time, ready for a teammate — or the optional Studio — to act on.

WORKFLOWS.md
1
Workflow table
workflow · steps · state store · external side effects
2
Crash matrix
workflow × failure scenario → behavior today → gap → fix
3
Idempotency plan
the keys and checks, step by step
4
Dead-letter design
where failures land and who sees them
5
The nightmare replay
the worst plausible failure, narrated in five sentences
One file. Evidence-backed. It ends by asking before touching anything.
How it works

What it makes the agent do

Every Goal Prompt follows the same four steps, so results are consistent and repeatable — no matter which one you run.

1
Phase 1

Map the workflows

List each automated workflow.

2
Phase 2

Break it through 7 lenses

For each, name the concrete workflow and step.

3
Phase 3

Curate

Rank by side-effect severity × likelihood.

4
Phase 4

Report

Create WORKFLOWS.md at repo root.

Get started

Three ways to run this Goal Prompt

01 · COPY

Paste it in

Copy it and paste it into your agent inside the repo you want checked.

02 · INSTALL

As a slash command

Install the goal plugin once — two commands — then just type /goal:workflow-resilience-audit.

1/plugin marketplace add GhostlyGawd/goal-prompts
2/plugin install goal@goal-prompts

Or install only this Goal Prompt as /goal-workflow-resilience-audit:

curl -fsSL https://goal-prompts.vercel.app/install | BRIEF=39 sh
03 · AGENT

From an agent (MCP)

Let an agent fetch it mid-conversation, or pull the raw Goal Prompt by URL.

https://goal-prompts.vercel.app/raw/39.md
Transparency

The exact prompt

Nothing hidden — this is the whole Goal Prompt, verbatim. Read it in a minute, edit it, or copy it as-is.

Read the full brief (2,769 characters)
# Goal: Workflow Resilience Audit

You are working inside this repo. Mission: crash every automated workflow on paper — mid-step, mid-run, mid-burst — and find where reality diverges from the happy path the code assumes.

Read-only pass. Your only write is the report file.

## Phase 1 — Map the workflows
- List each automated workflow: trigger → steps → outputs → side effects. Mark which steps are model calls, which are code, which touch external systems.
- Where does workflow state live between steps, and what claims to own it?
- Which side effects are visible to users or third parties the moment they happen?

## Phase 2 — Break it through 7 lenses
For each, name the concrete workflow and step.
1. **Crash mid-run** — the process dies at step 3 of 7: does the run resume, orphan, or restart from zero re-doing side effects?
2. **Idempotency** — re-running a step or a whole run: emails sent twice, records duplicated, charges repeated?
3. **Poison inputs** — one malformed item that fails every retry: does it wedge the queue or get quarantined?
4. **Partial outputs** — half-written artifacts and half-applied changes visible to users during or after failure
5. **Timeout coverage** — every external call and model call: bounded, or able to hang a worker forever
6. **Backpressure** — a burst of triggers: queued, dropped, or a thundering herd into your rate limits
7. **Dead letters** — permanently failing items: routed somewhere a human actually sees, or silently retried into eternity (see 03)

## Phase 3 — Curate
- Rank by side-effect severity × likelihood: double-charging beats double-logging
- Every fix names its mechanism: idempotency key, checkpoint, quarantine, timeout value

## Phase 4 — Report
Create `WORKFLOWS.md` at repo root:
1. **Workflow table** — workflow · steps · state store · external side effects
2. **Crash matrix** — workflow × failure scenario → behavior today → gap → fix
3. **Idempotency plan** — the keys and checks, step by step
4. **Dead-letter design** — where failures land and who sees them
5. **The nightmare replay** — the worst plausible failure, narrated in five sentences

Start the report with today's date. If `WORKFLOWS.md` already exists from a previous run, read it first and lead with what changed since.

## Rules
- Assume every step can die twice: once mid-write, once mid-retry
- Side effects are forever; design for at-least-once delivery or prove exactly-once
- No automated workflows in this repo? Say so in a one-paragraph null report and stop — a null result is a valid finding.
- If a `reports/` directory exists at the repo root, write the report there instead of the root.
- Before asking, present the top findings as a ranked list in plain words
- Report only — end by asking which fixes to build

House rules for this Goal Prompt

  • Assume every step can die twice: once mid-write, once mid-retry
  • Side effects are forever; design for at-least-once delivery or prove exactly-once
  • No automated workflows in this repo? Say so in a one-paragraph null report and stop — a null result is a valid finding.
  • If a reports/ directory exists at the repo root, write the report there instead of the root.
  • Before asking, present the top findings as a ranked list in plain words
  • Report only — end by asking which fixes to build
Keep exploring

More Automation briefs