Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
AI

The AI Prompt That Reviews Your Feature’s Rollback Plan Before You’re the One Explaining Why There Wasn’t One

- 16.10.26 - ErcanOPAK

🤖 The Prompt That Asks for Your Rollback Plan Before You Need One

Every deploy plan gets attention for how a feature is supposed to go out – far fewer get the same scrutiny for how it comes back out if something’s wrong after it’s already live. A rollback plan that only exists as “we’d just revert the commit” quietly assumes no migrations ran, no external state changed, and no other deploy landed on top of it in the meantime – assumptions that are usually fine and occasionally catastrophic, which makes this exactly the kind of checklist an AI can run through methodically before the pressure of an actual incident forces it.

🔎 The Prompt

I'm going to describe a feature I'm about to deploy (or paste
the PR description, migration files, and config changes). Please:

1. List every piece of state this change touches that a simple
   code revert would NOT automatically undo - database schema
   changes, data migrations, changed default config values,
   feature flags, cache entries, or external service calls.

2. For each one, tell me specifically what "rolling back" would
   actually require beyond reverting the code - a down-migration,
   a manual data fix, flipping a flag back, or something else.

3. Flag anything where rolling back the code but NOT the data
   migration would leave the system in a broken or inconsistent
   state, since that's the single most common rollback trap.

4. Ask me directly whether each of those extra rollback steps
   has actually been tested, not just planned - and if I don't
   know, tell me that's the answer I need to go find out.

My change:
[paste the PR description, migrations, and config changes here]

✅ Fix: Why This Prompt Works

  • Asking specifically what a plain code revert would NOT undo targets the actual gap in most rollback plans – the code almost always reverts cleanly; it’s the schema, data, and external state that usually doesn’t.
  • Flagging the code-reverts-but-migration-doesn’t scenario by name catches the single most common real incident pattern directly, instead of leaving it to be rediscovered the hard way during an actual rollback.
  • Asking whether each extra step has been tested, not just planned, keeps this from producing a false sense of security – a rollback plan that’s never been rehearsed is a theory, not a plan.

🚨 Worth Keeping in Mind

  • This can only reason about what it’s told – a migration or config change you forgot to paste is a gap it has no way to flag, so completeness of the input directly limits completeness of the review.
  • It won’t tell you whether your team has the operational access or runbook to actually execute a rollback step under pressure – it can only tell you the step exists and needs testing.

A rollback plan that’s never been tested isn’t a rollback plan – it’s a guess you’re hoping never to need, written down to feel safer about not checking it.

— AI Power User

Related posts:

The AI Prompt That Turns a Stack of Car Maintenance Receipts Into a Single Service History and What'...

The AI Prompt That Turns a Stack of Car Maintenance Receipts Into a Single Service History and What'...

The AI Prompt That Turns a Closet Full of Clothes Into a Capsule Wardrobe You'll Actually Wear

The AI Prompt That Turns a Closet Full of Clothes Into a Capsule Wardrobe You'll Actually Wear

Find Hidden Performance Bottlenecks in Backend Code

Find Hidden Performance Bottlenecks in Backend Code

Views: 8

Post navigation

WordPress: Fix a Scheduled Post That Silently Stays in Draft Because WP-Cron Never Actually Fires
Windows 11: Fix File Explorer That Silently Stops Showing Thumbnails for an Entire Folder

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (854)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (608)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (546)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (854)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com