{
  "schema_version": "d30-reconciliation-independent-v1",
  "classification": "synthetic independent cases before matcher implementation",
  "cases": [
    {
      "id": "R01-revision-receipt-equality",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-OUT",
            "E-OUT"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R02-before-later-revision",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-21T12:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "FIELD_MISMATCH",
            [
              "amount_minor"
            ]
          ],
          [
            "external",
            "E-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "external",
            "E-OUT",
            "FIELD_MISMATCH",
            [
              "amount_minor"
            ]
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 4
        },
        "withdrawn": {
          "internal": [],
          "external": []
        },
        "visible_sequences": {
          "internal": "4",
          "external": "4"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "4"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": []
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "amount_minor"
            ]
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "amount_minor"
            ]
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R03-before-atomic-revision-group",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T08:59:59.999Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "FIELD_MISMATCH",
            [
              "amount_minor"
            ]
          ],
          [
            "external",
            "E-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "external",
            "E-OUT",
            "FIELD_MISMATCH",
            [
              "amount_minor"
            ]
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 4
        },
        "withdrawn": {
          "internal": [],
          "external": []
        },
        "visible_sequences": {
          "internal": "4",
          "external": "4"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "4"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": []
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "amount_minor"
            ]
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "amount_minor"
            ]
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R04-delivery-permutation",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-OUT",
            "E-OUT"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R05-unique-currency-mismatch",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "EUR",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "FIELD_MISMATCH",
            [
              "currency"
            ]
          ],
          [
            "external",
            "E-OUT",
            "FIELD_MISMATCH",
            [
              "currency"
            ]
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "EUR",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "currency"
            ]
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "currency"
            ]
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R05-unique-direction-mismatch",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "FIELD_MISMATCH",
            [
              "direction"
            ]
          ],
          [
            "external",
            "E-OUT",
            "FIELD_MISMATCH",
            [
              "direction"
            ]
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "direction"
            ]
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "direction"
            ]
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R05-unique-amount-mismatch",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1300",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "FIELD_MISMATCH",
            [
              "amount_minor"
            ]
          ],
          [
            "external",
            "E-OUT",
            "FIELD_MISMATCH",
            [
              "amount_minor"
            ]
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1300",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "amount_minor"
            ]
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "amount_minor"
            ]
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R06-reference-bucket-blocks-amount-rescue",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "5",
              "row_id": "I-OUT-OTHER",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1300",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "5",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ]
        ],
        "ambiguous": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal": [
              "I-OUT",
              "I-OUT-OTHER"
            ],
            "external": [
              "E-OUT"
            ]
          }
        ],
        "active_counts": {
          "internal": 5,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "5",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "5",
            "validated_through_sequence": "5",
            "visible_through_sequence": "5"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT-OTHER",
                "revision": "1",
                "sequence": "5",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1300",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_refs": [
              {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT-OTHER",
                "revision": "1",
                "sequence": "5",
                "source_version_ref": "LEDGER-EXPORT-V1"
              }
            ],
            "external_row_refs": [
              {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              }
            ],
            "reason": "NON_UNIQUE_REFERENCE"
          }
        ]
      }
    },
    {
      "id": "R07-reference-preserves-case",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "pay-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "NO_COUNTERPART",
            []
          ],
          [
            "external",
            "E-OUT",
            "NO_COUNTERPART",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "pay-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R07-reference-preserves-leading-zero",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-0002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "NO_COUNTERPART",
            []
          ],
          [
            "external",
            "E-OUT",
            "NO_COUNTERPART",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-0002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R07-reference-preserves-outer-space",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002 "
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-OUT",
            "NO_COUNTERPART",
            []
          ],
          [
            "external",
            "E-OUT",
            "NO_COUNTERPART",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002 "
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R08-reversal-kind-is-not-ordinary",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-OUT",
            "E-OUT"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ],
          [
            "internal",
            "I-REV",
            "FIELD_MISMATCH",
            [
              "is_reversal"
            ]
          ],
          [
            "external",
            "E-REV",
            "FIELD_MISMATCH",
            [
              "is_reversal"
            ]
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "is_reversal"
            ]
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "FIELD_MISMATCH",
            "mismatches": [
              "is_reversal"
            ]
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R09-forward-value-date-retained",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-12-31",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-OUT",
            "E-OUT"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-12-31",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R10-unicode-description-valid-for-exact-reference",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\u062a\u062d\u0648\u064a\u0644 \u0627\u0635\u0637\u0646\u0627\u0639\u064a",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-OUT",
            "E-OUT"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\u062a\u062d\u0648\u064a\u0644 \u0627\u0635\u0637\u0646\u0627\u0639\u064a",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "R11-missing-future-unselected-group",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-21T12:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "indeterminate",
        "code": "INCOMPLETE_SOURCE",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "indeterminate",
        "code": "INCOMPLETE_SOURCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R12-future-booking-invalid-before-cutoffs",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-21T12:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-23",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "FUTURE_BOOKING_DATE",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "FUTURE_BOOKING_DATE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R13-description-DEL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "bad\u007f",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R14-exact-duplicate-event",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "DUPLICATE_EVENT",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "DUPLICATE_EVENT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R15-changed-row-revision-conflict",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "CHANGED",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "EVENT_ID_CONFLICT",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "EVENT_ID_CONFLICT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R16-conflict-wins-over-duplicate",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "CHANGED",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "EVENT_ID_CONFLICT",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "EVENT_ID_CONFLICT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R17-conflict-precedence-permutation",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "CHANGED",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            },
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "EVENT_ID_CONFLICT",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "EVENT_ID_CONFLICT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R18-knowledge-after-head",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-24T00:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "indeterminate",
        "code": "KNOWLEDGE_BEYOND_SOURCE",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "indeterminate",
        "code": "KNOWLEDGE_BEYOND_SOURCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "R19-scope-mismatch",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "OTHER",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "SCOPE_MISMATCH",
        "pairs": [],
        "unmatched": [],
        "ambiguous": []
      },
      "expected_full": {
        "status": "rejected",
        "code": "SCOPE_MISMATCH",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "E01-empty-complete-heads",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [],
      "external_groups": [],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "0",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "0",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "0",
            "validated_through_sequence": "0",
            "visible_through_sequence": "0"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "0",
            "validated_through_sequence": "0",
            "visible_through_sequence": "0"
          }
        },
        "selected": {
          "internal": [],
          "external": [],
          "withdrawn": {
            "internal": [],
            "external": []
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "E02-missing-blank",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "   "
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "   "
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "   "
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "   "
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E02-missing-empty",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": ""
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": ""
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": ""
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": ""
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E02-missing-sentinel",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "external",
            "row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E03-description240-scalars",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E04-revision-moves-booking-outside-window",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-19",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "1"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          },
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "NO_COUNTERPART",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E05-date-gap-is-diagnostic",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-22",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-21",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-21",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 1
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E06-tied-receipts-select-all-revisions",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-21T08:01:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-21T08:01:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E07-huge-exact-amount",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "9007199254740993",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "9007199254740993",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE"
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "2026-10-23T12:00:00.000Z",
            "coverage_start": "2026-10-19",
            "coverage_end": "2026-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "9007199254740993",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "2026-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "9007199254740993",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "2026-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "2026-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "2026-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "9007199254740993",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "E08-year0001",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "0001-10-20",
        "period_end": "0001-10-21",
        "knowledge_cutoff": "0001-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "0001-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "0001-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "0001-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "0001-10-19",
          "coverage_end": "0001-10-23",
          "observed_at": "0001-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "0001-10-19",
          "coverage_end": "0001-10-23",
          "observed_at": "0001-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "pairs": [
          [
            "I-FUND",
            "E-FUND"
          ],
          [
            "I-OUT",
            "E-OUT"
          ],
          [
            "I-REV",
            "E-REV"
          ]
        ],
        "unmatched": [
          [
            "internal",
            "I-MISSING",
            "MISSING_REFERENCE",
            []
          ]
        ],
        "ambiguous": [],
        "active_counts": {
          "internal": 4,
          "external": 3
        },
        "withdrawn": {
          "internal": [],
          "external": [
            [
              "E-MISSING",
              "2"
            ]
          ]
        },
        "visible_sequences": {
          "internal": "4",
          "external": "6"
        }
      },
      "expected_full": {
        "status": "ok",
        "code": "EXACT_MATCH_COMPLETE",
        "coverage": {
          "internal": {
            "source_id": "CEDAR-INTERNAL",
            "receipt_ref": "HEAD-INTERNAL",
            "observed_at": "0001-10-23T12:00:00.000Z",
            "coverage_start": "0001-10-19",
            "coverage_end": "0001-10-23",
            "head_sequence": "4",
            "validated_through_sequence": "4",
            "visible_through_sequence": "4"
          },
          "external": {
            "source_id": "CEDAR-EXTERNAL",
            "receipt_ref": "HEAD-EXTERNAL",
            "observed_at": "0001-10-23T12:00:00.000Z",
            "coverage_start": "0001-10-19",
            "coverage_end": "0001-10-23",
            "head_sequence": "6",
            "validated_through_sequence": "6",
            "visible_through_sequence": "6"
          }
        },
        "selected": {
          "internal": [
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "0001-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-MISSING",
                "revision": "1",
                "sequence": "4",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "0001-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-OUT",
                "revision": "1",
                "sequence": "2",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "0001-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-INTERNAL",
                "row_id": "I-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "LEDGER-EXPORT-V1"
              },
              "group_id": "INT-INITIAL",
              "available_at": "0001-10-21T08:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "external": [
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-FUND",
                "revision": "1",
                "sequence": "1",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "0001-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-OUT",
                "revision": "2",
                "sequence": "5",
                "source_version_ref": "BANK-STATEMENT-V2"
              },
              "group_id": "EXT-REVISION",
              "available_at": "0001-10-22T09:00:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "row_ref": {
                "source_id": "CEDAR-EXTERNAL",
                "row_id": "E-REV",
                "revision": "1",
                "sequence": "3",
                "source_version_ref": "BANK-STATEMENT-V1"
              },
              "group_id": "EXT-INITIAL",
              "available_at": "0001-10-21T08:01:00.000Z",
              "movement": {
                "booking_status": "booked",
                "booking_date": "0001-10-20",
                "value_date": "0001-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ],
          "withdrawn": {
            "internal": [],
            "external": [
              {
                "row_ref": {
                  "source_id": "CEDAR-EXTERNAL",
                  "row_id": "E-MISSING",
                  "revision": "2",
                  "sequence": "6",
                  "source_version_ref": "BANK-STATEMENT-V2"
                },
                "group_id": "EXT-REVISION",
                "available_at": "0001-10-22T09:00:00.000Z"
              }
            ]
          },
          "out_of_window_counts": {
            "internal": "0",
            "external": "0"
          }
        },
        "matches": [
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-001"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-FUND",
              "revision": "1",
              "sequence": "1",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "5000",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "PAY-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-OUT",
              "revision": "1",
              "sequence": "2",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-OUT",
              "revision": "2",
              "sequence": "5",
              "source_version_ref": "BANK-STATEMENT-V2"
            },
            "currency": "USD",
            "direction": "outflow",
            "amount_minor": "1200",
            "is_reversal": false,
            "booking_date_gap_days": 0
          },
          {
            "reference": {
              "namespace": "CEDAR-PAYMENT",
              "value": "REV-002"
            },
            "internal_row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "external_row_ref": {
              "source_id": "CEDAR-EXTERNAL",
              "row_id": "E-REV",
              "revision": "1",
              "sequence": "3",
              "source_version_ref": "BANK-STATEMENT-V1"
            },
            "currency": "USD",
            "direction": "inflow",
            "amount_minor": "1200",
            "is_reversal": true,
            "booking_date_gap_days": 0
          }
        ],
        "unmatched": [
          {
            "side": "internal",
            "row_ref": {
              "source_id": "CEDAR-INTERNAL",
              "row_id": "I-MISSING",
              "revision": "1",
              "sequence": "4",
              "source_version_ref": "LEDGER-EXPORT-V1"
            },
            "reason": "MISSING_REFERENCE",
            "mismatches": []
          }
        ],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-zero",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "0",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-negative",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "-1",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-negative-zero",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "-0",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-plus",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "+1",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-leading-zero",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "01",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-decimal",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1.0",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-exponent",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1e3",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-number",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": 1200,
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-boolean",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": true,
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-null",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": null,
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-too-long",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1111111111111111111111111111111",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-CR",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1\r",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-LF",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1\n",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-LS",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1\u2028",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-AMOUNT-PS",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1\u2029",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_AMOUNT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_AMOUNT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-object",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": {}
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-null",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": null
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-control",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "bad\n"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-DEL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "bad\u007f"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-nonASCII",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "\u0646\u0635"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-length",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-surrogate-high",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\ud800",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-surrogate-low",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\udfff",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-NUL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\u0000",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-NEL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\u0085",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-DEL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\u007f",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-emoji241",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DESCRIPTION-number",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": 1,
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DESCRIPTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REFERENCE-NAMESPACE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "bad namespace",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REFERENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REFERENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-REVERSAL-BOOL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": 1
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REVERSAL_FLAG"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REVERSAL_FLAG",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INVALID-DIRECTION",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "credit",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DIRECTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DIRECTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "UNSUPPORTED-CCY",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "JPY",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "UNSUPPORTED_CURRENCY"
      },
      "expected_full": {
        "status": "rejected",
        "code": "UNSUPPORTED_CURRENCY",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "PENDING-NOT-BOOKED",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "pending",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "UNSUPPORTED_BOOKING_STATUS"
      },
      "expected_full": {
        "status": "rejected",
        "code": "UNSUPPORTED_BOOKING_STATUS",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "BAD-GREGORIAN-DATE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-02-30",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DATE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DATE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "QUERY-UNKNOWN-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1",
        "unknown": 1
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_SCHEMA"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_SCHEMA",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "QUERY-MISSING-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_SCHEMA"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_SCHEMA",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "CONTEXT-UNKNOWN-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        },
        "claims": []
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_CONTEXT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_CONTEXT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "HEAD-UNKNOWN-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL",
          "unknown": 1
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_CONTEXT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_CONTEXT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "MOVEMENT-UNKNOWN-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false,
                "unknown": 1
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_SCHEMA"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_SCHEMA",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "EVENT-UNKNOWN-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              },
              "unknown": 1
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_SCHEMA"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_SCHEMA",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "GROUP-UNKNOWN-FIELD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ],
          "unknown": 1
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_GROUP"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_GROUP",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "QUERY-BAD-ID-ledger_id",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "bad id",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "QUERY-BAD-ID-entity_id",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "bad id",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "QUERY-BAD-ID-reconciliation_account_id",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "bad id",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "STRICT-ID-CR",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A\r",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "STRICT-ID-LF",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A\n",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "STRICT-ID-LS",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A\u2028",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "STRICT-ID-PS",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A\u2029",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_IDENTIFIER",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "WRONG-QUERY-SCHEMA",
      "query": {
        "schema_version": "other",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "UNSUPPORTED_SCHEMA"
      },
      "expected_full": {
        "status": "rejected",
        "code": "UNSUPPORTED_SCHEMA",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "WRONG-REFERENCE-POLICY",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "TRIM-UPPER"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "UNSUPPORTED_REFERENCE_POLICY"
      },
      "expected_full": {
        "status": "rejected",
        "code": "UNSUPPORTED_REFERENCE_POLICY",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "KNOWLEDGE-BEFORE-END",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-20T23:59:59.999Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "KNOWLEDGE_BEFORE_PERIOD_END"
      },
      "expected_full": {
        "status": "rejected",
        "code": "KNOWLEDGE_BEFORE_PERIOD_END",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "PERIOD-ZERO",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-20",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_PERIOD"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_PERIOD",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "BAD-TIMESTAMP",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_TIMESTAMP"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_TIMESTAMP",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "YEAR-ZERO",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "0000-01-01",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_DATE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_DATE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "COVERAGE-WINDOW",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-21",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "indeterminate",
        "code": "COVERAGE_WINDOW_MISMATCH"
      },
      "expected_full": {
        "status": "indeterminate",
        "code": "COVERAGE_WINDOW_MISMATCH",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "SAME-SOURCE-IDS",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_CONTEXT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_CONTEXT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "GROUP-WRONG-SOURCE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "OTHER",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "SOURCE_MISMATCH"
      },
      "expected_full": {
        "status": "rejected",
        "code": "SOURCE_MISMATCH",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "BAD-SEQUENCE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "05",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_SEQUENCE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_SEQUENCE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "BAD-REVISION",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "02",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REVISION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REVISION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "REVISION-GAP",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "3",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REVISION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REVISION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "WRONG-PREDECESSOR",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "9",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REVISION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REVISION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "WITHDRAW-NONNULL",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REVISION_ACTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REVISION_ACTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "FIRST-WITHDRAW",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "withdraw",
              "movement": null
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INVALID_REVISION_ACTION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INVALID_REVISION_ACTION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "MISSING-EARLY-SEQUENCE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "indeterminate",
        "code": "SOURCE_SEQUENCE_GAP"
      },
      "expected_full": {
        "status": "indeterminate",
        "code": "SOURCE_SEQUENCE_GAP",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "HEAD-BELOW-EVIDENCE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "5",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "HEAD_SEQUENCE_MISMATCH"
      },
      "expected_full": {
        "status": "rejected",
        "code": "HEAD_SEQUENCE_MISMATCH",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "GROUP-AFTER-HEAD",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-24T00:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "CLOCK_ORDER_VIOLATION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "CLOCK_ORDER_VIOLATION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "INTERNAL-IMMUTABLE",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-REVISION",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-22T08:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "I-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "5",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "INTERNAL_ROW_IMMUTABLE"
      },
      "expected_full": {
        "status": "rejected",
        "code": "INTERNAL_ROW_IMMUTABLE",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "SEQUENCE-CONFLICT",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "1",
              "row_id": "I-OTHER",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "SEQUENCE_ID_CONFLICT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "SEQUENCE_ID_CONFLICT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "GROUP-INTERLEAVING",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-SECOND",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "GROUP_INTERVAL_CONFLICT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "GROUP_INTERVAL_CONFLICT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "RECEIPT-REGRESSION",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:05:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-SECOND",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "CLOCK_ORDER_VIOLATION"
      },
      "expected_full": {
        "status": "rejected",
        "code": "CLOCK_ORDER_VIOLATION",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "DUPLICATE-GROUP-PERMUTED-EVENTS",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "DUPLICATE_GROUP"
      },
      "expected_full": {
        "status": "rejected",
        "code": "DUPLICATE_GROUP",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    },
    {
      "id": "GROUP-ID-CONFLICT",
      "query": {
        "schema_version": "d30-exact-reference-match-v1",
        "ledger_id": "CB-GENERAL",
        "entity_id": "CB-A",
        "reconciliation_account_id": "CEDAR-SETTLEMENT",
        "period_start": "2026-10-20",
        "period_end": "2026-10-21",
        "knowledge_cutoff": "2026-10-22T09:00:00.000Z",
        "reference_policy": "BYTE_EXACT_ASCII_V1"
      },
      "internal_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "INT-INITIAL",
          "source_id": "CEDAR-INTERNAL",
          "available_at": "2026-10-21T08:00:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "I-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5001",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "I-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "I-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "I-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "LEDGER-EXPORT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": null,
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        }
      ],
      "external_groups": [
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-INITIAL",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-21T08:01:00.000Z",
          "events": [
            {
              "sequence": "1",
              "row_id": "E-FUND",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "5000",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-001"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "2",
              "row_id": "E-OUT",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1100",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "3",
              "row_id": "E-REV",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "inflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "REV-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": true
              }
            },
            {
              "sequence": "4",
              "row_id": "E-MISSING",
              "revision": "1",
              "supersedes_revision": null,
              "source_version_ref": "BANK-STATEMENT-V1",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "700",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "NOTPROVIDED"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            }
          ]
        },
        {
          "schema_version": "d30-reconciliation-group-v1",
          "group_id": "EXT-REVISION",
          "source_id": "CEDAR-EXTERNAL",
          "available_at": "2026-10-22T09:00:00.000Z",
          "events": [
            {
              "sequence": "5",
              "row_id": "E-OUT",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "upsert",
              "movement": {
                "booking_status": "booked",
                "booking_date": "2026-10-20",
                "value_date": "2026-10-20",
                "currency": "USD",
                "direction": "outflow",
                "amount_minor": "1200",
                "reference": {
                  "namespace": "CEDAR-PAYMENT",
                  "value": "PAY-002"
                },
                "description": "Synthetic settlement",
                "is_reversal": false
              }
            },
            {
              "sequence": "6",
              "row_id": "E-MISSING",
              "revision": "2",
              "supersedes_revision": "1",
              "source_version_ref": "BANK-STATEMENT-V2",
              "action": "withdraw",
              "movement": null
            }
          ]
        }
      ],
      "context": {
        "internal_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-INTERNAL",
          "side": "internal",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "4",
          "receipt_ref": "HEAD-INTERNAL"
        },
        "external_head": {
          "schema_version": "d30-reconciliation-head-v1",
          "source_id": "CEDAR-EXTERNAL",
          "side": "external",
          "ledger_id": "CB-GENERAL",
          "entity_id": "CB-A",
          "reconciliation_account_id": "CEDAR-SETTLEMENT",
          "coverage_start": "2026-10-19",
          "coverage_end": "2026-10-23",
          "observed_at": "2026-10-23T12:00:00.000Z",
          "head_sequence": "6",
          "receipt_ref": "HEAD-EXTERNAL"
        }
      },
      "expected": {
        "status": "rejected",
        "code": "GROUP_ID_CONFLICT"
      },
      "expected_full": {
        "status": "rejected",
        "code": "GROUP_ID_CONFLICT",
        "coverage": null,
        "selected": null,
        "matches": [],
        "unmatched": [],
        "ambiguous": []
      }
    }
  ],
  "independent_balance_warning": {
    "initial_balance_minor": "10000",
    "internal_net_minor": "4300",
    "external_early_net_minor": "4400",
    "external_late_net_minor": "5000",
    "internal_close_minor": "14300",
    "external_late_close_minor": "15000",
    "late_unexplained_difference_minor": "-700",
    "meaning": "Three exact matched pairs do not prove equal closing balances. Internal unmatched700 remains; no balancing plug."
  }
}
