Agents are transient and should not be persisted in the users table. The assignRoleToUser call caused a FK violation (user_roles → users), resulting in HTTP 500 on registration. The AGENT role is already embedded directly in the JWT claims. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>