{
  "format_version": 1,
  "status": "automated scoped export comparison",
  "requested_rule_discrepancies": 5,
  "exit_code": 1,
  "complete_migration_assurance": false,
  "inputs": {
    "source": {
      "path": "migration_source.csv",
      "sha256": "05a1f0248df9a6bc39c67bbf231f6b121029d37e04d7da0abca63e348eaa218e",
      "headers": [
        "source_deal_id",
        "company_id",
        "owner_id",
        "currency",
        "amount",
        "stage",
        "attachment_ref"
      ]
    },
    "target": {
      "path": "migration_target.csv",
      "sha256": "417afa1090a8879dca70118dd2606b6fd798429e51852cbc8c0fe759af041127",
      "headers": [
        "target_deal_id",
        "source_deal_id",
        "company_id",
        "owner_id",
        "currency",
        "amount",
        "stage",
        "attachment_ref"
      ]
    }
  },
  "rules": {
    "source_id": "source_deal_id",
    "target_id": "source_deal_id",
    "fields": [
      {
        "source": "amount",
        "target": "amount",
        "comparison": "decimal"
      },
      {
        "source": "owner_id",
        "target": "owner_id",
        "comparison": "exact_text"
      },
      {
        "source": "company_id",
        "target": "company_id",
        "comparison": "exact_text"
      }
    ],
    "value_maps": {},
    "identifier_assumption": "Retained stable unique source IDs; exact matching; one target row per source."
  },
  "coverage": {
    "status": "incomplete",
    "source_rows": 6,
    "target_rows": 6,
    "compared_records": 4,
    "skipped_source_records": 2,
    "skipped_target_rows": 2
  },
  "excluded_fields": {
    "source": [
      "currency",
      "stage",
      "attachment_ref"
    ],
    "target": [
      "target_deal_id",
      "currency",
      "stage",
      "attachment_ref"
    ]
  },
  "limitations": [
    "Only supplied rows and selected fields are checked; extract completeness is not verified.",
    "Unselected fields are excluded, not passed. No other row exclusions are configured.",
    "Exact text includes blanks; two blank fields do not establish valid business data.",
    "Decimal equality does not validate currency, units or business meaning; no totals are assurance.",
    "Relationship identifiers are compared as text, not verified against referenced records.",
    "Attachments, file accessibility and effective user permissions are unknown.",
    "Evidence row numbers are physical CSV line starts; header starts at line 1.",
    "No live CRM, attachment content or effective permissions are checked. Human business review is required."
  ],
  "checks": [
    {
      "check": "source_coverage",
      "status": "fail",
      "missing_source_records": 1
    },
    {
      "check": "target_identity",
      "status": "fail"
    },
    {
      "check": "field:amount=amount",
      "status": "fail",
      "differences": 1,
      "compared_records": 4,
      "skipped_source_records": 2,
      "skipped_target_rows": 2
    },
    {
      "check": "field:owner_id=owner_id",
      "status": "fail",
      "differences": 1,
      "compared_records": 4,
      "skipped_source_records": 2,
      "skipped_target_rows": 2
    },
    {
      "check": "field:company_id=company_id",
      "status": "fail",
      "differences": 1,
      "compared_records": 4,
      "skipped_source_records": 2,
      "skipped_target_rows": 2
    },
    {
      "check": "attachment_content_and_access",
      "status": "unknown"
    },
    {
      "check": "effective_user_permissions",
      "status": "unknown"
    }
  ],
  "exceptions": [
    {
      "check": "target_duplicate_id",
      "source_id": "DEMO-D005",
      "field": "source_deal_id",
      "source_rows": [
        6
      ],
      "target_rows": [
        6,
        7
      ],
      "source_value": "DEMO-D005",
      "target_value": "DEMO-D005",
      "detail": "Multiple target rows share one retained source identifier; all are skipped."
    },
    {
      "check": "field_difference",
      "source_id": "DEMO-D002",
      "field": "amount=amount",
      "source_rows": [
        3
      ],
      "target_rows": [
        3
      ],
      "source_value": "2500.00",
      "target_value": "2400.00",
      "detail": "Expected target value after explicit rule: '2500.00'"
    },
    {
      "check": "field_difference",
      "source_id": "DEMO-D003",
      "field": "owner_id=owner_id",
      "source_rows": [
        4
      ],
      "target_rows": [
        4
      ],
      "source_value": "DEMO-U01",
      "target_value": "",
      "detail": "Expected target value after explicit rule: 'DEMO-U01'"
    },
    {
      "check": "field_difference",
      "source_id": "DEMO-D004",
      "field": "company_id=company_id",
      "source_rows": [
        5
      ],
      "target_rows": [
        5
      ],
      "source_value": "DEMO-C04",
      "target_value": "DEMO-C99",
      "detail": "Expected target value after explicit rule: 'DEMO-C04'"
    },
    {
      "check": "source_missing",
      "source_id": "DEMO-D006",
      "field": "source_deal_id",
      "source_rows": [
        7
      ],
      "target_rows": [],
      "source_value": "DEMO-D006",
      "target_value": "",
      "detail": "No target row retains this source identifier."
    }
  ]
}
