{
  "id": 2690207,
  "title": "Your Agent Loop Is Lying About Being Done: Writing Verifiable Stop Conditions",
  "url": "https://urgent.news/2026/08/23/your-agent-loop-is-lying-about-being-done-writing-verifiable-stop",
  "topic": "ai",
  "section": "AI",
  "published": "2026-08-23T01:30:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/shipwithaiio/your-agent-loop-is-lying-about-being-done-writing-verifiable-stop-conditions-270p"
  },
  "original_language": "en",
  "account": "A loop's trustworthiness hinges on its stop condition. Self-grading can lead to premature declarations of completion, exemplifying the failure mode of Anthropic's agents. A proper stop condition must be verifiable, falsifiable, and cheap. The author introduces a four-rung verification system: bare while loops with exit codes, stop hooks, separate models grading each turn, and scheduled goal runs. The key takeaway is separating the maker from the checker, which drastically improves verification reliability. The article provides a template for a checker-agent, emphasizing that the checker should have different instructions, optionally a different model, and ideally a clean context each turn. The article also presents a real-world example - a bug in the ShipWithAI's content-agent repo due to faulty keyword placement in the title. The fix involves checking not just the target keyword but also the entire title, using a fresh-context maker turn and capturing the result with the bash test exit code. The loop is considered finished when a command exits with a 0 status, not when the agent feels finished.",
  "summary": "TL;DR — A loop is only as trustworthy as its stop condition. \"Done\" has to be checkable by a different model — tests pass, lint clean, schema validates — never the worker's own claim. Below: why self-grading fails, the four rungs of verification, a checker-agent template you can copy, and the three caps that stop a loop running forever. Part 3 of the Loop Engineering series on ShipWithAI. Read…",
  "key_points": [
    "Loops' trustworthiness depends on verifiable stop conditions",
    "Four-rung verification system: while loops, stop hooks, separate models, scheduled goal runs",
    "Checker-agent separates maker from checker for improved reliability"
  ],
  "editors_take": "Separating the maker from the checker in agent loops drastically improves verification reliability by ensuring stop conditions are verifiable, falsifiable, and cheap, thereby preventing premature declarations of completion.",
  "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."
}