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.
Watch the 75-second demo and read the online case study at metanor.org/#demo · metanor.org/wahat-case-study.html
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.
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.
Connect
Both systems in one pipeline. Customers matched only on verified evidence.
Correct
Bad records quarantined with a reason. Eligible payments allocated to their schedule or held as account credit.
Trace
Reports are versioned. Late data creates a new revision, and changes to tracked financial measures are logged.
Explain
An AI Data Investigator answers from verified data, in Arabic or English.
Scroll sideways to see the whole diagram.
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.
Both records carry valid, verified IDs that differ
Never mergeSame verified national ID or Iqama
MergeApp record links to a billing customer and the birth date matches
MergeSimilar name, birth date, mobile and city, scoring 0.70 or more
A person decidesAnything else
Kept apart| Synthetic evaluation | Result |
|---|---|
| Pairwise precision | 100% |
| Pairwise recall | 98.44% |
| True pairs found | 63 of 64 |
| False-positive pairs (no false automatic merges) | 0 |
| Look-alike pairs sent to a person | 3 |
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.

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
Overdue, 21 days. The billing system never saw the app payment.
Nothing overdue. Paid in the Sadeem app on 9 Oct, due 10 Oct.
| FA-1001 payment events | Outcome |
|---|---|
| EV-W-1 · SAR 1,000 · settled 9 Oct | Counted, held as credit, applied 10 Oct |
| EV-W-1-DUP · same settlement | Kept and labelled duplicate, never counted |
| EV-W-2 · SAR 500 · pending | Excluded: 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
Customer pays SAR 750 in the Sadeem app, a day before it is due.
Scheduled payment of SAR 750 falls due.
The payment file has not arrived. Report shows SAR 750.00 overdue, 11 days, correct for the data known then.
The late file arrives. Report shows SAR 0.00, with three changes logged as late arrival.

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.
“What does the billing system show for FA-1001?”
SAR 1,000.00 overdue, 21 days overdue, as of 31 Oct.
لماذا ظهر الحساب 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.

Scroll sideways to see the whole diagram.
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.
Before a client deployment: real ID validation in place of the synthetic check, hosting that meets the client's data-residency rules, volume testing beyond demo scale, and a review screen for data stewards.
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.
Enterprise architecture and integration
Two systems with different keys, formats and calendars brought into one contract-driven pipeline, without changing either source.
Arabic and English normalization
Names across scripts and transliterations, Arabic-Indic digits, Saudi phone formats and Hijri dates handled as first-class data.
Conservative identity resolution
Merges only on verified evidence, a cluster-wide guard against conflicting IDs, people deciding the uncertain cases, and reversible merges.
Business-rule payment reconciliation
One deterministic rule for settled, de-duplicated payments, with early-payment credit and an exception queue instead of guesses.
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.
Data trust and auditability
Every record accounted for, every rejection kept with its reason, and lineage from source row to published figure.
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.
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 provided | Metanor engineered |
|---|---|
| File ingestion and streaming tables | Source contracts, audit columns, and a late-file design that keeps each arrival time |
| Delta tables and Unity Catalog | The layer design, quarantine, exception queues and the revision model |
| Serverless jobs | The quality rules, the matching policy, the payment rule and the revision check |
| Dashboards | Customer 360 and the account views, built on selected, trusted Gold data products |
| A conversational AI service | Its 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.
Scroll sideways to see the whole diagram.
Technology
| Component | Role in Wahat |
|---|---|
| Databricks, serverless compute | Triggered serverless ingestion and processing |
| Unity Catalog and Delta Lake | One catalog per environment, a schema per layer, versioned tables |
| Lakeflow Declarative Pipelines with Auto Loader | Triggered, incremental ingestion of new files |
| Lakeflow Jobs | Quality rules, matching, payment rules and the revision check |
| Python and Spark SQL | Business logic as tested Python tasks, validated at demonstration scale, with exact decimal arithmetic for money |
| Databricks Genie and AI/BI dashboards | The AI Data Investigator and the Customer 360 views |
| Databricks Asset Bundles and CI | Environments 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.
| Measure | Billing system only | Verified |
|---|---|---|
| Overdue amount (SAR) | 1,768,053.28 | 259,388.47 |
| Accounts overdue | 178 | 47 |
| Payments with no clear account | not shown | 4, 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.
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
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.