Seven AI-referral reads failed for every site and every date preset. The shared cause was not the dataset—it was a raw Date object crossing an untyped SQL-template boundary.
We replaced raw interpolation with column-aware query operators, added a driver-boundary regression suite, and then added a repository-wide TypeScript guard against the same class of defect.
The lesson: type safety only helps when it survives the final boundary into the database driver.
Product context: https://webmasterid.com/ai-visibility
Top comments (0)