Draft · 0.2.0-draft

A `0.x` draft in production use by adopters: pin the exact draft and runtime release; no compatibility guarantee between drafts.

Informative test case View tagged source

← All conformance cases

structural-invalid-exception-on-unknown

exception onUnknown must be chosen from the closed vocabulary

structural invalid

Layer
structural
Expected result
invalid
Expected diagnostic
JPS-STRUCTURE-ENUM at /exceptions/0/onUnknown
Specification
§6.6
The expected result is conformance-corpus metadata, not a claim about factual grounding, authority, safety, or operational fitness.

Download exact fixture

Exact fixture

{
  "specVersion": "0.2.0-draft",
  "id": "https://example.com/judgment-packs/invalid-exception-on-unknown",
  "version": "0.1.0",
  "title": "Invalid exception onUnknown",
  "decision": {
    "intent": "Exercise the escalate exception branch.",
    "question": "Should the exception require escalation?"
  },
  "outcomes": [
    {
      "id": "accept",
      "label": "Accept"
    },
    {
      "id": "reject",
      "label": "Reject"
    }
  ],
  "rules": [
    {
      "id": "base-rule",
      "description": "A declared base rule.",
      "when": {
        "op": "literal",
        "value": true
      },
      "outcome": "accept",
      "onUnknown": "ignore"
    }
  ],
  "exceptions": [
    {
      "id": "escalation",
      "description": "Requires escalation without a target rule or outcome.",
      "when": {
        "op": "literal",
        "value": true
      },
      "effect": "escalate",
      "onUnknown": "custom"
    }
  ]
}