An open spec for the judgment calls inside business policy. Facts come from systems of record, one scoped question goes to a model, and the owner's costs decide when to act, refuse, or ask a person one question.
id: invoice_matches_po
question: "Does the invoice describe the work in the PO?"
inputs: [invoice_line, po_description] # all the model sees
engine: decision_model
model_version: "jev-1.13" # pinned
costs:
false_yes: 4800 # paying a mismatched invoice
false_no: 150 # holding a valid one
review: 25 # one person, one question
# derived: yes at p ≥ 0.995, no at p ≤ 0.167
permit (principal, action == Action::"pay_invoice", resource)
when {
context.amount_within_po && // ERP
!context.vendor_on_hold && // ERP
context.semantic.invoice_matches_po // judgment
};
forbid (principal, action == Action::"pay_invoice", resource)
when { context.bank_changed_last_30_days };
{
"predicate": "invoice_matches_po",
"p": 0.87,
"band": "unsure",
"readings": { "yes": "permit", "no": "deny" },
"outcome": "indeterminate",
"ask": "invoice_matches_po",
"record_hash": "sha256:…"
}
The owner states what a wrong yes, a wrong no and a review cost. Thresholds follow, then get qualified on labeled data.
Unsure facts are tried both ways. If the outcome is the same, no one is asked. If not, a person answers one question.
Judgments are recorded as facts before the policy runs, so one hash-chained record reproduces the outcome exactly.
Set the owner's costs and drag the model's confidence. The gate derives the thresholds, tries both readings against the sample policy, and decides.
Sample values. The scale is stretched near 0 and 1, where these decisions are made.
If you own a payment, approval or refund policy, Reasonable Doubt is how agents from any vendor get held to it, with you in control of the risk.
State what a wrong payment, a wrongly held payment and a review cost. The rules for when to act follow from that.
Such as whether an invoice matches its purchase order. It never sees more than the fields you allow.
With one specific question and both texts side by side, not the whole case again.
Each one leaves a record that replays to the same result, with the policy and model versions it used.