How it works
One question per action, answered from your rules
A gateway asks, Caroline decides from your rules, a gateway that enforces acts only on an exact yes, and the answer is recorded with what decided it.
A call, step by step
An AI agent tries to merge a pull request
A coding agent works for a developer through a gateway in front of GitHub. The rules let agents propose changes but never merge them.
The question
Four parts, the AuthZEN way
| Part | Example | Means |
|---|---|---|
subject | agent a_code_assistant | who asks: a person or an AI agent |
action | merge | what they want to do |
resource | repository showcase-platform-app | what they want to do it to |
context | on_behalf_of: u_dev_dana | the circumstances: the person an agent works for, the gateway it came through |
The ids are enough. For a person or record Caroline holds, it reads its own directory and ignores what the request says, so a caller cannot make itself a manager by saying so. What a request says about an agent is never read, and an installation can refuse every id it does not hold.
The answer
Only "decision": true, exactly, allows. A false is a refusal. An error, a timeout or an answer that is not JSON is a refusal too, unless its connection lets calls through when Caroline is down. The reason says what decided it; it is for your operators, never for the end user or the model.
How rules combine
- Default deny. With no rule that allows it, the answer is no.
- A deny wins. One matching deny refuses the call, whatever allows it.
- An agent never exceeds its person. An agent working for someone is allowed only when its own rules and that person's would both allow it.
- Shadow rules are measured, not enforced, until you switch them on.
The installation
The parts, in one installation of your own
Each customer gets an installation of their own: one server, with its own data and its own keys, separate from every other customer's. Two addresses face out: the console's and the decision point's.
| Part | Does |
|---|---|
| Decision point | Speaks AuthZEN, checks keys, asks the engine, records refusals at its door. |
| Engine | OPA, with the one evaluator, your rules and your directory loaded. Nothing else decides. |
| OPAL | Brings each published change to the engine within about a second. |
| Management | The backend behind the console and the API: checks, saves, the directory, keys and the ledger. |
| Console | The web app your authors and reviewers sign in to, with Google, Microsoft or a passphrase. |
| Local model | Optional: for drafting and Ask without a third-party API. |
When a part is down
It fails closed
When a part cannot be sure, it refuses rather than guesses, and it never lets a change land without its record.
| Down | Decisions | Changes |
|---|---|---|
| The engine or the decision point | Refused, unless a connection lets calls through when Caroline is down | Saved; they reach the engine when it is back |
| Management | Go on from what the engine holds, for up to 15 minutes without a fresh directory | None: the console is down |
| The rules' history | Go on | Refused; nothing half-saved |
| The ledger's disk | Go on, recorded once it is back, within limits | Refused, except suspending an agent and revoking a key |