Data reconciliation as the foundation of trustworthy AI solutions

In this article we share what two routine integration changes on an insurance data platform taught us: a vendor API upgrade and a CSV-to-API migration. Both looked clean at first glance, and structured data reconciliation showed otherwise.

Contents

Trustworthy AI starts with trustworthy data, and trustworthy data starts with reconciliation.

Many businesses rely on third-party data providers to run core business operations, and sooner or later those feeds change. Your supplier announces a routine API version upgrade, or perhaps your business decides to modernise an existing integration.

Both changes look completely ordinary: routine maintenance tasks handled by the engineering team. Yet recently we faced these scenarios while working on an insurance data platform, and they triggered two full-scale data reconciliation exercises.

In both cases, everything looked good at first glance: endpoints responded cleanly, schemas looked similar and record counts made sense. However, since downstream business logic relies heavily on these external feeds, we couldn't simply assume backward compatibility. We ran data reconciliation before trusting the updated feeds in production.

What we uncovered reinforced a fundamental rule for anyone building AI solutions: AI can only be as reliable as the data it consumes, and blind trust in external sources, especially during "routine" integration changes, is a direct path to unreliable outputs.

The lessons from these reconciliation exercises apply to any data-driven process. However, the risks become significantly greater in AI-driven workflows, where data issues are amplified through automated decision-making and model outputs.

Why routine integration changes create silent AI risks

When external data breaks loudly (a failed API call, a missing file, a schema mismatch), engineering teams notice immediately. The far more dangerous failures happen during transitions that appear routine on paper:

  • In a new API version, a subset of historical records was silently filtered out on the data provider's side, and several payload attributes contained outliers.
  • During a channel migration (CSV to API) one critical field was dropped from the API response entirely, while some other fields' values for the same business key did not match between the old CSV export and the new API endpoint.

Unlike traditional reporting, AI systems consume and act on data at scale. A discrepancy that might affect a single dashboard metric can influence thousands of predictions, recommendations, or automated decisions before anyone notices a problem. This makes validating source data a prerequisite, not an optional quality check, before applying AI-driven processes.

Lessons learned from two reconciliation exercises

Running structured reconciliation across both integrations revealed three practical lessons directly applicable to AI readiness:

1. Surface-level checks miss the core issues

In both exercises, basic validations like checking schema mappings and aggregate row counts were not enough. We built a structured multi-layer reconciliation framework with three core steps:

Step 1: Schema Validation

Validate the structure of both datasets, including column availability, column names, data types, and adherence to the expected schema definition.

Step 2: Record-Level Comparison

Compare total row counts and distinct business key counts to ensure both datasets contain the expected volume of data. Verify the presence of records across both datasets by identifying missing, additional, or unmatched records for the same business keys.

Step 3: Field-Level Comparison

Perform detailed attribute-level validation by comparing values for matching business keys, including checks for value equality and numerical precision differences. SQL was used for the first integration and Python for the second to support complex joins and discrepancy analysis.

Where necessary, we extended the framework with additional validation steps, including data quality checks, format and range verification, statistical distribution analysis, and business rule testing to identify issues that would not be uncovered through direct record comparison alone.

2. Discrepancies require evidence-based data supplier collaboration

Finding an error in third-party data is only half the work; resolving it requires constructive, evidence-based communication. External providers do not act on vague feedback that the data doesn't look correct. We documented our data reconciliation findings thoroughly, compiling specific questions evidenced by examples with exact keys, attributes, and conflicting values. When we shared these structured artefacts with the data providers, it led to productive conversations that helped to trace and fix the upstream bugs.

3. Transition checks must evolve into continuous controls

Running targeted reconciliation during an API upgrade or a CSV-to-API migration proved essential for catching bugs before cutover. However, for AI delivery, validation cannot stop after go-live. If external data feeds continuously power automated models, reconciliation logic must be embedded directly into the pipeline. It can be backed by explicit Data Contracts, automated drift alerts, and regression checks whenever a data supplier updates their feed.

Making data reconciliation a prerequisite for AI

Before connecting any external data source or any upgraded integration to an AI pipeline, teams should treat data reconciliation as a mandatory step:

  • Never assume consistency across versions or channels: always run side-by-side reconciliation during API upgrades, format migrations, or data supplier onboarding before downstream models consume the data.
  • Specify expectations with Data Contracts: define not just structural schemas, but acceptable value ranges, null thresholds, and business semantics with third-party providers.
  • Automate continuous reconciliation: turn ad-hoc migration checks into automated pipeline assertions that detect silent vendor drift before it reaches AI workflows.

AI delivery is not just about deploying smarter models, it is about building a foundation of verified, trustworthy data. Our experience validating a vendor API upgrade and a CSV-to-API migration showed that even straightforward integration changes can introduce silent bugs like filtered records, outliers, and mismatched key values that only structured reconciliation will catch. By rigorously validating external data before feeding it into AI workflows, organisations protect their models from garbage-in and garbage-out failures and ensure that external data becomes a trusted foundation for decision-making.

Written by

Darya Zelenevskaya

Senior Data Analyst – People Lead

Darya is a Senior Data Analyst with more than 14 years of experience in IT, specialising in transforming complex data into actionable insights that drive business performance. With a passion for helping businesses make informed decisions, she works to bridge the gap between data and strategic goals.