The gateway never called configure_rls_hook(engine), so SET LOCAL app.current_tenant was never set for any DB operation through the portal API endpoints. All tenant-scoped writes (agent creation, etc.) failed with "new row violates row-level security policy." Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
portal
@ 5d23d59426