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.
| Criterion | Story | Rows in scope | Rows failing | Share | Result |
|---|---|---|---|---|---|
| Record id present and unique | One record, one licence | 1,212,500 | 493 | 0.04% | within tolerance |
| Licence id present and unique | One record, one licence | 1,212,500 | 0 | 0 | pass |
| Licence number on every record | One record, one licence | 1,212,500 | 1 | 0.00% | within tolerance |
| One owner account per licence number | One record, one licence | 1,212,499 | 53 | 0.00% | within tolerance |
| One licence type per licence number | One record, one licence | 1,212,499 | 26 | 0.00% | within tolerance |
| Each licence code has one name | Codes agree | 1,212,500 | 0 | 0 | pass |
| Each activity id has one name | Codes agree | 663,384 | 0 | 0 | pass |
| Only documented record types | Codes agree | 1,212,500 | 0 | 0 | pass |
| Only documented status codes | Codes agree | 1,212,500 | 1 | 0.00% | within tolerance |
| Ward and precinct agree | Codes agree | 1,117,935 | 0 | 0 | pass |
| Each community area has one name | Codes agree | 1,112,892 | 28 | 0.00% | within tolerance |
| New licences carry an application date | Stage dates in order | 290,013 | 34,341 | 11.84% | fail |
| Renewals carry no application date | Stage dates in order | 922,487 | 27,300 | 2.96% | fail |
| Documents-complete date on every record | Stage dates in order | 1,212,500 | 18,415 | 1.52% | fail |
| Application on or before documents complete | Stage dates in order | 255,598 | 6 | 0.00% | within tolerance |
| Documents complete on or before approval | Stage dates in order | 1,154,337 | 30 | 0.00% | within tolerance |
| Approval on or before issue | Stage dates in order | 1,156,257 | 345 | 0.03% | within tolerance |
| Fee paid on or before issue | Stage dates in order | 1,189,816 | 7,650 | 0.64% | fail |
| Issue date on every record | Stage dates in order | 1,212,500 | 0 | 0 | pass |
| No past-event date after the extract | Stage dates in order | 1,212,500 | 0 | 0 | pass |
| Issued in 2002 or later | Stage dates in order | 1,212,500 | 0 | 0 | pass |
| Start and expiry dates present | Term rules | 1,212,500 | 2,864 | 0.24% | fail |
| Expiry after start | Term rules | 1,209,636 | 3,315 | 0.27% | fail |
| A two or four year term | Term rules | 1,191,028 | 608,789 | 51.11% | fail, flagged |
| Period starts on the 15th | Term rules | 1,191,173 | 1,182,466 | 99.27% | fail, flagged |
| New licence starts in its month of issue | Term rules | 149,966 | 1,648 | 1.10% | fail |
| Each renewal continues an earlier period | Renewals linked | 922,304 | 78,677 | 8.53% | fail |
| Periods of one licence do not overlap | Renewals linked | 1,191,027 | 15,996 | 1.34% | fail |
| Renewal created near its period start | Renewals linked | 921,489 | 10,452 | 1.13% | fail |
| Status change dated exactly when cancelled, revoked or appealed | Status changes dated | 1,212,500 | 1 | 0.00% | within tolerance |
| Cancellation inside the term | Status changes dated | 79,017 | 7,802 | 9.87% | fail |
| Zip code of five or nine digits | Who and where | 1,212,171 | 166 | 0.01% | within tolerance |
| Address present | Who and where | 1,212,500 | 0 | 0 | pass |
| Location inside the city when a ward is given | Who and where | 1,120,631 | 6,472 | 0.58% | fail |
| Legal name present | Who and where | 1,212,500 | 0 | 0 | pass |
| Conditional approval only on liquor licences | Liquor-only steps | 5,006 | 4,874 | 97.36% | fail, flagged |
| Expansion records only with a liquor licence | Liquor-only steps | 944 | 822 | 87.08% | fail, flagged |
A story is accepted when every criterion passes or is within tolerance.
| Story | Criteria | Passed or within tolerance | Result |
|---|---|---|---|
| One record, one licence | 5 | 5 | accepted |
| Codes agree | 6 | 6 | accepted |
| Stage dates in order | 10 | 6 | returned |
| Term rules | 5 | 0 | returned |
| Renewals linked | 3 | 0 | returned |
| Status changes dated | 2 | 1 | returned |
| Who and where | 4 | 3 | returned |
| Liquor-only steps | 2 | 0 | returned |
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.
- Tested: one criterion whose failure test reads every column of the type fails on half or more of its rows. Added after the results.
- Held back by other rules: not tested, but half or more of its rows fail some criterion. A record with one problem often has others.
- Not held back: neither. Fewer than half its rows were held back, though most such types had some: 34,076 of 217,666 addresses with extra spaces.
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 type | Group | Rows | Study's criteria | The criterion that tested it | Second author | Targeted | Pooled |
|---|---|---|---|---|---|---|---|
| Application date after the expiry date | Dates out of order | 223 | held back by other rules | not held back | yes | yes | |
| Documents-complete date after the expiry date | Dates out of order | 4,409 | held back by other rules | not held back | yes | yes | |
| Payment date after the expiry date | Dates out of order | 8,856 | held back by other rules | not held back | no | yes | |
| Payment date after the status change date | Dates out of order | 85 | held back by other rules | not held back | yes | yes | |
| Start date after the expiry date | Dates out of order | 2,964 | tested | Expiry after start | held back by other rules | yes | yes |
| Start date after the status change date | Dates out of order | 797 | tested | Cancellation inside the term | not held back | yes | yes |
| Approval date after the expiry date | Dates out of order | 4,879 | held back by other rules | not held back | no | yes | |
| Issue date after the expiry date | Dates out of order | 21,922 | held back by other rules | not held back | no | yes | |
| Exact duplicate records | Duplicates | 9 | held back by other rules | held back by other rules | yes | yes | |
| Repeated record id | Duplicates | 252 | tested | Record id present and unique | tested | yes | yes |
| One owner account with more than one state | Codes that disagree | 2,532 | not held back | not held back | no | no | |
| One licence number with more than one owner account | Codes that disagree | 15 | tested | One owner account per licence number | held back by other rules | yes | yes |
| One licence number with more than one site | Codes that disagree | 12 | held back by other rules | held back by other rules | yes | yes | |
| One licence number with more than one trading name | Codes that disagree | 19 | held back by other rules | held back by other rules | yes | yes | |
| Unusual gap from application date to expiry date | Outlying values | 35 | not held back | not held back | no | no | |
| Unusual gap from application date to status change date | Outlying values | 826 | held back by other rules | held back by other rules | yes | yes | |
| Unusual gap from documents-complete date to status change date | Outlying values | 3,085 | held back by other rules | not held back | yes | yes | |
| State blank | Blank fields | 12 | not held back | not held back | no | no | |
| Zip code blank | Blank fields | 329 | not held back | not held back | no | no | |
| Ward blank | Blank fields | 16 | not held back | not held back | no | no | |
| Precinct blank | Blank fields | 20 | not held back | not held back | no | no | |
| Community area blank | Blank fields | 18 | not held back | not held back | no | no | |
| Business activity id blank | Blank fields | 40 | not held back | not held back | no | no | |
| Licence number blank | Blank fields | 1 | tested | Licence number on every record | tested | yes | yes |
| Application date blank | Blank fields | 6 | tested | New licences carry an application date | not held back | yes | yes |
| Documents-complete date blank | Blank fields | 825 | tested | Documents-complete date on every record | held back by other rules | yes | yes |
| Payment date blank | Blank fields | 3,722 | held back by other rules | not held back | no | yes | |
| Start date blank | Blank fields | 2,692 | tested | Start and expiry dates present | held back by other rules | yes | yes |
| Expiry date blank | Blank fields | 170 | tested | Start and expiry dates present | not held back | yes | yes |
| Approval date blank | Blank fields | 18,652 | not held back | not held back | no | no | |
| Latitude blank | Blank fields | 20 | held back by other rules | not held back | no | yes | |
| Licence id in an odd shape | Messy text | 1,996 | held back by other rules | held back by other rules | no | yes | |
| Zip code in an odd shape | Messy text | 166 | tested | Zip code of five or nine digits | not held back | yes | yes |
| Stray spaces in the legal name | Messy text | 14,707 | not held back | not held back | no | no | |
| Stray spaces in the trading name | Messy text | 13,882 | not held back | not held back | no | no | |
| Stray spaces in the address | Messy text | 217,666 | not held back | not held back | no | no | |
| Stray spaces in the city | Messy text | 50 | not held back | not held back | no | no | |
| Stray spaces in the business activity | Messy text | 12,275 | not held back | not held back | no | no |
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.
| Criterion | Rows failing | Inside profiling types |
|---|---|---|
| One owner account per licence number | 53 | 32% |
| One licence type per licence number | 26 | 35% |
| Each community area has one name | 28 | 11% |
| New licences carry an application date | 34,341 | 30% |
| Renewals carry no application date | 27,300 | 22% |
| New licence starts in its month of issue | 1,648 | 23% |
| Each renewal continues an earlier period | 78,677 | 33% |
| Location inside the city when a ward is given | 6,472 | 41% |
What the requirements should have said
Added after the results: what the register does where a rule was wrong or missing.
| Requirement as written | What the data does | What it should have said |
|---|---|---|
| A two or four year term | Terms 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 15th | 926,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 licences | 5,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 licence | 822 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 period | 63,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 month | BACP 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 blanks | Ward, 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 text | Extra 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:
| As frozen | Corrected after the results | |
|---|---|---|
| Types profiling found | 34 | 38 |
| Tested, added after the results | 8 of 34 | 10 of 38 |
| Held back by other rules | 13 | 14 |
| Not held back | 13 | 14 |
| Caught, targeted rule added after the results | 16 of 34 | 18 of 38 |
| Caught, pooled rule as declared | 21 of 34 | 24 of 38 |
| Found only by the criteria | 1 | 8 |
| Declared headline share, pooled with own finds | 22 of 35 | 32 of 46 |
| Second author, tested | 1 of 34 | 2 of 38 |
| Second author, targeted | 5 of 34 | 6 of 38 |
| Second author, pooled with own finds | 11 of 35 | 16 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.
| Year | New licences | All rows | Accepted rows | Held back |
|---|---|---|---|---|
| 2021 | 6,871 | 6 | 6 | 2.0% |
| 2022 | 7,412 | 6 | 6 | 2.1% |
| 2023 | 7,471 | 5 | 4 | 2.2% |
| 2024 | 7,024 | 6 | 5 | 2.5% |
| 2025 | 6,916 | 7 | 7 | 2.7% |
| Year | Renewals | All rows | Accepted rows | Held back |
|---|---|---|---|---|
| 2021 | 25,953 | 98.9% | 99.2% | 38.9% |
| 2022 | 23,422 | 98.2% | 99.4% | 1.4% |
| 2023 | 24,865 | 98.7% | 99.5% | 0.9% |
| 2024 | 22,945 | 99.0% | 99.6% | 0.8% |
| 2025 | 24,288 | 99.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.
| Hourly rate | Effort | First year | Per flagged row |
|---|---|---|---|
| US$50 | 1 times assumed | US$4,200 | US$13 |
| US$75 | 1 times assumed | US$6,300 | US$19 |
| US$100 | 1 times assumed | US$8,400 | US$26 |
| US$75 | 1.5 times assumed | US$9,450 | US$29 |
| US$100 | 1.5 times assumed | US$12,600 | US$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.
| Month | New licences | Held back | Median, all | Median, accepted | Average, all | Average, accepted |
|---|---|---|---|---|---|---|
| Jan | 438 | 6 | 10 | 10 | 52.3 | 44.7 |
| Feb | 399 | 4 | 15 | 15 | 52.5 | 48.7 |
| Mar | 557 | 12 | 7 | 7 | 49.6 | 42.9 |
| Apr | 640 | 12 | 6 | 6 | 58.7 | 50.5 |
| May | 668 | 10 | 9 | 9 | 56.2 | 50.8 |
| Jun | 661 | 25 | 3 | 3 | 45.4 | 40.9 |
| Jul | 689 | 29 | 6 | 6 | 47.1 | 43.7 |
| Aug | 707 | 29 | 5 | 4 | 50.1 | 40.6 |
| Sep | 646 | 24 | 5 | 5 | 50.5 | 47.3 |
| Oct | 586 | 9 | 6 | 6 | 36.4 | 36.1 |
| Nov | 463 | 11 | 9 | 9 | 50.9 | 46.7 |
| Dec | 462 | 17 | 21 | 21 | 74.4 | 70.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.
| Licence | Year | BACP licences | BACP average days | Register new licences | Register average | Average, accepted |
|---|---|---|---|---|---|---|
| Retail Food | 2021 | 1,740 | 64.0 | 1,034 | 89.2 | 84.7 |
| Retail Food | 2022 | 1,677 | 65.0 | 1,079 | 91.1 | 84.7 |
| Retail Food | 2023 | 1,750 | 64.1 | 1,144 | 96.8 | 96.2 |
| Retail Food | 2024 | 1,622 | 60.4 | 1,069 | 83.5 | 83.8 |
| Limited Business | 2021 | 3,071 | 6.6 | 1,903 | 22.1 | 16.4 |
| Limited Business | 2022 | 2,885 | 6.1 | 1,871 | 24.7 | 16.6 |
| Limited Business | 2023 | 2,861 | 6.2 | 1,838 | 25.8 | 21.3 |
| Limited Business | 2024 | 2,594 | 5.3 | 1,722 | 23.8 | 18.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.
| Prediction | Expected | Supported if | As frozen | Verdict | Corrected | Verdict |
|---|---|---|---|---|---|---|
| Share of the problem types the criteria catch | 0.40 | 0.25 <= value <= 0.55 | 0.63 | neither | 0.70 | neither |
| Share of missed types that are format or blanks | 0.70 | value >= 0.60 | 0.62 | supported | 0.86 | supported |
| Criteria flagged as wrong rules | 3 | value >= 2 | 4 | supported | 4 | supported |
| Problem types only the criteria find | 4 | value >= 3 | 1 | neither | 8 | supported |
| The business case says fund the step | yes | value is true | yes | supported | yes | supported |
| Gap between the two authors' share of profiling types caught | 0.10 | value <= 0.15 | 0.32 | opposite | 0.34 | opposite |
| Share of the criteria's missed types the second author also missed | 0.75 | value >= 0.60 | 1.00 | supported | 1.00 | supported |
What went wrong or was missed
- The profiling rule on numbers was wrong as frozen, and was corrected after the results. Both runs are reported.
- The declared catch rule pooled the criteria. A type could count as caught through criteria that never test it, such as issue dates after expiry. Two stricter rules were added after the results, and all three are reported.
- Four criteria were flagged for investigation. Two rest on the 2011 code text. Two used a liquor test that looked for the word in licence names, so it could not work.
- The renewal rule ignored where the register starts. Most of its failures are renewals of periods from before 2002.
- Blank fields had no rule at all. The criteria said "present" only where a document named a step.
Limits
- Problem types are candidates, not confirmed errors, and so are the rows a criterion holds back. A lower average after holding rows back is a change, not a proven correction.
- Types are counted on the full register; the measures report 2021 to 2025. The split by each measure's fields counts every year, then each measure's own 2021 to 2025 rows.
- The register has no filing date, so the renewal measure counts records created by the 15th, not filings.
- BACP's "year" is its own week-year: the week starting 1 January 2024 carries 2023. A one-week offset cannot explain gaps this size.
- Added after the results: the tested and targeted rules, the "should have said" table, the monthly figures and averages, and the comparison with BACP. So were the splits by field and by each measure's own rows. The declared rule and the frozen run are reported beside them.
- One extract, one register, and one second author.
The summaryThe artefactsAcceptance round and resultsA second authorMethod and glossary