Ops — does it run?
Brief 92

Feature-Flag & Rollback Readiness

Whether a bad change can be undone fast — whether the system ships behind flags, rolls back cleanly, and has kill switches for its riskiest paths.

ROLLBACK.md4 phases7 lenses~2.7k 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: judge how quickly a bad change can be reversed — whether risky work ships dark and toggleable, whether a deploy can be rolled back cleanly, and whether the dangerous paths have an off switch.

Read-only pass. Read the deploy pipeline, migration history, and flag usage; change nothing. 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

Rollback path

can the last deploy be reverted quickly, or is deploy effectively one-way

2

Migration reversibility

schema changes that cannot roll back without data loss; expand/contract discipline

3

Feature flags

risky features shipped dark and toggleable, or all-or-nothing at deploy time

4

Kill switches

the expensive, external, or experimental paths that can be disabled without a deploy

5

Flag hygiene

stale flags never removed, flags with no owner, flag logic gone load-bearing

6

Progressive delivery

canary or percentage rollout, or every change straight to 100%

7

Deploy vs release

whether code can ship without immediately going live

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.

ROLLBACK.md
1
Rollback posture
how a bad deploy is undone today, and where that breaks down
2
One-way doors
the irreversible paths, ranked by risk, each with the fix
3
Flag hygiene
stale flags to remove and orphaned flags to assign
4
Add first
the flags and kill switches worth introducing now
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

Trace how change ships

Follow a change from merge to production.

2
Phase 2

Audit through 7 lenses

Rollback path — can the last deploy be reverted quickly, or is deploy effectively one-way.

3
Phase 3

Curate

Rank by the cost of a bad change on that path.

4
Phase 4

Report

Create ROLLBACK.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:feature-flag-rollback.

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

Or install only this Goal Prompt as /goal-feature-flag-rollback:

curl -fsSL https://goal-prompts.vercel.app/install | BRIEF=92 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/92.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,738 characters)
# Goal: Feature-Flag & Rollback Readiness

You are working inside this repo. Mission: judge how quickly a bad change can be reversed — whether risky work ships dark and toggleable, whether a deploy can be rolled back cleanly, and whether the dangerous paths have an off switch.

Read-only pass. Read the deploy pipeline, migration history, and flag usage; change nothing. Your only write is the report file.

## Phase 1 — Trace how change ships
- Follow a change from merge to production: how it deploys, and how it would be reverted.
- Find the flag system, if any, and how features are turned on and off.
- Note the riskiest paths: migrations, payments, external calls, anything expensive or irreversible.

## Phase 2 — Audit through 7 lenses
1. **Rollback path** — can the last deploy be reverted quickly, or is deploy effectively one-way
2. **Migration reversibility** — schema changes that cannot roll back without data loss; expand/contract discipline
3. **Feature flags** — risky features shipped dark and toggleable, or all-or-nothing at deploy time
4. **Kill switches** — the expensive, external, or experimental paths that can be disabled without a deploy
5. **Flag hygiene** — stale flags never removed, flags with no owner, flag logic gone load-bearing
6. **Progressive delivery** — canary or percentage rollout, or every change straight to 100%
7. **Deploy vs release** — whether code can ship without immediately going live

## Phase 3 — Curate
- Rank by the cost of a bad change on that path: an irreversible migration outranks a toggle nobody uses.
- For each gap, name what to add: a flag, a kill switch, a reversible migration pattern, a canary.
- List stale flags to remove; dead flags are their own risk.

## Phase 4 — Report
Create `ROLLBACK.md` at repo root:
1. **Rollback posture** — how a bad deploy is undone today, and where that breaks down
2. **One-way doors** — the irreversible paths, ranked by risk, each with the fix
3. **Flag hygiene** — stale flags to remove and orphaned flags to assign
4. **Add first** — the flags and kill switches worth introducing now

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

## Rules
- A migration that cannot roll back turns a bad deploy into an incident
- Every flag is debt; the ones without owners are the expensive kind
- No deploys to roll back 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 rollback gaps to close first

House rules for this Goal Prompt

  • A migration that cannot roll back turns a bad deploy into an incident
  • Every flag is debt; the ones without owners are the expensive kind
  • No deploys to roll back 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 rollback gaps to close first
Keep exploring

More Ops briefs