Pipeline Crm M9 2 Runtime Fixes

loom-builderpromptmarkdown
Path: loom-builder/prompts/pipeline-crm-m9-2-runtime-fixes.mdRelative: prompts/pipeline-crm-m9-2-runtime-fixes.mdSubproject: loom-builderCategory: dispatch-prompts
Lines: 19Bytes: 2,562Imports: 0Exports: 0

Content Preview

  1. # pipeline-crm M9.2 — Runtime Fixes: migration drift + middleware duplex
  2. ## INTENT
  3. Two runtime defects in `/home/mikes/base44CRM/pipeline-crm` found by live dev-server smoke (test suite green but runtime broken). SUCCESS METRIC: after `bun run db:reset`, leads table contains `lat`, `lng`, `geocodedAt` columns; `bunx drizzle-kit generate` reports schema in sync (no new migration produced when run a second time); `src/middleware.ts` Request re-wrap carries `duplex: 'half'` (or avoids re-wrapping