Overview
Rails and ActiveRecord remain the normal app path. Synapsor is added at the agent boundary, where the model needs a reviewed tool rather than raw database access.
The controller or service object sets trusted SESSION values, then calls Synapsor through the Node/Python client, an HTTP client, or a small service wrapper.
Approved proposal writeback can be applied by a Rails job using ActiveRecord transactions and Synapsor idempotency keys.
Developer notes
- Keep ActiveRecord as the normal write path.
- Use Synapsor capabilities for model-facing agent tools.
- Use a read-only database user or safe views for source access.
- Run approved writeback from a trusted Rails job, not from model output.