When Your Coding Agent Lies About the Fix: Verifying the Plan Before the Model Runs episode artwork

EPISODE · Jun 10, 2026 · 23 MIN

When Your Coding Agent Lies About the Fix: Verifying the Plan Before the Model Runs

from AI Papers: A Deep Dive

When Your Coding Agent Lies About the Fix: Verifying the Plan Before the Model Runs Source: https://arxiv.org/abs/2606.06523 Paper was published on June 02, 2026 This episode was AI-generated on June 9, 2026. The script was written by an AI language model and the host voices were synthesized by Eleven Labs. The producer is not affiliated with Anthropic or Eleven Labs. When an agent confidently reports a bug fixed while the tests still fail, you usually can't tell whether the model was too weak or the plan was broken from step one. This paper argues a huge share of agent failure is plan failure — and that plans, unlike models, are formal objects you can check before you ever spend a dollar running them. Workflows that pass that check beat the ones that fail by roughly twelve percent, and the gains are biggest for the cheap models you'd actually want to deploy. Key Takeaways: - Why much of what looks like model failure is actually specification failure — a broken plan a bigger model will just execute more confidently - How encoding an agent's workflow as a typed graph in Lean4 lets a machine prove the plan is coherent before execution, using Hoare-style preconditions and postconditions - The ablation showing 13 of 21 failing workflows were caught only by whole-graph, cross-step checks that no local inspection or LLM judge would catch - Why workflow verification helps weak models most — one small model jumped 27% between a passing and failing plan, because it can't improvise around a broken one - How an LLM-as-judge baseline scored a failing workflow 8/10 and a passing one 0/10 — exactly backwards on the relational defects that matter - The honest limits: the whole pipeline rests on an unproven assumption that the model annotates and executes each step correctly, and the headline numbers come from very small samples 00:00 - Model failure versus plan failure: The cold-open problem — an agent declares a bug fixed while tests fail — and why diagnosing whether the model or the plan broke leads to opposite fixes. 02:39 - The mathematics rhyme: from natural-language proofs to formal checking: How proof assistants like Coq and Lean replaced fallible human review with machine type-checking, and why the same move applies to treating an agent's plan as source code. 05:19 - Workflows as typed graphs and the three layers of checking: Encoding steps, data flow, and reads/writes as a typed graph in Lean4, with structural linting as the least interesting first layer. 07:59 - Layer two: contracts and the relay-race handoff: Using Hoare-logic preconditions and postconditions to verify every step's promises cover the next step's needs, with real bugs like dropped parallel results and schema mismatches. 10:38 - The LLMExec assumption and why layer three exists: Confronting the axiom that each step does its local job correctly, and how runtime trajectory checking localizes which exact step broke its contract. 13:18 - Closing the loop with LeanEvolve: Walking a real Django bug end-to-end, where a localized contract violation triggers a targeted rewrite of one step's instruction that passes on the next run. 15:58 - The numbers, and the surprise about weak models: Benchmark gains on hard SWE-Bench problems and expert paper questions, plus the finding that cheaper models benefit most from a verified plan. 18:38 - Formal verifier versus LLM judge: A head-to-head where a state-of-the-art judge scored workflows exactly backwards, showing why eyeball review misses cross-step and information-flow defects. 21:17 - The critique: circularity, small samples, and what 'verified' really means: The risk that the same kind of model writes the annotations being checked, the thin sample sizes behind headline claims, and why 'verified' means coherent, not correct. Recommended Reading: - SWE-bench: Can Language Models Resolve Real-World GitHub Issues?: The benchmark behind the episode's hard fifty-problem software slice, defining the long-horizon, over-an-hour bug-fixing tasks where the paper claims plan failure dominates. (https://arxiv.org/abs/2310.06770) - ReAct: Synergizing Reasoning and Acting in Language Models: A foundational account of how agents interleave reasoning, planning, and tool use—useful background for why the episode separates a checkable 'workflow' from stochastic 'execution.' (https://arxiv.org/abs/2210.03629)

When Your Coding Agent Lies About the Fix: Verifying the Plan Before the Model Runs Source: https://arxiv.org/abs/2606.06523 Paper was published on June 02, 2026 This episode was AI-generated on June 9, 2026. The script was written by an AI language model and the host voices were synthesized by Eleven Labs. The producer is not affiliated with Anthropic or Eleven Labs. When an agent confidently reports a bug fixed while the tests still fail, you usually can't tell whether the model was too weak or the plan was broken from step one. This paper argues a huge share of agent failure is plan failure — and that plans, unlike models, are formal objects you can check before you ever spend a dollar running them. Workflows that pass that check beat the ones that fail by roughly twelve percent, and the gains are biggest for the cheap models you'd actually want to deploy. Key Takeaways: - Why much of what looks like model failure is actually specification failure — a broken plan a bigger model will just execute more confidently - How encoding an agent's workflow as a typed graph in Lean4 lets a machine prove the plan is coherent before execution, using Hoare-style preconditions and postconditions - The ablation showing 13 of 21 failing workflows were caught only by whole-graph, cross-step checks that no local inspection or LLM judge would catch - Why workflow verification helps weak models most — one small model jumped 27% between a passing and failing plan, because it can't improvise around a broken one - How an LLM-as-judge baseline scored a failing workflow 8/10 and a passing one 0/10 — exactly backwards on the relational defects that matter - The honest limits: the whole pipeline rests on an unproven assumption that the model annotates and executes each step correctly, and the headline numbers come from very small samples 00:00 - Model failure versus plan failure: The cold-open problem — an agent declares a bug fixed while tests fail — and why diagnosing whether the model or the plan broke leads to opposite fixes. 02:39 - The mathematics rhyme: from natural-language proofs to formal checking: How proof assistants like Coq and Lean replaced fallible human review with machine type-checking, and why the same move applies to treating an agent's plan as source code. 05:19 - Workflows as typed graphs and the three layers of checking: Encoding steps, data flow, and reads/writes as a typed graph in Lean4, with structural linting as the least interesting first layer. 07:59 - Layer two: contracts and the relay-race handoff: Using Hoare-logic preconditions and postconditions to verify every step's promises cover the next step's needs, with real bugs like dropped parallel results and schema mismatches. 10:38 - The LLMExec assumption and why layer three exists: Confronting the axiom that each step does its local job correctly, and how runtime trajectory checking localizes which exact step broke its contract. 13:18 - Closing the loop with LeanEvolve: Walking a real Django bug end-to-end, where a localized contract violation triggers a targeted rewrite of one step's instruction that passes on the next run. 15:58 - The numbers, and the surprise about weak models: Benchmark gains on hard SWE-Bench problems and expert paper questions, plus the finding that cheaper models benefit most from a verified plan. 18:38 - Formal verifier versus LLM judge: A head-to-head where a state-of-the-art judge scored workflows exactly backwards, showing why eyeball review misses cross-step and information-flow defects. 21:17 - The critique: circularity, small samples, and what 'verified' really means: The risk that the same kind of model writes the annotations being checked, the thin sample sizes behind headline claims, and why 'verified' means coherent, not correct.…

NOW PLAYING

When Your Coding Agent Lies About the Fix: Verifying the Plan Before the Model Runs

0:00 23:57

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

MG Show MG Show The MG Show, hosted by Jeffrey Pedersen and Shannon Townsend, is a leading alternative media platform dedicated to uncovering the truth behind today’s most pressing political issues. Launched in 2019, the show has grown exponentially, offering unfiltered insights, comprehensive research, and real-time analysis. With a commitment to independent journalism and factual integrity, the MG Show empowers its audience with knowledge and encourages active participation in the political discourse. Ask A Spaceman Archives - 365 Days of Astronomy Ask A Spaceman Archives - 365 Days of Astronomy Podcasting Astronomy Every Day of the Year French Your Way Jessica: Native French teacher founder of French Your Way Boost your French listening skills and test your comprehension with this one of a kind series of podcasts. Get the chance to listen to a real conversation between native speakers talking at normal speed AND customise your learning experience through carefully designed sets of questions (2 levels of difficulty) available for download at www.frenchvoicespodcast.com. All interviews also come with the transcript. French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? The Small Business Startup School – Business Notes | Financial Literacy | Retail Psychology – For Professionals & Entrepreneurs The Small Business Startup School Inc. Starting or buying a small business? While personal circumstances may vary, business patterns remain timeless. On The Small Business Startup School, we explore strategies, insights, and practical solutions to help entrepreneurs confidently navigate their journey.Hosted by Ola Williams—a retail entrepreneur, fintech founder, and financial coach with over two decades of experience—this podcast marries financial awareness and retail psychology with optimism to deliver actionable takeaways.Join us to learn, grow, and connect as we uncover the keys to business success.Let’s continue to learn together and be encouraged to keep on connecting!

Frequently Asked Questions

How long is this episode of AI Papers: A Deep Dive?

This episode is 23 minutes long.

When was this AI Papers: A Deep Dive episode published?

This episode was published on June 10, 2026.

What is this episode about?

When Your Coding Agent Lies About the Fix: Verifying the Plan Before the Model Runs Source: https://arxiv.org/abs/2606.06523 Paper was published on June 02, 2026 This episode was AI-generated on June 9, 2026. The script was written by an AI...

Can I download this AI Papers: A Deep Dive episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!