<?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: Rehaan Khan</title>
    <description>The latest articles on DEV Community by Rehaan Khan (@rak2315).</description>
    <link>https://dev.to/rak2315</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%2F3943539%2F0dff0c4d-d353-45dc-a268-c8b53856ab46.jpg</url>
      <title>DEV Community: Rehaan Khan</title>
      <link>https://dev.to/rak2315</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rak2315"/>
    <language>en</language>
    <item>
      <title>I built a forensic file examiner with Kiro, and let the spec argue back</title>
      <dc:creator>Rehaan Khan</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:44:28 +0000</pubDate>
      <link>https://dev.to/rak2315/i-built-a-forensic-file-examiner-with-kiro-and-let-the-spec-argue-back-314m</link>
      <guid>https://dev.to/rak2315/i-built-a-forensic-file-examiner-with-kiro-and-let-the-spec-argue-back-314m</guid>
      <description>&lt;p&gt;&lt;em&gt;Built for the Kiroween 2026 hackathon (Resurrection category). #KiroweenHackathon26&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Files outlive the software that wrote them. An image saved in a format nothing installed today can open is lost, even though every byte is intact. The picture is still in there.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;NECROPSY&lt;/strong&gt;. You drop in a file nothing can open. It works out how the bytes are laid out as an image, proves that layout by arithmetic, and gives you the picture back. When the bytes allow more than one answer, it shows you every answer and refuses to guess.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live: &lt;a href="https://necropsy.vercel.app" rel="noopener noreferrer"&gt;https://necropsy.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/RAK2315/necropsy" rel="noopener noreferrer"&gt;https://github.com/RAK2315/necropsy&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo: &lt;a href="https://youtu.be/Szk8CkFRrTg" rel="noopener noreferrer"&gt;https://youtu.be/Szk8CkFRrTg&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This post is about how Kiro shaped the build. In short: the spec stopped being a plan and became the project's memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one rule: prove, don't guess
&lt;/h2&gt;

&lt;p&gt;A layout is accepted only if decoding its data region gives exactly &lt;code&gt;row_stride × height&lt;/code&gt; bytes and consumes the whole region, with nothing left over. That check is binary. No score, no threshold, no model deciding what looks right.&lt;/p&gt;

&lt;p&gt;Every file ends in one of three outcomes: &lt;strong&gt;RESOLVED&lt;/strong&gt; (one layout closes), &lt;strong&gt;UNRESOLVED_AMBIGUITY&lt;/strong&gt; (several close, and NECROPSY shows them all) or &lt;strong&gt;FAILED&lt;/strong&gt; (nothing closes, and you see every reading it tried and why it failed).&lt;/p&gt;

&lt;p&gt;Try &lt;code&gt;mystery_d&lt;/code&gt; on the live site. It is 104 bytes with no header. 18 different images fit those bytes exactly. NECROPSY shows all 18 and picks none, because the bytes don't contain the information needed to choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Specs as a Decision Record
&lt;/h2&gt;

&lt;p&gt;Kiro wrote everything that ships, through five specs: the engine, the UI, an adversarial test of the gate, a real-file corpus, and an MCP server. Each has requirements in EARS form, a design, and tasks.&lt;/p&gt;

&lt;p&gt;The most useful thing I did was put a &lt;strong&gt;Decision Record&lt;/strong&gt; at the top of the engine requirements. Every time a measurement forced a design change, it went in as a numbered item: what changed, the number behind it, and the alternatives not taken. It ended at 27 items.&lt;/p&gt;

&lt;p&gt;Some of them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The gate let wrong answers through.&lt;/strong&gt; The first decoder stopped when its output was full and never checked for leftover input. On one sample, 224 of 1,521 width and height pairs below 40 "closed". Closure now requires full consumption of the data region.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A score picked the wrong image.&lt;/strong&gt; I measured row coherence as a way to rank candidates. On &lt;code&gt;mystery_d&lt;/code&gt; a false image scored 0.1646 against the true one's 0.3342, and lower reads as &lt;em&gt;more&lt;/em&gt; coherent. So coherence is shown but never decides anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;List order decided the answer.&lt;/strong&gt; The right answer for one file surfaced only because a strategy happened to be listed first. Now every phase collects every closing layout before deciding.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the reasons lived in the spec, Kiro had them in front of it every time a later task touched old ground. Decision 27 got made without re-arguing the first 26.&lt;/p&gt;

&lt;h2&gt;
  
  
  Property-based tests that found real bugs
&lt;/h2&gt;

&lt;p&gt;The engine design states 17 correctness properties, such as "Never raises", "Closure soundness" and "Coherence cannot change the outcome". Each has a tagged Hypothesis test: 35 &lt;code&gt;@given&lt;/code&gt; tests across 13 files.&lt;/p&gt;

&lt;p&gt;One property, "the emitted spec reproduces the engine", failed on a malformed TIFF that Hypothesis generated. That turned into a Decision Record item: a file that breaks its own format's rules gets a spec for that one file, not a rule for the whole format.&lt;/p&gt;

&lt;h2&gt;
  
  
  Steering, hooks and custom agents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Steering:&lt;/strong&gt; two files always on (project scope; parsers must return structured errors and never raise), and three path-scoped ones for the engine, tests and UI. The engine file says "standard library only", and the engine has no third-party dependencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A hook:&lt;/strong&gt; every file Kiro saves is appended to &lt;code&gt;docs/KIRO-LOG.md&lt;/code&gt; with the time and git HEAD. 634 rows, a full audit trail of the build.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom agents:&lt;/strong&gt; &lt;code&gt;dev&lt;/code&gt; implements one task and commits it, &lt;code&gt;reviewer&lt;/code&gt; can run tests but cannot write, and &lt;code&gt;spec&lt;/code&gt; can only write inside &lt;code&gt;.kiro/specs/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Closing the loop: a spec that builds a parser
&lt;/h2&gt;

&lt;p&gt;For every file it recovers, NECROPSY writes a Kiro spec for the format: &lt;code&gt;requirements.md&lt;/code&gt;, &lt;code&gt;design.md&lt;/code&gt; and a pytest acceptance test. It deliberately ships without a parser.&lt;/p&gt;

&lt;p&gt;To test that idea, I took a real 14,313-byte RLE-compressed PCX from Pillow's test suite, emitted its spec, and gave a fresh Kiro session that folder and nothing else. Kiro wrote the parser from the spec alone. All 4 tests pass, and the decoded pixels are identical to Pillow's.&lt;/p&gt;

&lt;p&gt;That was my favourite moment of the build. One tool's output became another Kiro session's input, and it worked first time.&lt;/p&gt;

&lt;h2&gt;
  
  
  MCP and a Kiro Power
&lt;/h2&gt;

&lt;p&gt;NECROPSY also runs as an MCP server with two tools, &lt;code&gt;analyse&lt;/code&gt; and &lt;code&gt;emit_spec&lt;/code&gt;, packaged as a Kiro Power with a skill telling the agent to report every candidate and choose none. I installed it in an empty workspace and asked Kiro about &lt;code&gt;mystery_d&lt;/code&gt;. It listed all 18 candidates and chose none.&lt;/p&gt;

&lt;p&gt;One practical lesson: Kiro truncates tool results over 30,000 characters. The &lt;code&gt;analyse&lt;/code&gt; result drops pixel buffers to stay under it, and the largest result in the corpus is 25,890 characters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it work on real files?
&lt;/h2&gt;

&lt;p&gt;81 files from the test suites of six image decoders (Pillow, libtiff, Go &lt;code&gt;image&lt;/code&gt;, ImageMagick, SDL_image, imagers). Of the 26 in scope, 23 come back pixel-identical to Pillow. A second implementation, written from the requirements text alone and sharing no code with the engine, reproduces the engine's results on all nine samples.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting with Kiro
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Write the measurement next to every decision.&lt;/strong&gt; Your spec becomes something the agent can reason from, not just a checklist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn your invariants into property tests early.&lt;/strong&gt; They find the cases you would never write by hand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the agent's work from outside.&lt;/strong&gt; Kiro wrote the code and the tests, so I added a separate implementation from the spec alone to compare against.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make "I can't tell" a valid answer.&lt;/strong&gt; Here it was the feature, not a limitation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thanks for reading. Try it at &lt;a href="https://necropsy.vercel.app" rel="noopener noreferrer"&gt;https://necropsy.vercel.app&lt;/a&gt;, starting with &lt;code&gt;mystery_d&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>ai</category>
      <category>python</category>
      <category>hackathon</category>
    </item>
    <item>
      <title>I built my own uptime monitor because UptimeRobot felt cluttered - here's what I learned</title>
      <dc:creator>Rehaan Khan</dc:creator>
      <pubDate>Thu, 21 May 2026 07:31:32 +0000</pubDate>
      <link>https://dev.to/rak2315/i-built-my-own-uptime-monitor-because-uptimerobot-felt-cluttered-heres-what-i-learned-5ed2</link>
      <guid>https://dev.to/rak2315/i-built-my-own-uptime-monitor-because-uptimerobot-felt-cluttered-heres-what-i-learned-5ed2</guid>
      <description>&lt;h1&gt;
  
  
  I built my own uptime monitor because UptimeRobot felt cluttered — here's what I learned
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;I've been using UptimeRobot for a while. It works, but every time I opened it I felt like I was looking at a dashboard designed for enterprise teams. I just wanted to know: is my site up? If not, tell me. That's it.&lt;/p&gt;

&lt;p&gt;So I built my own.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;PingBoard — uptime monitoring with public status pages. Monitors URLs on a schedule, sends alerts when things go down, and generates a clean shareable status page for your users.&lt;/p&gt;

&lt;p&gt;5 monitor types: HTTP, keyword, DNS, API, and heartbeat.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Next.js 14&lt;/strong&gt; App Router + TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Convex&lt;/strong&gt; — backend, DB, cron jobs, realtime subscriptions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clerk&lt;/strong&gt; — auth&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resend&lt;/strong&gt; — email alerts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lemon Squeezy&lt;/strong&gt; — payments (Stripe isn't available in India)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framer Motion&lt;/strong&gt; — animations&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The interesting parts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Realtime status pages without WebSockets
&lt;/h3&gt;

&lt;p&gt;Convex's reactive queries mean the public status page updates instantly when a monitor goes down — no polling, no manual WebSocket management. Just a &lt;code&gt;useQuery&lt;/code&gt; hook and it works.&lt;/p&gt;

&lt;h3&gt;
  
  
  The ping loop
&lt;/h3&gt;

&lt;p&gt;A Convex cron fires every 30 seconds, finds monitors that are due for a check, and schedules individual check actions per monitor. Each check runs independently — one slow site doesn't block others.&lt;/p&gt;

&lt;h3&gt;
  
  
  Heartbeat monitoring
&lt;/h3&gt;

&lt;p&gt;Instead of PingBoard pinging your service, your service pings PingBoard. Useful for cron jobs and background workers. If PingBoard doesn't hear from your job within the expected interval × 1.5, it opens an incident.&lt;/p&gt;

&lt;h3&gt;
  
  
  Payments from India
&lt;/h3&gt;

&lt;p&gt;Stripe isn't available in India so I went with Lemon Squeezy. Acts as merchant of record — handles VAT, GST, tax compliance automatically. Checkout was live in a day.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Started with Convex from day one — initially considered Supabase but switched early and never looked back&lt;/li&gt;
&lt;li&gt;Underestimated how much time auth takes — Clerk saved probably 2 weekends&lt;/li&gt;
&lt;li&gt;Should have verified the Resend domain earlier (still in sandbox mode — alerts only reach verified addresses)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it is now
&lt;/h2&gt;

&lt;p&gt;Live at &lt;a href="https://ping-board-monitor.vercel.app" rel="noopener noreferrer"&gt;ping-board-monitor.vercel.app&lt;/a&gt;. Free tier, no credit card. Built for myself, a friend convinced me to open it up.&lt;/p&gt;

&lt;p&gt;Would love feedback — especially from devs who've felt the same frustration with existing tools.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>buildinpublic</category>
      <category>saas</category>
    </item>
  </channel>
</rss>
