Field Notes

Field notes from rescuing AI-built apps. Practical teardowns, real prompts, security checklists, and diagnostic guides for Cursor, Lovable, and Supabase.

01All Field Notes

Real failures, diagnostic tests, and production fixes

What breaks when you inspect an AI-generated codebase, written so you can check your own application against it.

Databases
Nov 14, 2026·6 min read

The N+1 Query Problem: Why Your Database Bill Tripled with 50 Users

A from-scratch investigation into N+1 query loops generated by AI tools, how to spot them in browser devtools in under 30 seconds, and the single-query join fixes that cut latency by 175X.

#N+1 Query#Supabase#PostgreSQL#Database Costs#SQL Server#Performance
Architecture
Nov 07, 2026·10 min read

Hitting the Prompt Wall: Why AI Tools Break Existing Features After 50 Prompts

An experimental teardown of context saturation in AI coding tools, why single-file accretion causes circular regressions, and the exact extraction steps to regain engineering control.

#Cursor#Lovable#Technical Debt#Architecture#Refactoring
Security
Oct 31, 2026·8 min read

The Supabase RLS Default That Leaks Your Entire User Table

An experimental audit showing how Supabase row-level security defaults leave tables exposed when created via raw SQL migrations, and the 3-step policy fix to secure customer data.

#Supabase#Row Level Security#Security Audit#Lovable#Cursor#Bolt
Databases
Oct 24, 2026·9 min read

Why Your Prototype Lost All Data on Redeploy: Ephemeral SQLite on Cloud Hosts

An experimental walkthrough of ephemeral filesystems on modern cloud platforms, why AI coding tools default to local SQLite, and how to migrate safely to managed PostgreSQL.

#SQLite#PostgreSQL#Vercel#Railway#Data Loss#Drizzle#Prisma
Fintech
Oct 17, 2026·11 min read

Why Payment Webhooks in AI Prototypes Create Duplicate Charges

An experimental investigation into payment webhook race conditions, why payment gateways guarantee at-least-once delivery, and how to build an atomic idempotency ledger in PostgreSQL.

#Stripe#Razorpay#Fintech#Webhooks#Idempotency#Database
Security
Oct 10, 2026·8 min read

Is Your Secret Key Exposed in the Browser? How to Check and Rotate Without Downtime

An experimental audit uncovering how AI coding assistants accidentally bake administrative credentials into client JavaScript bundles, and the exact zero-downtime rotation protocol.

#Stripe#Supabase#Secret Keys#Security Audit#Key Rotation#Vite#Next.js
Security
Oct 03, 2026·9 min read

IDOR in AI Code: Why Authentication Does Not Stop Data Leaks

An experimental teardown of Insecure Direct Object References in AI-generated backends, why authentication middleware does not enforce authorization, and how to scope database queries by tenant ID.

#IDOR#Authorization#Tenant Isolation#Security Audit#API Security
Security
Sep 26, 2026·7 min read

Why Your Edge Functions Run Admin Tasks for Anyone Who Knows the URL

An experimental audit into serverless edge functions, why using service role keys without caller validation leaves admin endpoints public, and how to verify JWTs at the gateway.

#Edge Functions#Supabase#Serverless#JWT Verification#Security Audit
Architecture
Sep 19, 2026·6 min read

Why Your Environment Variables Are Undefined After Deploying to Vercel

An experimental walkthrough of build-time environment variable injection in Vite and Next.js, why .env files never travel with Git, and how to write a startup guard that catches missing keys.

#Vercel#Vite#Next.js#Environment Variables#Deployment#DevOps
Architecture
Sep 12, 2026·6 min read

Why Social Logins and Magic Links Fail When You Switch to a Custom Domain

An experimental walkthrough of OAuth callback security, why custom domains break social logins and Supabase magic links, and how to configure redirect allowances cleanly.

#OAuth#Supabase Auth#Custom Domains#Redirect URLs#Google Auth
Architecture
Sep 05, 2026·10 min read

What Buckles First When an AI Prototype Hits 500 Active Users

An experimental look at why AI prototypes buckle under production concurrency, why serverless architectures saturate connection pools, and how to scale to thousands of users with PgBouncer.

#Scaling#PgBouncer#PostgreSQL#Caching#Performance#Database
Prompting
Aug 29, 2026·8 min read

Why Your LLM Features Cost Five Times More Than They Should

An experimental audit into LLM unit economics, why prototypes resend full context on every turn, and how to implement prompt caching and model routing to cut inference bills.

#LLM Costs#Prompt Caching#Model Routing#Inference Economics#AI Engineering
Architecture
Aug 22, 2026·9 min read

What Investors Check When They Audit an AI-Built Codebase

An insider walkthrough of venture capital technical due diligence on AI-generated applications, what auditors look for in git repos, and how to pass diligence in one week.

#Technical Due Diligence#Code Audit#Venture Capital#Investor Readiness#Architecture
Security
Aug 15, 2026·11 min read

The 10-Point Security Checklist Before Launching an AI-Built App

An experimental pre-flight security checklist for applications built with AI coding assistants, covering Row Level Security, bundle secrets, CORS, and rate limits.

#Security Checklist#AI Code Audit#Supabase#API Hardening#DevSecOps
Prompting
Aug 08, 2026·8 min read

The Prompts Senior Engineers Use to Untangle an AI Codebase

An experimental comparison of prompting strategies for code refactoring, why models need boundary constraints instead of narrative descriptions, and the exact templates senior engineers use.

#Prompt Engineering#Refactoring#Cursor#Code Architecture#TypeScript

Diagnostic & Rescue

1 business day reply

Worried your app is exposed or hitting the prompt wall?

Send us your app link or repository. A senior engineer will inspect your policies, database, or architecture and reply within one business day with concrete next steps.