6 Comments
User's avatar
Abhishek Pan's avatar

The plan's list of files to leave alone gives you a free check before any reviewer runs. Diff the changed-file list against it and bounce anything outside the plan back to the implementer, which catches the quiet behavior change from your intro without spending a model call.

Dan Willoughby's avatar

Comparing short proposals is cheaper than comparing finished diffs, and the same logic works at review: hand the reviewing model the claims the change makes and tell it to disprove them. Asked whether the code looks good, a model mostly agrees. Asked to find what's false, it goes looking. When the exploring models disagree, who breaks the tie?

Paul Iusztin's avatar

Agree. That's where humans, via a human-in-the-loop mechanism, loop in!

Halfcycle's avatar

Parallel exploration is good at surfacing where the models disagree. The gap we kept hitting building Halfcycle is where they all agree without anyone deciding: every proposal assumes the same retry behaviour or the same owner for a field, so the comparison never shows it and the reviewer later checks the code against that same unexamined default. What helped was asking the developer those open decisions before selecting an approach, and keeping the answers where every agent in the next round reads them. In Parallel Code, does the lead agent see the proposals' shared assumptions, or only their differences?

Rafael Ibayev's avatar

The 'implementation agent updates the plan if it finds contradicting evidence' line is the one I'd watch. The plan works as a contract for the reviewers, so I wonder how you tell a legitimate change from the agent quietly drifting from it. Does the synthesis step flag when the final diff touches files the plan listed as leave-alone? Your sync-bug example was clear, especially the reproduction test ruling out the UI theory before any code.

Andrii Tretiak's avatar

The part about the plan being the contract for the reviewers is what worked for me too. I just added one step before exploring: a planner agent reads the code and then asks me questions, one at a time. Most of my "fixed in the wrong layer" cases were about things I thought were obvious and never wrote down, and parallel exploration can't find those because they are only in my head. And I still don't have your second review round. In my last plan the reviewer sent back almost every phase, but after the fixes nobody looked again.

I wrote down how this planning interview works in practice, with a real 9-phase plan: https://swarmery.substack.com/p/why-the-agent-does-the-wrong-thing