<?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: B0s</title>
    <description>The latest articles on DEV Community by B0s (@dab0s).</description>
    <link>https://dev.to/dab0s</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%2F4235860%2F67b6c0ec-0cc7-47c3-8647-3012b07def4f.png</url>
      <title>DEV Community: B0s</title>
      <link>https://dev.to/dab0s</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dab0s"/>
    <language>en</language>
    <item>
      <title>Would your AI-written tests fail if the app were broken? I built Mutek to find out</title>
      <dc:creator>B0s</dc:creator>
      <pubDate>Thu, 26 Nov 2026 10:17:34 +0000</pubDate>
      <link>https://dev.to/dab0s/would-your-ai-written-tests-fail-if-the-app-were-broken-i-built-mutek-to-find-out-4nj2</link>
      <guid>https://dev.to/dab0s/would-your-ai-written-tests-fail-if-the-app-were-broken-i-built-mutek-to-find-out-4nj2</guid>
      <description>&lt;p&gt;Coding agents are very good at writing end-to-end tests that pass. That is also the problem: a passing test only means something if it would fail when the app is broken, and almost nobody checks that.&lt;/p&gt;

&lt;p&gt;So for the KaneCLI hackathon by TestMu AI, I built &lt;strong&gt;Mutek&lt;/strong&gt;, a command-line tool that simulates realistic bugs in a running app, without changing its code, and measures whether the test suite notices.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/RoSAEA-Eu94" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug that started it
&lt;/h2&gt;

&lt;p&gt;I let a coding agent write six end-to-end tests for a small shop. Kane CLI ran them: six of six green.&lt;/p&gt;

&lt;p&gt;Then Mutek made one change to the app's traffic: another customer's order appeared at the top of "My orders". Every test still passed.&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%2Frhcxcdoiipf43cod03dr.jpg" 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%2Frhcxcdoiipf43cod03dr.jpg" alt="The My orders page showing another customer's order while all six tests pass" width="570" height="265"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A proxy simulates one bug at a time.&lt;/strong&gt; Mutek sits between the browser and the app and changes one thing per run: a wrong total, a save that silently fails, a missing button, another user's record. It generates these from the traffic the suite itself produced, so every bug is one a test could have seen. Your code is never touched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kane CLI replays the suite against each bug&lt;/strong&gt;, with self-healing off, so a test can't quietly adapt to the broken page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An inverted Kane policy judges every run.&lt;/strong&gt; If every test passed while the app was broken, the verdict fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The coding agent gets each missed bug&lt;/strong&gt;, with a screenshot of the broken page. It may append only one plain-English step to a test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kane proves every fix twice.&lt;/strong&gt; The strengthened test must pass on the real app and fail on the broken one. Otherwise the change is reverted and the agent tries again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A Claude Code Stop hook and a CI workflow keep this in the normal loop: the agent can't call a task done while its tests are unchecked or the score is below the bar.&lt;/p&gt;

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

&lt;p&gt;On the agent-written suite for the demo shop, the score went from &lt;strong&gt;78.4% to 91.9%&lt;/strong&gt; after five proven fixes. On the unmodified TodoMVC app, also with an agent-written suite, it went from &lt;strong&gt;77.8% to 100%&lt;/strong&gt;. That's 13 fixes in total, each proven by two Kane runs.&lt;/p&gt;

&lt;p&gt;The most interesting result was on TodoMVC. Mutek hid the "Buy milk" row. With healing off, the test failed, and Kane's own triage reported it exactly:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The page says there are 3 items left but shows only 'Walk the dog' and 'Read a book'; the expected 'Buy milk' item is missing." (application issue, major, 0.96)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With Kane's default healing on, the same test re-authored itself, read the hidden row from the HTML (where it was still present), and passed. Mutek reports this as &lt;strong&gt;masked&lt;/strong&gt;: a bug the suite only missed because healing covered it. The agent's fix was one step:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## Verify Buy milk is the first visible row
Without adding, editing or re-entering any todo, verify the todo list currently displays exactly 3 visible rows and that the first visible row's text is exactly "Buy milk".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Kane proved it on the first attempt: pass on the real app, fail on the broken one, even with healing on.&lt;/p&gt;

&lt;p&gt;One more surprise: a replayed "exactly three items" check passed with four rows on screen.&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%2Fu6d9a89p2jfva5s1h2mi.jpg" 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%2Fu6d9a89p2jfva5s1h2mi.jpg" alt="Four rows on screen while an exactly-three-items check passed" width="600" height="370"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g @testmuai/kane-cli mutek-e2e
mutek run      &lt;span class="c"&gt;# simulate bugs, replay, score, report&lt;/span&gt;
mutek fix      &lt;span class="c"&gt;# hand each missed bug to your agent; Kane proves every new check&lt;/span&gt;
mutek check    &lt;span class="c"&gt;# exit 1 below the threshold, for hooks and CI&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You can inspect the committed results without any Kane credits: clone the repo and run &lt;code&gt;mutek check&lt;/code&gt;, &lt;code&gt;mutek list&lt;/code&gt;, &lt;code&gt;mutek report&lt;/code&gt; or &lt;code&gt;mutek run --dry-run&lt;/code&gt; in &lt;code&gt;demo/shop&lt;/code&gt;.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/da-b0s" rel="noopener noreferrer"&gt;
        da-b0s
      &lt;/a&gt; / &lt;a href="https://github.com/da-b0s/mutek" rel="noopener noreferrer"&gt;
        mutek
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Mutek&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Break the app on purpose to find out whether a green Kane suite means anything.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;▶ &lt;strong&gt;&lt;a href="https://youtu.be/RoSAEA-Eu94" rel="nofollow noopener noreferrer"&gt;Watch the 3-minute demo&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Coding agents write the app and its tests, and they are very good at writing tests that pass
A passing end-to-end test only matters if it would have failed when the app was broken, and
nobody checks that. Mutek does.&lt;/p&gt;
&lt;p&gt;A proxy sits between the browser and your app and breaks it in one small, realistic way at a time
a wrong total, a failed save reported as success, a missing button, another user's order in your
list. It never touches your code. &lt;a href="https://github.com/LambdaTest/kane-cli" rel="noopener noreferrer"&gt;Kane CLI&lt;/a&gt; replays your
suite against each broken version with healing off. Every bug the suite walks past goes to your
coding agent, which adds one plain-English assertion, and Kane proves it: the strengthened test
&lt;strong&gt;passes on the real app and fails on the broken one&lt;/strong&gt;…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/da-b0s/mutek" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Live reports: &lt;a href="https://da-b0s.github.io/mutek/" rel="noopener noreferrer"&gt;https://da-b0s.github.io/mutek/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits and what's next
&lt;/h2&gt;

&lt;p&gt;Mutek changes network traffic and the rendered page, not source code, so it measures whether the suite notices broken behaviour, not whether the code is correct. A full run of 40 bugs takes about 20 minutes of Kane time. Next on the list: running bugs in parallel, more fault types for GraphQL and WebSocket apps, and a pull-request check that posts the score and any new misses.&lt;/p&gt;

&lt;p&gt;I'd love to hear how you check your own end-to-end suites, and which kinds of bugs you'd want Mutek to try next.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>javascript</category>
      <category>testing</category>
    </item>
    <item>
      <title>Giving an AI agent a wallet it can’t empty</title>
      <dc:creator>B0s</dc:creator>
      <pubDate>Mon, 09 Nov 2026 20:49:38 +0000</pubDate>
      <link>https://dev.to/dab0s/giving-an-ai-agent-a-wallet-it-cant-empty-10ei</link>
      <guid>https://dev.to/dab0s/giving-an-ai-agent-a-wallet-it-cant-empty-10ei</guid>
      <description>&lt;p&gt;AI agents are starting to pay for things. On Sui, an agent can now pay a data service per request over HTTP 402, send USDC to a person, or swap coins, all in a second. That is useful. It is also a little terrifying: would you hand an agent your card?&lt;/p&gt;

&lt;p&gt;Not as it is. Three things are missing.&lt;/p&gt;

&lt;p&gt;Bounds the agent can't argue its way past. A system prompt saying "don't spend more than $2" is a suggestion, not a limit.&lt;br&gt;
A memory of what was worth buying. Without one, an agent pays for the same useless source every time it plans the same task.&lt;br&gt;
Receipts anyone can check. "Trust me, I spent it well" is not an audit trail.&lt;br&gt;
MANDATE is my answer: a prepaid card for AI agents.&lt;/p&gt;

&lt;p&gt;How it works&lt;br&gt;
You sign in with Google. No crypto wallet, no seed phrase: zkLogin turns the sign-in into a Sui address only you control, and your agent is created for you. You set its rules once (a weekly allowance, a maximum per payment, an end date, and an auto-freeze if you stop checking in) and sign them into a mandate, a Move object on Sui. Then you add a little USDC, and you chat with your agent in plain words.&lt;/p&gt;

&lt;p&gt;The key design choice is where the money lives. Your USDC sits inside the mandate, not in the agent's wallet. The only ways out are:&lt;/p&gt;

&lt;p&gt;pay and begin_swap, which the agent calls, and which check every limit in the same transaction that moves the money. Over a limit, the transaction aborts and nothing moves.&lt;br&gt;
withdraw, which only the owner can call, at any time, even after stopping the mandate.&lt;br&gt;
Swaps go through Aftermath's router, and the output is handed to the owner by finish_swap, enforced by a ticket with no abilities, so swap proceeds never land in the agent's wallet.&lt;/p&gt;

&lt;p&gt;The agent's keys are held by our server (encrypted), so it can act without you signing every purchase. Because the money and the rules are on chain, the worst a leaked key could do is spend within your limits, and you can stop it and take everything back from your own sign-in. I wrote that down plainly in the threat model rather than calling it "trustless".&lt;/p&gt;

&lt;p&gt;Tatum on the critical path&lt;br&gt;
MANDATE runs on Tatum's paid plan, and Tatum's Sui gRPC gateway is how the agent touches the chain: every mandate read, every transaction built, submitted and confirmed, and, importantly, every payment re-read and verified before it counts. The Explorer shows 100% of payments checked this way.&lt;/p&gt;

&lt;p&gt;Tatum also powers the data side: a free Tatum security check runs before any purchase (a sanctioned wallet gets answered without spending a cent), two of the paid data services are built on Tatum's Data API, and full task reports are archived on Walrus through Tatum's Storage API.&lt;/p&gt;

&lt;p&gt;Learning what's worth paying for, with Walrus Memory&lt;br&gt;
After a task, you rate each paid source: useful or useless. Each rating becomes a versioned memory in Walrus Memory, one namespace per service and task type. Before buying, the agent recalls those memories and computes a pessimistic usefulness score. A source that keeps disappointing gets skipped.&lt;/p&gt;

&lt;p&gt;Memory also drives policy. From your ratings the agent can suggest blocking a service. It can only suggest: the change happens when you approve it, which signs a transaction on Sui, and the approval itself is remembered with its digest.&lt;/p&gt;

&lt;p&gt;To measure this honestly, I replayed the same 50 tasks on mainnet twice, with real payments: once with memory off, once with memory on, starting empty. A deterministic rater scored both runs the same way.&lt;/p&gt;

&lt;p&gt;Memory off  Memory on   Change&lt;br&gt;
Wasted spend    1.25 USDC   0.18 USDC   -86%&lt;br&gt;
Cost per useful answer  0.05 USDC   0.03 USDC   -43%&lt;br&gt;
Useful answers  50  48&lt;br&gt;&lt;br&gt;
And because it's Walrus Memory, the memory isn't locked in my app. In the demo, Claude Code reads the same namespaces through the official Walrus Memory MCP server and explains what the agent bought and why it stopped paying for a service.&lt;/p&gt;

&lt;p&gt;What it can do today&lt;br&gt;
Buy information from data services that charge per request over HTTP 402 (MPP on Sui).&lt;br&gt;
Send money once or on a schedule ("send 5 USDC to Ada every week").&lt;br&gt;
Swap USDC into SUI, WAL or DEEP at the best route, once or every week.&lt;br&gt;
Show a receipt for every task: what it bought, what it skipped and why, and each payment linked to Suiscan.&lt;br&gt;
Everything is live on Sui mainnet with real USDC: over 220 payments so far, all public in the Explorer.&lt;/p&gt;

&lt;p&gt;What I'd do next&lt;br&gt;
All three data services today are mine; the next step is plugging in third-party MPP services. Swap output goes to your wallet rather than back into the mandate, because applying dollar limits to other coins needs a price feed. And the agent's keys could move off the server entirely with a wallet that supports scoped session keys.&lt;/p&gt;

&lt;p&gt;Try it&lt;br&gt;
Live app: &lt;a href="https://mandate-gules-five.vercel.app" rel="noopener noreferrer"&gt;https://mandate-gules-five.vercel.app&lt;/a&gt;&lt;br&gt;
Demo video: &lt;a href="https://youtu.be/jqGgQjtLf-E" rel="noopener noreferrer"&gt;https://youtu.be/jqGgQjtLf-E&lt;/a&gt;&lt;br&gt;
Explorer: &lt;a href="https://mandate-gules-five.vercel.app/explorer" rel="noopener noreferrer"&gt;https://mandate-gules-five.vercel.app/explorer&lt;/a&gt;&lt;br&gt;
Code and docs: &lt;a href="https://github.com/da-b0s/mandate" rel="noopener noreferrer"&gt;https://github.com/da-b0s/mandate&lt;/a&gt;&lt;br&gt;
Built for the Total Recall hackathon with &lt;a class="mentioned-user" href="https://dev.to/tatum_io"&gt;@tatum_io&lt;/a&gt;, @WalrusProtocol, @WalrusFoundation and @SuiNetwork.&lt;/p&gt;

</description>
      <category>sui</category>
      <category>ai</category>
      <category>web3</category>
      <category>blockchain</category>
    </item>
  </channel>
</rss>
