CarolineDocs

Prove it / Why was this refused?

Why was this refused?

Every answer names what decided it. The Decisions page shows each decision in plain words, opens it to the rule and the record behind it, and, for a no, says what would have to be true for a yes.

Four answers

AnswerMeans
Alloweda rule permitted it, and nothing forbade it
Deniedthe engine said no, in one of three ways (below)
Refusedturned away at the door, before the engine: no key, a wrong or revoked key, an agent key that is not its own
Searcha who-may or what-may question (Who may do what)

Three ways to be denied

On the pageWhat happenedIn an export
No policy allows itno rule spoke; default denydeny
Forbidden by a policya deny rule matched, and no allow didexplicit-deny
Forbidden over an allowa deny rule matched and beat an allow that also matcheddeny-override

The difference matters. A payment officer approving their own payment is forbidden, by the four-eyes rule; a clerk asking for something no rule covers is simply not allowed. "What did we actively forbid?" is a filter on the page.

A no can also come from one of Caroline's own checks rather than a rule: an agent called without its own key, an agent acting for nobody where it must, a call outside a gateway's binding. The page says which, in words ("Called without its own key").

Open a decision

Click a line on Decisions. It opens under itself:

Run on Test asks the same question again, against the rules as they are now.

What would have to be true

When nothing allowed it, the next question is not why, but what would have to change. The Policy Tester answers it, rule by rule, nearest first:

dept-read-own would permit this, except their department matches the resource's department: theirs is operations, the resource's is finance.

admin-all would permit this, except it wants role admin, and this one is manager.

Under a deny it names the forbidding rule, the facts that would have to stop holding, and the allow it beat. Asking never changes an answer: it runs beside the decision path, not in it.

It names fields, not people

Where a rule compares people (a care team, an initiator), the answer says "they are named in the record's care team, and they are not". It never lists who is.

Latest, or the record

ViewReadsWho
Latestthe PDP's last 100 decisions, searches and refusals, in memory; cleared by a restart or a pack switchanyone who may read
1 hour, 24 hours, 7 days, Allthe retained ledgerauthors

Filter by answer, by who asked (people or AI agents), by rule, or by "shadow differs"; count by who, record, rule or gateway. A rule's card (Its decisions), a change in History (Decisions since) and an agent (All its decisions) each open the page on their own question.

Hand it to someone

Export › These decisions gives the filtered lines as a CSV that opens cleanly in Excel: every field quoted, the reason in words, and any value a spreadsheet would run as a formula made safe. For the record itself, use Export › The whole record, with its proof (Verify and export).

The same, by API

GET/api/decisions/record?since=...&until=...&decision_id=...author

Or from a terminal: caroline decisions --id ID.

Caroline DocsAuthZEN 1.0 · OPA