{
  "name": "DN Outcome Receipt Consistency Fixtures",
  "version": "0.1",
  "publishedAt": "2026-11-02",
  "evidenceType": "local-synthetic-record-consistency-tests",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "limitations": [
    "These are invented records, not observed provider transactions or cryptographic proofs.",
    "Expected labels test internal consistency only. A fabricated but balanced record intentionally remains consistent.",
    "USD cents, one task and at most one accepted outcome; no partial acceptance, refunds, tax, token decimals or currency conversion.",
    "No model, provider API, blockchain or signature-verification calls."
  ],
  "cases": [
    {
      "id": "accepted-after-retry",
      "purpose": "Accepted-only buyer invoice differs from upstream cost.",
      "expectedInternallyConsistent": true,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "attempt-priced",
      "purpose": "Two declared buyer-billable attempts are invoiced.",
      "expectedInternallyConsistent": true,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "attempt",
          "unitPriceMinor": 1,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 2
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 2,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "pending-is-not-zero-cost",
      "purpose": "No accepted outcome, but upstream costs remain.",
      "expectedInternallyConsistent": true,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "pending",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "pending",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": null,
          "evidenceRef": null
        },
        "invoice": {
          "totalMinor": 0
        },
        "settlement": {
          "status": "pending",
          "amountMinor": 0,
          "reference": null
        }
      }
    },
    {
      "id": "rejected-zero-buyer-invoice",
      "purpose": "Accepted-only billing can coexist with nonzero upstream cost.",
      "expectedInternallyConsistent": true,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "rejected",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": null,
          "evidenceRef": "demo-rejection-1"
        },
        "invoice": {
          "totalMinor": 0
        },
        "settlement": {
          "status": "pending",
          "amountMinor": 0,
          "reference": null
        }
      }
    },
    {
      "id": "fabricated-but-balanced",
      "purpose": "Invented identifiers remain structurally consistent; this does not authenticate evidence.",
      "expectedInternallyConsistent": true,
      "receipt": {
        "version": "0.1",
        "taskId": "invented-task",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "duplicate-attempt",
      "purpose": "Duplicated identifiers need reconciliation.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "authority-mismatch",
      "purpose": "Attempt reference differs from task reference.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "other-auth",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "policy-mismatch",
      "purpose": "Attempt uses another policy label.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "other-policy",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "criterion-switch",
      "purpose": "Acceptance criterion was changed.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "different-rule",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "missing-acceptance-evidence",
      "purpose": "Accepted state lacks an evidence reference.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": null
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "wrong-accepted-attempt",
      "purpose": "Accepted task points at the rejected attempt.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-1",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "two-accepted-attempts",
      "purpose": "Draft supports a single accepted outcome.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "unresolved-retry-cost",
      "purpose": "Retry-cost allocation is not agreed.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "unresolved"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "invoice-mismatch",
      "purpose": "Buyer invoice disagrees with declared billing rule.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 2
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "settlement-mismatch",
      "purpose": "Settled amount disagrees with buyer invoice.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 4,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "no-settlement-reference",
      "purpose": "Settled label has no payment reference.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": null
        }
      }
    },
    {
      "id": "fractional-cent",
      "purpose": "Fractional minor units are unsupported.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 0.5
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "negative-cost",
      "purpose": "Negative cost is outside this draft.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": -1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "mixed-currency",
      "purpose": "Only USD cents are supported.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USDC",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "string-boolean",
      "purpose": "A string must not silently become true.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": "false",
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "disputed-settlement",
      "purpose": "A dispute cannot be closed by matching arithmetic.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "disputed",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "unknown-field",
      "purpose": "Reject fields outside the small supported profile.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "rejected",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        },
        "signature": "not-a-real-signature"
      }
    },
    {
      "id": "accepted-with-pending",
      "purpose": "Resolve pending attempts before final acceptance.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [
          {
            "attemptId": "demo-attempt-1",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "pending",
            "buyerBillable": false,
            "upstreamCostMinor": 1
          },
          {
            "attemptId": "demo-attempt-2",
            "authorizationRef": "demo-auth-1",
            "policyRef": "demo-policy-v1",
            "status": "accepted",
            "buyerBillable": true,
            "upstreamCostMinor": 1
          }
        ],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    },
    {
      "id": "empty-attempts",
      "purpose": "No attempt trail is provided.",
      "expectedInternallyConsistent": false,
      "receipt": {
        "version": "0.1",
        "taskId": "demo-task-42",
        "authorizationRef": "demo-auth-1",
        "policyRef": "demo-policy-v1",
        "criterionRef": "demo-csv-rule-v1",
        "contract": {
          "currency": "USD",
          "billingBasis": "accepted_outcome",
          "unitPriceMinor": 5,
          "retryCostBearer": "operator"
        },
        "attempts": [],
        "acceptance": {
          "status": "accepted",
          "criterionRef": "demo-csv-rule-v1",
          "attemptId": "demo-attempt-2",
          "evidenceRef": "demo-evaluation-2"
        },
        "invoice": {
          "totalMinor": 5
        },
        "settlement": {
          "status": "settled",
          "amountMinor": 5,
          "reference": "demo-payment-1"
        }
      }
    }
  ]
}
