Dogma: Code-Rooted AI Governance for Compliant Agent Workflows