<?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: michael wedderburn</title>
    <description>The latest articles on DEV Community by michael wedderburn (@michael_wedderburn_2cf8ce).</description>
    <link>https://dev.to/michael_wedderburn_2cf8ce</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%2F4158626%2Fadfcf7f9-b4c5-4fd8-acda-9186bc28d68c.png</url>
      <title>DEV Community: michael wedderburn</title>
      <link>https://dev.to/michael_wedderburn_2cf8ce</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michael_wedderburn_2cf8ce"/>
    <language>en</language>
    <item>
      <title>Two AI reviewers, one Fastify PR, and a 404 that quietly became a 414</title>
      <dc:creator>michael wedderburn</dc:creator>
      <pubDate>Fri, 02 Oct 2026 23:00:28 +0000</pubDate>
      <link>https://dev.to/michael_wedderburn_2cf8ce/two-ai-reviewers-one-fastify-pr-and-a-404-that-quietly-became-a-414-5236</link>
      <guid>https://dev.to/michael_wedderburn_2cf8ce/two-ai-reviewers-one-fastify-pr-and-a-404-that-quietly-became-a-414-5236</guid>
      <description>&lt;p&gt;I ran two AI code reviewers from different vendors over the same merged pull request. One of them found nothing. The other found a behavior change that is still in Fastify today, and it was wrong about one important detail.&lt;/p&gt;

&lt;p&gt;This is what happened, how I checked it, and what I changed in my own tool because of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The PR
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/fastify/fastify/pull/6716" rel="noopener noreferrer"&gt;fastify#6716&lt;/a&gt;, "feat: add support of onMaxParamLength", merged in May and first released in v5.9.0. It adds a hook for when a route parameter is longer than &lt;code&gt;maxParamLength&lt;/code&gt; (default 100 characters).&lt;/p&gt;

&lt;h2&gt;
  
  
  What the reviewers said
&lt;/h2&gt;

&lt;p&gt;Both reviewers got the same diff and the same instructions, and ran independently.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;gpt-5.5&lt;/strong&gt; returned 0 findings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;claude-sonnet-5&lt;/strong&gt; returned 3. The important one: over-long route params used to get a 404 and now get a 414, even in apps that never opted in. It also noted that apps with their own &lt;code&gt;setNotFoundHandler&lt;/code&gt; stop seeing those requests, and that the &lt;code&gt;maxParamLength&lt;/code&gt; docs still say "the not found route will be invoked."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It cited the evidence: the new handler is wired in by default, and the PR's own tests change their expected status from 404 to 414 without configuring anything new.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking it
&lt;/h2&gt;

&lt;p&gt;A reviewer that sounds confident isn't the same as a reviewer that's right, so I reproduced it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;fastify&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;fastify&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;fastify&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/test/:id&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="p"&gt;}))&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;longId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;x&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;inject&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;GET&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`/test/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;longId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;statusCode&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;Before the PR&lt;/th&gt;
&lt;th&gt;v5.9.0 and later&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Default app&lt;/td&gt;
&lt;td&gt;404, route not found&lt;/td&gt;
&lt;td&gt;414, &lt;code&gt;FST_ERR_MAX_PARAM_LENGTH&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;App with &lt;code&gt;setNotFoundHandler&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;404 from the app's handler&lt;/td&gt;
&lt;td&gt;414, the app's handler never runs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same result on 5.12.5 and on &lt;code&gt;main&lt;/code&gt;. The docs line is unchanged on both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the reviewer was wrong
&lt;/h2&gt;

&lt;p&gt;It labeled the change a &lt;strong&gt;regression&lt;/strong&gt;. It isn't. The 414 was requested in &lt;a href="https://github.com/fastify/fastify/issues/6697" rel="noopener noreferrer"&gt;issue #6697&lt;/a&gt;, and returning 414 for an over-long URI is arguably more correct than 404.&lt;/p&gt;

&lt;p&gt;What actually slipped through is smaller: the release note says only "feat: add support of onMaxParamLength", the docs still describe the old behavior, and the custom not-found handler side effect isn't mentioned anywhere. If your app relied on that handler for long params, it changed in a minor release without a word.&lt;/p&gt;

&lt;p&gt;That's worth a human's minute. It isn't worth blocking a merge.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule I changed
&lt;/h2&gt;

&lt;p&gt;Until this week, my tool blocked a PR whenever either reviewer rated something high or critical. On an earlier run of this same PR, that rule showed it as &lt;strong&gt;blocked&lt;/strong&gt; because of one reviewer's findings: a test typo rated critical (real, but in a callback that only runs when the test is already failing) and a "broken" docs anchor that wasn't broken. The other reviewer raised neither.&lt;/p&gt;

&lt;p&gt;The new rule: a PR is only blocked when both reviewers independently find the same defect and both rate it at or above the team's threshold. Anything one reviewer raises alone is marked "needs review."&lt;/p&gt;

&lt;p&gt;Under that rule, this PR came back as "needs review." That seems right to me. A missed block still puts the finding in front of a person. A wrong block gets in everyone's way.&lt;/p&gt;

&lt;p&gt;The cost is real, though: blocking now happens rarely, so a strict gate will miss things one reviewer saw.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Two reviewers disagreeing is information.&lt;/strong&gt; Here, one saw nothing and the other saw a real compatibility change.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accurate is not the same as important.&lt;/strong&gt; Most of what both reviewers said was correct and minor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify before you repeat a finding.&lt;/strong&gt; The reviewer was right about the facts and wrong about the story. If I had posted "Fastify shipped a regression," I'd have been wrong too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One PR is an anecdote, not a benchmark. I'd like to hear how your team handles this with human reviewers: does one "request changes" block, or do you need a second opinion?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I build &lt;a href="https://veridu.io/demo" rel="noopener noreferrer"&gt;Veridu&lt;/a&gt;, the tool that ran these reviews. The stored review and the reproduction are on that page.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>codereview</category>
      <category>ai</category>
      <category>node</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
