AI agent permissions and policy in an open-source config file
An agent’s permissions decide what it may do and what stops for a person. When the policy is a file in a repo you own, a reviewer can read it and diff it. Kortix is the open-source CompanyOS, and its policy is a block in kortix.yaml. That is my pick, and I work on Kortix’s marketing, so weigh that accordingly.
A connector policy in kortix.yaml
policy: default_mode: riskpolicies: - match: gmail.send_email action: require_approval conditions: - arg: to match: "*@example.com" # a glob, or /regex/ in slashes - match: gmail.send_email action: blockrequire_approval holds a send addressed to one domain for a person, and the rule below it blocks the same call outright.
Every actor is a principal
Permissions in Kortix attach to a principal, for an action, on a resource type. Humans and agents are both principals, so an agent's reach is evaluated on its own and never inherited from whoever started the session. Per-resource permissions for people and agents. Roles, groups, and an audit trail.
Three answers: Allow, Ask, Block
Actions are always_run, require_approval, block, shown as Allow, Ask, Block. Approval holds the call; the agent's turn pauses and resumes. A rule matches a glob over the fully-qualified tool path, so one line can cover a single call or a whole connector. Conditions compare the arguments, so one rule can hold a message to a single domain for a person and the next rule can refuse the rest outright.
The default you choose
Approval gates you set. Off until you set them. default_mode: risk lets a read run and a write or a delete wait for a person (Read the docs). Every gated call is approved on its own, with its arguments in front of you.
The door to main
An agent can write as much as it likes on its own branch. Landing that work on main is a separate capability, held back unless an admin grants it. Session work reaches main through a change request. Merge is default-deny for agents. A change request whose manifest does not validate cannot merge at all.
A policy a reviewer can open
The policy is a block in kortix.yaml, versioned with everything else. A reviewer opens a diff, reads which calls run, which stop for a person and which are refused, and moves the change through the same review as code. A setting in an admin panel is reached through that panel. A block in kortix.yaml is read as a diff.
The management page follows these rules across a fleet of agents. The enterprise page covers how the same policy runs under a security review. The self-hosting page covers running the whole stack on your own infrastructure.
Two shapes of permission check, and what each one can see
A buyer bounding an agent picks between two shapes. One sits outside the product. An authorization service answers whether this caller may touch this resource. The other sits in the agent's own configuration and answers which calls a turn may make.
The vendors of that service describe it well. Permit.io calls itself "a policy decision point that answers one question for every human, service, and agent". It adds that "when an agent calls a tool, it is still a subject, an action, and a resource" (Permit.io). Cerbos ships a decision point that "evaluates requests against policies and returns access decisions" (Cerbos). WorkOS has an agent inherit "the permissions of the specific user they represent" (WorkOS). GreenNode's explainer asks "who is this agent acting as, which resources can it access, and which operations is it allowed to perform" (GreenNode).
Those checks start from a caller and a resource. Neither side is wrong. The service sees a request arrive with a token on it, and answers about that request. It cannot see the turn the agent is halfway through. It cannot see the tool list the agent was given, or what that turn will call next.
Kortix puts the check inside the turn, at the tool boundary. The rule is a file in the repository the session cloned. The starter workspace hands an agent its reach in the agent's own block:
agents: worker: permission: allow # "*" is every name (quoted: a bare * is a YAML alias). `all` means the same. tools: "*" skills: "*" connectors: "*" secrets: "*" kortix_permissions: "*"That block declares the reach. The policy block beside it narrows it. Both travel with the code, so what an agent may do is a file.
A change to what an agent may do arrives as a diff. It merges like the rest of the repository. An approval holds one call, with its arguments in front of the person. The turn waits. When the agent drives systems outside its own platform, that layer is the right place for the check. The same holds when several products share one authorization layer. The manifest does not replace it. When the agent's own tools are the boundary, the manifest is where the check belongs. Kortix runs it there.
Questions the policy block raises
How are AI agent permissions set in Kortix?
Permissions attach to a principal, for an action, on a resource type. Humans and agents are both principals; an agent’s reach is granted in its kortix.yaml block, so it never inherits the reach of the person who started the session.
Can a rule match the arguments of a call?
Yes. A condition can hold a message to @example.com for a person, and a second rule refuses every other address, as the two-rule kortix.yaml policy above does.
What does an Ask do to a running session?
Approval holds the call and the agent’s turn pauses. A person approves or denies it, and the turn resumes. The wait does not fail the run.
Who can read a workspace’s policy?
The policy is a block in kortix.yaml, so it is versioned with the workspace and read by anyone with the repo. A change to what an agent may do arrives as a diff a reviewer approves.
How can I give users access to AI agents?
Give the agent a grant of its own, and grant people access to the workspace it runs in. In Kortix an agent’s reach is a block in kortix.yaml, and people are principals in the same model.
What do AI agents have access to?
Only what its grants name. In Kortix that is the agent’s kortix.yaml block: connectors, secrets, skills and workspace permissions, plus the files of the repository its session cloned.
Open the policy, read the diff
Start on the cloud, or read the accounts reference.
Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free.