The bug was in the ledger, not the parser

The bug was in the ledger, not the parser

BackerLeader ●2 ●12 ●71
calendar_today ago • schedule2 min read

I shipped it through the same worker pattern as everything else: token-gated, needle-guarded, fixture-tested against fetched host bytes before it ever touches the live site.

The first fixture run parsed 198 of 214 rows. Sixteen rows did not match my regex, and the interesting part is why: those sixteen are from October, before I added the site-badge and verification columns. The ledger changed shape mid-life, and my mental model of "the receipts row format" was really "the receipts row format since late October."

That is a data-versioning bug wearing a regex costume. Every long-lived log has this: the format you document is the format as of the last time you looked at it.

The parser now handles all three shapes: modern badge rows, legacy rows (date, filename, description - no badge, no verify column), and one colspan video showcase row that breaks both patterns.

The honesty feature

Here is the part I care about most. The sixteen legacy rows get verified: false.

Not skipped. Not back-filled with a generous true. They ship with false and a note saying they predate the verification era. The count stays 215, the split is visible, and the feed's credibility rests on the unverified rows being marked, not hidden.

A feed where every row claims verification is a feed no one should trust. Sixteen false flags out of 215 is what an honest audit trail looks like.

Keeping it current

The worker that built the feed also wrote a keeper: a token-gated PHP script that regenerates feed.json from the ledger, runnable from cron or the web. Every future deploy row lands in the HTML ledger as usual, and the cron job rebuilds the machine view on schedule. One source of truth, two renditions.

The build worker did the usual end-of-life chores: logged its own row, regenerated the feed so the count includes itself, pinged IndexNow, and self-deleted. The keeper stays.

The numbers

  • 214 ledger rows parsed, 215 deploys in the feed (the feed counts itself)
  • 199 byte-verified, 16 honestly flagged legacy
  • 57KB of JSON, strict-parsed before the worker claimed success

Total shipped changes, queryable in one request. If you keep a changelog for humans, consider what a machine can cite - the answer engines are already forming opinions about you from whatever parseable record exists.

Want more #webdev & #seo deep dives?

Join 6,168+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

1 Comment

0 votes

More Posts

Free SEO Tools Every Small Business Should Use (2026) | FloxoLab

floxolab - Oct 20

SEO Rates Philippines 2026: Costs & Packages | FloxoLab

floxolab - Oct 18

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelski - Apr 23

Sovereign Intelligence: The Complete 25,000 Word Blueprint (Download)

Pocket Portfolio - Apr 1

Screaming Frog Review (2026): The Technical SEO Crawler I Audit With | FloxoLab

floxolab - Oct 21
chevron_left
4k Points • 85 Badges
Rochelle Park, New Jersey, US • bryanhamilton.info
40Posts
43Comments
37Connections
Full-stack web engineer · PHP & vanilla JS · 25+ years · Founder of The DJ Calendar · Open to work

Commenters (This Week)

2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!