{
  "specVersion": "0.6.0",
  "id": "https://example.com/judgment-packs/expense-approval",
  "version": "0.2.0",
  "title": "Expense approval",
  "description": "Research example for deciding whether an employee expense may be automatically approved.",
  "decision": {
    "intent": "Determine whether an employee expense may be automatically approved, rejected, or sent to a human reviewer.",
    "question": "What approval path should this expense follow?"
  },
  "applicability": {
    "op": "fact",
    "path": "/expense/type",
    "operator": "equals",
    "value": "employee-expense"
  },
  "evidenceRequirements": [
    {
      "id": "receipt",
      "description": "An itemized receipt for the expense.",
      "required": true,
      "kind": "document"
    },
    {
      "id": "cost-center",
      "description": "A valid cost-center identifier.",
      "required": true,
      "kind": "fact"
    }
  ],
  "sources": [
    {
      "id": "expense-policy",
      "title": "Example expense policy",
      "publisher": "Example Corporation",
      "publishedAt": "2026-01-15",
      "locator": {
        "kind": "uri",
        "value": "https://example.com/policies/expenses"
      },
      "citation": {
        "location": "Section 4 \u2014 approval thresholds",
        "excerpt": "Expenses above 5000 require finance review. Prohibited categories must be rejected."
      },
      "rights": "Example content; not an operational policy."
    }
  ],
  "outcomes": [
    {
      "id": "approve",
      "label": "Approve",
      "description": "The evidence and declared rules support automatic approval.",
      "extensions": {
        "org.judgmentpack.annotations": {
          "path": "automatic"
        }
      }
    },
    {
      "id": "manual-review",
      "label": "Manual review",
      "description": "An accountable finance reviewer must decide.",
      "extensions": {
        "org.judgmentpack.annotations": {
          "path": "human"
        }
      }
    },
    {
      "id": "reject",
      "label": "Reject",
      "description": "The expense falls in a prohibited category.",
      "extensions": {
        "org.judgmentpack.annotations": {
          "path": "automatic"
        }
      }
    }
  ],
  "rules": [
    {
      "id": "prohibited-category",
      "description": "Reject expenses in a prohibited category.",
      "when": {
        "op": "fact",
        "path": "/expense/category",
        "operator": "in",
        "valueSet": "prohibited-categories"
      },
      "outcome": "reject",
      "onUnknown": "escalate",
      "evidenceRequirementRefs": [
        "receipt",
        "cost-center"
      ],
      "sourceRefs": [
        "expense-policy"
      ],
      "rationale": "The example policy prohibits these categories.",
      "extensions": {
        "org.judgmentpack.annotations": {
          "category": [
            "policy",
            "prohibition"
          ]
        }
      }
    },
    {
      "id": "large-expense",
      "description": "Send expenses above the declared threshold to finance review.",
      "when": {
        "op": "fact",
        "path": "/expense/amount",
        "operator": "greater-than",
        "value": "5000"
      },
      "outcome": "manual-review",
      "onUnknown": "escalate",
      "evidenceRequirementRefs": [
        "receipt",
        "cost-center"
      ],
      "sourceRefs": [
        "expense-policy"
      ],
      "rationale": "The example policy requires finance review above 5000.",
      "extensions": {
        "org.judgmentpack.annotations": {
          "category": "threshold"
        }
      }
    },
    {
      "id": "ordinary-expense",
      "description": "Approve a supported ordinary expense at or below the threshold.",
      "when": {
        "op": "all",
        "conditions": [
          {
            "op": "fact",
            "path": "/expense/amount",
            "operator": "less-than-or-equal",
            "value": "5000"
          },
          {
            "op": "not",
            "condition": {
              "op": "fact",
              "path": "/expense/category",
              "operator": "in",
              "valueSet": "prohibited-categories"
            }
          },
          {
            "op": "evidence-present",
            "evidenceRequirement": "receipt"
          },
          {
            "op": "evidence-present",
            "evidenceRequirement": "cost-center"
          }
        ]
      },
      "outcome": "approve",
      "onUnknown": "escalate",
      "evidenceRequirementRefs": [
        "receipt",
        "cost-center"
      ],
      "sourceRefs": [
        "expense-policy"
      ],
      "rationale": "Ordinary supported expenses may follow the automatic path.",
      "extensions": {
        "org.judgmentpack.annotations": {
          "category": "threshold",
          "review-cycle": "monthly"
        }
      }
    }
  ],
  "exceptions": [
    {
      "id": "active-investigation",
      "description": "An expense connected to an active investigation requires human review.",
      "when": {
        "op": "fact",
        "path": "/expense/activeInvestigation",
        "operator": "equals",
        "value": true
      },
      "effect": "force-outcome",
      "outcome": "manual-review",
      "onUnknown": "escalate"
    }
  ],
  "valueSets": [
    {
      "id": "prohibited-categories",
      "description": "Expense categories the example policy prohibits.",
      "entries": [
        {
          "value": "personal",
          "description": "A personal expense.",
          "extensions": {
            "org.judgmentpack.annotations": {
              "policy-section": "4.2"
            }
          }
        },
        {
          "value": "cash-equivalent",
          "description": "Cash or an instrument redeemable as cash.",
          "extensions": {
            "org.judgmentpack.annotations": {
              "policy-section": "4.3",
              "category": [
                "cash",
                "fraud-risk"
              ]
            }
          }
        }
      ]
    }
  ],
  "fallbackOutcome": "manual-review",
  "escalation": {
    "triggers": [
      "not-applicable",
      "missing-required-evidence",
      "unknown",
      "conflict",
      "no-match"
    ],
    "target": {
      "kind": "human-role",
      "name": "Finance reviewer"
    },
    "message": "Review the expense, cited policy, missing evidence, and conflicting rules."
  },
  "metadata": {
    "authors": [
      "Judgment Pack Specification contributors"
    ],
    "createdAt": "2026-07-22T00:00:00Z",
    "license": "Apache-2.0"
  },
  "extensions": {
    "org.judgmentpack.annotations": {
      "domain": "finance",
      "review-cycle": "quarterly"
    }
  }
}
