Technical case study · The Wahat Group reference implementation

From Fragmented Data to Trusted Enterprise AI

Paid early. Reported late.

Wahat Group's billing report said a customer was 21 days overdue. The customer had paid a day early, in the Sadeem app. Metanor connected both systems, corrected and verified the data, traced every change, and then let an AI explain the right answer in Arabic and English.

Company
Wahat Group, a fictional Saudi services company
Data
Synthetic, with deliberately planted defects
Built on
Databricks, serverless
Status
Working reference implementation
Customer records from two systems flowing into one trusted database and a verified record
See how Metanor turns scattered customer records into one trusted view in 75 seconds. Synthetic data
607 records · 15 quarantined530customer profiles from the 592 records in matching scope, merged only on verified evidence
SAR 1.77M → SAR 0.26M85.3%reduction in the reported overdue amount in the synthetic comparison
178 accounts in the billing-only view47overdue accounts after including payments from both systems
independent referenceSAR 0.00difference in the recorded payment and KPI comparisons

Synthetic evaluation, as of 31 Oct 2026, report revision 2, from the approved release evidence. A reporting correction on synthetic data, not a financial saving or recovered revenue. Fictional scenario · synthetic data.

The challenge

Two systems that don't talk, and a report that trusts only one

Wahat's customers pay in two places: the company's billing system and the Sadeem app, a payment app it acquired. The two hold the same people under different keys, spellings, scripts and phone formats. The app even records birth dates in the Hijri calendar.

Combining the two customer lists without matching would double-count some people. The billing-only report also missed payments made in the app: its overdue amount was almost seven times the verified one.

Asking an AI didn't help. Pointed at the billing data, it repeated the error with confidence: 21 days overdue.

62duplicate records: people already in the other system, under different names and scripts
15customer records quarantined, mostly for invalid national ID or Iqama numbers
31phone numbers in non-standard formats, some in Arabic-Indic digits
12duplicate payment callbacks: SAR 43,269.92 that would have counted twice
17payments that never settled: pending, failed or cancelled
8look-alike customer pairs that must not be merged automatically

The AI wasn't the problem. The data was.

The approach

Make the data trustworthy first, then let AI explain it

Metanor designed one pipeline for both systems, in four steps. The first three are deterministic engineering: no AI decides which customers match, which records are corrected or how payments are applied. AI comes last, and reads only selected, trusted Gold data products.

01

Connect

Both systems in one pipeline. Customers matched only on verified evidence.

02

Correct

Bad records quarantined with a reason. Eligible payments allocated to their schedule or held as account credit.

03

Trace

Reports are versioned. Late data creates a new revision, and changes to tracked financial measures are logged.

04

Explain

An AI Data Investigator answers from verified data, in Arabic or English.

TWO SOURCE SYSTEMS Billing system customers, accounts, schedules, payments Sadeem app app users, app payments DATABRICKS PLATFORM storage, compute and catalog: Unity Catalog, Delta, serverless 01 Connect one pipeline, matching on evidence only 02 Correct quality rules, quarantine, payment rules 03 Trace versioned snapshots, tracked changes logged 04 Explain AI Data Investigator, read-only DATA QUALITY validation · normalization · identity · quarantine · reconciliation GOVERNANCE provenance · stewardship · revision history · configured access controls WHO USES IT Dashboard Customer 360 views Business users ask in AR or EN Engineering assurance independent reference and release evidence, run separately from the pipeline Metanor-engineered AI consumption platform boundary

Scroll sideways to see the whole diagram.

Solution architecture. The platform supplies storage, compute and the catalog. The business logic in gold is Metanor's, with data quality and governance running underneath all four pillars. Reporting and AI consume selected, trusted Gold data products, and every release is checked separately against an independent reference.

01 Connect

One customer, one profile, and no guesswork

A customer called محمد عبدالله العتيبي in the billing system is Mohammed A. Al Otaibi in the app. Before comparing anything, the pipeline normalizes names across scripts and spellings: honorifics, the Al prefix, Arabic letter forms, diacritics, and transliterations such as Mohammed, Muhammad and Mohd. Phones are standardized and Hijri birth dates converted to Gregorian.

Matching then follows a strict order. A similarity score can send a pair to a person, but it never merges customers on its own. Before any merge, the whole cluster is checked: two different verified IDs stop it, even when a person approved it.

Every merge is recorded with its method and dates, so it can be undone. Each profile retains Arabic and English names where available, and every field records which source it came from.

1

Both records carry valid, verified IDs that differ

Never merge
2

Same verified national ID or Iqama

Merge
3

App record links to a billing customer and the birth date matches

Merge
4

Similar name, birth date, mobile and city, scoring 0.70 or more

A person decides
5

Anything else

Kept apart
607customer records across both systems
15quarantined with a reason, kept out of matching
592records in matching scope
530customer profiles
Synthetic evaluationResult
Pairwise precision100%
Pairwise recall98.44%
True pairs found63 of 64
False-positive pairs (no false automatic merges)0
Look-alike pairs sent to a person3

Measured against the held-back correct answers for the synthetic data. One true pair was missed rather than risk a false merge. Results on real data will depend on its quality.

The Customer 360 dashboard: 607 records, 530 customers, and one profile built from a billing record and a Sadeem app record with the same verified national ID
Customer 360, from the demonstration. Two source records become one profile. Identifiers are masked on screen.

02 Correct

Every record accounted for, every eligible payment matched to its schedule

Data quality rules live in a versioned registry, not in scattered code. Each record is accepted, corrected, quarantined with its reason, or excluded with an exception for a person to follow up. For each of the eight sources, input records equal accepted plus quarantined plus excluded plus duplicates: 100% accounted for.

Payments that are settled, de-duplicated and resolved to an account are allocated by one deterministic rule: to the oldest scheduled payment due, or retained as account-level credit and applied when a later payment falls due. Payments with no clear account stay visible in an exception queue instead of being guessed.

The rule runs twice, on both systems and on the billing system alone, so the old answer and the new one come from the same code.

Account FA-1001

Billing systemSAR 1,000.00

Overdue, 21 days. The billing system never saw the app payment.

VerifiedSAR 0.00

Nothing overdue. Paid in the Sadeem app on 9 Oct, due 10 Oct.

FA-1001 payment eventsOutcome
EV-W-1 · SAR 1,000 · settled 9 OctCounted, held as credit, applied 10 Oct
EV-W-1-DUP · same settlementKept and labelled duplicate, never counted
EV-W-2 · SAR 500 · pendingExcluded: not settled

03 Trace

Late data creates a new revision. Published figures stay as they were.

Every report carries two dates: the period it covers, and the cutoff for the payment data it could see. When a payment arrives late, the pipeline compares the new result with the last published one. If a tracked financial measure changed, it publishes the next revision and logs each change with its cause. If nothing changed, it publishes nothing.

Published financial snapshots are append-only: a new revision is added and the earlier one is kept, so previous revisions and their supporting payment evidence remain available for investigation. Customer profiles and match evidence refresh with each run, separately from the financial revisions. Running the same job twice at the same cutoff produced identical output and no new revision.

Account FA-2001

  1. Customer pays SAR 750 in the Sadeem app, a day before it is due.

  2. Scheduled payment of SAR 750 falls due.

  3. The payment file has not arrived. Report shows SAR 750.00 overdue, 11 days, correct for the data known then.

  4. The late file arrives. Report shows SAR 0.00, with three changes logged as late arrival.

Revision 1 at 750.00 and revision 2 at 0.00, with a table of what changed, the cause and the payment event
Revision history, from the demonstration. Captured from the development run, so its timestamps differ from the release run; the figures and changes are the same.

04 Explain

What the billing-only view showed, and what the Investigator explained

The AI Data Investigator runs on Databricks Genie. Metanor defined it as code: which verified tables it may read, how it must answer, and nine authored SQL examples for key questions. It is read-only and explains the data without changing it. It is configured to state the report date and revision behind a figure, answer in the language of the question, and provide supporting evidence. The two filmed questions were checked in English and Arabic.

To show what data readiness changes, a second space was given only the billing system's own view. It gives the wrong answer because it has no other data, not because it was told to.

AI on billing data alone

“What does the billing system show for FA-1001?”

SAR 1,000.00 overdue, 21 days overdue, as of 31 Oct.

AI Data Investigator, on verified data

لماذا ظهر الحساب FA-1001 متأخراً في نظام الفوترة رغم وجود الدفعة؟

The billing system showed SAR 1,000.00 and 21 days overdue; the verified report shows SAR 0.00. Payment EV-W-1, SAR 1,000.00, was made in the Sadeem app on 9 Oct and settled the scheduled payment due 10 Oct.

Screen capture of the AI Data Investigator's answer about FA-1001, with the billing figure and the verified figure highlighted
The answer, as filmed. Both questions were asked twice, in English and Arabic, as an analyst user. Each answer had to state the correct figures, agree across languages, show no system codes and repeat the same facts. Generated wording can vary between runs, so filmed answers are checked against the verified figures.
Business user asks in Arabic or English Genie space Databricks Genie, defined as code ENGINEERED BY METANOR Instructions: explain only, answer in the question's language, state the date and revision, show evidence 9 authored SQL examples, re-run in CI with expected rows read-only · never edits data SQL warehouse serverless, read-only SQL VERIFIED GOLD LAYER Unity Catalog views Why records are one customer Billing view vs verified report Payments and their schedule Report revisions and causes Metanor pipeline Connect · Correct · Trace Raw data and rejects: not in the AI's data set Automated tests re-run every verified query

Scroll sideways to see the whole diagram.

AI Data Investigator architecture. The AI reads only the verified layer the pipeline publishes, through read-only queries. CI re-runs the authored SQL examples against their expected results, and the team checked the two filmed questions in both languages.

Foundations

Data Quality and Governance by Design

Data quality and governance are not a fifth step. They run underneath all four pillars, from the first file that lands to the last answer the AI gives, and they are what make the data, and the AI built on it, trustworthy.

Data quality

Demonstrated

  • Versioned source contracts
  • Validation and normalization, including Arabic and English names, digits, phones and Hijri dates
  • Bilingual identity resolution on verified evidence
  • Quarantine and exception handling
  • Record accounting: 100% of records accounted for
  • Independent reconciliation: SAR 0.00 difference

Auditability

Demonstrated

  • Source provenance from row to published figure
  • Match and payment evidence
  • Historical financial revisions, with changes to tracked measures logged
  • Engineering assurance against an independent reference
  • Recorded release approval

Governance controls

Awaiting runtime acceptance

  • Configured role-based access
  • Column masking of personal identifiers
  • Regional row filtering
  • Dashboard access controls
  • Governed AI consumption

Configured in code; runtime acceptance is in progress. Until it passes, this case study makes no security, privacy, compliance or access-control claims.

Where Metanor makes the difference

The platform provides the tools. Metanor engineers the business solution.

Databricks supplied storage, compute, ingestion, a catalog, dashboards and a conversational AI service. None of them knows that Mohammed Al Otaibi is one customer, that an early payment counts on its due date, or that a late file should create a new revision instead of overwriting the last one. That knowledge is the solution, and it is what Metanor engineered.

01

Enterprise architecture and integration

Two systems with different keys, formats and calendars brought into one contract-driven pipeline, without changing either source.

02

Arabic and English normalization

Names across scripts and transliterations, Arabic-Indic digits, Saudi phone formats and Hijri dates handled as first-class data.

03

Conservative identity resolution

Merges only on verified evidence, a cluster-wide guard against conflicting IDs, people deciding the uncertain cases, and reversible merges.

04

Business-rule payment reconciliation

One deterministic rule for settled, de-duplicated payments, with early-payment credit and an exception queue instead of guesses.

05

Temporal engineering and versioned reporting

Two time axes, append-only financial snapshots, logged changes to tracked measures, and reruns that publish nothing when nothing changed.

06

Data trust and auditability

Every record accounted for, every rejection kept with its reason, and lineage from source row to published figure.

07

Independent validation and assurance

A separately written reference recomputes payment allocation and the KPIs. A release goes ahead only when they agree and an architect and engineer approve the evidence.

08

AI grounded in trusted data

An AI that reads selected, trusted Gold data products, read-only, configured to cite the report date and revision, with its authored SQL examples tested in CI.

The platform providedMetanor engineered
File ingestion and streaming tablesSource contracts, audit columns, and a late-file design that keeps each arrival time
Delta tables and Unity CatalogThe layer design, quarantine, exception queues and the revision model
Serverless jobsThe quality rules, the matching policy, the payment rule and the revision check
DashboardsCustomer 360 and the account views, built on selected, trusted Gold data products
A conversational AI serviceIts instructions, data set, authored SQL examples and the CI tests that run them
—The synthetic data with known answers, the independent reference and the release evidence

The design patterns are not tied to one vendor. Wahat was implemented on Databricks; another platform would need its own implementation and testing.

Under the hood

The technical data flow

Source files land in batches. A triggered ingestion pipeline reads only new files, so a late file is picked up on its own and a rerun with nothing new changes nothing. A separately triggered job then runs the quality rules, matching, payment rules and the revision check as Python tasks on serverless compute, validated at demonstration scale. Rejected rows are kept with their reason, and payment exceptions wait for a person.

EXISTING OPERATIONAL SYSTEMS Billing system customers, accounts, payments Sadeem app app users and app payments Reference data branches and regions DATABRICKS LAKEHOUSE platform: storage, compute, catalog, pipelines, jobs, AI/BI, Genie Landing UC volume · 8 contract feeds CSV · JSON · Parquet one file held back BRONZE · CONNECT Lakeflow pipeline · run 1 · triggered Auto Loader reads new files only; raw records kept as received with arrival time, batch, provenance and a row fingerprint SILVER · METANOR ENGINEERING Lakeflow job · run 2 · triggered after ingestion · Python tasks Data quality validation, bilingual normalization, payment checks, de-duplication Identity resolution crosswalk and match evidence; people decide uncertain pairs Allocation eligible payments to their schedule, or account-level credit Quarantine rejected rows, rule and reason Exceptions payments for steward review revision check: new revision if changed GOLD · TRUSTED DATA PRODUCTS Delta tables and views; append-only snapshots Customer 360 trusted profiles Business facts accounts and KPIs Snapshots revisions and change log Evidence views records and reasons CONSUMPTION AI/BI dashboard trusted reporting Genie AI Data Investigator DATA QUALITY BY DESIGN validation · accuracy · completeness · reconciliation GOVERNANCE BY DESIGN provenance · stewardship · access policies configured, runtime acceptance pending results compared offline Independent engineering assurance, outside the pipeline Synthetic truth data and an independently written reference calculation; regression and repeatability tests; release evidence approved before publication. Metanor-engineered logic trusted data products Databricks run boundary

Scroll sideways to see the whole diagram.

Technical data flow. Bronze ingestion and the Silver and Gold processing are triggered separately. Gold boxes are Metanor's business logic; blue boxes are trusted data products. Data quality and governance run underneath every layer; access policies are configured, with runtime acceptance pending. Assurance runs outside the pipeline, against answers the pipeline never sees. Illustrative of the reference implementation, not a production topology.

Technology

ComponentRole in Wahat
Databricks, serverless computeTriggered serverless ingestion and processing
Unity Catalog and Delta LakeOne catalog per environment, a schema per layer, versioned tables
Lakeflow Declarative Pipelines with Auto LoaderTriggered, incremental ingestion of new files
Lakeflow JobsQuality rules, matching, payment rules and the revision check
Python and Spark SQLBusiness logic as tested Python tasks, validated at demonstration scale, with exact decimal arithmetic for money
Databricks Genie and AI/BI dashboardsThe AI Data Investigator and the Customer 360 views
Databricks Asset Bundles and CIEnvironments deployed from version control; tests on every change

Technical assurance

Checked against the correct answers, not just reviewed

Because the data is synthetic, the correct answer for every customer and payment was known in advance and held back from the pipeline. The release evidence compares the results with those answers and with an independently written calculation, and it was approved by an architect and an engineer before publication.

MeasureBilling system onlyVerified
Overdue amount (SAR)1,768,053.28259,388.47
Accounts overdue17847
Payments with no clear accountnot shown4, in a work queue

Validation

  • Payment allocation and every recorded KPI equal the independent reference, in both revisions
  • Zero reconciliation residuals
  • 100% of records accounted for in all eight sources

Repeatability

  • A rerun at the same cutoff gave identical output and no new revision
  • The late file produced exactly one new revision with three logged changes
  • 146 automated tests in the release run

Evidence handling

  • Release evidence approved by an architect and an engineer
  • Each file carries a checksum that detects accidental change
  • Approval is recorded; the evidence is not cryptographically signed

Release wahat-fe-v1.0.0, as of 31 Oct 2026, revision 2. Results on synthetic data; no performance, cost or client outcomes are claimed.

Where the pattern applies

Any organization with two versions of the truth

Most of Wahat is driven by configuration: source contracts, quality rules, the matching policy and the AI's verified questions are files, not hard-wired code. The revision model and the independent-check method are general. Each new domain still needs its own rules, matching evidence and test data.

Education

Student records across admissions, registration and finance; accreditation figures that must be explained.

Healthcare

Patient records across a hospital and a clinic network, matched on verified identity.

Utilities

Billing alongside app, agent and bank payments: the same "paid but shown overdue" problem.

Retail

Customers across stores, online orders and loyalty, with one profile per person.

Hospitality

Guests and payments across booking channels, property systems and finance.

Services

Subscriptions and service payments after a merger or a new payment channel.

Wahat is a single reference scenario. These are applications we expect the pattern to fit; they are not delivered projects.

Scope and status

What this case study shows, and what it doesn't yet

Built and evidenced

  • Matching, quality rules and payment rules
  • Versioned reports with logged causes
  • Release evidence, approved 18 Nov 2026
  • AI Data Investigator, checked in Arabic and English for the filmed questions

Still being tested

  • Access controls for the dashboard and the AI. This case study makes no security claims until those tests pass.
  • AI behaviour on unexpected or adversarial questions

For a real deployment

  • Real ID validation in place of the synthetic check
  • Hosting that meets the client's data-residency rules
  • Volume testing; the reference runs at demo scale
  • A review screen for data stewards

Work with Metanor

From data challenges to trusted enterprise AI

We help organizations understand their data challenges, design the right architecture and implement reliable data and AI solutions, working with the systems they already have.

01

Data problem assessment

We find what is wrong in your data, trace it to the root cause, measure the business impact where we can, and recommend practical fixes.

  • Systems and data quality
  • Integration and governance
  • Reporting and AI readiness
  • Practical, prioritized fixes
02

Data and AI implementation

We integrate your systems, correct data quality, build reporting you can trust, and add AI where it is genuinely useful.

  • Data architecture and engineering
  • Integration and reconciliation
  • Trusted reporting and analytics
  • Governance and trustworthy AI

Start a conversation. Book an assessment. It starts with a discovery call about the reports you rely on and the systems behind them.

Data you can trust. Decisions you can defend.

Synthetic reference implementation · Fictional scenario. Wahat Group, the Sadeem app and every record shown are fictional.