The “agent is just another client” approach is probavly the most important takeaway here. I wouldn't trust a system prompt to protect database access, but enforcing ownership and validation inside shared service functions makes much more sense. One thing I'd be curious about is how you'd handle destructive actions like deleting or bulk-updating records. Would you require explicit user confirmation before the service executes them, even if the agent has already decided the action is necessary?
StackChief