https://dev.to/if/secure-ai-agent-architecture-4317