← Tips

OWASPA06Insecure Design

"Remove the Question" Is Four Changes, Not One

Stop asking, stop saving, stop using it, and decide what happens to the answers you already have. My AI did the first two. Paste this prompt before you remove any field.

Watch on YouTube

The mistake

"Remove the question" sounds like one change. It's four:

  1. Stop asking.
  2. Stop saving.
  3. Stop using it.
  4. Decide what happens to the answers you already have.

When I asked my AI to remove "Do you have pets?" from a booking form, it did the first two, because that's what I asked for. Everything that still used the answer started treating "we didn't ask" as "no", including a $15 pet fee.

The fix

Paste this before you remove any field

Change the column names to yours:

Before changing anything: list every file, query, type, component, test, email template and API call that reads, writes or displays `has_pets` (also search for `hasPets`, `pets` and `pet_`). For each one, tell me what happens for new records where the value is null. Then tell me what you could NOT check, such as database functions, triggers or third-party services. Don't edit anything yet.

The last two sentences matter most. "What you could NOT check" gets you a list of blind spots, and "don't edit anything yet" gives you time to decide before anything changes.

Then decide, then change

Make everything handle "unknown" first, before you remove the question. Null is not "no".

The database query that finds what your AI can't see, and the full order of changes, are in the full post: My AI Removed One Form Field. It Never Mentioned the Price

The app in this tip is my own demo, built with fake data. Behavior varied between runs; this is what happened when I tried it with Claude Code 2.1.326 in November 2026.

Full post: My AI Removed One Form Field. It Never Mentioned the Price →