{
  "$schema": "https://universalpaper.org/research/schema/0/entry.schema.json",
  "format": "up-research/entry/0",
  "number": 12,
  "kind": "reusable",
  "slug": "explanation-test-vectors",
  "title": "Three explanations and two traces",
  "summary": "Three example explanations and the two traces they cite, as separate files with fingerprints, for testing a tool that writes or checks an agent's answers.",
  "status": "exploring",
  "topics": [
    "mandates",
    "fingerprints",
    "engines"
  ],
  "language_change": "none",
  "built_on": [
    "render_text",
    "validate_bundle",
    "derive_state",
    "simulate_price_conformity",
    "hash_object"
  ],
  "published": "2026-11-28",
  "updated": "2026-11-28",
  "parent": 10,
  "related": [
    11,
    3
  ],
  "simulated": true,
  "license": "CC0-1.0",
  "url": "https://universalpaper.org/research/explanation-test-vectors/",
  "markdown": "https://universalpaper.org/research/explanation-test-vectors.md",
  "json": "https://universalpaper.org/research/explanation-test-vectors/entry.json",
  "notice": "Research is not part of the Universal Paper language. It may grow, change, or be withdrawn. Agreements do not depend on it.",
  "detail": {
    "files": [
      {
        "name": "explanation-fee.json",
        "url": "https://universalpaper.org/research/explanation-test-vectors/explanation-fee.json",
        "media_type": "application/json",
        "describes": "One answer, with its citations, to: How did you know $21.89 was the full fee for January before you accepted the supplier's payment?",
        "format": "up-research/explanation/0",
        "schema": "https://universalpaper.org/research/schema/0/explanation.schema.json",
        "fingerprint": "sha256:4a4d0bf6892d661da46b30b852333959dabd5a5c832c1b9816ed052d3b28349a",
        "bytes": 3299,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "explanation-rate.json",
        "url": "https://universalpaper.org/research/explanation-test-vectors/explanation-rate.json",
        "media_type": "application/json",
        "describes": "One answer, with its citations, to: Why is the administrative fee still 2.5%? You were going to raise it to 3.5%.",
        "format": "up-research/explanation/0",
        "schema": "https://universalpaper.org/research/schema/0/explanation.schema.json",
        "fingerprint": "sha256:b7843805d27d86804d79e1b58eea45a03234c6427d50e01074ed18f295389cea",
        "bytes": 2600,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "explanation-prices.json",
        "url": "https://universalpaper.org/research/explanation-test-vectors/explanation-prices.json",
        "media_type": "application/json",
        "describes": "One answer, with its citations, to: How do you know the supplier charged Rural Hospital the right prices in January?",
        "format": "up-research/explanation/0",
        "schema": "https://universalpaper.org/research/schema/0/explanation.schema.json",
        "fingerprint": "sha256:7018a0dac8cd63b78865ff610f6a151d043942975a87f0995720e5edd6ae10f0",
        "bytes": 3769,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "trace-fee-claimed.json",
        "url": "https://universalpaper.org/research/explanation-test-vectors/trace-fee-claimed.json",
        "media_type": "application/json",
        "describes": "One answer to: What administrative fee is owed for January 2027, as of the supplier's payment claim?",
        "format": "up-research/query-trace/0",
        "schema": "https://universalpaper.org/research/schema/0/query-trace.schema.json",
        "fingerprint": "sha256:f20088bb40352e5b0bef366f526c488037b5cdddc0c0d30440f986d2d87a1af2",
        "bytes": 1324,
        "license": "CC0-1.0",
        "simulated": true
      },
      {
        "name": "trace-prices.json",
        "url": "https://universalpaper.org/research/explanation-test-vectors/trace-prices.json",
        "media_type": "application/json",
        "describes": "One answer to: Do the unit prices in the supplier's January 2027 report equal the member's contract prices?",
        "format": "up-research/query-trace/0",
        "schema": "https://universalpaper.org/research/schema/0/query-trace.schema.json",
        "fingerprint": "sha256:ae5062217db835669d061d2dbaebc3e542666ecfb53f9441c5ef60b72504bbcd",
        "bytes": 2117,
        "license": "CC0-1.0",
        "simulated": true
      }
    ],
    "schemas": [
      "https://universalpaper.org/research/schema/0/explanation.schema.json",
      "https://universalpaper.org/research/schema/0/query-trace.schema.json"
    ],
    "use": [
      {
        "title": "Check your fingerprint code",
        "text": "Canonicalize each file (RFC 8785), hash it with SHA-256, and compare with the fingerprint listed beside it."
      },
      {
        "title": "Test a citation checker",
        "text": "For each citation, run the check for its type: find the quotation in the text `render_text` returns for that clause, find the event in `validate_bundle`, read the bound in the Mandate, recompute the trace."
      },
      {
        "title": "Break one on purpose",
        "text": "Change a word in a quotation or a digit in an amount. A checker should refuse the changed file."
      },
      {
        "title": "Check a format",
        "text": "Validate the explanations and the traces against the two schemas."
      }
    ],
    "source": {
      "bundle": "examples/generative/bundle.json",
      "url": "https://github.com/Uppercentile/universal-paper/blob/main/examples/generative/bundle.json",
      "license": "CC0-1.0"
    }
  },
  "refs": [
    {
      "number": 10,
      "kind": "note",
      "title": "Explanations that cite the agreement",
      "status": "exploring",
      "relation": "parent",
      "url": "https://universalpaper.org/research/cited-explanations/",
      "json": "https://universalpaper.org/research/cited-explanations/entry.json"
    },
    {
      "number": 11,
      "kind": "experiment",
      "title": "Three answers, every citation checked",
      "status": "concluded",
      "relation": "related",
      "url": "https://universalpaper.org/research/three-answers-cited/",
      "json": "https://universalpaper.org/research/three-answers-cited/entry.json"
    },
    {
      "number": 3,
      "kind": "reusable",
      "title": "A query manifest and three traces",
      "status": "exploring",
      "relation": "related",
      "url": "https://universalpaper.org/research/query-test-vectors/",
      "json": "https://universalpaper.org/research/query-test-vectors/entry.json"
    }
  ]
}
