{
  "after_groups": {
    "(blank)": {
      "amount_usd": 1200,
      "records": 1
    },
    "channel_partner": {
      "amount_usd": 3600,
      "records": 8
    },
    "direct": {
      "amount_usd": 3000,
      "records": 3
    }
  },
  "after_guarded_rollback": [
    {
      "amount_usd": 100,
      "id": "D01",
      "revision": 3,
      "source": "partner_referral"
    },
    {
      "amount_usd": 200,
      "id": "D02",
      "revision": 3,
      "source": "direct"
    },
    {
      "amount_usd": 300,
      "id": "D03",
      "revision": 3,
      "source": "partner_referral"
    },
    {
      "amount_usd": 400,
      "id": "D04",
      "revision": 3,
      "source": "reseller"
    },
    {
      "amount_usd": 500,
      "id": "D05",
      "revision": 3,
      "source": "reseller"
    },
    {
      "amount_usd": 600,
      "id": "D06",
      "revision": 3,
      "source": "reseller"
    },
    {
      "amount_usd": 700,
      "id": "D07",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 800,
      "id": "D08",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 900,
      "id": "D09",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1000,
      "id": "D10",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1100,
      "id": "D11",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1200,
      "id": "D12",
      "revision": 1,
      "source": null
    },
    {
      "amount_usd": 1300,
      "id": "D13",
      "revision": 1,
      "source": "channel_partner"
    }
  ],
  "after_merge": [
    {
      "amount_usd": 100,
      "id": "D01",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 200,
      "id": "D02",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 300,
      "id": "D03",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 400,
      "id": "D04",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 500,
      "id": "D05",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 600,
      "id": "D06",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 700,
      "id": "D07",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 800,
      "id": "D08",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 900,
      "id": "D09",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1000,
      "id": "D10",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1100,
      "id": "D11",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1200,
      "id": "D12",
      "revision": 1,
      "source": null
    }
  ],
  "amount_before_and_after_usd": 7800,
  "before": [
    {
      "amount_usd": 100,
      "id": "D01",
      "revision": 1,
      "source": "partner_referral"
    },
    {
      "amount_usd": 200,
      "id": "D02",
      "revision": 1,
      "source": "partner_referral"
    },
    {
      "amount_usd": 300,
      "id": "D03",
      "revision": 1,
      "source": "partner_referral"
    },
    {
      "amount_usd": 400,
      "id": "D04",
      "revision": 1,
      "source": "reseller"
    },
    {
      "amount_usd": 500,
      "id": "D05",
      "revision": 1,
      "source": "reseller"
    },
    {
      "amount_usd": 600,
      "id": "D06",
      "revision": 1,
      "source": "reseller"
    },
    {
      "amount_usd": 700,
      "id": "D07",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 800,
      "id": "D08",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 900,
      "id": "D09",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1000,
      "id": "D10",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1100,
      "id": "D11",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1200,
      "id": "D12",
      "revision": 1,
      "source": null
    }
  ],
  "before_groups": {
    "(blank)": {
      "amount_usd": 1200,
      "records": 1
    },
    "channel_partner": {
      "amount_usd": 1500,
      "records": 2
    },
    "direct": {
      "amount_usd": 3000,
      "records": 3
    },
    "partner_referral": {
      "amount_usd": 600,
      "records": 3
    },
    "reseller": {
      "amount_usd": 1500,
      "records": 3
    }
  },
  "before_guarded_rollback": [
    {
      "amount_usd": 100,
      "id": "D01",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 200,
      "id": "D02",
      "revision": 3,
      "source": "direct"
    },
    {
      "amount_usd": 300,
      "id": "D03",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 400,
      "id": "D04",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 500,
      "id": "D05",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 600,
      "id": "D06",
      "revision": 2,
      "source": "channel_partner"
    },
    {
      "amount_usd": 700,
      "id": "D07",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 800,
      "id": "D08",
      "revision": 1,
      "source": "channel_partner"
    },
    {
      "amount_usd": 900,
      "id": "D09",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1000,
      "id": "D10",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1100,
      "id": "D11",
      "revision": 1,
      "source": "direct"
    },
    {
      "amount_usd": 1200,
      "id": "D12",
      "revision": 1,
      "source": null
    },
    {
      "amount_usd": 1300,
      "id": "D13",
      "revision": 1,
      "source": "channel_partner"
    }
  ],
  "changed_records": 6,
  "limitations": [
    "Invented records and USD amounts; no customer or vendor account data.",
    "Single field, sequential in-memory writes, no failures or side effects.",
    "Revision integers illustrate a version check, not an actual CRM API.",
    "Restoring field values does not reverse workflow side effects or configuration changes."
  ],
  "mapping": {
    "partner_referral": "channel_partner",
    "reseller": "channel_partner"
  },
  "method": "Synthetic single-select source-value consolidation and guarded rollback",
  "naive_inverse_wrong_ids": [
    "D04",
    "D05",
    "D06",
    "D07",
    "D08"
  ],
  "receipts": [
    {
      "after": "channel_partner",
      "before": "partner_referral",
      "id": "D01",
      "written_revision": 2
    },
    {
      "after": "channel_partner",
      "before": "partner_referral",
      "id": "D02",
      "written_revision": 2
    },
    {
      "after": "channel_partner",
      "before": "partner_referral",
      "id": "D03",
      "written_revision": 2
    },
    {
      "after": "channel_partner",
      "before": "reseller",
      "id": "D04",
      "written_revision": 2
    },
    {
      "after": "channel_partner",
      "before": "reseller",
      "id": "D05",
      "written_revision": 2
    },
    {
      "after": "channel_partner",
      "before": "reseller",
      "id": "D06",
      "written_revision": 2
    }
  ],
  "record_count_before_and_after": 12,
  "rollback_decisions": [
    {
      "decision": "restored",
      "id": "D01"
    },
    {
      "decision": "review_later_edit",
      "id": "D02"
    },
    {
      "decision": "restored",
      "id": "D03"
    },
    {
      "decision": "restored",
      "id": "D04"
    },
    {
      "decision": "restored",
      "id": "D05"
    },
    {
      "decision": "restored",
      "id": "D06"
    }
  ],
  "stale_partner_referral_filter": {
    "after_amount_usd": 0,
    "after_count": 0,
    "before_amount_usd": 600,
    "before_count": 3
  },
  "verification_date": "2026-10-19"
}
