<?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: Higor Silvério</title>
    <description>The latest articles on DEV Community by Higor Silvério (@higorasilverio).</description>
    <link>https://dev.to/higorasilverio</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%2F1907034%2F5cd9fa1e-ac0f-4909-9f8c-c734e61b351e.jpeg</url>
      <title>DEV Community: Higor Silvério</title>
      <link>https://dev.to/higorasilverio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/higorasilverio"/>
    <language>en</language>
    <item>
      <title>All Tests Passed. But Did the AI Build What You Wanted?</title>
      <dc:creator>Higor Silvério</dc:creator>
      <pubDate>Mon, 30 Nov 2026 17:54:41 +0000</pubDate>
      <link>https://dev.to/higorasilverio/all-tests-passed-but-did-the-ai-build-what-you-wanted-1h6</link>
      <guid>https://dev.to/higorasilverio/all-tests-passed-but-did-the-ai-build-what-you-wanted-1h6</guid>
      <description>&lt;p&gt;&lt;em&gt;Beyond Vibe Coding — Part 01&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Imagine receiving a ticket from Finance:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Our invoices don't match the accounting system by a cent or two. Make sure we round half up to the cent on each line.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You hand it to your AI coding agent. It implements the solution, writes the tests, and everything passes.&lt;/p&gt;

&lt;p&gt;But consider a $0.25 item with a 50% discount.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Interpretation&lt;/th&gt;
&lt;th&gt;Customer pays&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Round the discount&lt;/td&gt;
&lt;td&gt;$0.12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Round the remaining amount&lt;/td&gt;
&lt;td&gt;$0.13&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both interpretations are defensible. Both can have passing tests. Yet the original business problem might remain unresolved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting it to the test
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;AgentTrust&lt;/strong&gt;, an open-source experimental platform to investigate the reliability of AI-generated code.&lt;/p&gt;

&lt;p&gt;The experiment involved:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;820 independent agent executions.&lt;/li&gt;
&lt;li&gt;8 TypeScript backend challenges.&lt;/li&gt;
&lt;li&gt;2 AI models: Claude Sonnet and Haiku.&lt;/li&gt;
&lt;li&gt;4 development strategies: standard, TDD, guarded, and independently reviewed.&lt;/li&gt;
&lt;li&gt;$61.48 in AI usage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I expected to find numerous implementation defects hiding behind passing tests.&lt;/p&gt;

&lt;p&gt;Instead, I found something more interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the data revealed
&lt;/h2&gt;

&lt;p&gt;Only 3 executions produced genuine bugs while passing their own tests.&lt;/p&gt;

&lt;p&gt;However, when given ambiguous tickets, &lt;strong&gt;263 out of 640 executions (41%)&lt;/strong&gt; produced valid implementations that differed from the intended behavior.&lt;/p&gt;

&lt;p&gt;With detailed specifications, no such divergences were observed.&lt;/p&gt;

&lt;p&gt;Even introducing TDD, automated guardrails, or a second AI reviewer didn't consistently resolve that ambiguity. The reviewer also cost approximately three times more than standard development.&lt;/p&gt;

&lt;p&gt;Interestingly, even my independent evaluation initially classified some valid interpretations as bugs. The evaluator was making assumptions too.&lt;/p&gt;

&lt;p&gt;These results come from small, isolated programming challenges, with extra repetitions on billing and webhook tasks — not production-scale repositories.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should developers do differently?
&lt;/h2&gt;

&lt;p&gt;Before asking an AI agent to implement a feature, try asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What decisions does this specification leave open? Identify ambiguous requirements, edge cases, and assumptions before writing any code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Resolve those decisions and encode them into acceptance tests.&lt;/p&gt;

&lt;p&gt;The takeaway from this experiment isn't that we need less testing. It's that we need to be more intentional about what we're testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Green tests can validate an implementation. They cannot validate an intention that was never expressed.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;Explore the results, inspect the generated code, and reproduce the experiments yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/higorasilverio/agenttrust" rel="noopener noreferrer"&gt;https://github.com/higorasilverio/agenttrust&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interactive dashboard:&lt;/strong&gt; &lt;a href="https://higorasilverio.github.io/agenttrust/" rel="noopener noreferrer"&gt;https://higorasilverio.github.io/agenttrust/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Beyond Vibe Coding — a series exploring the engineering practices behind reliable AI systems.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>showdev</category>
      <category>typescript</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
