Draft · 0.6.0

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

valid-annotations-positions

RFC 0031 Example 1: annotations on the pack, an outcome and two rules, with a vendor key beside them

semantic valid

Layer
semantic
Expected result
valid
Specification
§9.2
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.6.0",
  "id": "https://example.com/judgment-packs/annotations-positions",
  "version": "0.1.0",
  "title": "Annotations on the pack, an outcome and two rules",
  "decision": {
    "intent": "Exercise one rule of RFC 0031.",
    "question": "Is the request accepted?"
  },
  "outcomes": [
    {
      "id": "accept",
      "label": "Accept",
      "extensions": {
        "org.judgmentpack.annotations": {
          "tier": "standard"
        }
      }
    },
    {
      "id": "refer",
      "label": "Refer for review"
    }
  ],
  "rules": [
    {
      "id": "complete-request",
      "description": "A complete request is accepted.",
      "when": {
        "op": "fact",
        "path": "/request/complete",
        "operator": "equals",
        "value": true
      },
      "outcome": "accept",
      "onUnknown": "escalate",
      "extensions": {
        "org.judgmentpack.annotations": {
          "category": [
            "intake",
            "completeness"
          ],
          "review-cycle": "quarterly"
        },
        "com.example.authoring": {
          "draftedWith": "editor"
        }
      }
    },
    {
      "id": "incomplete-request",
      "description": "An incomplete request is referred.",
      "when": {
        "op": "fact",
        "path": "/request/complete",
        "operator": "equals",
        "value": false
      },
      "outcome": "refer",
      "onUnknown": "escalate",
      "extensions": {
        "org.judgmentpack.annotations": {
          "category": "completeness"
        }
      }
    }
  ],
  "extensions": {
    "org.judgmentpack.annotations": {
      "category": "intake",
      "review-cycle": "quarterly"
    }
  }
}