<?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: Muntasir Zin Alabadin</title>
    <description>The latest articles on DEV Community by Muntasir Zin Alabadin (@muntasir-za).</description>
    <link>https://dev.to/muntasir-za</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%2F4281360%2Fddaab8f0-f478-4732-8086-2f57477925a7.jpg</url>
      <title>DEV Community: Muntasir Zin Alabadin</title>
      <link>https://dev.to/muntasir-za</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muntasir-za"/>
    <language>en</language>
    <item>
      <title>What building a haunted-hospital API tester taught me about Kiro</title>
      <dc:creator>Muntasir Zin Alabadin</dc:creator>
      <pubDate>Thu, 03 Dec 2026 20:40:00 +0000</pubDate>
      <link>https://dev.to/muntasir-za/what-building-a-haunted-hospital-api-tester-taught-me-about-kiro-n88</link>
      <guid>https://dev.to/muntasir-za/what-building-a-haunted-hospital-api-tester-taught-me-about-kiro-n88</guid>
      <description>&lt;p&gt;This post was written as part of the Kiroween 2026 hackathon.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;Sanitarium Chaos&lt;/strong&gt; for Kiroween 2026, using the Kiro IDE: an API resilience tester styled as a haunted 1980s hospital. You admit an endpoint as a patient, hostile inputs flatline it, an AI autopsy explains why, and &lt;strong&gt;Verify Cure&lt;/strong&gt; replays the exact payload that broke it. The room decays as results come in (sterile, stained, dimming, dark), and the EKG beats only from recorded results.&lt;/p&gt;

&lt;p&gt;This post is about how Kiro shaped the build, including what did not pay off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Specs beat vibe coding where it counts
&lt;/h2&gt;

&lt;p&gt;I used Kiro's spec workflow: requirements, then design, then tasks. The design numbered its &lt;strong&gt;correctness properties&lt;/strong&gt;, and each one became a single property-based test with fast-check. That mapping was the most valuable thing Kiro gave me. Two of those tests caught bugs I would never have written an example for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A payload with an own &lt;code&gt;__proto__: null&lt;/code&gt; key crashed the Prisma JSON serializer.&lt;/li&gt;
&lt;li&gt;A stalled process could keep writing into an Examination that had already been marked interrupted.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With vibe coding I would have shipped both. The spec forced me to state the invariant first, and the property test then hunted for the counterexample.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steering kept the app honest
&lt;/h2&gt;

&lt;p&gt;I wrote five steering files: product, tech, security, testing and UI/UX. They held rules the agent kept applying without me repeating them: every result is labeled "controlled in-process simulation", the UI never claims anything is "secure", untrusted AI output is treated as data, and every color pair is declared and contrast-checked. A CI check even bans one word from the UI strings. Written once as steering, those rules applied to hundreds of changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hooks and a custom agent
&lt;/h2&gt;

&lt;p&gt;I configured agent hooks to run lint and related tests on backend saves, contracts tests plus a frontend typecheck when shared code changes, and Prisma validation on schema edits.&lt;/p&gt;

&lt;p&gt;I also created a read-only &lt;code&gt;security-review&lt;/code&gt; custom agent from my security checklist. Its one run found problems in my CLI that I had missed: URLs with credentials could be written to a saved file, a saved file could aim a replay at internal addresses, and redirects could leak custom headers. I fixed all three and recorded the run in the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;Full spec and test rigor cost a lot of time and tokens, and most of it protected a &lt;em&gt;simulated&lt;/em&gt; target: the three hosted demo patients are rule tables inside the backend. That made a nice demo but a weak tool. The fix was a small CLI that tests your own API from your own machine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx sanitarium-cli examine http://localhost:3000/your-route --body &lt;span class="s1"&gt;'{"key":"value"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Crashing payloads are saved to a "morgue" file, and &lt;code&gt;sanitarium-cli replay&lt;/code&gt; fails a CI build if an old crash comes back. It found six crashes in one of my own NestJS endpoints, and its replay caught that my first fix was incomplete. Next time I would start with that useful core and spend spec effort only where correctness is hard.&lt;/p&gt;

&lt;p&gt;I used an MCP &lt;code&gt;fetch&lt;/code&gt; server only for small lookups (checking npm package names), and I did not use Kiro powers.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;App: &lt;a href="https://sanitarium-web.onrender.com/" rel="noopener noreferrer"&gt;https://sanitarium-web.onrender.com/&lt;/a&gt; (the free backend takes 20 to 30 seconds to wake up)&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/Muntasir-Zin-Alabadin/Sanitarium-Chaos" rel="noopener noreferrer"&gt;https://github.com/Muntasir-Zin-Alabadin/Sanitarium-Chaos&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;CLI: &lt;a href="https://www.npmjs.com/package/sanitarium-cli" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/sanitarium-cli&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Written for the Kiroween 2026 hackathon. #KiroweenHackathon26&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>hackathon</category>
      <category>testing</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
