{"schema_version":"newruntime-agent-readable-v0.2","type":"post","stable_id":"post:agent-loops-to-governed-graphs","slug":"agent-loops-to-governed-graphs","title":"Agent Loops Become Graphs When Exceptions Matter","description":"A loop is enough for repeated work with one stopping rule; graphs become useful when the system needs branches, shared state, parallel work, approval gates, and recovery paths.","retrieval_nugget":"A loop is enough for repeated work with one stopping rule; graphs become useful when the system needs branches, shared state, parallel work, approval gates, and recovery paths. The question \"are we still talking loops, or did we shift to graphs?\" captures a real design transition, but not a replacement.","status":"published","published_at":"2026-07-24","updated_at":"2026-07-24","record_date":"2026-07-24","date_kind":"published_at","topics":["agent-workflows","workflow-graphs","orchestration"],"source_urls":["https://x.com/steipete/status/2078277297791189132","https://docs.langchain.com/oss/python/langgraph/use-graph-api","https://github.com/langchain-ai/langgraph"],"visuals":[{"id":"agent-loop-to-governed-graph","kind":"editorial-diagram","role":"hero","src":"https://newruntime.com/images/posts/agent-loop-to-governed-graph.webp","alt":"A compact act-inspect-correct loop sits beside a governed workflow graph with verification, publication, source-resolution, risk, approval, and recovery branches.","caption":"Loops remain useful local mechanisms; graphs become necessary when branches, shared state, approvals, exceptions, and recovery must be governed.","credit":"New Runtime synthesis from LangGraph structures and the newsroom workflow","source_url":"https://docs.langchain.com/oss/python/langgraph/use-graph-api","generated_with":"gemini-3.1-flash-image","width":1600,"height":900,"legend":[{"label":"Local loop","description":"Act, inspect, and correct when one evaluator and one stopping rule are enough."},{"label":"Decision graph","description":"Make publishable, missing-source, and risk outcomes explicit instead of hiding them in prompts."},{"label":"Human controls","description":"Keep approval and accountable owner review as visible nodes with auditable transitions."},{"label":"Recovery","description":"Use shared state, checkpoints, and separate retry paths when several loops interact."}]}],"routes":{"html":"https://newruntime.com/posts/agent-loops-to-governed-graphs/","markdown":"https://newruntime.com/posts/agent-loops-to-governed-graphs.md","json":"https://newruntime.com/posts/agent-loops-to-governed-graphs.json"},"source_format":"markdown","next_reads":[{"type":"topic","path":"/topics/agent-workflows/","reason":"Explore the agent workflows topic hub.","url":"https://newruntime.com/topics/agent-workflows/","title":"Agent Workflows - New Runtime","media_type":"text/html"},{"type":"topic","path":"/topics/orchestration/","reason":"Explore the orchestration topic hub.","url":"https://newruntime.com/topics/orchestration/","title":"Orchestration - New Runtime","media_type":"text/html"},{"type":"related_material","path":"/posts/graphs-as-agent-workflow-primitive/","reason":"Shares agent workflows and orchestration.","url":"https://newruntime.com/posts/graphs-as-agent-workflow-primitive/","title":"Graphs Are What Agent Loops Become Under Pressure","media_type":"text/html"},{"type":"related_material","path":"/posts/coderabbit-change-stack-review-graph/","reason":"Shares workflow graphs.","url":"https://newruntime.com/posts/coderabbit-change-stack-review-graph/","title":"CodeRabbit Change Stack Makes AI PRs Reviewable Again","media_type":"text/html"},{"type":"related_material","path":"/posts/github-copilot-app-agent-control-center/","reason":"Shares agent workflows.","url":"https://newruntime.com/posts/github-copilot-app-agent-control-center/","title":"GitHub Copilot App Turns Agent Work Into a Desktop Control Surface","media_type":"text/html"}]}
