Inspiration

OAuth scopes tell you what an API can do. But when AI agents act on behalf of users, you need a higher-level policy layer that answers: should this agent use these credentials right now?

We built Governed Agent Vault to answer that question with a constitutional governance framework.

What it does

Governed Agent Vault adds a constitutional policy layer between AI agents and Auth0 Token Vault. Before any OAuth token is issued:

  1. The agent's request is validated against a YAML-defined constitution
  2. MACI role separation (Executive/Judicial/Implementer) determines which scopes each agent type can access
  3. High-risk scopes automatically trigger CIBA step-up approval
  4. Every decision (granted, denied, step-up) is recorded in an immutable audit trail
  5. If the constitution says no, the token is never issued

How we built it

  • acgs-auth0 (Python, published on PyPI) bridges Auth0 Token Vault with ACGS constitutional governance
  • MACIScopePolicy defines per-connection, per-role scope permissions in YAML
  • ConstitutionalTokenVault wraps Token Vault's RFC 8693 token exchange with pre-flight constitutional validation
  • FastAPI demo app with interactive UI showing 6 governance scenarios across GitHub, Google, and Slack
  • Built on acgs-lite, our constitutional AI governance engine (50K+ tests, 10 packages)

Challenges we ran into

Mapping the MACI constitutional governance model to OAuth scope hierarchies. OAuth scopes are flat strings, but governance needs risk levels, role permissions, and escalation paths. We solved this with a declarative YAML policy format.

What we learned

Auth is necessary but not sufficient for AI agent safety. You need a policy layer controlling what agents are allowed to do based on role, risk level, and organizational rules. Token Vault + constitutional governance is the right combination.

What's next

  • Production deployment with real Auth0 Token Vault token exchange
  • Integration with LangGraph and Vercel AI SDK
  • EU AI Act Article 14 human oversight via CIBA step-up
  • Multi-tenant constitutions for different organizational units

Built With

  • acgs-lite
  • auth0
  • fastapi
  • maci-governance
  • oauth2
  • python
  • token-vault
Share this project:

Updates