Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Public dataSynthetic faults

Data quality scorecard

Rules written after one blind test, and committed before the next set of blind faults existed, raised the catch from 2 to 5 of 8, with most of the gain resting on arrival times this study made up.

The limit: 8 faults are a handful, not a catch rate; 2 of the 3 extra catches come from one rule that the made-up arrival times make close to certain to fire; and the author of the new faults had seen the earlier faults (never the checks) so as not to repeat them. What to do with it: treat a check list as unproven until someone who never saw it has written faults against it, add a declared rule for each miss, and test the rules on a fresh blind set, because 3 of these 8 still got past every version.

Key figures
Second blind set caught2 → 5of the same 8, before and after five rules for the first blind set's misses; 2 of the 3 gains rest on made-up arrival timesFirst blind set caught2/8the scorecard before and after its first fixes caught the same ones; written by an independent author who never saw the checksChecks that ever failed8/22version 2, on any fault here; 2 of the 14 that never did cannot fail, and the clean month raised 0 false alarmsAI answers confidently wrong14 → 3of 45 from a faulty table, without and with the score, on faults the checks were built or fixed for; with the score the answers follow its decline rule, which refused 123 of 171 right answers

Main limitation Twenty-six faults on one month of public trip data: ten written directly into the fault code (plus one run with four of them at once) and sixteen written blind in two rounds. The counts describe these faults, not how often the checks would catch faults in production.

In plain words

A dashboard shows yesterday's numbers every morning. If the data behind it arrived late, half empty, twice, or in the wrong units, the dashboard still draws a clean chart, and nobody can tell by looking. That gets worse when people ask an AI assistant for the number instead: a good answer and a bad one look the same.

A quality scorecard is a short list of automatic checks that runs on every load and turns the results into one trust score out of 100. This study builds one for a month of public Chicago trip data, then runs it on twelve versions of that data: one left clean, four faults the checks were built for (plus all four at once), and six new faults written down before anything ran.

The first version caught every fault it was built for and only 2 of the 6 new faults. Three changes aimed at those misses were then declared before running, and caught 5 of 6, with no false alarms on the clean data. Because the changes were written for these faults, that second count shows the fixes work, not that they would catch faults nobody has seen yet. The two rounds of faults written blind, further down, are that test.

On the faults it was built for, data that arrives late, goes missing, loads twice or changes units, the scorecard catches 4 of 4. Blind faults of those same kinds (grouped after the results) still got past version 2: an old day reloaded, yesterday's file again, durations in minutes and a day loaded before it ended. It cannot see values that quietly stop meaning what they say.

Version 1 is the first set of checks. Version 2 adds three changes written after seeing version 1's misses, declared before they ran. Neither was changed after the blind faults arrived. Version 3 adds five rules written for the first blind round's misses, committed before the second blind round was written.

Freshness
Did today's data arrive on time?
Completeness
Are values or whole rows missing?
Uniqueness
Did anything load twice?
Validity
Do the values make sense, for example miles that are really miles?
Anomaly
Is today unusual compared with the two weeks before it?
Trust score
Points for each group of checks that passes. A serious failure caps the score at 40, which means "do not use this feed today".

What each fault tripped

Each row links to its scenario page, with every check and the anomaly evidence.

Version 1: every built-for fault trips the check written for it; 4 of the 6 new faults trip nothing.

a check in this group failedevery check passedTrust: score out of 100 after any cap

Which check groups failed in each scenario, version 1.

Failed check groups, version 1
ScenarioFreshnessCompletenessUniquenessValidityAnomalyTrust
Control
Clean controlpassedpassedpassedpassedpassed100
Built for these checks
Late dayfailedpassedpassedpassedpassed40
Missing-fare spike, January 30passedfailedpassedpassedfailed40
Duplicate loadpassedpassedfailedfailedpassed40
Units changepassedpassedpassedfailedpassed40
All four at oncefailedfailedfailedfailedfailed0
New faults, written down before the run
Missing fares up 2 pointspassedpassedpassedpassedpassedMissed100
Missing fares up 5 pointspassedpassedpassedpassedpassedMissed100
Missing fares up 10 pointspassedfailedpassedpassedfailed40
Missing-fare spike, January 22passedfailedpassedpassedfailed40
Re-sent rows, new IDspassedpassedpassedpassedpassedMissed100
Half of January 31passedpassedpassedpassedpassedMissed100
Show the data
Version 1: trust after the cap, the score before it, the cap applied (100 means none) and the failed checks
ScenarioKindTrustBefore capCapFailed checks
Clean controlcontrol100100100none
Late daybuilt for407540freshness
Missing-fare spike, January 30built for406540fare_completeness, fare_null_anomaly
Duplicate loadbuilt for406040source_unique, unique_trips_trip_id
Units changebuilt for408540unit_invariant
All four at oncebuilt for0040fare_completeness, fare_null_anomaly, freshness, source_unique, unique_trips_trip_id, unit_invariant
Missing fares up 2 pointsnew100100100none
Missing fares up 5 pointsnew100100100none
Missing fares up 10 pointsnew406540fare_completeness, fare_null_anomaly
Missing-fare spike, January 22new406540fare_completeness, fare_null_anomaly
Re-sent rows, new IDsnew100100100none
Half of January 31new100100100none

Download results.json

Why version 1 missed them

Fixing the misses: version 2

Writing a check after seeing what it has to catch proves nothing, so the three changes below were written down and committed before they ran, with their thresholds, and run once. Weights and caps did not change, and version 1 was re-run alongside and came out identical.

The six new faults under each version, the version 2 trust score and every version 2 check that failed
FaultVersion 1Version 2Trust, v2Failed checks, v2
Missing fares up 2 pointsmissedmissed100nothing
Missing fares up 5 pointsmissedcaught90Anomaly (0.02 floor)
Missing fares up 10 pointscaughtcaught40Missing fares and anomaly (0.02 floor)
Missing-fare spike, January 22caughtcaught40Missing fares and anomaly (0.02 floor)
Re-sent rows, new IDsmissedcaught40Content duplicates
Half of January 31missedcaught40Day volume

On the clean data, version 2 failed 0 checks and its anomaly detector flagged 0 of 17 clean days. Rounded public fares and durations could have made distinct trips look like duplicates; in this month they did not.

Missing fares up 5 points is caught only by the anomaly check, and anomaly is the one group that does not cap the score, so trust reads 90, not 40. I would keep it that way: an unusual day should page the feed's owner, not switch off the dashboard.

Still missed

A fresh test: faults written blind

Both versions were written by someone who knew the faults. To test them fairly, an independent author who had never seen the checks wrote 8 new faults a real daily feed could suffer. The test, its predictions and the rules for reading each fault were committed before the faults existed; the predictions, and whether they held, are under Method and checks. Version 2 caught 2 of 8, and version 1 the same ones.

8 faults written blind to the checks, scored by version 2
FaultWhat changedVersion 2
Old day reloadedJanuary 29 is loaded again in the early hours of February 1.Missed (trust 100)
Fare lands in the tip column60 fares on January 25 move into the tip field.Caught: missing fares, unusual share of missing fares (trust 40)
Trips moved to the next dayThe last 50 trips of January 18 are stamped January 19, as a timezone change would.Missed (trust 100)
Durations in minutesEvery fourth trip on January 14 reports its duration in minutes instead of seconds.Missed (trust 100)
Totals drop a chargeOn January 9 every total is fare plus tip, leaving out the other charges.Missed (trust 100)
Yesterday's file againJanuary 20 is replaced by a copy of January 19 under slightly changed trip IDs.Missed (trust 100)
Distances written as zero56 trips on January 16 report 0 miles, as a GPS outage defaulting to zero would.Caught: content duplicates, distance pair (trust 40)
Flags flippedOn January 27 the shared-trip flags change spelling and the match flag is inverted.Missed (trust 100)

This is the honest limit of the scorecard. Its checks guard arrival, completeness, duplicates and units. They say nothing about whether a value still means what it says. Yesterday's file arriving again even passes the day-volume check, because January 19 had a normal number of trips. Each miss needs its own rule: totals that add up, durations that fit the distance, each day compared with the day before for copies, accepted values for flags, and an alert when an old day is reloaded. Written now, those rules would be built for these eight faults, so they would need another blind set to prove anything. I would add them in that order, totals first, because a wrong total reaches a dashboard without any other sign.

Download the blind-test results (heldout/results.json)

The second round: fixes, then new blind faults

Version 3 adds five rules aimed at the first round's misses: totals that add up, plausible durations, steady shares of shared-trip flags, no day copied from the day before, and rows that arrive inside their window. Their thresholds came from the clean month alone, and the rules were committed before an independent author, who had never seen any check, wrote 8 new faults. That author was shown the list of faults already tested, every first-round blind fault included, so as not to repeat them, and told that rows normally land at 01:00 the day after the trip. On those 8 faults, version 2 caught 2 and version 3 caught 5. Version 3 also catches all 8 first-round faults, which it was built for, and it raised no false alarms on the clean month.

Of the 5 catches, 2 (part of a day loaded twice and second distance converted twice) tripped checks version 1 already had, and 3 tripped version 3 rules that had each caught a first-round fault. The other 3 were missed by every version. That grouping follows which check caught each fault, read after the results; nobody sorted the faults by kind before the run. Read after the results against the list the author was shown, 6 of the 8 vary a listed fault, caught and missed alike: part of a day loaded twice (rows loading twice under the same trip ID), trips moved to the next day, again (the last 50 trips of January 18 stamped January 19), totals rounded to whole dollars (totals that drop a charge), second distance converted twice (kilometres in a miles field) and a day loaded before it ended (half of a day's rows arriving, and a day reloaded at another hour) were caught, and durations capped (durations in minutes, which version 3's duration rule caught in the first round) was missed. The 2 with no listed counterpart (area codes off by one and a missing fare becomes zero) were both missed. Only 2 of the 5 catches (part of a day loaded twice and totals rounded to whole dollars) are on fields from the public data; the other 3 read fields this study made up: the arrival times, and a metres column derived from the miles, which a real feed would have to check against an independent reference. Two of the catches come from the arrival-window rule, which reads the synthetic arrival times: every clean row lands at 01:00 the next day, so the rule cannot raise a false alarm on this month. The same regularity makes those catches close to certain: any fault that moves a trip to a later date, or lands a day before it ends, trips the rule. A feed loaded during the day would test it harder.

8 new faults written blind to all three versions
FaultWhat changedVersion 2Version 3
Part of a day loaded twice60 trips of January 23 load a second time with the same IDs and arrival time.Caught: content duplicates, repeated trip IDCaught: content duplicates, repeated trip ID
Trips moved to the next day, againThe last quarter of January 11 is stamped January 12.MissedCaught: arrival window
Totals rounded to whole dollarsEvery total on January 24 is rounded to the dollar.MissedCaught: totals add up
Area codes off by oneEvery pickup area on January 17 is shifted down by one.MissedMissed
Durations cappedEvery trip on January 5 longer than 30 minutes reports exactly 30.MissedMissed
A missing fare becomes zeroThe one missing fare on January 28 is written as 0.MissedMissed
Second distance converted twiceJanuary 13's audit distance is converted from miles to metres twice.Caught: distance pairCaught: distance pair
A day loaded before it endedJanuary 21 lands at 23:00 the same day with a third of its trips missing.MissedCaught: arrival window

Still missed: area codes off by one, durations capped and a missing fare becomes zero. Each would need its own rule, and the next round would test it on faults nobody has written yet. That loop is the method: a blind set finds the gap, a declared rule closes it, and a new blind set checks the rule.

Download the second-round results (blind2/results.json)

The next part, pipeline recovery, loads the same month through bronze, silver and gold tables and tests faults in the pipeline itself, such as late data, schema changes, backfills and replays. A further part, pipeline cost, measures what each layout of that pipeline costs to run and to query, and what the cheaper layouts give up. The part after that, lineage and SLOs, follows an upstream change down to the dashboards: what it breaks, who hears and when, and which service levels and deploy checks would have stopped it. The last part, alerts and on-call, runs the checks every morning and measures who is paged, who hears after a viewer has already seen a wrong number, and what a failing check should do to the refresh. Another part, warehouse cost, loads public trips day by day and measures what a full rebuild and two incremental models read as the history grows, and which faults the incremental models skip. One more, table layers, lands the same trips as raw, cleaned and modeled tables four times a day and shows at which layer each check catches each fault, and how fresh each layer is. The latest, lakehouse recovery, runs late data, a renamed column and a bad backfill on Databricks Free Edition and scores which control totals can prove a repair worked.

What I would use when

Where each kind of check fits
ApproachUse it forWatch out for
Tests in the build (dbt tests, like this study)Rules you can name in advance: keys are unique, units are right, nothing required is empty. Cheap, versioned with the models, run on every load.They only catch what someone thought to write down. Version 1 missed four of six new faults.
Expectation libraries (for example Great Expectations or Soda)The same kind of rules when data arrives from many tools, or has to be checked before it reaches the warehouse.A second place where rules live, with its own owners.
Volume and trend monitors (for example Elementary on top of dbt)"Is today unusual?" questions: row counts, null shares, arrival times against recent history.A bound set too wide adds nothing. Version 1's 0.05 floor only repeated the 5% rule, and version 2's 0.02 still set every bound: on a share this rare, test the count against its own history instead.
Observability platformsHundreds of tables, automatic monitors and lineage once checks written one at a time stop scaling.Cost, and alerts that reach nobody in particular.

For a first data team I would start with tests in the build plus two monitors, volume and missing values per day, and give every check a named owner before buying a platform. dbt Core and open-source Elementary carry no licence cost; paid observability is priced by contract, so I would only buy it once more than about twenty feeds need monitors and the team spends more time keeping checks alive than fixing what they find. The first hire is an analytics engineer who owns the checks, before any tool.

How I would roll this out with a team

Where AI fits: a test

When someone asks an AI assistant how many trips ran yesterday, the assistant sees the table, not the load behind it. This test asks whether giving it the trust score changes what reaches the person. Claude Sonnet 5.5 answered six questions about each of the twelve versions of the data, 3 times each: once with only the daily totals, and once with the trust score and a simple rule (answer at 100, answer with a caveat below 100, decline at 40 or below). The setup was written down before the first call.

On questions where the table itself was wrong, the assistant without the score gave 14 confidently wrong answers out of 45. It spotted the problem itself 31 times. With the score it gave 3 confidently wrong answers out of 45, and it refused 123 of the 171 answers it would otherwise have got right.

All 11 of the avoided wrong answers came from faults the checks were built or fixed for: Duplicate load (6); Re-sent rows, new IDs (3); Missing fares up 5 points (2). The test used none of the blind faults, and its 45 answers from a faulty table are 15 questions asked 3 times each.

432 answers from Claude Sonnet 5.5, split by whether the table it read was right
Without the scoreWith the score
Table wrong: confidently wrong answer143
Table wrong: caveat or refusal3142
Table wrong: right answer anyway00
Table right: answered correctly17148
Table right: refused0123
Table right: wrong answer00
Unreadable reply00

Download every answer (gate/results.json)

On its own, the assistant noticed loud faults (All four at once; Late day; Missing fares up 10 points; Missing-fare spike, January 22; Half of January 31; Units change) and answered quiet ones with full confidence (Duplicate load; Re-sent rows, new IDs; Missing fares up 2 points).

The price is refusals. On questions the table answered correctly, the assistant with the score declined 123 of 171 (without it: 0). They come from 9 faulty versions of the data where the question's own day was fine: a capped score withholds the whole feed, not just the broken day.

Is it worth it? Here the score traded 123 refused answers for 11 fewer confidently wrong ones, so it pays off when one wrong answer costs more than about 11 refusals. With assumed figures of 10 minutes of an analyst's time per refusal at US$75 an hour, that bar is about US$140; with 5 to 20 minutes at US$50 to US$120 an hour, it runs from about US$50 to about US$450. So the answer depends on what a wrong number costs where it is used. The ratio itself belongs to this test's question list: most of its questions asked about days the fault did not touch, so another mix of questions, or a score per day, would move it, and the dollar figures with it. Where it reaches a customer and someone has to follow up, I would ship the score, once totals are checked too: the score is only as good as the checks behind it, and the blind faults show where they stop. For quick internal questions I would wait for the per-day version described next. The refusals themselves follow the rule the assistant was given (decline at 40 or below); its own judgment shows in the column without the score.

The wrong answers the score let through: Missing fares up 2 points: share of January 31 trips with a fare (trust 100). Where the checks miss a fault, the score says everything is fine and the assistant believes it.

What I would change: score each day separately instead of the whole feed, so a fault on one day does not withhold answers about the others. That is a new declared run, not a tweak to this one.

The agent-ready data marts study tests the other side of the same problem: how much documentation a model needs to answer correctly from tables in the first place.

How large a jump in missing fares has to be

Version 1 catches a jump in missing fares from 10 points up; 2 and 5 points passed every check.

Share of fares missing on the faulted day. Bars in the text colour were caught and grey bars were missed. The amber tick is that day's version 1 anomaly bound; the dashed line is the 5% completeness limit.

Fare-null share on the faulted day, by spike sizeMissing fares up 2 points: 2.0% of fares missing on January 31, anomaly bound 5.1%, missed; Missing fares up 5 points: 5.0% of fares missing on January 31, anomaly bound 5.1%, missed; Missing fares up 10 points: 10.0% of fares missing on January 31, anomaly bound 5.1%, caught; Missing-fare spike, January 22: 30.2% of fares missing on January 22, anomaly bound 5.0%, caught; Missing-fare spike, January 30: 30.3% of fares missing on January 30, anomaly bound 5.1%, caught. Completeness limit 5%.0%5%10%20%30%Completeness limit 5%Missing fares up 2 points: 2.0% of fares missing on January 31, version 1 anomaly bound 5.1%, missedMissing fares up 2 points2.0% · missedMissing fares up 5 points: 5.0% of fares missing on January 31, version 1 anomaly bound 5.1%, missedMissing fares up 5 points5.0% · missedMissing fares up 10 points: 10.0% of fares missing on January 31, version 1 anomaly bound 5.1%, caughtMissing fares up 10 points10.0% · caughtMissing-fare spike, January 22: 30.2% of fares missing on January 22, version 1 anomaly bound 5.0%, caughtMissing-fare spike, January 2230.2% · caughtMissing-fare spike, January 30: 30.3% of fares missing on January 30, version 1 anomaly bound 5.1%, caughtMissing-fare spike, January 3030.3% · caught
Show the data
Version 1, rounded to one decimal; exact values are in results.json
ScenarioDayFares missingAnomaly boundCompletenessAnomaly that day
Missing fares up 2 pointsJanuary 312.0%5.1%passpass
Missing fares up 5 pointsJanuary 315.0%5.1%passpass
Missing fares up 10 pointsJanuary 3110.0%5.1%failfail
Missing-fare spike, January 22January 2230.2%5.0%failfail
Missing-fare spike, January 30January 3030.3%5.1%failfail

Method and checks

Tracing which limit set the anomaly detector's bound in each day's evaluation showed that version 1's detector never did its job. Its fixed floor set the bound in all 202 day evaluations, so it only repeated the 5% completeness limit. The page says so. Version 2's lower floor caught the 5-point rise, and a recount after the results shows it set every version 2 bound too. The note on the anomaly bound below gives the figures.

How trust is calculated

Freshness, completeness and uniqueness each carry 25 points, validity 15 and anomaly 10. A group earns its points only when every check in it passes. A failed check in any group except anomaly caps trust at 40, and missing evidence caps it at 20. Duplicate passing results add nothing, and removing a check cannot raise the score.

Not every check is evidence. daily_reconciliation and row_identity are bookkeeping: they compare row counts between tables built from the same rows, so no data this pipeline loads can fail them. Of the 22 version 2 checks, 8 failed on at least one fault in this study, which shows they can catch something; the other 14, these two included, never failed, so the clean month's zero false alarms says nothing about them. On the clean month each check ran once, and the anomaly check also ran on each of the 17 days with a full two-week baseline. The units check compares miles with a synthetic metres field derived from those miles, so it cannot raise a false alarm on clean data either.

Every built-for fault fails a capped group, so all four score 40 after the cap. Before the cap they differ: Late day: 75; Missing-fare spike, January 30: 65; Duplicate load: 60; Units change: 85. The capped score answers "should anyone use this feed today"; the score before the cap shows how much of it still checks out.

The cap sits at 40 so that any serious failure scores below a feed whose only problem is an unusual day, which loses the anomaly group's 10 points and reads 90.

The anomaly bound

For each loaded day with fourteen loaded days before it, the bound is the median missing-fare share of those days plus the larger of a floor and six scaled median absolute deviations. The 0.05 floor set the bound in every one of the 202 day evaluations across all twelve scenarios, including all 17 clean days. The median absolute deviation term never set it, so in practice the detector is "the prior median plus 5 points": it repeats the completeness limit rather than adding an independent view. Version 2 cuts the floor to 0.02.

Recounted after the results (the floor recount): the clean month has 17 missing fares in 10,000 rows, so a 300-row day expects about 0.5 of one, and no clean day had more than 3. The 2-point rise put 6 of 300 on January 31, a count with a chance of about 1.5 in 100,000 at the clean rate under an independent, constant-rate binomial model, and it still passed. The 0.02 floor was a declared judgement, not a noise estimate: the design called it about two standard deviations of a day's missing-fare share, which assumed a 3% missing-fare rate; at the clean rate it is about 8 to 10. The floor also set every one of version 2's 202 bounds: most days have no missing fare, so the median absolute deviation was 0 in 120 of those windows, and its largest spread, 0.013, stayed under the floor. Version 2 is a tighter fixed limit, not a detector that moves with the data.

Version 1 flagged 0 and version 2 flagged 0 of 17 clean days. Those days share overlapping baselines, so this is a count on one month of data, not a false-alarm rate.

Predictions declared before each blind round

Each blind round's predictions were committed with its declaration. They are copied here word for word and scored after the results (the scored predictions).

First blind round, declared before its faults existed:

  1. "Version 2 catches between 3 and 5 of the 8." Did not hold: version 2 caught 2 of 8.
  2. "Faults that change row counts, duplicate content, blank 5 or more percent of fares, or break the distance pair are caught." Did not hold. Read after the results from each fault's written spec, these faults fall under it: fare lands in the tip column (blanks the fare on 60 of January 25's 366 rows) was caught, yesterday's file again (changes January 20's row count from 444 to 403) was missed, trips moved to the next day (changes the row counts of January 18 and 19) was missed and distances written as zero (breaks the distance pair) was caught.
  3. "Faults confined to columns no check reads (community areas, tip, trip_seconds, the shared flags, totals that no longer add up) are missed." Held. Read after the results from each fault's written spec, these faults fall under it: flags flipped (the shared flags only) was missed, durations in minutes (trip_seconds only) was missed and totals drop a charge (trip_total only) was missed.
  4. "Version 1 catches no more than version 2 on any fault." Held: version 1 caught 2 and version 2 caught 2; no fault caught by version 1 alone.

Second blind round, declared with version 3, before its faults existed:

  1. "Version 3 catches all 8 faults of the first blind set (built for them)." Held: version 3 caught 8 of 8.
  2. "On the second blind set, version 3 catches more than version 2, and fewer than all 8." Held: version 3 caught 5 and version 2 caught 2 of 8.
  3. "Version 3 raises no false alarm on the clean control." Held: 0 failed checks on the clean control.
Freshness, lineage and owners

The historical clock is 1 February 2024 at 06:00. Synthetic arrivals land at 01:00 the day after each trip date, so the clean feed is 5.0 hours old; freshness warns after 6 hours and fails after 12. The dbt manifest gives the lineage raw_trips to stg_trips to trips to daily_trips, and each descendant inherits the source score. That is dependency exposure, not measured usage. The owners and the operations dashboard named on the scenario pages are synthetic.

Data and its limits
  • The two blind rounds' fault files and declarations are not in the download, so those rounds cannot be re-run from it. The download holds their scored results (first round, second round), so every blind count on this page can be checked against them.
  • The version 3 day-copy rule's SQL divides matching pairs by all joined pairs instead of counting rows, so a row that matches several rows of the day before counts several times. That can only make it fire more often than the declared rule. A recount after the results (the day-copy recount) finds no outcome changes: the rule fired only on yesterday's file again, where every row of January 20 is a copy, and no clean day has a matching row either way. The rule stays as declared; a corrected one would be a new declared version.
  • The units check compares miles with a synthetic metres field derived before the faults. A real check needs an independent reference; two fields corrupted the same way would pass.
  • Missing fares already occur in the public sample, so the 5% limit is a stated service assumption, not a claim that every missing fare is an error.
  • The 10,000 rows are a fixed January 2024 sample, not a probability sample of citywide travel. Original trip identifiers and precise locations are excluded.
  • This study is unaffiliated with the City of Chicago or dbt Labs and uses no employer data.

Use this at your company

To score a feed of your own the same way, paste this prompt into an AI assistant that can query your warehouse.

This method comes from Diogo Travassos's study "Data quality scorecard" (https://diogotravassos.dev/data-quality-scorecard/). If you can open links, read it first: it works the method through end to end and shows the checks that caught mistakes. The steps below stand on their own if you can't.

Help me build a trust score for one data feed that a dashboard or an AI assistant reads every day, and test whether its checks catch real faults.

Data you need from me: the feed's table with a load or arrival time per row, a row ID, the date each row describes, a few key fields that should rarely be empty, and at least a month of history.

Method:
1. Write checks in five groups: freshness (how old the newest load is), completeness (share of empty key fields), uniqueness (repeated IDs, and repeated rows under new IDs), validity (values in range and in the right units), and anomaly (today against the 14 days before it).
2. Turn them into a score out of 100. A serious failure caps the score low, so nobody uses the feed that day.
3. Before trusting the checks, have someone who has not seen them write 8 realistic faults into a copy of the data: late or half loads, re-sent rows, small and large jumps in empty fields, unit changes.

Checks before trusting the answer:
- Run the checks on the clean month and confirm they raise no alarm.
- Count how many of the blind faults they catch, and name every miss and why it passed.
- Check whether each limit ever moves with the data. A limit set by the same fixed number every day only repeats another rule.

Report back: today's score, which checks failed, the caught and missed faults, and the limits: how many faults you tested, on how much data, and that the count is not a catch rate for production.

In your report, say which study you followed and link it: https://diogotravassos.dev/data-quality-scorecard/