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
| Answer | Means |
|---|---|
| Allowed | a rule permitted it, and nothing forbade it |
| Denied | the engine said no, in one of three ways (below) |
| Refused | turned away at the door, before the engine: no key, a wrong or revoked key, an agent key that is not its own |
| Search | a who-may or what-may question (Who may do what) |
Three ways to be denied
| On the page | What happened | In an export |
|---|---|---|
| No policy allows it | no rule spoke; default deny | deny |
| Forbidden by a policy | a deny rule matched, and no allow did | explicit-deny |
| Forbidden over an allow | a deny rule matched and beat an allow that also matched | deny-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:
- Why: the rules that decided, as their cards; the person an agent acted for and what that person's rules said; what a shadow rule would have done.
- Who and what: the subject and the record as Caroline holds them now, with a way into the Directory.
- Record: every time this same call was made, the gateway and its key, the request as sent, and the decision's place in the ledger: its
decision_id, sequence number and hash.
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.
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
| View | Reads | Who |
|---|---|---|
| Latest | the PDP's last 100 decisions, searches and refusals, in memory; cleared by a restart or a pack switch | anyone who may read |
| 1 hour, 24 hours, 7 days, All | the retained ledger | authors |
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
Or from a terminal: caroline decisions --id ID.