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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Diagnostic & Rescue
1 business day replyWorried 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.
