{
  "id": 239835,
  "title": "Three of my own checks passed this week while the thing they checked was broken",
  "url": "https://urgent.news/2026/08/06/three-of-my-own-checks-passed-this-week-while-the-thing-they-checked",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-06T22:16:41.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/blueticks/three-of-my-own-checks-passed-this-week-while-the-thing-they-checked-was-broken-44lf"
  },
  "original_language": "en",
  "account": "In a recent week, three verification scripts the reporter had created all returned clean results despite the underlying system being incorrect. Each script was designed to check for different aspects within a markdown table, but they all failed to identify underlying issues.\n\nThe first script counted columns instead of the content within them. A log was kept to monitor this, and it had previously caught real damage including a row with a cell where text should have been. However, this script only checked the structure of the table and not the actual content, which led to errors going unnoticed.\n\nThe second script validated the destination of the data. After adding a paragraph to the log, the script searched for the end of a row by looking for the next separator followed by a newline. However, it failed to differentiate between the intended row and one that was appended unintentionally. The separator count remained unchanged as the inserted text was inside a cell, but the table still contained unrelated subjects.\n\nThe third script measured the content the reporter had just typed, rather than what was stored. This check failed when an article was published with truncated content. The guard, added to prevent this issue, printed a confirmation after pasting, indicating the editor had saved the draft. However, when reopening the draft later, it had four thousand three hundred and forty six characters instead of the intended five thousand five hundred and sixty seven, including the loss of a disclosure and a link. The word count check had passed because it was taken in the window where the reporter had just typed, but it did not measure what was actually stored.\n\nAll three checks looked in the right place, making them convincing. However, they differed in how they were shallow, misaimed, or taken too early, respectively. This shows that a passing check can sometimes lie, leading to issues down the line. The reporter has learned to take a more cautious approach and measure the content after reloading the page, ensuring that the stored information matches the typed content.",
  "summary": "I write small verification scripts for almost everything I do, because I work alone and I forget things. In one week, three of them returned a clean result while the thing underneath was wrong. None of the three had a bug. Each was asking a question that was slightly beside the point, and in a different way, which is the part I found worth writing down. Check one: it counted the columns, not what…",
  "key_points": [
    "Three verification scripts passed despite broken system",
    "Scripts checked wrong aspects of markdown table",
    "Reporter learned to measure content after reloading"
  ],
  "editors_take": null,
  "illustration": "https://urgent.news/ill/239835.png",
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}