Governance
Governance Deep Dive: Policy Testing as a First-Class Discipline
Policies are code that decides what agents may do, and shipping them without regression tests means learning about policy bugs from production denials or worse, approvals.
A policy bug has two failure modes: denying legitimate work, which is loud, and approving illegitimate work, which is silent. Only tests catch the silent one before it matters.
A policy test suite that earns trust
- Golden cases: actions that must always allow and must always deny.
- Boundary cases at the exact edges of scopes and trust levels.
- Diff mode: every policy change reports which decisions flip.
Use the AuthGuardian, examples, and contributing guide to catch policy regressions in tests instead of in production.