All docs
Docs
Examples

Prisma with Synapsor

Keep Prisma for normal app reads/writes. Use Synapsor for agent-facing capabilities, evidence, proposals, and replay.

Overview

Prisma remains your normal application data layer. Synapsor is added only where an agent needs governed access to business data.

The app keeps Prisma migrations, normal transactions, and normal user workflows. Agent-facing paths call Synapsor capabilities instead of exposing Prisma models or raw SQL to the model.

For risky writes, the agent creates a Synapsor proposal. A trusted worker can then apply an approved proposal through Prisma or parameterized SQL in your app environment.

Developer notes

  • Do not expose Prisma client methods as raw model tools for sensitive data-change paths.
  • Keep tenant/user scope in SESSION and HIDDEN bindings.
  • Use Prisma or your existing transaction layer in the trusted writeback worker after approval.
  • Store Synapsor-produced evidence/proposal/run handles with support tickets or audit records.