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.
1Source CSV files
1,482 files · 416.5 MB [data]
The bank's daily deliveries in S3.
2Bronze
4 tables · 2,168,460 rows [data]
A faithful copy, all text, with lineage.
3Silver
4 tables · 2,168,460 rows [data]
Typed, deduplicated, checked against the contract.
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
| Layer | Table | Rows | Size |
|---|---|---|---|
| bronze | customers | 150,000 [data] | 46.9 MB |
| bronze | products | 400,000 [data] | 68.2 MB |
| bronze | transactions | 1,551,365 [data] | 283.4 MB |
| bronze | complaints | 67,095 [data] | 18.0 MB |
| silver | customers | 150,000 [data] | — |
| silver | products | 400,000 [data] | — |
| silver | transactions | 1,551,365 [data] | — |
| silver | complaints | 67,095 [data] | — |
| gold | customers | 150,000 [data] | 11.4 MB |
| gold | products | 400,000 [data] | 19.4 MB |
| gold | transactions | 1,477,723 [data] | 93.3 MB |
| gold | complaints | 67,095 [data] | 3.8 MB |
| gold | transaction_labels | 1,477,723 [data] | 19.7 MB |
| gold | transactions_enriched | 1,477,723 [data] | 81.1 MB |
| gold | customer_profile | 150,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]
View as table
| Month | Credit card | Debit card | Other products | Total | Approved | Declined | Pending | Reversed |
|---|---|---|---|---|---|---|---|---|
| Jun 2025 | 29,850 | 11,926 | 77,012 | 118,788 | 91.9% | 5.1% | 2.0% | 1.0% |
| Jul 2025 | 31,648 | 12,761 | 82,473 | 126,882 | 91.9% | 5.1% | 2.0% | 1.0% |
| Aug 2025 | 31,495 | 12,431 | 82,113 | 126,039 | 92.0% | 5.0% | 2.0% | 1.0% |
| Sep 2025 | 29,695 | 11,759 | 77,109 | 118,563 | 91.9% | 5.0% | 2.0% | 1.1% |
| Oct 2025 | 32,298 | 12,869 | 84,101 | 129,268 | 92.0% | 5.0% | 2.0% | 1.0% |
| Nov 2025 | 30,239 | 11,985 | 78,551 | 120,775 | 91.9% | 5.1% | 2.0% | 1.0% |
| Dec 2025 | 30,568 | 12,113 | 79,701 | 122,382 | 92.2% | 5.0% | 2.0% | 0.9% |
| Jan 2026 | 30,571 | 12,099 | 79,292 | 121,962 | 92.0% | 5.0% | 1.9% | 1.0% |
| Feb 2026 | 28,669 | 11,518 | 74,911 | 115,098 | 91.9% | 5.1% | 2.0% | 1.0% |
| Mar 2026 | 30,972 | 12,090 | 80,853 | 123,915 | 92.1% | 4.9% | 2.0% | 1.0% |
| Apr 2026 | 31,691 | 12,607 | 82,194 | 126,492 | 92.1% | 5.0% | 2.0% | 0.9% |
| May 2026 | 32,046 | 12,561 | 82,952 | 127,559 | 92.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
Transactions
Segment mix of the customers: Basic 59.8% · Plus 25.0% · Premium 10.1% · Student 5.0% [data]
View as table
| Country | Segment | Customers | Transactions |
|---|---|---|---|
| Mexico | All | 74,907 | 740,554 |
| Mexico | Basic | 44,763 | 442,844 |
| Mexico | Plus | 18,797 | 186,556 |
| Mexico | Premium | 7,644 | 74,603 |
| Mexico | Student | 3,703 | 36,551 |
| Colombia | All | 45,251 | 443,615 |
| Colombia | Basic | 27,069 | 265,693 |
| Colombia | Plus | 11,309 | 110,740 |
| Colombia | Premium | 4,584 | 45,070 |
| Colombia | Student | 2,289 | 22,112 |
| Argentina | All | 29,842 | 293,554 |
| Argentina | Basic | 17,924 | 176,931 |
| Argentina | Plus | 7,441 | 73,344 |
| Argentina | Premium | 2,979 | 28,622 |
| Argentina | Student | 1,498 | 14,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]
Paler columns: the first and last months are partial.
W3 share of the month
View as table
| Month | Branch | Fees | Service | Technical | Transactions | Total | W3 | W3 share |
|---|---|---|---|---|---|---|---|---|
| Jun 2023 (partial) | 154 | 154 | 163 | 156 | 169 | 796 | 294 | 36.9% |
| Jul 2023 | 393 | 412 | 359 | 334 | 385 | 1,883 | 721 | 38.3% |
| Aug 2023 | 386 | 365 | 361 | 389 | 414 | 1,915 | 700 | 36.6% |
| Sep 2023 | 357 | 374 | 347 | 372 | 361 | 1,811 | 666 | 36.8% |
| Oct 2023 | 363 | 384 | 387 | 375 | 363 | 1,872 | 665 | 35.5% |
| Nov 2023 | 396 | 360 | 347 | 379 | 353 | 1,835 | 625 | 34.1% |
| Dec 2023 | 397 | 405 | 378 | 402 | 372 | 1,954 | 705 | 36.1% |
| Jan 2024 | 360 | 377 | 375 | 385 | 390 | 1,887 | 700 | 37.1% |
| Feb 2024 | 330 | 377 | 307 | 377 | 335 | 1,726 | 649 | 37.6% |
| Mar 2024 | 382 | 380 | 389 | 403 | 371 | 1,925 | 671 | 34.9% |
| Apr 2024 | 363 | 371 | 367 | 342 | 424 | 1,867 | 716 | 38.4% |
| May 2024 | 394 | 382 | 330 | 367 | 349 | 1,822 | 633 | 34.7% |
| Jun 2024 | 363 | 395 | 348 | 356 | 371 | 1,833 | 687 | 37.5% |
| Jul 2024 | 366 | 376 | 385 | 389 | 385 | 1,901 | 687 | 36.1% |
| Aug 2024 | 353 | 385 | 372 | 398 | 379 | 1,887 | 672 | 35.6% |
| Sep 2024 | 371 | 374 | 344 | 370 | 376 | 1,835 | 691 | 37.7% |
| Oct 2024 | 373 | 381 | 373 | 360 | 396 | 1,883 | 716 | 38.0% |
| Nov 2024 | 375 | 372 | 394 | 368 | 369 | 1,878 | 663 | 35.3% |
| Dec 2024 | 386 | 396 | 367 | 370 | 355 | 1,874 | 669 | 35.7% |
| Jan 2025 | 393 | 417 | 389 | 407 | 395 | 2,001 | 731 | 36.5% |
| Feb 2025 | 355 | 373 | 314 | 337 | 361 | 1,740 | 665 | 38.2% |
| Mar 2025 | 345 | 363 | 356 | 328 | 380 | 1,772 | 673 | 38.0% |
| Apr 2025 | 348 | 365 | 341 | 370 | 363 | 1,787 | 654 | 36.6% |
| May 2025 | 359 | 391 | 354 | 408 | 372 | 1,884 | 673 | 35.7% |
| Jun 2025 | 365 | 344 | 379 | 368 | 362 | 1,818 | 647 | 35.6% |
| Jul 2025 | 422 | 371 | 375 | 411 | 394 | 1,973 | 686 | 34.8% |
| Aug 2025 | 390 | 351 | 400 | 354 | 411 | 1,906 | 681 | 35.7% |
| Sep 2025 | 373 | 360 | 322 | 338 | 372 | 1,765 | 663 | 37.6% |
| Oct 2025 | 395 | 377 | 407 | 389 | 404 | 1,972 | 716 | 36.3% |
| Nov 2025 | 353 | 352 | 374 | 369 | 358 | 1,806 | 650 | 36.0% |
| Dec 2025 | 394 | 372 | 389 | 380 | 393 | 1,928 | 682 | 35.4% |
| Jan 2026 | 354 | 393 | 426 | 394 | 372 | 1,939 | 695 | 35.8% |
| Feb 2026 | 375 | 325 | 350 | 305 | 351 | 1,706 | 615 | 36.0% |
| Mar 2026 | 372 | 394 | 376 | 413 | 407 | 1,962 | 723 | 36.9% |
| Apr 2026 | 358 | 364 | 356 | 391 | 394 | 1,863 | 680 | 36.5% |
| May 2026 | 332 | 393 | 363 | 362 | 375 | 1,825 | 691 | 37.9% |
| Jun 2026 (partial) | 216 | 228 | 230 | 191 | 199 | 1,064 | 376 | 35.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]
Zoom on the bands the policy acts on: card transactions per 10,000
View as table
| Country | Card transactions | No score | Below 30 | 30 to 49 | 50 or more |
|---|---|---|---|---|---|
| Mexico | 258,446 | 51,716 (20.010%) | 206,557 (79.923%) | 74 (0.029%) | 99 (0.038%) |
| Colombia | 155,209 | 31,211 (20.109%) | 123,903 (79.830%) | 46 (0.030%) | 49 (0.032%) |
| Argentina | 102,806 | 20,633 (20.070%) | 82,097 (79.856%) | 30 (0.029%) | 46 (0.045%) |
| All countries | 516,461 | 103,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]
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
| Table | Kind | Column or flag | Rows | Of | Share |
|---|---|---|---|---|---|
| customers | null | country | 0 | 150,000 | 0.0% |
| customers | null | segment | 0 | 150,000 | 0.0% |
| customers | null | customer_status | 0 | 150,000 | 0.0% |
| customers | null | registration_date | 0 | 150,000 | 0.0% |
| customers | flag | qc_future_last_updated | 5,957 | 150,000 | 4.0% |
| customers | flag | qc_label_normalized | 0 | 150,000 | 0.0% |
| products | null | customer_id | 0 | 400,000 | 0.0% |
| products | null | product_type | 0 | 400,000 | 0.0% |
| products | null | product_status | 0 | 400,000 | 0.0% |
| products | null | opening_date | 0 | 400,000 | 0.0% |
| products | null | credit_limit | 274,683 | 400,000 | 68.7% |
| products | flag | qc_customer_orphan | 0 | 400,000 | 0.0% |
| products | flag | qc_future_last_updated | 15,939 | 400,000 | 4.0% |
| transactions | null | customer_id | 0 | 1,477,723 | 0.0% |
| transactions | null | product_id | 0 | 1,477,723 | 0.0% |
| transactions | null | amount | 0 | 1,477,723 | 0.0% |
| transactions | null | transaction_status | 0 | 1,477,723 | 0.0% |
| transactions | null | merchant_category | 1,134,287 | 1,477,723 | 76.8% |
| transactions | null | fraud_score | 296,152 | 1,477,723 | 20.0% |
| transactions | flag | qc_customer_orphan | 0 | 1,477,723 | 0.0% |
| transactions | flag | qc_product_orphan | 0 | 1,477,723 | 0.0% |
| transactions | flag | qc_product_other_customer | 0 | 1,477,723 | 0.0% |
| transactions | flag | qc_before_product_open | 100,659 | 1,477,723 | 6.8% |
| transactions | flag | qc_future_date | 0 | 1,477,723 | 0.0% |
| transactions | flag | qc_late_arrival | 0 | 1,477,723 | 0.0% |
| transactions | flag | qc_label_normalized | 13,416 | 1,477,723 | 0.9% |
| complaints | null | customer_id | 0 | 67,095 | 0.0% |
| complaints | null | category | 0 | 67,095 | 0.0% |
| complaints | null | case_type | 0 | 67,095 | 0.0% |
| complaints | null | claimed_amount | 45,344 | 67,095 | 67.6% |
| complaints | null | affected_product_id | 22,525 | 67,095 | 33.6% |
| complaints | null | resolution_date | 51,746 | 67,095 | 77.1% |
| complaints | flag | qc_customer_orphan | 0 | 67,095 | 0.0% |
| complaints | flag | qc_affected_product_orphan | 0 | 67,095 | 0.0% |
| complaints | flag | qc_affected_product_other_customer | 44,570 | 67,095 | 66.4% |
| complaints | flag | qc_future_date | 0 | 67,095 | 0.0% |
| complaints | flag | qc_late_arrival | 0 | 67,095 | 0.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.
| Rule | Condition | Value on this run | Result |
|---|---|---|---|
| G1 | no table in data/gold/ has is_fraud | none | ✓ pass |
| G2 | transaction_date in [2025-06-01, 2026-06-01) | 2025-06-01 00:00:16 → 2026-05-31 23:57:20; outside: 0 | ✓ pass |
| G3 | transactions.customer_id = product owner (join) | 0 differing rows | ✓ pass |
| G4 | transaction_labels 1:1 with gold.transactions | without label: 0; label without transaction: 0 | ✓ pass |
| G5 | customer_profile 1 row per customer; transactions_enriched 1 per transaction | profile 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.
| Check | Table | What it looks for | Rows affected | Action |
|---|---|---|---|---|
| LBL-01 | transactions | inconsistent label | 14,070 of 752,633 | normalized in silver |
| WIN-01 | transactions | outside the window | 73,642 of 1,551,365 | stays in silver, does not go to gold (R1) |
| OWN-02 | complaints | FK to another customer's product | 44,570 of 44,570 | flag in gold; the serving layer does not show it |
| FUT-01 | customers | future date | 5,957 of 150,000 | flag in gold |
| FUT-02 | products | future date | 15,939 of 400,000 | flag in gold |
| ORD-01 | transactions | transaction before opening | 100,659 of 1,477,723 | flag in gold |
Scroll the table sideways for every column →
View all 41 checks
| Check | Table | What it looks for | Rows affected | Action |
|---|---|---|---|---|
| DUP-01 | customers | exact duplicate | 0 of 150,000 | one is kept |
| DUP-02 | customers | PK versions | 0 of 150,000 | latest process_date / load wins |
| NUL-01 | customers | null in required column | 0 of 150,000 | quarantine (contract) |
| CAST-01 | customers | failed cast | 0 of 150,000 | left null; quarantine if required |
| CON-01 | customers | violates the contract | 0 of 150,000 | silver/_quarantine/ |
| LBL-01 | customers | inconsistent label | 0 of 74,907 | normalized in silver |
| SCH-01 | customers | schema change | 0 of 1 | declared alias or column only in bronze |
| DUP-01 | products | exact duplicate | 0 of 400,000 | one is kept |
| DUP-02 | products | PK versions | 0 of 400,000 | latest process_date / load wins |
| NUL-01 | products | null in required column | 0 of 400,000 | quarantine (contract) |
| CAST-01 | products | failed cast | 0 of 400,000 | left null; quarantine if required |
| CON-01 | products | violates the contract | 0 of 400,000 | silver/_quarantine/ |
| SCH-01 | products | schema change | 0 of 1 | declared alias or column only in bronze |
| DUP-01 | transactions | exact duplicate | 0 of 1,551,365 | one is kept |
| DUP-02 | transactions | PK versions | 0 of 1,551,365 | latest process_date / load wins |
| NUL-01 | transactions | null in required column | 0 of 1,551,365 | quarantine (contract) |
| CAST-01 | transactions | failed cast | 0 of 1,551,365 | left null; quarantine if required |
| CON-01 | transactions | violates the contract | 0 of 1,551,365 | silver/_quarantine/ |
| LBL-01 | transactions | inconsistent label | 14,070 of 752,633 | normalized in silver |
| SCH-01 | transactions | schema change | 0 of 383 | declared alias or column only in bronze |
| DUP-01 | complaints | exact duplicate | 0 of 67,095 | one is kept |
| DUP-02 | complaints | PK versions | 0 of 67,095 | latest process_date / load wins |
| NUL-01 | complaints | null in required column | 0 of 67,095 | quarantine (contract) |
| CAST-01 | complaints | failed cast | 0 of 67,095 | left null; quarantine if required |
| CON-01 | complaints | violates the contract | 0 of 67,095 | silver/_quarantine/ |
| SCH-01 | complaints | schema change | 0 of 1,097 | declared alias or column only in bronze |
| WIN-01 | transactions | outside the window | 73,642 of 1,551,365 | stays in silver, does not go to gold (R1) |
| FK-01 | products | orphan FK | 0 of 400,000 | flag in gold |
| FK-02 | transactions | orphan FK | 0 of 1,477,723 | flag in gold |
| FK-03 | transactions | orphan FK | 0 of 1,477,723 | flag in gold |
| FK-04 | complaints | orphan FK | 0 of 67,095 | flag in gold |
| FK-05 | complaints | orphan FK | 0 of 44,570 | flag in gold |
| OWN-01 | transactions | FK to another customer's product | 0 of 1,477,723 | gold uses the owner (R2); flag for audit |
| OWN-02 | complaints | FK to another customer's product | 44,570 of 44,570 | flag in gold; the serving layer does not show it |
| FUT-01 | customers | future date | 5,957 of 150,000 | flag in gold |
| FUT-02 | products | future date | 15,939 of 400,000 | flag in gold |
| FUT-03 | transactions | future date | 0 of 1,477,723 | flag in gold |
| FUT-04 | complaints | future date | 0 of 67,095 | flag in gold |
| ORD-01 | transactions | transaction before opening | 100,659 of 1,477,723 | flag in gold |
| LATE-01 | transactions | late arrival | 0 of 1,477,723 | flag in gold; freshness alert |
| LATE-02 | complaints | late arrival | 0 of 67,095 | flag 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
| Check | Table | What it looks for | Before | After |
|---|---|---|---|---|
| DUP-01 | transactions | exact duplicate | 1 | 0 |
| DUP-02 | transactions | PK versions | 0 | 1 |
| LBL-01 | transactions | inconsistent label | 2 | 3 |
| SCH-01 | transactions | schema change | 0 | 1 |
| LATE-01 | transactions | late arrival | 0 | 4 |
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.
1Bronze
A copy of 8 operational tables, with load time.
2Silver
Typed events joined to the gold transaction and customer.
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