{
  "id": 14875248,
  "title": "I Audited Ten Million Free Tokens. The Ledger Drifted First.",
  "url": "https://urgent.news/2026/10/16/i-audited-ten-million-free-tokens-the-ledger-drifted-first",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-16T05:14:43.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hackhub_6179/i-audited-ten-million-free-tokens-the-ledger-drifted-first-4213"
  },
  "original_language": "en",
  "account": "The reporter conducted an audit of ten million free tokens, discovering a discrepancy in the ledger. The initial assumption was that the free allowance would remain untouched, but it evaporated due to a bug in the retry wrapper. This bug resulted in the same prompt being paid for twice, while the streaming parser failed to account for the answer. The reporter built a harness and ran three probes to identify and rectify the issue. Probe A compared the token sum against the platform's report, Probe B logged duplicate prompt tokens caused by the retry policy, and Probe C calculated the cost of repairs when a stream ended without a usage block. All the tools used were standard libraries, and the reporter did not utilize any SDKs, frameworks, or dashboards. The harness was named ledger.py and was written with standard library only. The reporter pointed the endpoint variables at MonkeyCode's free model access, as it was the free tier they had access to.",
  "summary": "I Audited Ten Million Free Tokens. The Ledger Drifted First. My free allowance didn't evaporate because a model was slow. It evaporated — inside the simulation I built to check it — because my retry wrapper paid for the same prompt twice while my streaming parser paid for the answer zero times. Two bugs, opposite signs, almost cancelling. That's the dangerous case, isn't it? A near-cancel looks…",
  "key_points": [
    "Ten million free tokens audited, discrepancy found in ledger",
    "Bug in retry wrapper caused double payment for same prompt",
    "Harness named ledger.py identified issue without SDKs or tools"
  ],
  "editors_take": "Technical flaws in retry wrappers and streaming parsers undermine the reliability of free tier allowances, turning intended user benefits into unexpected costs through duplicate billing and unaccounted usage.",
  "illustration": null,
  "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."
}