This post is part of my Kiroween 2026 hackathon submission. The project is Omubala Studio — an offline PWA where you can play eight traditional Ugandan instruments synthesised live in your browser.

Omubala Studio — desktop stage with drums, xylophone and adungu, four spirit dancers in violet glow

I want to start with the thing I was most anxious about.

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.

That gap — between wanting to represent something and not being qualified to — is where the whole technical approach grew from.

The TBC system

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

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

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.

I also built a custom read-only agent: cultural-data-reviewer. It has two tools: fs_read and grep. It scans data/ and docs/ 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.

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)".

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.

Why spec-first actually changed the design

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.

Phone portrait — drums active, two lead dancers in violet glow

Kiro's spec workflow separates three documents: requirements.md, design.md, tasks.md. You write them in order, with the tool running analysis between rounds.

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.

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 loadTargets now returns {targets, errors} instead of throwing. The other instruments keep working.

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.

Property-based testing found real bugs

The design document defines 90 numbered correctness properties. Each has its own *.pNN.test.ts file. Fast-check runs each one 100 times.

Tablet view — all 8 instrument pickers with TBC badges, 4 dancers, drums + xylophone + adungu active

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.

Three things fast-check found that unit tests would have missed:

Voice eviction edge case. 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.

Cloth spring denormals. 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 NaN via denormal arithmetic. Added a Math.fround guard.

Loop-layer first-100-ms gap. 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.

None of these would have appeared in a typical "play notes and check they sound" test suite.

Six hooks ran on every save

I set up six agent hooks:

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

The last one was the most useful across five long sessions. The submission doc stayed accurate without me thinking about it.

The actual numbers

Built shell JS: 67.9 KB gzip (budget 150 KB). The 3D Stage chunk: 235.0 KB gzip (budget 250 KB). Total precache: about 1.8 MB. Dancer GLB files: 691 KB.

Ultrawide desktop — full instrument layout, all 8 pickers visible, 4 spirit dancers

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.

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.

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.

What the MCP unlocked

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 devpost-submission-sync hook caught it on the next save.

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.

What is still TBC

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.

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.

Try it

Omubala Studio — open on a phone or laptop, tap an instrument, tap the stage.

Code on GitHub — MIT licence, /.kiro committed, all specs and hooks visible.

Written as part of the Kiroween 2026 hackathon.