<?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: Nsubuga Derrick</title>
    <description>The latest articles on DEV Community by Nsubuga Derrick (@nsubuga_derrick_037f385af).</description>
    <link>https://dev.to/nsubuga_derrick_037f385af</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%2F3648497%2F7f69e8eb-551f-48f9-a1ea-2de33d9fdf21.png</url>
      <title>DEV Community: Nsubuga Derrick</title>
      <link>https://dev.to/nsubuga_derrick_037f385af</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nsubuga_derrick_037f385af"/>
    <language>en</language>
    <item>
      <title>I built eight Ugandan instruments into a 68 KB phone app — with Kiro and a cultural honesty system</title>
      <dc:creator>Nsubuga Derrick</dc:creator>
      <pubDate>Fri, 04 Dec 2026 21:53:15 +0000</pubDate>
      <link>https://dev.to/nsubuga_derrick_037f385af/i-built-eight-ugandan-instruments-into-a-68-kb-phone-app-with-kiro-and-a-cultural-honesty-system-2703</link>
      <guid>https://dev.to/nsubuga_derrick_037f385af/i-built-eight-ugandan-instruments-into-a-68-kb-phone-app-with-kiro-and-a-cultural-honesty-system-2703</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my Kiroween 2026 hackathon submission. The project is &lt;a href="https://omubala-studio.pages.dev" rel="noopener noreferrer"&gt;Omubala Studio&lt;/a&gt; — an offline PWA where you can play eight traditional Ugandan instruments synthesised live in your browser.&lt;/em&gt;&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%2F0xvjcz9mh1u5qi1srs8e.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%2F0xvjcz9mh1u5qi1srs8e.jpg" alt="Omubala Studio — desktop stage with drums, xylophone and adungu, four spirit dancers in violet glow" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;I want to start with the thing I was most anxious about.&lt;/p&gt;

&lt;p&gt;Uganda has eight instruments I tried to bring into this app: the engoma and engalabi drums, the amadinda and embaire xylophones, the endere flute, the adungu harp, the akogo thumb piano, the enkwanzi panpipe, the ensaasi shaker, and the endingidi fiddle. I am not a Ugandan musician. I do not have a cultural consultant. I had two weeks, a laptop, and a Kiro IDE licence.&lt;/p&gt;

&lt;p&gt;That gap — between wanting to represent something and not being qualified to — is where the whole technical approach grew from.&lt;/p&gt;




&lt;h2&gt;
  
  
  The TBC system
&lt;/h2&gt;

&lt;p&gt;Before I wrote a single line of app code, I added a steering file: &lt;code&gt;culture-and-ethics.md&lt;/code&gt;. It told every Kiro session:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Any tuning, rhythm, instrument name or Luganda label must carry &lt;code&gt;"status": "TBC"&lt;/code&gt; until validated by a Ugandan musician or cultural institution.&lt;/li&gt;
&lt;li&gt;No consultant is named until one confirms in writing.&lt;/li&gt;
&lt;li&gt;Nothing leaves the device.&lt;/li&gt;
&lt;li&gt;The dancers use generic animation, not a traditional dance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Steering files in Kiro are always-on instruction documents. Every session — every spec task, every code change, every agent dispatch — read that file. It was not a checklist I'd go back to. It was part of the room.&lt;/p&gt;

&lt;p&gt;I also built a custom read-only agent: &lt;code&gt;cultural-data-reviewer&lt;/code&gt;. It has two tools: &lt;code&gt;fs_read&lt;/code&gt; and &lt;code&gt;grep&lt;/code&gt;. It scans &lt;code&gt;data/&lt;/code&gt; and &lt;code&gt;docs/&lt;/code&gt; looking for missing TBC markers, invented endorsements, future instruments described as playable, and any hint of analytics or copyrighted material. It reports. It never edits.&lt;/p&gt;

&lt;p&gt;The agent caught two near-misses across five iterations. Both times, a session had described a sound as "authentic" in a doc comment. Both times, the agent flagged it. I changed the word to "synthesised approximation (TBC)".&lt;/p&gt;

&lt;p&gt;That is the whole mechanism: a steering file that sets the rule, and a reviewer that enforces it. No novel architecture. What it produced was an app that the About screen can accurately describe — here is what we know, here is what we do not, here is the full TBC list.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why spec-first actually changed the design
&lt;/h2&gt;

&lt;p&gt;I have used AI coding tools in vibe mode: describe what you want, iterate, patch bugs, go. It moves fast. It also leaves gaps that you only find at runtime.&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%2F1ssap21q4hlizk0dzuxv.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%2F1ssap21q4hlizk0dzuxv.jpg" alt="Phone portrait — drums active, two lead dancers in violet glow" width="279" height="573"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Kiro's spec workflow separates three documents: &lt;code&gt;requirements.md&lt;/code&gt;, &lt;code&gt;design.md&lt;/code&gt;, &lt;code&gt;tasks.md&lt;/code&gt;. You write them in order, with the tool running analysis between rounds.&lt;/p&gt;

&lt;p&gt;The analysis on round 1 found that my xylophone had no minimum key count. I set a valid range of 8 to 49 keys. That became Requirement 2.7 and a data validation rule. Fine.&lt;/p&gt;

&lt;p&gt;Round 2 asked what should happen when the xylophone data file is rejected. My first answer was "error out". But with five iterations planned and instrument data still being written, an all-or-nothing loader was going to break the app every time I touched a JSON file. I changed the answer: the app keeps running, that instrument is just disabled. The function &lt;code&gt;loadTargets&lt;/code&gt; now returns &lt;code&gt;{targets, errors}&lt;/code&gt; instead of throwing. The other instruments keep working.&lt;/p&gt;

&lt;p&gt;That design change — from one line of text in a requirements doc — prevented real runtime failures later. I know because on iteration 3, I added ensaasi with a malformed data stub. The xylophone test kept passing, the ensaasi just did not appear. The loader held.&lt;/p&gt;




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

&lt;p&gt;The design document defines 90 numbered correctness properties. Each has its own &lt;code&gt;*.pNN.test.ts&lt;/code&gt; file. Fast-check runs each one 100 times.&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%2Fibrwm98olopcu7k44frh.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%2Fibrwm98olopcu7k44frh.jpg" alt="Tablet view — all 8 instrument pickers with TBC badges, 4 dancers, drums + xylophone + adungu active" width="430" height="573"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Properties do not replace thinking — you still have to decide what should be true. But they expose the cases you did not think to try.&lt;/p&gt;

&lt;p&gt;Three things fast-check found that unit tests would have missed:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Voice eviction edge case.&lt;/strong&gt; The voice pool caps at 16 voices. Property 4 tests that after playing 17+ notes rapidly, exactly 16 voices are active and the pool is consistent. Fast-check kept generating a timing edge where two voices finished within the same 15 ms window, and the eviction logic counted one of them twice. The fix was a one-line guard on the release schedule. I would not have written a unit test for "17 notes in a 15 ms window" because I would not have thought of that specific case.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cloth spring denormals.&lt;/strong&gt; The dancers' outfit geometry swings on damped springs. Property 71 checks that the spring displacement stays finite after 1000 iterations with any valid force. Fast-check found a force value of exactly 0.0 combined with a stiffness near the threshold where the spring would converge to &lt;code&gt;NaN&lt;/code&gt; via denormal arithmetic. Added a &lt;code&gt;Math.fround&lt;/code&gt; guard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Loop-layer first-100-ms gap.&lt;/strong&gt; The loop scheduler places layers ahead of time on the audio clock. Property 85 checks that the first note of a looped take plays within 100 ms of the loop start, for any take duration from 100 ms to 60 s. Fast-check found that takes exactly 2048 samples long (at 44 100 Hz, ~46 ms) would schedule the first note at exactly the buffer boundary, which fell 103 ms after the loop start. Off by three milliseconds. The scheduler was adjusted.&lt;/p&gt;

&lt;p&gt;None of these would have appeared in a typical "play notes and check they sound" test suite.&lt;/p&gt;




&lt;h2&gt;
  
  
  Six hooks ran on every save
&lt;/h2&gt;

&lt;p&gt;I set up six agent hooks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;test-on-lib-save&lt;/code&gt;: runs the full test suite whenever a file in &lt;code&gt;src/lib&lt;/code&gt; is saved.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;validate-data-on-save&lt;/code&gt;: runs the data validator on every &lt;code&gt;data/&lt;/code&gt; save.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;a11y-on-svelte-save&lt;/code&gt;: runs the accessibility check on Svelte files.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;budget-on-package-change&lt;/code&gt;: runs the production build and budget check on package changes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;update-docs-on-task-done&lt;/code&gt;: after each completed spec task, checks &lt;code&gt;git diff --stat&lt;/code&gt; and updates only the affected documentation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;devpost-submission-sync&lt;/code&gt;: fetches the live Devpost submission form via the Devpost MCP and keeps &lt;code&gt;docs/devpost-submission.md&lt;/code&gt; current on every project file change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last one was the most useful across five long sessions. The submission doc stayed accurate without me thinking about it.&lt;/p&gt;




&lt;h2&gt;
  
  
  The actual numbers
&lt;/h2&gt;

&lt;p&gt;Built shell JS: &lt;strong&gt;67.9 KB gzip&lt;/strong&gt; (budget 150 KB). The 3D Stage chunk: &lt;strong&gt;235.0 KB gzip&lt;/strong&gt; (budget 250 KB). Total precache: about 1.8 MB. Dancer GLB files: 691 KB.&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%2Fd1gwarebx3lolrg9wcir.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%2Fd1gwarebx3lolrg9wcir.jpg" alt="Ultrawide desktop — full instrument layout, all 8 pickers visible, 4 spirit dancers" width="799" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The app synthesises every sound with the Web Audio API. No audio files are downloaded. Modal drum synthesis uses Bessel-function mode ratios for each drum head (1 / 1.59 / 2.14 / 2.30 / 2.65 / 2.92 — TBC, pending acoustic review). The bowed fiddle uses a bow-modelled synthesis with vibrato. The gourd shaker is band-passed noise. All eight instruments, one 16-voice pool, 15 ms release fade on oldest voice when full.&lt;/p&gt;

&lt;p&gt;The 3D Stage is three.js. All eight instrument models are built in code — no model files. Three CC0 dancer GLBs from Quaternius (691 KB total). Garments are code-built geometry that swings on damped springs.&lt;/p&gt;

&lt;p&gt;I have not measured input-to-sound latency on a real mid-range Android phone. I will not claim it is fast until I do.&lt;/p&gt;




&lt;h2&gt;
  
  
  What the MCP unlocked
&lt;/h2&gt;

&lt;p&gt;The Devpost MCP server meant I could fetch the live submission form from inside a Kiro session. I did not have to open a browser and copy-paste field IDs — the agent read the form, saw what was required, and wrote the submission draft directly. When the form changed between iterations (new custom question added in round 3), the &lt;code&gt;devpost-submission-sync&lt;/code&gt; hook caught it on the next save.&lt;/p&gt;

&lt;p&gt;agentmemory meant key decisions — which voice ID to use, what the xylophone key range was, which properties had already been written — carried across sessions without me re-explaining. I ran five separate sessions over two weeks. By session 4, the agent knew the architecture well enough that I did not have to describe it again.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is still TBC
&lt;/h2&gt;

&lt;p&gt;Everything cultural. Every instrument name and spelling. Every tuning. Every lesson pattern. Every Luganda label. The shape and name of the garments. The pace of the dancers. The wordless chorus that answers the groove.&lt;/p&gt;

&lt;p&gt;The app works. The sounds play. The TBC system makes the limits visible. What comes next is listening to Ugandan musicians and revising the work with them — not claiming it is done.&lt;/p&gt;




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

&lt;p&gt;&lt;a href="https://omubala-studio.pages.dev" rel="noopener noreferrer"&gt;Omubala Studio&lt;/a&gt; — open on a phone or laptop, tap an instrument, tap the stage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/drkNsubuga/omubala-studio" rel="noopener noreferrer"&gt;Code on GitHub&lt;/a&gt; — MIT licence, &lt;code&gt;/.kiro&lt;/code&gt; committed, all specs and hooks visible.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written as part of the Kiroween 2026 hackathon.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kiro</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>kiroween</category>
    </item>
    <item>
      <title>Every day I'm the passenger on a boda boda. So I built a game about surviving the ride.</title>
      <dc:creator>Nsubuga Derrick</dc:creator>
      <pubDate>Fri, 04 Dec 2026 18:13:47 +0000</pubDate>
      <link>https://dev.to/nsubuga_derrick_037f385af/every-day-im-the-passenger-on-a-boda-boda-so-i-built-a-game-about-surviving-the-ride-oo5</link>
      <guid>https://dev.to/nsubuga_derrick_037f385af/every-day-im-the-passenger-on-a-boda-boda-so-i-built-a-game-about-surviving-the-ride-oo5</guid>
      <description>&lt;p&gt;&lt;em&gt;This article is written as part of the &lt;a href="https://kiroween.devpost.com/" rel="noopener noreferrer"&gt;Kiroween 2026&lt;/a&gt; hackathon. I built the whole thing in five days, with Kiro. Here is how it went.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In Kampala, if you want to beat the traffic, you don't take a taxi — you take a boda boda. I take one every day. As a passenger. A hand signal, a fare you negotiate before you sit, and thirty minutes of saved time. On a good morning that is the whole deal.&lt;/p&gt;

&lt;p&gt;From the back seat you notice what you can't from a car. The speed you can't see, only feel. The overtake that puts you on the wrong side. The corner taken on faith. The rider's helmet is on his head; yours is whatever he hands you, if he hands you one. And your only control, the whole ride, is one word: &lt;em&gt;mpola&lt;/em&gt; — slow down. Some riders listen. Some don't.&lt;/p&gt;

&lt;p&gt;I have also seen a boda crash. I am not going to describe it. If you live here, you have seen one too, and you know the sound a road full of people makes when it happens.&lt;/p&gt;

&lt;p&gt;So this is not a story about an idea I found on the internet. The road in the game is the road I ride — from the back seat.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with telling riders the rules
&lt;/h2&gt;

&lt;p&gt;The numbers are not in dispute: 26,044 crashes in Uganda in 2025, 4,602 of them fatal. In Kampala, motorcyclists are half of everyone killed on the road (Uganda Police; KCCA). And every one of those motorcycles carried somebody's passenger. The riders know these numbers better than the reports do. The passengers know them in the knees.&lt;/p&gt;

&lt;p&gt;Most bodas are organised in SACCOs — the rider associations. That is where the safety trainings happen, where the reflective vests get handed out, where an officer comes to read the rules out. And the riders nod, and they leave, and nothing changes — because a laminated rule does not stay with a rider at 60 km/h in the rain with a passenger on the back and a matatu cutting in.&lt;/p&gt;

&lt;p&gt;Knowing is not feeling. That gap is the whole project.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea: make the road haunted
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Nine Lives: Night Boda&lt;/strong&gt; is a 3D boda ride in the browser, on a phone. It puts you on the rider's seat — the seat I have watched for years from behind it — and it gives you one job: carry a passenger home through three four-lane Ugandan roads, with nine lanterns for lives. I wrote that passenger as me. Every day, twice a day, somebody carries me. If the rider rides badly, the passenger pays. In the game, the passenger is the mission.&lt;/p&gt;

&lt;p&gt;The ghosts are not monsters. They stand at the black spots — and every one of them is telling the rider the thing that would have saved both of you: &lt;em&gt;slow down here.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/MCf-_X8ITWI" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;br&gt;
&lt;em&gt;Two minutes of the game: the hook, the haunting, the headstone, how Kiro built it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One pure function scores how close you are to death right now. Every scare reads from it. Fog, a heartbeat climbing from 60 to 140, pale hands at the edge of the screen — and a carved line that always names the fix: "Too fast for the bend. Brake before it." "Wrong side of the road. Keep left."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkmbpb9skx8xsmxd30jq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkmbpb9skx8xsmxd30jq.webp" alt="The dread closes in: fog, ghost-teal light, hands reaching from the edges of the screen" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ride badly into a black spot and the ghost rushes you. Ride in under the limit and it bows and steps aside: &lt;em&gt;they let you pass.&lt;/em&gt; Crash and a lantern goes out — you get nine, a real rider gets one. The ride ends on a headstone listing every mistake, its road sign, its cost, the law it breaks, and a photo of the moment it happened.&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%2Fqwgtzaav7c39aohyrjyy.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%2Fqwgtzaav7c39aohyrjyy.jpg" alt="A boda rider preparing to set off with a passenger, Kabalagala, Kampala" width="800" height="1062"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Photo: BabyJat, &lt;a href="https://commons.wikimedia.org/wiki/File:Boda_Boda_Rider_Preparing_to_Transport_Passenger_in_Kabalagala,_Uganda.jpg" rel="noopener noreferrer"&gt;Wikimedia Commons&lt;/a&gt;, CC BY-SA 4.0.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Everything I watch from the back seat is in the game
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The road as Ugandan law asks it.&lt;/strong&gt; Four lanes; keep left; overtake only on the right; stop at red lights and zebra crossings; walk the bike over speed humps. The wrong-side overtake that scares you as a passenger is the first thing the game punishes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A roundabout with working traffic lights&lt;/strong&gt;, zebra crossings on the arms, people crossing and slow traffic circling — slow to thirty and give way, or the ghost does not bow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Police checkpoints.&lt;/strong&gt; The boom stays down until your permit and insurance are checked. Riding into it throws you off. Papers are gameplay, because papers are the law — and because a checked rider is a safer ride for whoever is behind him.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The everyday hazards:&lt;/strong&gt; matatus that stop without warning (I have been the passenger behind one when it did), taxis that cut in from behind, cows, goats and dogs crossing in the dark.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highway crime with real remedies.&lt;/strong&gt; A snatcher appears in the mirror; flash your headlight and it backs off. Never stop at a fake roadblock. Reach a lit safe zone. Call SOS — the passenger's SOS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A haunted dashboard:&lt;/strong&gt; a brass speed dial with the zone limit in red on the rim, lanterns that smoke when one goes out, a candle that burns down as the fuel gauge, antique mirrors where a faceless shape rides with anything closing fast. The speed you can't see from the back seat, the game shows you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rider school and the garage.&lt;/strong&gt; Ride badly and a quiz sends you back over the exact rules you broke. Ride clean to earn points for your permit, your insurance, a better helmet — the helmet your passenger is still waiting for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day mode&lt;/strong&gt; with a real sun, for learning without the horror. &lt;strong&gt;Captions on every voice line and sound.&lt;/strong&gt; Reduced motion. Swipe gestures on a phone, arrow keys on a PC, and every screen fits without scrolling from a 360 px phone up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of it — three roads, 119 tests, licence-checked assets — in five days.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxaprykoyx10prg4vs4y0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxaprykoyx10prg4vs4y0.webp" alt="Night ride on a four-lane road" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Night ride: four lanes under a photographed sky, lanterns on the dash.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh8xvoj866s53lthh6qju.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh8xvoj866s53lthh6qju.webp" alt="Day mode with a real sun" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Day mode: the same roads, the same rules, no horror.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fch6nwla9eytkvqhkjntx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fch6nwla9eytkvqhkjntx.webp" alt="The headstone" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The headstone: every mistake, its sign, its cost, the law it breaks.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr98yd44f9am1402y2nh3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr98yd44f9am1402y2nh3.webp" alt="The garage" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The garage: permit, insurance, helmet — earned with clean rides.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The five days with Kiro
&lt;/h2&gt;

&lt;p&gt;Day one, I wrote specs. Honest disclosure: the first drafts of those specs came out of a Claude.ai conversation. From that seed on, everything lived and grew in Kiro — seven specs, each with EARS requirements, a design with correctness properties, and a task list. The pure core came from one steering rule I wrote early: &lt;em&gt;no three.js, no DOM, no &lt;code&gt;Math.random&lt;/code&gt;, no &lt;code&gt;Date.now&lt;/code&gt; in the simulation.&lt;/em&gt; The whole ride is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nf"&gt;step&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dt&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;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;events&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That one rule made everything else possible — headless bots, replays, the evidence photos.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The bug that sold me on property tests.&lt;/strong&gt; I wrote this property: &lt;em&gt;nothing hits the rider from behind in their own lanes, on any road, for any rider.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="n"&gt;fc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;assert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;property&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;fc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;integer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;min&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;30&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="c1"&gt;// any seed&lt;/span&gt;
  &lt;span class="n"&gt;fc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;constantFrom&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="no"&gt;LEVELS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                        &lt;span class="c1"&gt;// any road&lt;/span&gt;
  &lt;span class="n"&gt;fc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;constantFrom&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'cautious'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'reckless'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'random'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// any rider&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;seed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;level&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="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// ride 2000 steps; any vehicle that hits from behind&lt;/span&gt;
    &lt;span class="c1"&gt;// must mean the rider was in an oncoming lane,&lt;/span&gt;
    &lt;span class="c1"&gt;// and the horn must have sounded HORN_LEAD seconds earlier&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;Fast-check found a horn rule that teleported vehicles into each other. The shrunk counterexample pointed straight at it. The seed is now a permanent regression test. That was the moment Kiro stopped being a code generator for me: I gave it rules it could &lt;em&gt;fail&lt;/em&gt;, and it argued back with evidence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When the spec met the road, the spec lost.&lt;/strong&gt; My bots showed a junction zone could be crossed in 1.3 seconds — under the 1.6-second speeding timer it was built around. So speeding cost nothing. I rewrote the requirement, and the tests with it. The game got fixed, not the test weakened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ethics by steering file.&lt;/strong&gt; My first black-spot line said the dead died "going that fast." That blames the victims. I stopped, and wrote an ethics steering file so it could not come back: no real brands, no children, no faces on silhouettes, no gore, every statistic cited — and the dead are mourned, never mocked. A grave-keeper agent reviews tone; a hook checks it on every content change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Twelve hooks&lt;/strong&gt; ran my guard rails: tests and a purity check on every core change, a licence check on every asset, credits regenerated, budgets enforced — 60 KB first load, 350 KB game, 1.5 MB audio, 150 draw calls. Build fails if they are exceeded. And a cow was on screen while a dog barked; a negative first frame time threw the chase camera off the road. Screenshots found what the tests did not.&lt;/p&gt;

&lt;p&gt;119 tests now, 36 of them properties.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would tell another builder
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Put numbers in the spec, then let bots argue with them.&lt;/li&gt;
&lt;li&gt;Write properties for the rules you would otherwise forget to re-check.&lt;/li&gt;
&lt;li&gt;Say what did not work. Mine: no CC0 motorbike model exists, so the boda is a CC-BY model from Sketchfab, hand-fitted, credited in CREDITS.md. The narrator is AI-generated (ElevenLabs, browser voice as fallback) — I have not yet had a Ugandan reviewer check the visuals, the voice and the Luganda phrasing. That review is next.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://youtu.be/MCf-_X8ITWI" rel="noopener noreferrer"&gt;Watch the two-minute trailer&lt;/a&gt;&lt;/strong&gt; on YouTube.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://9lives-nightboda.pages.dev" rel="noopener noreferrer"&gt;Play it now&lt;/a&gt;&lt;/strong&gt; — phone or desktop, no install, headphones on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/drkNsubuga/nine-lives" rel="noopener noreferrer"&gt;Read the code&lt;/a&gt;&lt;/strong&gt; — MIT, with the &lt;code&gt;.kiro&lt;/code&gt; folder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://devpost.com/software/nine-livesl-night-boda" rel="noopener noreferrer"&gt;The Devpost project page&lt;/a&gt;&lt;/strong&gt;, with the full write-up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next I want to take it to the SACCOs — the rider associations that already gather the riders for safety trainings. A game that runs on any phone, in a session where a trainer is present, feels like it belongs there. And I want riders to tell me what a passenger got wrong. I built this from the back seat. If you ride, or you train riders, I am asking: tell me what I got wrong.&lt;br&gt;
&lt;strong&gt;_&lt;br&gt;
Real riders don't get nine lives. Ride safe._&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Sources: &lt;br&gt;
&lt;a href="https://nicolefoundation.org/wp-content/uploads/2026/06/Uganda-Road-Traffic-Report-2025.pdf" rel="noopener noreferrer"&gt;Uganda Police, Uganda Road Traffic Report 2025&lt;/a&gt;; &lt;br&gt;
KCCA, Kampala Road Safety Report 2025. &lt;br&gt;
Cover Photo credit: AP News. &lt;br&gt;
All game assets and licences: &lt;a href="https://github.com/drkNsubuga/nine-lives/blob/main/CREDITS.md" rel="noopener noreferrer"&gt;CREDITS.md&lt;/a&gt; in the repository.&lt;/em&gt;&lt;/p&gt;




</description>
      <category>kiro</category>
      <category>ai</category>
      <category>gamedev</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
