Version 1.1 Open specification for AI agents
ProcurAuth
Give each AI agent a key. A key never has more rights than the person who owns it.
Your backend holds the users, their rights and the keys of their agents. Your services only speak AuthZEN.
{ "subject": { "type": "user", "id": "key:9b1c…" }, "action": { "name": "data.read" }, "resource": { "type": "database", "id": "test2", "properties": { "ancestors": […] } }, "context": { "usage": { "units": 1 } } }
{ "decision": true, "context": { "limits": { "max_rows": 5000, "max_duration": 30 }, "usage": { "units": 1 } } }
The rights of users and of their agents, from one backend
ProcurAuth lets a backend manage the rights of its users and the rights of the AI agents that act for them. It is a profile of the AuthZEN Authorization API 1.0.
An agent never goes beyond its owner
An agent acts with a key. The decision point takes the lower of the grants of the key and the rights that the owner has now. When the owner loses a right, the agent loses it at the next decision.
Limits for agents
A ceiling bounds one call, for example 30 seconds. A budget bounds many calls: per second, minute, hour or day. The decision point counts the budgets.
The backend manages everything
Users, grants, keys and the revocation of a key are in your backend. Each service asks the decision point and applies the answer, so a service stays simple.
A grant covers a branch. The resources of a service form a tree. A grant on a node covers the node and each node below it. See coverage.
One call of an agent, five steps
The agent never talks to the decision point. The edge checks its key. The service asks, and it applies the answer.
Built for agents that call tools
The MCP binding applies the protocol to an MCP server. These are its rules for an agent.
- Binding 4.1
The list shows what the key may use
A
tools/listnames only the tools that the key may use. - Binding 3.5a
Each tool can wait for an approval
The decision point can ask for the approval of the owner for any tool. The service then runs nothing until the owner approves.
- Binding 5.3
A spent budget has a readable error
The agent gets the tool error
budget_exceededwithretry_after, the seconds to wait. - Binding 5.1
A refusal leaks nothing
A refused call looks like a call to an unknown tool. It gives no reason.
- Binding 3.6a
Other methods ask for an action too
A method with no tool, such as
initializeorping, asks the actionmcp.session.
The tool error that an agent gets when its budget is spent (structuredContent, binding 5.3):
{ "error": { "code": "budget_exceeded", "message": "The budget of this action is spent.", "retryable": true, "retry_after": 12 }}The agent can read the error and wait. It learns no grant and no amount. A refused tool and an unknown tool get the same answer.
Five tools to build and to test
Each tool is a command-line program. Two reference programs, reference-service and reference-edge, and the reference PEP library procurauth-pep come with them: seven programs in all. See all tools.
- keycheck
Checks the text of a key against a key format. No store, no network.
- access-token
Makes and checks identity tokens, good and bad, for tests.
- access-lint
Checks an action document, grants and an options answer.
- fake-pdp
A test decision point for a service and for the runner.
- access-conformance
Runs the conformance cases against a PEP, a PDP or an edge.
Start with the text or with the tools
The specification and the MCP binding are the normative texts. The source and the binaries of version 1.1 are in one repository.