Data

Can the data be trusted? Pipeline bronze → silver → gold, its checks and its versions.

Synthetic dataset of the hackathon. Every count on this page is written by the pipeline run, not typed. A row with a quality problem is flagged, never deleted. How the system around this data is built: the agent.

Medallion pipeline

From the bank's CSV files to the read-only tables the system uses. Hover a layer, or reach it with the Tab key, to see its tables.

  1. 1Source CSV files

    1,482 files · 416.5 MB [data]

    The bank's daily deliveries in S3.

  2. 2Bronze

    4 tables · 2,168,460 rows [data]

    A faithful copy, all text, with lineage.

  3. 3Silver

    4 tables · 2,168,460 rows [data]

    Typed, deduplicated, checked against the contract.

  4. 4Gold v1

    7 tables · 5,200,264 rows [data]

    Read-only Parquet; quality flags per row.

Read by

  • MCP tools at runtime

    The customer's own transactions, read-only.

  • Evaluation cases

    Demo and scripted cases on real gold state.

  • Analytics queries

    Policy values and the limits below.

  • Operational lakehouse

    Joins case events to gold.

View as table
LayerTableRowsSize
bronzecustomers150,000 [data]46.9 MB
bronzeproducts400,000 [data]68.2 MB
bronzetransactions1,551,365 [data]283.4 MB
bronzecomplaints67,095 [data]18.0 MB
silvercustomers150,000 [data]—
silverproducts400,000 [data]—
silvertransactions1,551,365 [data]—
silvercomplaints67,095 [data]—
goldcustomers150,000 [data]11.4 MB
goldproducts400,000 [data]19.4 MB
goldtransactions1,477,723 [data]93.3 MB
goldcomplaints67,095 [data]3.8 MB
goldtransaction_labels1,477,723 [data]19.7 MB
goldtransactions_enriched1,477,723 [data]81.1 MB
goldcustomer_profile150,000 [data]4.2 MB

The data at a glance

The shape of gold, drawn from the committed outputs of queries/data. Hover a mark, or reach it with the Tab key, for its numbers.

Transactions per month

Each column is a month of gold, split by the product the transaction was made with; card transactions are the ones customers dispute.

1,477,723transactions, Jun 2025 to May 2026 [data]

  • Approved 92.0%
  • Declined 5.0%
  • Pending 2.0%
  • Reversed 1.0%
  • [data]
Other productsDebit cardCredit card
View as table
MonthCredit cardDebit cardOther productsTotalApprovedDeclinedPendingReversed
Jun 202529,85011,92677,012118,78891.9%5.1%2.0%1.0%
Jul 202531,64812,76182,473126,88291.9%5.1%2.0%1.0%
Aug 202531,49512,43182,113126,03992.0%5.0%2.0%1.0%
Sep 202529,69511,75977,109118,56391.9%5.0%2.0%1.1%
Oct 202532,29812,86984,101129,26892.0%5.0%2.0%1.0%
Nov 202530,23911,98578,551120,77591.9%5.1%2.0%1.0%
Dec 202530,56812,11379,701122,38292.2%5.0%2.0%0.9%
Jan 202630,57112,09979,292121,96292.0%5.0%1.9%1.0%
Feb 202628,66911,51874,911115,09891.9%5.1%2.0%1.0%
Mar 202630,97212,09080,853123,91592.1%4.9%2.0%1.0%
Apr 202631,69112,60782,194126,49292.1%5.0%2.0%0.9%
May 202632,04612,56182,952127,55992.1%5.0%2.0%1.0%

Customers and transactions per country

Mexico holds about half of the customers and of their transactions; the segment mix is the same in every country.

150,000customers · 1,477,723 transactions [data]

Customers

Mexico
74,907
Colombia
45,251
Argentina
29,842

Transactions

Mexico
740,554
Colombia
443,615
Argentina
293,554

Segment mix of the customers: Basic 59.8% · Plus 25.0% · Premium 10.1% · Student 5.0% [data]

View as table
CountrySegmentCustomersTransactions
MexicoAll74,907740,554
MexicoBasic44,763442,844
MexicoPlus18,797186,556
MexicoPremium7,64474,603
MexicoStudent3,70336,551
ColombiaAll45,251443,615
ColombiaBasic27,069265,693
ColombiaPlus11,309110,740
ColombiaPremium4,58445,070
ColombiaStudent2,28922,112
ArgentinaAll29,842293,554
ArgentinaBasic17,924176,931
ArgentinaPlus7,44173,344
ArgentinaPremium2,97928,622
ArgentinaStudent1,49814,657

Complaints per month

Every complaint by category; the line under the columns is the share that are unrecognized or wrongful charges (W3), steady month after month.

36.4%of 67,095 complaints are W3, Jun 2023 to Jun 2026 [data]

TransactionsFeesBranch, Service, TechnicalW3 share

Paler columns: the first and last months are partial.

W3 share of the month

View as table
MonthBranchFeesServiceTechnicalTransactionsTotalW3W3 share
Jun 2023 (partial)15415416315616979629436.9%
Jul 20233934123593343851,88372138.3%
Aug 20233863653613894141,91570036.6%
Sep 20233573743473723611,81166636.8%
Oct 20233633843873753631,87266535.5%
Nov 20233963603473793531,83562534.1%
Dec 20233974053784023721,95470536.1%
Jan 20243603773753853901,88770037.1%
Feb 20243303773073773351,72664937.6%
Mar 20243823803894033711,92567134.9%
Apr 20243633713673424241,86771638.4%
May 20243943823303673491,82263334.7%
Jun 20243633953483563711,83368737.5%
Jul 20243663763853893851,90168736.1%
Aug 20243533853723983791,88767235.6%
Sep 20243713743443703761,83569137.7%
Oct 20243733813733603961,88371638.0%
Nov 20243753723943683691,87866335.3%
Dec 20243863963673703551,87466935.7%
Jan 20253934173894073952,00173136.5%
Feb 20253553733143373611,74066538.2%
Mar 20253453633563283801,77267338.0%
Apr 20253483653413703631,78765436.6%
May 20253593913544083721,88467335.7%
Jun 20253653443793683621,81864735.6%
Jul 20254223713754113941,97368634.8%
Aug 20253903514003544111,90668135.7%
Sep 20253733603223383721,76566337.6%
Oct 20253953774073894041,97271636.3%
Nov 20253533523743693581,80665036.0%
Dec 20253943723893803931,92868235.4%
Jan 20263543934263943721,93969535.8%
Feb 20263753253503053511,70661536.0%
Mar 20263723943764134071,96272336.9%
Apr 20263583643563913941,86368036.5%
May 20263323933633623751,82569137.9%
Jun 2026 (partial)2162282301911991,06437635.3%

The bank's fraud score on card transactions

A score the bank gives each card transaction, not a fraud label: almost every one scores below 30 or has no score.

0.067%of card transactions score 30 or more [data]

20.1% have no score [data]

No score · 20.1%Below 30 · 79.9%30 to 49 · 0.029%50 or more · 0.038%
Mexico
Colombia
Argentina
All

Zoom on the bands the policy acts on: card transactions per 10,000

Mexico
2.9
3.8
Colombia
3.0
3.2
Argentina
2.9
4.5
All
2.9
3.8
View as table
CountryCard transactionsNo scoreBelow 3030 to 4950 or more
Mexico258,44651,716 (20.010%)206,557 (79.923%)74 (0.029%)99 (0.038%)
Colombia155,20931,211 (20.109%)123,903 (79.830%)46 (0.030%)49 (0.032%)
Argentina102,80620,633 (20.070%)82,097 (79.856%)30 (0.029%)46 (0.045%)
All countries516,461103,560 (20.052%)412,557 (79.882%)150 (0.029%)194 (0.038%)

Data quality per gold table

Empty key columns and rows flagged by a quality check, per table; flagged rows are kept, never deleted.

2,094,818rows in 4 gold tables · 26 of 37 checks find nothing [data]

Key column empty (null)Rows flagged (qc_*)

customers150,000 rows

  • qc_future_last_updated4.0%

At 0%: country, segment, customer_status, registration_date, qc_label_normalized

products400,000 rows

  • credit_limit68.7%
  • qc_future_last_updated4.0%

At 0%: customer_id, product_type, product_status, opening_date, qc_customer_orphan

transactions1,477,723 rows

  • merchant_category76.8%
  • fraud_score20.0%
  • qc_before_product_open6.8%
  • qc_label_normalized0.9%

At 0%: customer_id, product_id, amount, transaction_status, qc_customer_orphan, qc_product_orphan, qc_product_other_customer, qc_future_date, qc_late_arrival

complaints67,095 rows

  • resolution_date77.1%
  • claimed_amount67.6%
  • qc_affected_product_other_customer66.4%
  • affected_product_id33.6%

At 0%: customer_id, category, case_type, qc_customer_orphan, qc_affected_product_orphan, qc_future_date, qc_late_arrival

View as table
TableKindColumn or flagRowsOfShare
customersnullcountry0150,0000.0%
customersnullsegment0150,0000.0%
customersnullcustomer_status0150,0000.0%
customersnullregistration_date0150,0000.0%
customersflagqc_future_last_updated5,957150,0004.0%
customersflagqc_label_normalized0150,0000.0%
productsnullcustomer_id0400,0000.0%
productsnullproduct_type0400,0000.0%
productsnullproduct_status0400,0000.0%
productsnullopening_date0400,0000.0%
productsnullcredit_limit274,683400,00068.7%
productsflagqc_customer_orphan0400,0000.0%
productsflagqc_future_last_updated15,939400,0004.0%
transactionsnullcustomer_id01,477,7230.0%
transactionsnullproduct_id01,477,7230.0%
transactionsnullamount01,477,7230.0%
transactionsnulltransaction_status01,477,7230.0%
transactionsnullmerchant_category1,134,2871,477,72376.8%
transactionsnullfraud_score296,1521,477,72320.0%
transactionsflagqc_customer_orphan01,477,7230.0%
transactionsflagqc_product_orphan01,477,7230.0%
transactionsflagqc_product_other_customer01,477,7230.0%
transactionsflagqc_before_product_open100,6591,477,7236.8%
transactionsflagqc_future_date01,477,7230.0%
transactionsflagqc_late_arrival01,477,7230.0%
transactionsflagqc_label_normalized13,4161,477,7230.9%
complaintsnullcustomer_id067,0950.0%
complaintsnullcategory067,0950.0%
complaintsnullcase_type067,0950.0%
complaintsnullclaimed_amount45,34467,09567.6%
complaintsnullaffected_product_id22,52567,09533.6%
complaintsnullresolution_date51,74667,09577.1%
complaintsflagqc_customer_orphan067,0950.0%
complaintsflagqc_affected_product_orphan067,0950.0%
complaintsflagqc_affected_product_other_customer44,57067,09566.4%
complaintsflagqc_future_date067,0950.0%
complaintsflagqc_late_arrival067,0950.0%

Versions

What this page was built from: one run of the pipeline on one source delivery.

Gold version
v1
Contract
v1
Pipeline
0.1.0
Run
2026-09-29
Transactions window
2025-06-01 to 2026-06-01
Source
1,482 files · 416.5 MB

Gold contract rules

Checked on every run before gold is published; if one fails, gold is not replaced.

RuleConditionValue on this runResult
G1no table in data/gold/ has is_fraudnone✓ pass
G2transaction_date in [2025-06-01, 2026-06-01)2025-06-01 00:00:16 → 2026-05-31 23:57:20; outside: 0✓ pass
G3transactions.customer_id = product owner (join)0 differing rows✓ pass
G4transaction_labels 1:1 with gold.transactionswithout label: 0; label without transaction: 0✓ pass
G5customer_profile 1 row per customer; transactions_enriched 1 per transactionprofile 150000 (unique 150000) vs customers 150000; enriched 1477723 (unique 1477723) vs transactions 1477723✓ pass

Scroll the table sideways for every column →

Quality checks: 6 of 41 found rows

Rows affected over the rows the check applies to, and what the pipeline does with them.

CheckTableWhat it looks forRows affectedAction
LBL-01transactionsinconsistent label14,070 of 752,633normalized in silver
WIN-01transactionsoutside the window73,642 of 1,551,365stays in silver, does not go to gold (R1)
OWN-02complaintsFK to another customer's product44,570 of 44,570flag in gold; the serving layer does not show it
FUT-01customersfuture date5,957 of 150,000flag in gold
FUT-02productsfuture date15,939 of 400,000flag in gold
ORD-01transactionstransaction before opening100,659 of 1,477,723flag in gold

Scroll the table sideways for every column →

View all 41 checks
CheckTableWhat it looks forRows affectedAction
DUP-01customersexact duplicate0 of 150,000one is kept
DUP-02customersPK versions0 of 150,000latest process_date / load wins
NUL-01customersnull in required column0 of 150,000quarantine (contract)
CAST-01customersfailed cast0 of 150,000left null; quarantine if required
CON-01customersviolates the contract0 of 150,000silver/_quarantine/
LBL-01customersinconsistent label0 of 74,907normalized in silver
SCH-01customersschema change0 of 1declared alias or column only in bronze
DUP-01productsexact duplicate0 of 400,000one is kept
DUP-02productsPK versions0 of 400,000latest process_date / load wins
NUL-01productsnull in required column0 of 400,000quarantine (contract)
CAST-01productsfailed cast0 of 400,000left null; quarantine if required
CON-01productsviolates the contract0 of 400,000silver/_quarantine/
SCH-01productsschema change0 of 1declared alias or column only in bronze
DUP-01transactionsexact duplicate0 of 1,551,365one is kept
DUP-02transactionsPK versions0 of 1,551,365latest process_date / load wins
NUL-01transactionsnull in required column0 of 1,551,365quarantine (contract)
CAST-01transactionsfailed cast0 of 1,551,365left null; quarantine if required
CON-01transactionsviolates the contract0 of 1,551,365silver/_quarantine/
LBL-01transactionsinconsistent label14,070 of 752,633normalized in silver
SCH-01transactionsschema change0 of 383declared alias or column only in bronze
DUP-01complaintsexact duplicate0 of 67,095one is kept
DUP-02complaintsPK versions0 of 67,095latest process_date / load wins
NUL-01complaintsnull in required column0 of 67,095quarantine (contract)
CAST-01complaintsfailed cast0 of 67,095left null; quarantine if required
CON-01complaintsviolates the contract0 of 67,095silver/_quarantine/
SCH-01complaintsschema change0 of 1,097declared alias or column only in bronze
WIN-01transactionsoutside the window73,642 of 1,551,365stays in silver, does not go to gold (R1)
FK-01productsorphan FK0 of 400,000flag in gold
FK-02transactionsorphan FK0 of 1,477,723flag in gold
FK-03transactionsorphan FK0 of 1,477,723flag in gold
FK-04complaintsorphan FK0 of 67,095flag in gold
FK-05complaintsorphan FK0 of 44,570flag in gold
OWN-01transactionsFK to another customer's product0 of 1,477,723gold uses the owner (R2); flag for audit
OWN-02complaintsFK to another customer's product44,570 of 44,570flag in gold; the serving layer does not show it
FUT-01customersfuture date5,957 of 150,000flag in gold
FUT-02productsfuture date15,939 of 400,000flag in gold
FUT-03transactionsfuture date0 of 1,477,723flag in gold
FUT-04complaintsfuture date0 of 67,095flag in gold
ORD-01transactionstransaction before opening100,659 of 1,477,723flag in gold
LATE-01transactionslate arrival0 of 1,477,723flag in gold; freshness alert
LATE-02complaintslate arrival0 of 67,095flag in gold; freshness alert

Scroll the table sideways for every column →

Late arrivals and schema change

Shown with a fixture: synthetic test data, not from the dataset: the real dataset has no late arrivals or schema changes, so two labeled deliveries go through the same pipeline code.

  • Deliveries: delivery_1 (gold v1) → delivery_2 (gold v2)
  • Rows added: customers 1 · transactions 5 · transaction_labels 5 · transactions_enriched 5 · customer_profile 1
  • New column kept in bronze only: merchant_mcc · declared rename: txn_country->transaction_country
  • Rows that arrived after their date, in silver: 5; kept and flagged qc_late_arrival (longest delay 349 days)
  • Counts matching the expected ones: 98 of 98
CheckTableWhat it looks forBeforeAfter
DUP-01transactionsexact duplicate10
DUP-02transactionsPK versions01
LBL-01transactionsinconsistent label23
SCH-01transactionsschema change01
LATE-01transactionslate arrival04

Scroll the table sideways for every column →

Operational lakehouseops manifest v?

The system's own case records go through the same three layers, to measure it day by day.

  1. 1Bronze

    A copy of 8 operational tables, with load time.

  2. 2Silver

    Typed events joined to the gold transaction and customer.

  3. 3Gold

    KPIs per day, and the analysts' decisions as labels.

  • Reads the case store's operational tables, read-only, and gold for the transaction and the customer.
  • Writes Parquet and a manifest under data/ops/, and ops_kpis.json for the Analytics page.
  • Last export: make ops-replay — Bank today [data] and the card-charge replay [simulated], memory store, generated 2026-10-06.

Dataset limitations

What the data cannot tell us, measured on gold.

  • Only 22.1% of the customers with a disputed-charge complaint (1,612 of 7,291) [data] had any card transaction in the 30 days before it, no more than for other complaints (21.5%) [data].
  • Where the complaint states an amount, it matches one of those transactions within ±2% in 2 of 579 complaints [data].
  • Every disputed-charge complaint that names an affected product names another customer's product (4,962 of 4,962) [data].
  • So a complaint cannot be linked to the transaction it disputes. The demo and the evaluation cases replay real transactions of the customer instead of complaint records.

Method: disputed-charge complaints created from 2025-07-01 to 2026-05-31, so the 30-day look-back stays inside the gold transactions window; a card transaction is one on a credit or debit card of the same customer. Query: queries/data/d01_complaint_transaction_link.sql.

data/pipeline report [data] — data/gold/run_results.json and the late_arrival fixture · generated 2026-10-06 at 3d92b47