Caroline

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.

A call, step by step The agent makes a tool call. The gateway asks Caroline with its key. Caroline checks the key and the binding, then asks the engine with the records looked up. The engine applies default deny, deny wins and the agent never beyond its person, and answers deny by the rule deny-agents-merge. Caroline returns false with the reason, the gateway tells the agent only that the call is not permitted, and the answer is recorded with its rule. AI agent working for a developer Your gateway holds its gateway key Caroline decision point Engine (OPA) runs your rules Ledger the record 1 · tool call: merge 2 · may it? AuthZEN + key 3 · the gateway's key checked 4 · question, records looked up 5 · its binding first, default deny, a deny wins, never beyond its person 6 · deny [deny-agents-merge] 7 · false, with the reason 8 · not permitted 9 · recorded, with the rule
The agent hears only that the call is not permitted. The reason, with the rule, is for your operators: in the gateway's log and on Caroline's Decisions page. Nothing reaches GitHub.

The question

Four parts, the AuthZEN way

PartExampleMeans
subjectagent a_code_assistantwho asks: a person or an AI agent
actionmergewhat they want to do
resourcerepository showcase-platform-appwhat they want to do it to
contexton_behalf_of: u_dev_danathe 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

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.

The parts, in one installation Your gateways reach the decision point at pdp dot your host; authors reach the console at app dot your host. Inside one installation: the decision point asks the engine, OPA; OPAL keeps the engine current; the console talks to management, which writes the rules' history, the ledger and the directory and keys, and tells OPAL of each publish. An optional local model drafts rules. The rules' history, the ledger and the state are kept on disk and backed up nightly. Your gateways ask with a key, over TLS Your people authors and reviewers ONE INSTALLATION: ONE SERVER, ITS OWN DATA AND KEYS Decision point AuthZEN; checks keys Engine (OPA) the one evaluator OPAL keeps the engine current Console the web app Management checks, saves, the ledger Local model optional, for drafting Rules history git Ledger hash-chained State directory and keys KEPT ON THE SERVER'S DISK, BACKED UP NIGHTLY pdp.<host> app.<host> asks rules decisions /api each publish drafts
Only two addresses face out: the console, for your people, and the decision point, for your gateways. The decision point answers only the gateway addresses you name. A model is optional and drafts rules; it never decides.
PartDoes
Decision pointSpeaks AuthZEN, checks keys, asks the engine, records refusals at its door.
EngineOPA, with the one evaluator, your rules and your directory loaded. Nothing else decides.
OPALBrings each published change to the engine within about a second.
ManagementThe backend behind the console and the API: checks, saves, the directory, keys and the ledger.
ConsoleThe web app your authors and reviewers sign in to, with Google, Microsoft or a passphrase.
Local modelOptional: 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.

DownDecisionsChanges
The engine or the decision pointRefused, unless a connection lets calls through when Caroline is downSaved; they reach the engine when it is back
ManagementGo on from what the engine holds, for up to 15 minutes without a fresh directoryNone: the console is down
The rules' historyGo onRefused; nothing half-saved
The ledger's diskGo on, recorded once it is back, within limitsRefused, except suspending an agent and revoking a key

Every part, in the docs