<?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: Valmir Júnior</title>
    <description>The latest articles on DEV Community by Valmir Júnior (@valmirjunior2109spec).</description>
    <link>https://dev.to/valmirjunior2109spec</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%2F4254065%2F072a8ba8-4a97-43ac-9028-6d99a3db0b88.png</url>
      <title>DEV Community: Valmir Júnior</title>
      <link>https://dev.to/valmirjunior2109spec</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/valmirjunior2109spec"/>
    <language>en</language>
    <item>
      <title>Your AI wrote the code, the tests passed, and signup is still broken</title>
      <dc:creator>Valmir Júnior</dc:creator>
      <pubDate>Thu, 19 Nov 2026 15:03:12 +0000</pubDate>
      <link>https://dev.to/valmirjunior2109spec/your-ai-wrote-the-code-the-tests-passed-and-signup-is-still-broken-5cok</link>
      <guid>https://dev.to/valmirjunior2109spec/your-ai-wrote-the-code-the-tests-passed-and-signup-is-still-broken-5cok</guid>
      <description>&lt;p&gt;Green tests don't mean signup works. How to catch the bugs AI coding agents ship before your users do, with a free open-source CLI.&lt;/p&gt;

&lt;p&gt;You ask your agent for a small refactor. It finishes in 40 seconds. The diff looks clean, TypeScript is quiet, lint passes, every test is green.&lt;/p&gt;

&lt;p&gt;You merge.&lt;/p&gt;

&lt;p&gt;Two days later someone asks why nobody has signed up since Tuesday.&lt;/p&gt;

&lt;p&gt;That's the bug AI coding agents are best at shipping. Not a syntax error. Not a failing test. Code that's correct in the file the agent was looking at, and wrong everywhere else.&lt;/p&gt;

&lt;p&gt;How it happens&lt;/p&gt;

&lt;p&gt;Here's a common pattern, and you can reproduce it with the demo app in the repo below.&lt;/p&gt;

&lt;p&gt;The agent "tidies up" the signup API. The handler now reads emailAddress. The form still sends email.&lt;/p&gt;

&lt;p&gt;TypeScript doesn't complain, because the request body is "any" at that boundary. Unit tests pass, because the agent updated them to the new field name. And the agent says "done".&lt;/p&gt;

&lt;p&gt;In the browser, the Create account button does nothing. No message on screen. A 500 in the network tab. A TypeError in server logs nobody is reading.&lt;/p&gt;

&lt;p&gt;Your tests checked the code. Nobody checked the product.&lt;/p&gt;

&lt;p&gt;The fix is boring, and that's the point&lt;/p&gt;

&lt;p&gt;Before trusting an AI change, click through the flows your business depends on: signup, login, checkout. In a real browser, the way a user would.&lt;/p&gt;

&lt;p&gt;Nobody does that by hand after every change. So I automated it and open-sourced it.&lt;/p&gt;

&lt;p&gt;Meet stillworks&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx stillworks init
npx stillworks run --url http://localhost:3000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The init command creates a journeys.config.ts file and installs Chromium. Each journey is a list of named steps in plain Playwright:&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="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"signup"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Open the signup page"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;)&lt;/span&gt; &lt;span class="err"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;goto&lt;/span&gt;&lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/signup"&lt;/span&gt;&lt;span class="err"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Fill in email and password"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;async&lt;/span&gt; &lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;)&lt;/span&gt; &lt;span class="err"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getByLabel&lt;/span&gt;&lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Email"&lt;/span&gt;&lt;span class="err"&gt;).&lt;/span&gt;&lt;span class="n"&gt;fill&lt;/span&gt;&lt;span class="err"&gt;(`&lt;/span&gt;&lt;span class="n"&gt;test&lt;/span&gt;&lt;span class="err"&gt;+$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;Date&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="err"&gt;()&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;@&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="err"&gt;`);&lt;/span&gt;
        &lt;span class="n"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getByLabel&lt;/span&gt;&lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Password"&lt;/span&gt;&lt;span class="err"&gt;).&lt;/span&gt;&lt;span class="n"&gt;fill&lt;/span&gt;&lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"correct-horse-battery-staple"&lt;/span&gt;&lt;span class="err"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Submit the form"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;)&lt;/span&gt; &lt;span class="err"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getByRole&lt;/span&gt;&lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"button"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Create account"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;).&lt;/span&gt;&lt;span class="n"&gt;click&lt;/span&gt;&lt;span class="err"&gt;()&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"See the welcome screen"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;)&lt;/span&gt; &lt;span class="err"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getByText&lt;/span&gt;&lt;span class="err"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Welcome"&lt;/span&gt;&lt;span class="err"&gt;).&lt;/span&gt;&lt;span class="n"&gt;waitFor&lt;/span&gt;&lt;span class="err"&gt;()&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don't want to write them? Ask your agent: "Read journeys.config.ts and add a journey for inviting a teammate."&lt;/p&gt;

&lt;p&gt;The part that actually saves you time&lt;/p&gt;

&lt;p&gt;When a journey breaks, you don't get a stack trace to decode. You get a REPORT.md file written to be pasted straight into your agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The signup journey failed at step 4 of 4: "See the welcome screen"

Failed requests:
POST /api/signup → 500 Internal Server Error
Response: {"error":"TypeError: Cannot read properties of undefined (reading 'toLowerCase')"}

Fix this without changing unrelated files. Find the root cause; don't change the
journey or weaken the check to make it pass. These journeys still pass, keep them
passing: login, checkout.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The failed step, console errors, the failed request with the server's response, and a screenshot. Your agent goes straight to the renamed field, instead of "adding more error handling to the signup form".&lt;/p&gt;

&lt;p&gt;Or skip the copy-paste entirely&lt;/p&gt;

&lt;p&gt;In Claude Code, a Stop hook runs your journeys every time Claude finishes. If one breaks, the report goes back to Claude and it keeps fixing until everything passes. It skips turns where no file changed and never blocks you when the app isn't running.&lt;/p&gt;

&lt;p&gt;In Cursor, a rule makes the agent verify after every change. For Codex and Copilot, there's a ready-made AGENTS.md section. And a GitHub Action runs your journeys on every Vercel preview deploy.&lt;/p&gt;

&lt;p&gt;Watch it catch the bug in under a minute&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/valmirjunior2109-spec/stillworks &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd&lt;/span&gt; stillworks
npm install &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run build &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; node dist/cli.js install
npm run demo:broken      &lt;span class="c"&gt;# in one terminal&lt;/span&gt;
node dist/cli.js run --url http://127.0.0.1:4173 --config templates/journeys.config.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MIT licensed. No telemetry. Works on macOS, Linux and Windows.&lt;/p&gt;

&lt;p&gt;Where this is going&lt;/p&gt;

&lt;p&gt;stillworks runs when you ask. I'm also building Publishub, the version that runs by itself: on every PR, catching broken flows and security holes in AI-written code, and comparing each run with your last working version. It's not out yet, and early access is free: &lt;a href="https://getpublishub.com/?utm_source=devto#early-access" rel="noopener noreferrer"&gt;https://getpublishub.com/?utm_source=devto#early-access&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If this saves you from even one "nobody signed up since Tuesday" moment:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Try it: npx stillworks init&lt;/li&gt;
&lt;li&gt;Star the repo so other devs find it: &lt;a href="https://github.com/valmirjunior2109-spec/stillworks" rel="noopener noreferrer"&gt;https://github.com/valmirjunior2109-spec/stillworks&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Tell me in the comments which flow you'd check first. I'm adding templates for the most requested stacks.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
      <category>vibecoding</category>
    </item>
  </channel>
</rss>
