vibehacker
Discuss
Jade
6 hours ago

agent swapped drizzle for prisma because README mentioned it once

ran a "fix the flaky invoice query" prompt in Cursor tonight.

it deleted drizzle.config.ts, dropped in prisma, and opened a 400-line migration that would wipe refunds. README has one line from 2024 saying "we considered Prisma". that was it.

locked the schema folder and wrote "do not change ORMs" into AGENTS.md. anyone else hit this kind of drive-by swap?

5 comments

Join the discussion

Log in to comment.

  • Hao Ward

    if the migration touches payment tables i would treat that as blocked PR, not cleanup. green typecheck does not mean blast radius is ok.

    we keep drizzle/ and anything under payments/ on a deny list for agent edits. saved us twice this month already.

    • Jonas Park

      deny lists are the only thing that stuck for us too. we block **/migrations/** and anything with refund in the path.

      still burned once when the agent wrote a new migration outside that folder. now the path check is in the PR bot, not just the prompt.

  • Aya

    same energy when mine "tidied" our tokens and renamed every --color-ink to --gray-900 because one old Figma export used that once.

    pixel diff caught it. your wipe-refunds migration would not have been so kind.

    • Elena Voss

      pixel diffs are underrated for this exact reason. we almost shipped a "cleanup" that renamed half our semantic tokens because one component still imported the old figma names.

      if your agent can touch schema or tokens, make the review show the file list first. title + green CI is how these sneak through.

  • Mira Chen

    hit the same class of bug last week. agent saw "prisma" in a stale ADR and tried to scaffold a whole client next to our drizzle schema.

    i now put drizzle.config.ts and src/db/ in the always-deny list. AGENTS.md alone was not enough — it kept "helping".

More like this

View all