{
  "id": 4609930,
  "title": "Every test passed and the level was unwinnable",
  "url": "https://urgent.news/2026/08/31/every-test-passed-and-the-level-was-unwinnable",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-31T08:39:26.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/deland/every-test-passed-and-the-level-was-unwinnable-4339"
  },
  "original_language": "en",
  "account": "A wilderness survival game experienced a critical bug that prevented players from completing the hardest scenario. Despite every test passing, the five-star map behind the paywall could not be finished. The issue stemmed from the game's handling of hidden passages and first-visit effects. When a player reached a location through a hidden exit, its onFirstVisitEffects were skipped, which included unlocking crucial victory conditions. Additionally, the game's logging system mistakenly recorded the discovery of hidden passages before the arrival at the location, further exacerbating the problem. To resolve this, the code needed to be updated so that the arrival process could fully execute, including triggering necessary effects. The fix was straightforward: ensure that arrival handled discovery exclusively and moved the log line to after arrival was confirmed. The bug went unnoticed because the tests validated the configuration's structural correctness, but overlooked the execution phase. A dedicated bot was later written to play the game, highlighting the bug by failing to complete the scenario. The bot's win rate under normal play also suffered when the player's body heat dropped below a reasonable threshold, demonstrating that metrics based on an agent's competence cannot serve as assertions in a game where player competence varies.",
  "summary": "I shipped a wilderness survival game with eight scenarios. The hardest one — a five-star map behind the paywall — could not be finished. Not \"was brutally hard.\" Could not be finished. Walking onto the exact tile the design calls the ending did nothing at all. Every test was green. That is the part worth writing down. The bug Locations connect through exits, and some exits stay hidden until you…",
  "key_points": [],
  "editors_take": null,
  "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."
}