<?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: richocolate</title>
    <description>The latest articles on DEV Community by richocolate (@richocolate17).</description>
    <link>https://dev.to/richocolate17</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%2F4120441%2F34d641b6-c154-49ec-a4db-df4c364eec2a.png</url>
      <title>DEV Community: richocolate</title>
      <link>https://dev.to/richocolate17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/richocolate17"/>
    <language>en</language>
    <item>
      <title>When AI Writes Both the API Integration and the Tests, What Are We Actually Verifying?</title>
      <dc:creator>richocolate</dc:creator>
      <pubDate>Fri, 11 Sep 2026 14:40:00 +0000</pubDate>
      <link>https://dev.to/richocolate17/when-ai-writes-both-the-api-integration-and-the-tests-what-are-we-actually-verifying-5h1j</link>
      <guid>https://dev.to/richocolate17/when-ai-writes-both-the-api-integration-and-the-tests-what-are-we-actually-verifying-5h1j</guid>
      <description>&lt;p&gt;I've been thinking about a problem with coding agents that I keep coming back to.&lt;/p&gt;

&lt;p&gt;An agent can write an API integration and then write tests for that integration. Everything passes, but the tests may just be confirming the same assumptions the agent made while writing the code.&lt;/p&gt;

&lt;p&gt;For example, the agent thinks an endpoint returns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It writes the integration expecting &lt;code&gt;total&lt;/code&gt;, and then writes a test that expects &lt;code&gt;total&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The test passes.&lt;/p&gt;

&lt;p&gt;But if the real API contract says something different, the whole thing can still be wrong.&lt;/p&gt;

&lt;p&gt;I'm experimenting with a small open-source project called Kaktoos that puts an independent verification step between the agent and the API:&lt;/p&gt;

&lt;p&gt;AI agent → integration → Kaktoos → OpenAPI + real API → result&lt;/p&gt;

&lt;p&gt;The idea is that the verification layer shouldn't share the agent's assumptions.&lt;/p&gt;

&lt;p&gt;It currently supports multi-step API workflows, OpenAPI response validation, MCP, and GitHub Actions.&lt;/p&gt;

&lt;p&gt;I'm still trying to figure out how far this idea should go. One interesting question that came up is whether contract validation is enough, or whether verification should also check the actual outcome of an operation — for example, creating a resource and then reading it back to confirm the state actually changed.&lt;/p&gt;

&lt;p&gt;I'm curious how other people building with coding agents are handling this today.&lt;/p&gt;

&lt;p&gt;Do you rely mostly on the agent's generated tests, existing integration tests, mocked APIs, live API tests, or some combination?&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/kaktooslabs/kaktoos" rel="noopener noreferrer"&gt;KaktoosLabs/kaktoos&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>opensource</category>
      <category>mcp</category>
      <category>mlhacks</category>
    </item>
  </channel>
</rss>
