<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ashkan Goshtasb</title>
    <description>The latest articles on DEV Community by Ashkan Goshtasb (@goshtasb).</description>
    <link>https://dev.to/goshtasb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4231376%2F40ff9de2-ff7c-43db-a326-cc65e509f489.jpg</url>
      <title>DEV Community: Ashkan Goshtasb</title>
      <link>https://dev.to/goshtasb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/goshtasb"/>
    <language>en</language>
    <item>
      <title>Eight objections, two proven bugs: an AI review council on someone else's pull request</title>
      <dc:creator>Ashkan Goshtasb</dc:creator>
      <pubDate>Tue, 10 Nov 2026 22:33:14 +0000</pubDate>
      <link>https://dev.to/goshtasb/eight-objections-two-proven-bugs-an-ai-review-council-on-someone-elses-pull-request-eo1</link>
      <guid>https://dev.to/goshtasb/eight-objections-two-proven-bugs-an-ai-review-council-on-someone-elses-pull-request-eo1</guid>
      <description>&lt;p&gt;Last week I wrote about ten runs of Open Council, a tool where three AI seats argue over a plan before any code ships. The comments were better than the post. Two points stuck with me. A single agent with no council passed all ten of those tasks, so easy tasks can't show whether the debate helps. And one commenter argued that the real gain came from running code, not from the roles.&lt;/p&gt;

&lt;p&gt;So this time I tried something different. I pointed the council's review mode at code I didn't write: an open pull request in a popular opensource Claude Code plugin. Then I kept only what I could prove with a test that fails on the maintainer's own commit and passes after a small fix.&lt;/p&gt;

&lt;p&gt;I'm not naming the project or the maintainer. This isn't about their code. Both bugs are the kind anyone ships.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;council review&lt;/code&gt; takes a diff and runs three seats over it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lead PM&lt;/strong&gt; writes a short brief of what the change claims to do. On this run it was Gemini 3.8 Flash. I'd planned on a larger Gemini model, but my quota on it had run out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chief Engineer&lt;/strong&gt; checks every claim against the code and objects with a file and line. This was Claude Opus.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chief Architect&lt;/strong&gt; rules on whether it should ship. This was Grok.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pull request was huge, about 2 MB of diff. I reviewed one slice of about 108 KB: the module that edits config files on the user's machine, including .env files and a lock file that guards the writes. The rest of the PR was applied underneath, so the surrounding code was complete. It ran on version 0.3.2 with the quick profile, which allows at most 2 rounds.&lt;/p&gt;

&lt;p&gt;It ended STALLED after 2 rounds. The seats never all signed off, which in review mode means "dont ship as is".&lt;/p&gt;

&lt;h2&gt;
  
  
  What it raised
&lt;/h2&gt;

&lt;p&gt;Round 1 had 8 objections, all from the Chief Engineer. Here's how they sorted out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;3 were about the code and held up when I read it.&lt;/li&gt;
&lt;li&gt;1 was about a code comment describing how another tool parses .env files. It might be true, but it can't be checked from that repo.&lt;/li&gt;
&lt;li&gt;4 were about the brief the Lead PM wrote, not the pull request. That's the council arguing with itself. A maintainer doesnt care.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So 3 of 8 were worth sending, and I could turn 2 of those into a failing test.&lt;/p&gt;

&lt;p&gt;One detail matters for the "is it the roles or the execution" question. The Engineer said at the top of its reply that it ran nothing, because the checkout had no test runner installed. Every finding came from reading. But for each one it also spelled out the test that would prove it. Those are the tests I ran.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 1: a backtick at the start of a .env value swallows the lines after it
&lt;/h2&gt;

&lt;p&gt;The editor can set a value in a .env file. When it writes a value, it wraps it in quotes if it contains a space, a &lt;code&gt;#&lt;/code&gt;, a quote, a &lt;code&gt;$&lt;/code&gt; or a tab. A backtick isn't on that list, so a value that starts with one is written bare.&lt;/p&gt;

&lt;p&gt;The reader, though, treats a backtick at the start of a value as an opening quote. It keeps reading until the next backtick anywhere in the file, and everything in between becomes one value.&lt;/p&gt;

&lt;p&gt;The test uses a small file: &lt;code&gt;API_KEY&lt;/code&gt;, then &lt;code&gt;DATABASE_URL&lt;/code&gt;, then a comment that happens to contain a word in backticks, then &lt;code&gt;PORT&lt;/code&gt;. It sets &lt;code&gt;API_KEY&lt;/code&gt; to a value that starts with a backtick, then reads &lt;code&gt;DATABASE_URL&lt;/code&gt; back. On the maintainer's commit, &lt;code&gt;DATABASE_URL&lt;/code&gt; comes back undefined, because it's now part of &lt;code&gt;API_KEY&lt;/code&gt;. Adding the backtick to the list of characters that need quotes is a one-line fix. The value gets written in single quotes and the test passes.&lt;/p&gt;

&lt;p&gt;The test stops at its first failed check, so I never saw the next step fail. By the same logic, though, deleting &lt;code&gt;API_KEY&lt;/code&gt; afterwards would delete the &lt;code&gt;DATABASE_URL&lt;/code&gt; line and the comment with it. That's what turns a parsing quirk into lost config.&lt;/p&gt;

&lt;p&gt;It takes a value that starts with a backtick and another backtick later in the file, so it's rare. But this code edits people's real .env files, and the fix is one character.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 2: a lock holder that dies mid-wait isn't noticed (minor)
&lt;/h2&gt;

&lt;p&gt;Writes go through a lock file that records the holder's process id. A waiter checks whether the holder is still alive and breaks the lock if it isn't. To avoid calling &lt;code&gt;ps&lt;/code&gt; on every poll, it caches its verdict for as long as the lock file stays the same.&lt;/p&gt;

&lt;p&gt;The cache also hides a crash. If the holder is alive on the first check and dies a second later, the lock file doesn't change, so the waiter keeps its "alive" verdict. The test kills the holder 1 second into the wait. On the maintainer's commit, the waiter sat out the full 15 second limit and then failed with an error naming a process that no longer existed. The fix re-checks only the cheap part on each poll, whether that process id still exists, and keeps the cache for the rest. With it, the waiter got the lock after 1,018 ms.&lt;/p&gt;

&lt;p&gt;This one is minor. Nothing is lost. You get a 15 second stall and a misleading error, and the next try works.&lt;/p&gt;

&lt;p&gt;The third finding held up when I read the code but has no test: an error message promising that a holder who lost the lock "will refuse to commit", when most callers never check. It's not in the count.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I take from it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;This doesn't show the council beats a single agent.&lt;/strong&gt; I didn't run a single agent on this pull request. On my easy benchmark a single agent passed 10 of 10 and the council 7 of 10. What this run shows is narrower: on real code that was open for review, it found two bugs nobody had flagged yet, and it described them precisely enough to test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Both proven bugs came from the Claude seat.&lt;/strong&gt; The Gemini seat ran a smaller model than planned, and the Grok seat ruled on the findings but didn't raise any of them. So this run doesn't show that mixing models helped. It shows one careful seat inside a process that made it cite lines and propose tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A finding isn't a finding until a test fails.&lt;/strong&gt; Eight objections came down to two bugs I'd stand behind. If I'd sent all eight, the maintainer would have been right to ignore me.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Half the noise was the council arguing with its own brief.&lt;/strong&gt; In review mode, objections to the Lead PM's draft shouldn't reach the output. That's mine to fix.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I sent the two tests and both fixes to the maintainer as a comment on the pull request. Nothing was pushed to their repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;The harder benchmark is the real test: tasks where a single agent sometimes fails, with the task set and pass criteria published before any run, and about ten single-agent runs per task to get a noise floor. It adds a repo with a misleading note and an idempotency-key case, both from comments on the last post. The breakdown of whether late sign-off concerns would have flipped the gate, which someone asked for, comes with it. None of that has run yet.&lt;/p&gt;

&lt;p&gt;The next release, 0.4.0, fixes first-run setup. It's merged but not on npm yet. The version on npm today is 0.3.2. In a git repo, this reviews your uncommitted change:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx open-council-cli review
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The code and full replays are at &lt;a href="https://github.com/goshtasb/OpenCouncil" rel="noopener noreferrer"&gt;https://github.com/goshtasb/OpenCouncil&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was written with the help of AI. An AI agent also helped write the two repro tests, which ran on my machine against a temporary copy of the maintainer's commit.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>codereview</category>
      <category>testing</category>
    </item>
    <item>
      <title>I made three AI seats argue over the spec before any code. Here's what 10 runs showed.</title>
      <dc:creator>Ashkan Goshtasb</dc:creator>
      <pubDate>Sat, 07 Nov 2026 06:22:30 +0000</pubDate>
      <link>https://dev.to/goshtasb/i-made-three-ai-seats-argue-over-the-spec-before-any-code-heres-what-10-runs-showed-1f5k</link>
      <guid>https://dev.to/goshtasb/i-made-three-ai-seats-argue-over-the-spec-before-any-code-heres-what-10-runs-showed-1f5k</guid>
      <description>&lt;p&gt;Most of the bad code I've gotten from coding agents wasn't badly written. It was the right code for the wrong plan. The agent misread the task, assumed something about the repo that wasn't true, and then executed that assumption very well.&lt;/p&gt;

&lt;p&gt;So I built a tool that spends its effort before the code. It's called Open Council. Three seats argue over a PRD until they all sign off on the same document:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lead PM&lt;/strong&gt; writes the brief and the PRD.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chief Engineer&lt;/strong&gt; checks every claim against the real code. Every objection has to cite a &lt;code&gt;file:line&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chief Architect&lt;/strong&gt; rules on deadlocks and reviews the agreed document. It runs with no tools, so it judges the text, not the repo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When all three sign off, I approve the PRD with a token. Only then does the Engineer implement it, in an isolated clone. The harness runs the project's gates (its real test commands) and opens a PR only if they pass. Anything else ends as BLOCKED or STALLED, never DONE.&lt;/p&gt;

&lt;p&gt;Last week I had ten councils run on version 0.2.1 to see how this holds up. Here's what happened, including the parts that didn't work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;All ten ran in solo mode, which means every seat is Claude Code (Lead PM on Sonnet, Chief Engineer on Opus, Chief Architect on Sonnet with tools off). They used the quick profile, with at most 4 rounds. The targets were local copies of two small repos: a toy slugify library I keep for testing, and Open Council itself. Local copies have no GitHub remote, so no run could open a PR. That last step ends BLOCKED by design.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Outcome&lt;/th&gt;
&lt;th&gt;Rounds&lt;/th&gt;
&lt;th&gt;Minutes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;slugify: empty string + accents&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gates --json&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6.8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;gate recipes for Python, Go, Rust&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;7.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;slugify: &lt;code&gt;maxLength&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;STALLED&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;slugify: empty + accents (repeat)&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gates --json&lt;/code&gt; (repeat)&lt;/td&gt;
&lt;td&gt;STALLED&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;7.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;slugify: ß ø æ œ đ ł þ&lt;/td&gt;
&lt;td&gt;signed off, gate failed, BLOCKED&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;slugify: &lt;code&gt;maxLength&lt;/code&gt; (repeat)&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6.3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;gate recipes (repeat)&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;9.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;slugify: empty + accents (repeat)&lt;/td&gt;
&lt;td&gt;signed off, gate passed&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;8 of 10 signed off. 7 of those 8 passed their gate. The median time to a sign-off or a stall was 6.5 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The catch nobody asked for
&lt;/h2&gt;

&lt;p&gt;Six of the runs were on the slugify repo. In all six, the Chief Engineer's first objection had nothing to do with the task.&lt;/p&gt;

&lt;p&gt;The repo's &lt;code&gt;package.json&lt;/code&gt; had &lt;code&gt;"test": "node --test test/"&lt;/code&gt;. On Node 22 that argument is read as a module path, not a folder, so &lt;code&gt;npm test&lt;/code&gt; ran 0 of the 2 existing tests. It had been quietly broken since before I started. No task mentioned it.&lt;/p&gt;

&lt;p&gt;In run 1 the Engineer reproduced it, tried two working alternatives, and made fixing the test script the first commit of the plan. Its reasoning was simple: you can't claim the new tests pass if the runner doesn't run tests.&lt;/p&gt;

&lt;p&gt;This is the thing I wanted from the design. A single agent asked to "handle empty strings in slugify" would most likely write the fix and the tests and report that they pass. A seat whose only job is to check claims against the repo found that the claim couldn't be checked at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  What went wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Two runs stalled, and the same way.&lt;/strong&gt; In both, the Engineer had no objections left. Then the Architect raised one more concern. In run 4 it asked for a README line the task never mentioned. The revision that answered it introduced a new problem: one of the new assertions would fail on a correct implementation. The Engineer objected in the last round, the budget ran out, and nothing reached me for approval. The harness wrote the last draft and the open objections to a file and stopped.&lt;/p&gt;

&lt;p&gt;A stall is the system working, because nothing wrong got built. But two stalls with the same shape tell me the Architect's late concerns cost more than they're worth. I already made one change for this: a concern that could have been raised in an earlier round is waived on a resubmission. These two runs show it isn't enough yet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One run was blocked by its own plan.&lt;/strong&gt; In run 7 the council agreed on a plan and named its own test command, &lt;code&gt;node --test test/slug.test.js&lt;/code&gt;. But the project config runs &lt;code&gt;npm test&lt;/code&gt;, which was still broken in that repo, and the Architect had ruled that fixing &lt;code&gt;package.json&lt;/code&gt; was out of scope. So execution ran the configured gate, it failed, and the run ended BLOCKED. Nothing was pushed. The code itself passed the plan's own 7 tests when I checked afterwards.&lt;/p&gt;

&lt;p&gt;The harness did the right thing by not calling it done. The real bug is that a PRD can name a gate the project doesn't run, and nothing flags that before execution. That's an open issue now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solo mode isn't the real test.&lt;/strong&gt; Every seat in these runs was the same model family. The point of separate seats is that they don't share blind spots, and the council is designed to put Claude, Gemini and Grok in different seats. I haven't run that mixed setup enough to say whether it catches more. Ten runs on two small repos, with three tasks repeated, is a smoke test, not a rate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took from it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Review the plan, not just the diff.&lt;/strong&gt; The most useful objection in these runs was about the repo's state, not the task. It only came up because a seat was told to check claims against the code before anyone wrote any.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make "done" something the harness checks, not something the agent says.&lt;/strong&gt; Run 7 had passing code and still ended BLOCKED, because the gate the project actually runs failed. I'd rather read a BLOCKED than find out later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Publish the failures.&lt;/strong&gt; The stalls taught me more than the sign-offs, and they're the part I'd want to see before trusting a tool like this.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Trying it
&lt;/h2&gt;

&lt;p&gt;You need Node 18 or later, macOS or Linux, and Claude Code. In a git repo:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g open-council-cli
council init --solo
council doctor
council backlog add "your task here" --priority 1
SESSION=$(council open my-task --item 001)
council deliberate "$SESSION"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;When it signs off, it prints the PRD's path and the exact &lt;code&gt;council approve&lt;/code&gt; command. That step is yours to run. Then &lt;code&gt;council handoff "$SESSION"&lt;/code&gt; and &lt;code&gt;council run "$SESSION"&lt;/code&gt; implement it and open the PR.&lt;/p&gt;

&lt;p&gt;The code, and full replays of these runs with every objection, are at &lt;a href="https://github.com/goshtasb/OpenCouncil" rel="noopener noreferrer"&gt;https://github.com/goshtasb/OpenCouncil&lt;/a&gt;. It's MIT licensed. If you run a council and it stalls or ships something wrong, that's the report I'd most like to read.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was written with the help of AI, and the ten runs were driven by an AI agent on my behalf. I checked the numbers against the run logs before publishing.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>codereview</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
