Principle:A5c ai Babysitter Permission Review
| Knowledge Sources | |
|---|---|
| Domains | Kubernetes, Security, Permission_Management |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
A method for reviewing agent dispatch permissions against Kubernetes RBAC resources with cross-org denial, fork detection, and approval mode enforcement.
Description
Permission Review is the principle of evaluating a dispatch request against a set of Kubernetes CRD resources before allowing an agent to run. The review performs:
- AgentStack resolution: Find the named stack in K8s resources.
- Approval mode enforcement: yolo (allow all), prompt (require approval), deny (block all).
- Cross-org denial: Agent stacks cannot access repositories in other organizations.
- Untrusted fork detection: PR refs from forks block privileged grants (AgentServiceAccount, AgentSecretGrant).
- Capability expansion: Resolve tool, MCP server, skill, and subagent references from the stack spec.
- Grant resolution: Bind service accounts and secret grants to the dispatch identity.
The result is a Decision with allowed, denied, or requires-approval and detailed reasons.
Usage
Use this principle when dispatching AI agents in a multi-tenant Kubernetes environment where permission gating is required before Job creation.
Theoretical Basis
The review is a multi-stage filter:
1. Resolve AgentStack → deny if not found
2. Validate approvalMode → deny if 'deny'
3. Cross-org check → deny if org mismatch
4. Expand capabilities from stack spec
5. Fork detection → restrict privileged grants for PR refs
6. Resolve service account and secret grants
7. Return Decision { allowed | denied | requires-approval }
Key property: The review fails closed — missing resources result in denial, not silent permission. Fork refs never receive privileged grants.