<?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: Samyak Jain</title>
    <description>The latest articles on DEV Community by Samyak Jain (@samyak_jain_dc6c4b9b19799).</description>
    <link>https://dev.to/samyak_jain_dc6c4b9b19799</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%2F4266849%2Fdd2b571c-db77-49e2-8ee2-4d159345b06c.jpg</url>
      <title>DEV Community: Samyak Jain</title>
      <link>https://dev.to/samyak_jain_dc6c4b9b19799</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samyak_jain_dc6c4b9b19799"/>
    <language>en</language>
    <item>
      <title>I checked an AI-built login feature against its own PRD. Here is what it missed.</title>
      <dc:creator>Samyak Jain</dc:creator>
      <pubDate>Thu, 26 Nov 2026 12:10:47 +0000</pubDate>
      <link>https://dev.to/samyak_jain_dc6c4b9b19799/i-checked-an-ai-built-login-feature-against-its-own-prd-here-is-what-it-missed-2856</link>
      <guid>https://dev.to/samyak_jain_dc6c4b9b19799/i-checked-an-ai-built-login-feature-against-its-own-prd-here-is-what-it-missed-2856</guid>
      <description>&lt;p&gt;AI coding assistants write code that looks right. The question I kept asking was a different one: &lt;strong&gt;does it do what the requirements said?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A PR reviewer looks at the diff. Nobody looks at the diff against the original PRD. So we built a tool for that, and ran it on a real feature to see what happens. This post is what we found, including where it fell short.&lt;/p&gt;

&lt;p&gt;I'm one of the maintainers of wardenIQ, the open-source tool I used. Take that into account.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3hsfqpniilcy0i3bvein.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3hsfqpniilcy0i3bvein.png" alt="wardenIQ dashboard" width="799" height="501"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;One feature: &lt;strong&gt;Authentication&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;12 frozen requirements&lt;/strong&gt;, written up front so the target could not move.&lt;/li&gt;
&lt;li&gt;A codebase with &lt;strong&gt;seeded defects&lt;/strong&gt;, so we knew the right answers in advance.&lt;/li&gt;
&lt;li&gt;Four stacked PRs implementing the feature step by step.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: requirements to test cases
&lt;/h2&gt;

&lt;p&gt;I uploaded four requirement documents. In about &lt;strong&gt;90 seconds&lt;/strong&gt; wardenIQ produced &lt;strong&gt;41 typed, prioritised test cases&lt;/strong&gt; (functional, E2E, API, non-functional), each built from reusable steps.&lt;/p&gt;

&lt;p&gt;That is the part people expect. It is not the interesting part.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: does the real code do it?
&lt;/h2&gt;

&lt;p&gt;The "Mind Map" analysis reads the actual production code, the way an outside reviewer would, and judges every feature as covered, partial or uncovered, citing the files it read.&lt;/p&gt;

&lt;p&gt;On this feature it scored &lt;strong&gt;82.9% (34 of 41)&lt;/strong&gt; covered. Three things stood out:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;"Written" is not "enforced."&lt;/strong&gt; It told the difference between validation logic that exists and validation logic that is actually wired up, and it tracked that across a branch change instead of matching keywords.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It caught a seeded security regression&lt;/strong&gt;, naming the disabled check and quoting the code comment the author used to justify disabling it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It flagged a risk we had not seeded:&lt;/strong&gt; a possible race condition in an in-memory store used for replay protection.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We also ran CodeRabbit, a PR reviewer, on the same PRs. It independently caught the same security defect and the same race-condition risk, by a different route (line-level comments on the diff). That is a good sign for both tools. They answer different questions: CodeRabbit asks "what is wrong in this diff?", wardenIQ asks "does the code satisfy the requirements?" I would run both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it fell short
&lt;/h2&gt;

&lt;p&gt;I would rather you hear this from me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One feature is a data point, not a benchmark.&lt;/strong&gt; This should be repeated on more features before anyone draws broad conclusions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two of its own analysis engines disagreed&lt;/strong&gt; on a token-rotation case, reaching opposite conclusions on the same commit. It is three engines, not one oracle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test matching is weak.&lt;/strong&gt; When checking whether an automated test exists for a requirement, it matched two seeded test-quality cases to unrelated tests at 20-33% confidence, with no clear difference between a strong and a weak match.&lt;/li&gt;
&lt;li&gt;Results from the PR-level coverage check varied between runs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We are working on these.&lt;/p&gt;

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

&lt;p&gt;The whole pilot used about &lt;strong&gt;828K tokens, roughly $0.53&lt;/strong&gt;, on a hosted model. It also runs on a local Ollama model, where cost is not a meaningful number. (That is observed usage on one feature, not a price per PR.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;It is MIT licensed and self-hosted. You bring your own model: Ollama, OpenAI, Anthropic, Gemini, Mistral, Groq or Bedrock. There is a public Docker image, so there is nothing to fork or build.&lt;/p&gt;

&lt;p&gt;macOS / Linux:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://raw.githubusercontent.com/adlerqa/wardeniq/main/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="n"&gt;powershell&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="s2"&gt;"irm https://raw.githubusercontent.com/adlerqa/wardeniq/main/install.ps1 | iex"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then open &lt;a href="http://localhost:8001" rel="noopener noreferrer"&gt;http://localhost:8001&lt;/a&gt;. Choose the bundled mode for a fully local trial.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/adlerqa/wardeniq" rel="noopener noreferrer"&gt;https://github.com/adlerqa/wardeniq&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you try it on your own PRD and it gets something wrong, open an issue. Honest bug reports are the most useful thing you can send.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>ai</category>
      <category>opensource</category>
      <category>qa</category>
    </item>
  </channel>
</rss>
