<?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: vishnu v</title>
    <description>The latest articles on DEV Community by vishnu v (@vishnu_v_3bff7cb52fc6699b).</description>
    <link>https://dev.to/vishnu_v_3bff7cb52fc6699b</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%2F4275489%2Fbd6c407f-677c-454f-ba8e-b41a6db1b4b0.png</url>
      <title>DEV Community: vishnu v</title>
      <link>https://dev.to/vishnu_v_3bff7cb52fc6699b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vishnu_v_3bff7cb52fc6699b"/>
    <language>en</language>
    <item>
      <title>I resurrected the tally stick that burned down Parliament, and built it with Kiro</title>
      <dc:creator>vishnu v</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:35:59 +0000</pubDate>
      <link>https://dev.to/vishnu_v_3bff7cb52fc6699b/i-resurrected-the-tally-stick-that-burned-down-parliament-and-built-it-with-kiro-1kg9</link>
      <guid>https://dev.to/vishnu_v_3bff7cb52fc6699b/i-resurrected-the-tally-stick-that-burned-down-parliament-and-built-it-with-kiro-1kg9</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;This post was written as part of the &lt;strong&gt;Kiroween 2026 hackathon&lt;/strong&gt; (category: Resurrection).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Live app:&lt;/strong&gt; &lt;a href="https://vishnu2663.github.io/Stock-Foil-Kiro/" rel="noopener noreferrer"&gt;https://vishnu2663.github.io/Stock-Foil-Kiro/&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Code (MIT):&lt;/strong&gt; &lt;a href="https://github.com/Vishnu2663/Stock-Foil-Kiro" rel="noopener noreferrer"&gt;https://github.com/Vishnu2663/Stock-Foil-Kiro&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Demo video (under 3 minutes):&lt;/strong&gt; &lt;a href="https://youtu.be/5Yy2N4oPu1c" rel="noopener noreferrer"&gt;https://youtu.be/5Yy2N4oPu1c&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  "Boss, one day's wage is less."
&lt;/h2&gt;

&lt;p&gt;That line opens my demo video, and it is a conversation that happens on building sites every payday. The worker says he worked 22 days. The employer's register says 21. Nobody is necessarily lying, but nobody can prove anything either. It's one person's word against another's, and the worker usually loses.&lt;/p&gt;

&lt;p&gt;Millions of daily-wage workers (construction, farms, domestic work, small workshops) are paid in cash with no record at all. Many don't own a smartphone. Some can't read. Most "digital" fixes assume both.&lt;/p&gt;

&lt;h2&gt;
  
  
  The dead technology: the split tally stick
&lt;/h2&gt;

&lt;p&gt;For about 700 years, England's Exchequer kept its accounts on &lt;strong&gt;split tally sticks&lt;/strong&gt;. A hazel stick was notched for the amount, then split lengthwise. The creditor kept one half, the &lt;strong&gt;stock&lt;/strong&gt;, and the debtor kept the other, the &lt;strong&gt;foil&lt;/strong&gt;. To cheat, you'd have to fake a match along the wood grain, which nobody could do. It was a two-party record that neither side could change alone.&lt;/p&gt;

&lt;p&gt;In October 1834 the government burned the obsolete sticks in the furnaces under the House of Lords. The chimneys overheated, and most of the Palace of Westminster burned down.&lt;/p&gt;

&lt;p&gt;The tally stick died that night. But the problem it solved never went away, so for Kiroween's &lt;strong&gt;Resurrection&lt;/strong&gt; category I brought it back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stock &amp;amp; Foil: the tally stick, on paper
&lt;/h2&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%2Flzawvfy66eusx636i9ug.png" 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%2Flzawvfy66eusx636i9ug.png" alt="The printed card: worker half (stock) and employer half (foil), split along a wavy cut" width="800" height="590"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Print and cut.&lt;/strong&gt; Each A4 card has two halves separated by a &lt;strong&gt;wavy cut that's unique to that card&lt;/strong&gt;. Each half has corner squares, a QR code, a calendar of punch circles and advance tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Punch both halves, every day.&lt;/strong&gt; Stack the halves and punch the day's circle through both with an ordinary office punch. The worker keeps the stock, the employer keeps the foil.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scan on payday.&lt;/strong&gt; Any phone reads both halves and checks that they belong together: same card, a SHA-256 pairing tag, the wavy cut fits, and the holes were punched together (within 1.2 mm). It pays only the days punched on &lt;strong&gt;both&lt;/strong&gt; halves: &lt;code&gt;days √ó wage ‚àí advances = total&lt;/code&gt;. A day punched on one half only is flagged as &lt;strong&gt;disputed&lt;/strong&gt; and isn't paid until both sides agree.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hand over and confirm.&lt;/strong&gt; The app shows which notes to hand over and reads the result aloud in the worker's language. The worker presses an inked thumb on both halves.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The worker needs no phone and doesn't need to read. The app is free and works offline after the first visit. There's no server and no account.&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%2Fc1xsb6zie2277kix4skv.png" 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%2Fc1xsb6zie2277kix4skv.png" alt="Payday scan on a phone" width="264" height="1248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I built it with Kiro
&lt;/h2&gt;

&lt;p&gt;I built the whole thing in &lt;strong&gt;Kiro IDE&lt;/strong&gt;, from an empty folder. Everything Kiro used is committed in the repo's &lt;code&gt;.kiro/&lt;/code&gt; folder: 17 specs, 6 steering files, 6 agent hooks, 2 custom agents and a Playwright MCP server.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The brief first, then steering
&lt;/h3&gt;

&lt;p&gt;Before any code, I wrote a detailed build brief covering the users, the 1834 story, the hard rules, exact card layout and scanner numbers. (Full disclosure: I drafted that brief with an AI assistant outside Kiro, then committed it as &lt;code&gt;docs/BUILD_BRIEF.md&lt;/code&gt;.)&lt;/p&gt;

&lt;p&gt;Then steering made sure Kiro never forgot it. &lt;code&gt;product.md&lt;/code&gt; is set to &lt;em&gt;always&lt;/em&gt; include, and it pulls in the whole brief with &lt;code&gt;#[[file:docs/BUILD_BRIEF.md]]&lt;/code&gt;. The strategy that made the biggest difference was splitting rules by scope:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Always-on steering&lt;/strong&gt; for rules that must never break: money in integer minor units, "never silently wrong", no names ever sent to AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;fileMatch steering&lt;/strong&gt; for area rules. &lt;code&gt;testing.md&lt;/code&gt; loads only when Kiro touches &lt;code&gt;src/core&lt;/code&gt;, &lt;code&gt;src/vision&lt;/code&gt; or &lt;code&gt;tests&lt;/code&gt;, and &lt;code&gt;design.md&lt;/code&gt; loads only for &lt;code&gt;src/ui&lt;/code&gt;. That kept the context small and the answers focused.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Specs instead of vibes
&lt;/h3&gt;

&lt;p&gt;Phase 0 (scaffold, steering, hooks) was vibe coding, and that was fine. Everything with numbers in it became a spec, each with &lt;code&gt;requirements.md&lt;/code&gt;, &lt;code&gt;design.md&lt;/code&gt; and &lt;code&gt;tasks.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To be honest about it: my first build of the core phases was done in one big pass, and some of those specs were written to match the code afterwards. That taught me the lesson. After that, every fix started by &lt;strong&gt;changing the spec first&lt;/strong&gt;. When a webcam recording showed a failed scan, the &lt;code&gt;payday-scan&lt;/code&gt; spec got new requirements (R6, R7) &lt;em&gt;before&lt;/em&gt; any code changed. When I wanted a faster camera, I added a new &lt;code&gt;scanner-speed&lt;/code&gt; spec with a benchmark task first. A frame with the card in view went from &lt;strong&gt;180 ms to 47 ms&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Specs paid off most where numbers matter: the punch threshold, the "unsure" band, the 1.2 mm tolerance. Each one traces back to a written requirement, so I could always answer "why is this value 1.2?".&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Hooks that did the boring work
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hook&lt;/th&gt;
&lt;th&gt;Trigger&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Property tests on save&lt;/td&gt;
&lt;td&gt;save in &lt;code&gt;src/core&lt;/code&gt; / &lt;code&gt;src/vision&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;runs the related property tests and reports the counterexample&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;i18n sync&lt;/td&gt;
&lt;td&gt;save in &lt;code&gt;src/ui&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;extracts new UI strings and checks all language packs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guard .kiro&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.gitignore&lt;/code&gt; edited&lt;/td&gt;
&lt;td&gt;makes sure &lt;code&gt;.kiro&lt;/code&gt; is never ignored (a submission rule!)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kiro log&lt;/td&gt;
&lt;td&gt;spec task finished&lt;/td&gt;
&lt;td&gt;appends a dated entry to the build log&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pre-submit audit&lt;/td&gt;
&lt;td&gt;manual&lt;/td&gt;
&lt;td&gt;checks every submission requirement, pass/fail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live check (MCP)&lt;/td&gt;
&lt;td&gt;manual&lt;/td&gt;
&lt;td&gt;re-runs the Playwright MCP check of the live app&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;strong&gt;property-tests-on-save&lt;/strong&gt; hook changed how I worked. I'd save a vision file and know within seconds whether I had broken the scanner on tilted, blurry photos.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Custom agents and parallel sub-agents
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;scanner-reviewer&lt;/code&gt;&lt;/strong&gt; reviews every change in &lt;code&gt;src/vision&lt;/code&gt; against one rule: &lt;em&gt;never silently wrong&lt;/em&gt;. An uncertain reading must come back as "unsure", never a guess.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;translator&lt;/code&gt;&lt;/strong&gt; fills the UI language packs. I ran it as &lt;strong&gt;parallel sub-agents, one per language&lt;/strong&gt; (Hindi, Bengali, Tamil, Spanish, Swahili), 482 strings each on the first pass. A merge script rejects any translation whose &lt;code&gt;{0}&lt;/code&gt; placeholders don't match. All packs sit at 801 of 801 strings.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Property-based testing found bugs I never would have
&lt;/h3&gt;

&lt;p&gt;This is my favourite part. You can't hand-test a computer vision scanner against every phone, light and angle. So the app has a &lt;strong&gt;photo simulator&lt;/strong&gt;: it renders the real printed card, then "photographs" it with tilt, perspective, blur, JPEG compression, glare, dim light and fingers in the way. With &lt;a href="https://github.com/dubzzz/fast-check" rel="noopener noreferrer"&gt;fast-check&lt;/a&gt;, the scanner's answer is compared to the truth. That's 188 tests in 44 files.&lt;/p&gt;

&lt;p&gt;Some real bugs it caught:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A forged hole passed the "punched together" check.&lt;/strong&gt; With 4 holes, my outlier logic removed an &lt;em&gt;honest&lt;/em&gt; hole and kept the fake one, which was 1.6 mm off. A random case found it in seconds.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Glare hid punches.&lt;/strong&gt; 15 of 200 simulated phone frames read a punched hole as blank &lt;em&gt;with full confidence&lt;/em&gt;. Now any spot with a reflection is "unsure", and it's &lt;strong&gt;0 of 200&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A finger over the cut was traced as the edge,&lt;/strong&gt; which turned an honest pair into "Halves do not match".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these would have shown up in a few hand-written unit tests. For an app that decides someone's wage, "never silently wrong" has to be tested, not just promised.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. MCP: testing the real, deployed app from chat
&lt;/h3&gt;

&lt;p&gt;My first MCP config was blocked by a workspace permission rule, so early on Kiro tested the scan flow through small DevTools scripts with Chrome's fake camera. Later I added the &lt;strong&gt;Playwright MCP server&lt;/strong&gt; in &lt;code&gt;.kiro/settings/mcp.json&lt;/code&gt;, specced it like everything else (&lt;code&gt;.kiro/specs/live-mcp-check/&lt;/code&gt;), and had Kiro check the &lt;strong&gt;live GitHub Pages site&lt;/strong&gt; straight from chat: open the app, go to Payday scan, upload both halves of each demo card set, and read the verdict.&lt;/p&gt;

&lt;p&gt;All four demo sets came back as expected at both phone (390 px) and desktop (1280 px) widths, &lt;strong&gt;8 of 8 PASS&lt;/strong&gt;: a genuine pair (‚Çπ15,200), a pair with a disputed extra hole, halves from two different cards (rejected) and a two-shift card (‚Çπ14,250). The report and screenshots are in &lt;code&gt;docs/MCP_LIVE_CHECK.md&lt;/code&gt;, and a manual hook re-runs it with one click. No test script to write or maintain.&lt;/p&gt;

&lt;p&gt;I stayed in Kiro IDE and didn't try Kiro CLI, Web or Crew. Those are next on my list.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Write the rules down once and let steering carry them.&lt;/strong&gt; I stopped repeating "money is in integer paise" in every chat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Change the spec before the code.&lt;/strong&gt; Every time I skipped this, I paid for it later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Property tests plus a simulator&lt;/strong&gt; turned "I think the scanner works" into "it works on 200 of 200 tilted, blurry, glary photos, and here's the number".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Old ideas still work.&lt;/strong&gt; A 700-year-old trick needed only paper, a punch and a phone to solve a problem that apps built for people with smartphones have missed.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live app:&lt;/strong&gt; &lt;a href="https://vishnu2663.github.io/Stock-Foil-Kiro/" rel="noopener noreferrer"&gt;https://vishnu2663.github.io/Stock-Foil-Kiro/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Demo cards (no printer needed):&lt;/strong&gt; &lt;a href="https://github.com/Vishnu2663/Stock-Foil-Kiro/tree/main/demo-cards" rel="noopener noreferrer"&gt;https://github.com/Vishnu2663/Stock-Foil-Kiro/tree/main/demo-cards&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How Kiro was used (full write-up):&lt;/strong&gt; &lt;a href="https://github.com/Vishnu2663/Stock-Foil-Kiro/blob/main/docs/HOW_KIRO_WAS_USED.md" rel="noopener noreferrer"&gt;https://github.com/Vishnu2663/Stock-Foil-Kiro/blob/main/docs/HOW_KIRO_WAS_USED.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Written as part of the Kiroween 2026 hackathon. Built with Kiro.&lt;/em&gt; üéÉ&lt;/p&gt;

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