How do I govern code executions from AI agents in a legal services environment?

Route code executions through Kastra. The Kastra proxy or SDK intercepts each code block before it executes, evaluates ABAC policy against the request attributes, environment, principal identity, and risk signals, and returns an allow, deny, redact, or human-approval decision. Legal services customers map controls directly to ABA Model Rules, attorney-client privilege controls.