Skip to content

Diogo TravassosData leadership · Analytics · Decision-making

Real public data

Acceptance criteria from the documentation, run on Chicago's licence register

Only 2 of 8 user stories passed acceptance on Chicago's full licence register.

The sign-off log

16 of 37 criteria failed, and profiling found 38 problem types.

Each criterion ran as a test script on the full register: the rows in its scope, the rows that fail it, and a result. Pass means no failing row; within tolerance, at most 0.1% of its scope; fail, more. A criterion failing on a fifth or more of its scope is flagged for investigation as a possible wrong rule, in bold. It catches nothing.

Sign-off log
CriterionStoryRows in scopeRows failingShareResult
Record id present and uniqueOne record, one licence1,212,5004930.04%within tolerance
Licence id present and uniqueOne record, one licence1,212,50000pass
Licence number on every recordOne record, one licence1,212,50010.00%within tolerance
One owner account per licence numberOne record, one licence1,212,499530.00%within tolerance
One licence type per licence numberOne record, one licence1,212,499260.00%within tolerance
Each licence code has one nameCodes agree1,212,50000pass
Each activity id has one nameCodes agree663,38400pass
Only documented record typesCodes agree1,212,50000pass
Only documented status codesCodes agree1,212,50010.00%within tolerance
Ward and precinct agreeCodes agree1,117,93500pass
Each community area has one nameCodes agree1,112,892280.00%within tolerance
New licences carry an application dateStage dates in order290,01334,34111.84%fail
Renewals carry no application dateStage dates in order922,48727,3002.96%fail
Documents-complete date on every recordStage dates in order1,212,50018,4151.52%fail
Application on or before documents completeStage dates in order255,59860.00%within tolerance
Documents complete on or before approvalStage dates in order1,154,337300.00%within tolerance
Approval on or before issueStage dates in order1,156,2573450.03%within tolerance
Fee paid on or before issueStage dates in order1,189,8167,6500.64%fail
Issue date on every recordStage dates in order1,212,50000pass
No past-event date after the extractStage dates in order1,212,50000pass
Issued in 2002 or laterStage dates in order1,212,50000pass
Start and expiry dates presentTerm rules1,212,5002,8640.24%fail
Expiry after startTerm rules1,209,6363,3150.27%fail
A two or four year termTerm rules1,191,028608,78951.11%fail, flagged
Period starts on the 15thTerm rules1,191,1731,182,46699.27%fail, flagged
New licence starts in its month of issueTerm rules149,9661,6481.10%fail
Each renewal continues an earlier periodRenewals linked922,30478,6778.53%fail
Periods of one licence do not overlapRenewals linked1,191,02715,9961.34%fail
Renewal created near its period startRenewals linked921,48910,4521.13%fail
Status change dated exactly when cancelled, revoked or appealedStatus changes dated1,212,50010.00%within tolerance
Cancellation inside the termStatus changes dated79,0177,8029.87%fail
Zip code of five or nine digitsWho and where1,212,1711660.01%within tolerance
Address presentWho and where1,212,50000pass
Location inside the city when a ward is givenWho and where1,120,6316,4720.58%fail
Legal name presentWho and where1,212,50000pass
Conditional approval only on liquor licencesLiquor-only steps5,0064,87497.36%fail, flagged
Expansion records only with a liquor licenceLiquor-only steps94482287.08%fail, flagged

A story is accepted when every criterion passes or is within tolerance.

Stories
StoryCriteriaPassed or within toleranceResult
One record, one licence55accepted
Codes agree66accepted
Stage dates in order106returned
Term rules50returned
Renewals linked30returned
Status changes dated21returned
Who and where43returned
Liquor-only steps20returned

Every problem type and who caught it

Profiling ran its generic rules on every column, with no reference to the documentation, and found 38 types. Each type falls in one of three groups.

The study's criteria tested 10, held back 14 more by other rules, and let 14 through, in bold. Two earlier rules are shown too. Pooled, as declared: half the rows fail any criterion, 24 of 38. Targeted, added after the results: one criterion naming any of the type's columns, 18 of 38. No rule counts a flagged criterion. Weighted by records, as declared: 158,235 of the 384,830 records with any problem, from the scan or a criterion, fail a criterion that is not flagged, 41%.

Problem types
Problem typeGroupRowsStudy's criteriaThe criterion that tested itSecond authorTargetedPooled
Application date after the expiry dateDates out of order223held back by other rulesnot held backyesyes
Documents-complete date after the expiry dateDates out of order4,409held back by other rulesnot held backyesyes
Payment date after the expiry dateDates out of order8,856held back by other rulesnot held backnoyes
Payment date after the status change dateDates out of order85held back by other rulesnot held backyesyes
Start date after the expiry dateDates out of order2,964testedExpiry after startheld back by other rulesyesyes
Start date after the status change dateDates out of order797testedCancellation inside the termnot held backyesyes
Approval date after the expiry dateDates out of order4,879held back by other rulesnot held backnoyes
Issue date after the expiry dateDates out of order21,922held back by other rulesnot held backnoyes
Exact duplicate recordsDuplicates9held back by other rulesheld back by other rulesyesyes
Repeated record idDuplicates252testedRecord id present and uniquetestedyesyes
One owner account with more than one stateCodes that disagree2,532not held backnot held backnono
One licence number with more than one owner accountCodes that disagree15testedOne owner account per licence numberheld back by other rulesyesyes
One licence number with more than one siteCodes that disagree12held back by other rulesheld back by other rulesyesyes
One licence number with more than one trading nameCodes that disagree19held back by other rulesheld back by other rulesyesyes
Unusual gap from application date to expiry dateOutlying values35not held backnot held backnono
Unusual gap from application date to status change dateOutlying values826held back by other rulesheld back by other rulesyesyes
Unusual gap from documents-complete date to status change dateOutlying values3,085held back by other rulesnot held backyesyes
State blankBlank fields12not held backnot held backnono
Zip code blankBlank fields329not held backnot held backnono
Ward blankBlank fields16not held backnot held backnono
Precinct blankBlank fields20not held backnot held backnono
Community area blankBlank fields18not held backnot held backnono
Business activity id blankBlank fields40not held backnot held backnono
Licence number blankBlank fields1testedLicence number on every recordtestedyesyes
Application date blankBlank fields6testedNew licences carry an application datenot held backyesyes
Documents-complete date blankBlank fields825testedDocuments-complete date on every recordheld back by other rulesyesyes
Payment date blankBlank fields3,722held back by other rulesnot held backnoyes
Start date blankBlank fields2,692testedStart and expiry dates presentheld back by other rulesyesyes
Expiry date blankBlank fields170testedStart and expiry dates presentnot held backyesyes
Approval date blankBlank fields18,652not held backnot held backnono
Latitude blankBlank fields20held back by other rulesnot held backnoyes
Licence id in an odd shapeMessy text1,996held back by other rulesheld back by other rulesnoyes
Zip code in an odd shapeMessy text166testedZip code of five or nine digitsnot held backyesyes
Stray spaces in the legal nameMessy text14,707not held backnot held backnono
Stray spaces in the trading nameMessy text13,882not held backnot held backnono
Stray spaces in the addressMessy text217,666not held backnot held backnono
Stray spaces in the cityMessy text50not held backnot held backnono
Stray spaces in the business activityMessy text12,275not held backnot held backnono

Fields the measures read, added after the results. 12 types touch a field the two measures read (date issued, application date, licence start, requirements complete). Each measure holds back only the rows failing its own stories' criteria (days to issue: stage dates and term rules; renewals: term rules and renewals linked). Counted that way, days to issue holds back most rows of 3 of the 6 types in its fields. Renewals do so for 5 of 7, and the two together 9 of 12. Counting any criterion, as in the table above, the criteria tested 5 of the 12 and held back 6 more. That leaves 1, a gap between dates on 35 rows, which got through. 13 of the 14 types not held back sit in fields the measures do not read. Counted only on each figure's own rows for 2021 to 2025 (35,694 new licences, 121,473 renewals), 4 types touch days to issue and 3 renewals. The figure's own criteria set most rows aside for 2 and 2 of them. The types left in reach touch at most 11 new licences and 108 renewals.

8 more types were found only by the criteria: under half their failing rows sit inside any type profiling found.

Types only the criteria found
CriterionRows failingInside profiling types
One owner account per licence number5332%
One licence type per licence number2635%
Each community area has one name2811%
New licences carry an application date34,34130%
Renewals carry no application date27,30022%
New licence starts in its month of issue1,64823%
Each renewal continues an earlier period78,67733%
Location inside the city when a ward is given6,47241%

What the requirements should have said

Added after the results: what the register does where a rule was wrong or missing.

What the requirements should have said
Requirement as writtenWhat the data doesWhat it should have said
A two or four year termTerms ran about one year before 2007 and mostly two years from 2008. A two-year bucket holds 582,150 records, about one year 372,220, four years 89.A new or renewed licence runs about two years from 2008 on, and one year before that.
Period starts on the 15th926,069 of 1,191,173 periods start on the 16th, the day after the renewal deadline.A period starts on the 16th, the day after the 15th deadline.
Conditional approval only on liquor licences5,006 records carry it. The test looked for "liquor" in the licence name, and names such as tavern never say it. Whether the 1,475 retail food establishments with it also hold a liquor licence was not checked.Liquor licences are named by their codes, and checked against the licences held at the same site.
Expansion records only with a liquor licence822 of 944 sit on accounts with no licence named liquor. The same name test applies, so this was not settled either.Liquor licences are named by their codes, and checked against the licences held at the same site.
Each renewal continues an earlier period63,069 of the 78,677 failures start in or before 2002, before the register's history, and 15,215 in 2020 and 2021.A renewal continues an earlier period when that period is in the register, from 2002 on.
Median days from application to issue, by monthBACP reports an average on more licences. For Limited Business licences in 2024 it gives 5.3 days on 2,594; the register gives 23.8 days on 1,722 new licences. No start date or record type in the register matched BACP's counts.Days to issue as BACP defines them, with BACP's figure as the check, and the average beside the median.
No rule on blanksWard, precinct, zip, state and community area are blank on a few records of one type, and 18,652 records have no approval date.Name, for each field, the record types on which it may be blank.
No rule on textExtra or outer spaces in 217,666 addresses and in about 15,000 legal names.Names and addresses are trimmed, with single spaces between words.

As frozen and as corrected

One profiling rule, values far from the median, ran on every number column as frozen. Every whole number in this register is a code or an id. So it flagged the licence code on a third of the records as one type, and folded eight types of blank location fields into it. It was corrected after the results to run on real numbers and dates only. Both runs:

Frozen and corrected profiling
As frozenCorrected after the results
Types profiling found3438
Tested, added after the results8 of 3410 of 38
Held back by other rules1314
Not held back1314
Caught, targeted rule added after the results16 of 3418 of 38
Caught, pooled rule as declared21 of 3424 of 38
Found only by the criteria18
Declared headline share, pooled with own finds22 of 3532 of 46
Second author, tested1 of 342 of 38
Second author, targeted5 of 346 of 38
Second author, pooled with own finds11 of 3516 of 43

The targeted and tested rules are declared in the download's second and third changes notes, each committed before its final run. The tested rule was first tried in a trial run, so it is not pre-registered. On both runs it picks the same types as a criterion naming every column of the type anywhere in its text.

What the step does to the report

The two measures, with every row and with failing rows held back, for the five most recent full years. The business case funds the step if either moves by a day or a point, or if more than 1% of a measure's rows are held back.

Median days from application to issue
YearNew licencesAll rowsAccepted rowsHeld back
20216,871662.0%
20227,412662.1%
20237,471542.2%
20247,024652.5%
20256,916772.7%
Share of renewals created by the 15th
YearRenewalsAll rowsAccepted rowsHeld back
202125,95398.9%99.2%38.9%
202223,42298.2%99.4%1.4%
202324,86598.7%99.5%0.9%
202422,94599.0%99.6%0.8%
202524,28899.2%99.6%0.6%

The renewal measure uses the date the renewal record was created, the only date the register gives a renewal. The second author judged that no filing date exists, and held every renewal back.

Cost range (added after the results)

The business case assumes US$4,500 to build and US$1,800 a year, at US$75 an hour. The table scales both by the hourly rate and by effort, against the 325 rows flagged in 2025. The data owner's check of those rows is not in the business case.

First-year cost by rate and effort
Hourly rateEffortFirst yearPer flagged row
US$501 times assumedUS$4,200US$13
US$751 times assumedUS$6,300US$19
US$1001 times assumedUS$8,400US$26
US$751.5 times assumedUS$9,450US$29
US$1001.5 times assumedUS$12,600US$39

By month, and as an average (added after the results)

The requirement asks for months, and BACP reports an average. Over the 60 months of 2021 to 2025, holding back failing rows moved the median in 13 months, by at most 2 days. Days are whole numbers, so a median moves in steps of half a day: the business case's 1-day bar is close to any move at all. It moved the average by a day or more in 48. In 2025 the held-back rows average about 234 days, so a few of them pull the average up. For 2025 as a whole the average falls from 51.5 to 46.4 days.

Days from application to issue, new licences, 2025
MonthNew licencesHeld backMedian, allMedian, acceptedAverage, allAverage, accepted
Jan4386101052.344.7
Feb3994151552.548.7
Mar557127749.642.9
Apr640126658.750.5
May668109956.250.8
Jun661253345.440.9
Jul689296647.143.7
Aug707295450.140.6
Sep646245550.547.3
Oct58696636.436.1
Nov463119950.946.7
Dec46217212174.470.9

Against BACP's own figures (added after the results)

BACP publishes, by week and licence code, licences issued and average days to issue. Summed by year for two common codes, its figures do not match the register: BACP counts more licences and reports far shorter averages. The register does not say how BACP counts, so the report cannot be checked against the clock without asking BACP.

Other definitions the register allows do not match either. For Limited Business licences in 2024 it holds 1,722 new licences, 280 location changes, 25 other changes and 7,556 renewals. The non-renewal records together make 2,027, against BACP's 2,594. Counted from payment instead of application, new licences average 10.3 days, against BACP's 5.3.

BACP's figures and the register
LicenceYearBACP licencesBACP average daysRegister new licencesRegister averageAverage, accepted
Retail Food20211,74064.01,03489.284.7
Retail Food20221,67765.01,07991.184.7
Retail Food20231,75064.11,14496.896.2
Retail Food20241,62260.41,06983.583.8
Limited Business20213,0716.61,90322.116.4
Limited Business20222,8856.11,87124.716.6
Limited Business20232,8616.21,83825.821.3
Limited Business20242,5945.31,72223.818.0

At a software company, the same step sits between a billing or CRM feed and a revenue dashboard. It means criteria written from the contract terms, a scan of every field, and a failure log for the feed's owner.

Predictions, written before the data, and their scores

Seven predictions, scored by the declared rules. On the corrected run, 5 were supported. The criteria caught more than expected, and the second author caught fewer.

The first prediction counts all types, including those only the criteria found. Measured the same way, the rules added after the results give: tested 18 of 46 (0.39), targeted 26 of 46 (0.57). As frozen: 9 of 35 and 17 of 35. Neither rescores a prediction.

Predictions
PredictionExpectedSupported ifAs frozenVerdictCorrectedVerdict
Share of the problem types the criteria catch0.400.25 <= value <= 0.550.63neither0.70neither
Share of missed types that are format or blanks0.70value >= 0.600.62supported0.86supported
Criteria flagged as wrong rules3value >= 24supported4supported
Problem types only the criteria find4value >= 31neither8supported
The business case says fund the stepyesvalue is trueyessupportedyessupported
Gap between the two authors' share of profiling types caught0.10value <= 0.150.32opposite0.34opposite
Share of the criteria's missed types the second author also missed0.75value >= 0.601.00supported1.00supported

What went wrong or was missed

Limits