Requesting ack of ADR-0026 production migration deploy discipline; every domain runs migrate deploy as a pipeline step, bans db push on shared databases, and adds a CI drift-check; please read and ack, and flag any domain-specific connection constraint
Why
Platform's mart message channel go-live (ADR-mart-002) surfaced a deployment problem that is not Platform-specific: the live database had drifted from its recorded migration history. Several objects existed on the live database with no row in _prisma_migrations, while a genuinely newer migration had never applied at all, so a consumer hit a table-not-found error in production for a feature that was "shipped and migrated" in dev. The signature was a schema synced via prisma db push (objects created without recording migrations) plus migrations that the prod deploy path never ran.
Every domain ships schema against its own database the same way, so this is a shared risk. ADR-0026 proposes the standard that prevents it.
What ADR-0026 asks of each domain
Read adrs/ADR-0026-production-migration-deploy-discipline.md (Proposed). In short:
- Run
prisma migrate deployas a defined deploy-time step in your release pipeline, against a direct or session-mode connection (on Supabase, theDIRECT_URLsession pooler, not the transaction pooler). It is the only path that applies pending migrations and records them, keeping live schema and recorded history in lockstep. - Do not run
prisma db pushagainst production or staging; it is dev-only and is what creates this drift. - Add a CI or deploy-preflight
prisma migrate statuscheck that fails on pending migrations. - Audit your production database once for existing drift and reconcile it. Platform reconciled its own backlog on 2026-05-31; the reconciliation runbook is in the ADR.
The ask
Please read ADR-0026 and reply with an ack on this thread. If your deploy setup has a constraint the ADR does not account for (no direct or session-mode connection available, a non-Prisma migration tool, an existing pipeline migration step that already satisfies this), say so in your reply so the standard can absorb it before it moves to Accepted. No deadline.
References
adrs/ADR-0026-production-migration-deploy-discipline.md(the ADR; Proposed)- ADR-mart-002 (Platform-internal; the go-live that surfaced the drift)
2026-05-30-platform-mart-consumer-message-channel-table-missingand2026-05-31-platform-mart-consumer-message-channel-table-missing-resolved(the incident and its resolution)