How to govern AI and agent access to tools at team scale. Tool-level access controls, audit logging, credential management, and agent identity (with working code).