When a lottery game closes, its prize-claim history should not disappear
I repaired the ScratchLottery official prize tracker after two of its three monitored Texas games left the lottery operator’s current-sales list. The change was merged on November 30, 2026, deployed through the original GitHub Pages workflow and verified on the public site. It kept the historical claim records rather than removing games that had stopped being sold.
The problem was not with the probability simulator. A game can stop selling tickets while prizes from previously sold tickets can still be claimed. Sales availability and historical claim records are different kinds of data.
![]()
Source-backed local rendering of the original release code, not evidence of an individual visitor session.
A missing current-game row stopped every refresh
The updater originally required every monitored game to appear in the Texas Lottery current scratch-off list. On November 18, two games had left that list. The job raised “Game 2751: current-games entry not found” and stopped before all three games could be refreshed.
The original November 29 GitHub Actions log confirms that exception. The daily job failed 12 consecutive times, November 18–29. That also left the remaining active game without a new snapshot.
The operator’s closed-games register showed what had changed.
| Game | Official sales status checked November 30 | Last day to redeem |
|---|---|---|
| Houston Texans, #2755 | Listed as current | Not stated by the current-games list |
| Azulejos, #2751 | Closed November 18, 2026 | May 17, 2027 |
| 50X The Cash, #2712 | Closed November 18, 2026 | May 17, 2027 |
The Azulejos official detail page still provided prize-claim totals dated November 28. Dropping that game because sales ended would have removed valid history.
The repair separates state from historical validity
I updated the source checker to locate each exact game number in the current registry or, if absent, in the closed-games registry. A closed entry must match the expected game name, a valid closure date, and a later redemption deadline. Missing, duplicated or contradictory entries still fail instead of being silently classified.
Once status is resolved, the updater reads the original per-game prize-claim page. A source date older than the latest saved date is rejected. The interface now identifies current and closed games, and shows the official closing and redemption dates next to closed games with a source link.
All 45 previously recorded snapshots per game were compared with the original repository history and preserved. The November 28 snapshot was appended to each game, bringing every history to 46 snapshots. November 28 is the official source-data date; November 30 is the software release date.
Verification and a remaining limit
The fix added eight Python regression tests for registry classification, invalid entries, dates and history retention. The existing site, mathematics, architecture and navigation checks passed. The public layout was checked in a headless browser at 320, 390, 768 and 1440px, with no JavaScript errors or horizontal overflow. Running the updater against the same input a second time made no further file changes.
PR #1 passed the original GitHub CI. The main-branch Pages run built and deployed successfully. Independent public readbacks of the homepage, JSON data and sitemap returned HTTP 200, with one current game and two closed games.
The first scheduled refresh after the fix had not yet run when this article was prepared. Successful deployment and the current public data are verified; uninterrupted future scheduled updates are not. The original workflow history will provide that separate evidence.
Why this matters beyond a lottery tracker
An item leaving an active catalogue is not proof that its historical record is invalid. Products are discontinued, documents expire, and observations move into archives. A reliable collector needs to distinguish whether an item is currently available, whether its older records remain valid, and whether the source is still updating those records.
ScratchLottery is a free browser simulation, not a ticket seller. The tracker describes published claims, not the chance of winning on a physical ticket still available to buy. The related simulator case study and interactive probability lesson explain the difference.
Primary sources: original source fix · Texas current games · Texas closed games · live tracker.