Kalinga Tide
personal2026An iPhone game set in Odisha, made for my nephews, that teaches where our family is from.
Unity 6 · C# · URP · Yarn Spinner · Game Center · Blender · Hunyuan3D · Z-Image · gemma
- Built
- 1,787 commits in 16 days
- Checks
- 3,210 tests + 93 autopilot runs
- In parallel
- up to 6 agent workers
- Local models
- 3D, images, vision triage
- Project skills
- 19, written from failures




My nephews are growing up a long way from Odisha. I wanted them to know what Chilika looks like at dawn, what pakhala is, why the boats go out at Boita Bandana. So I built them a game. It started as a shooter and turned into a family games hub with a weekly leaderboard, because that's what they actually played.
How it got built
I acted as director and playtester. Claude planned and reviewed. Codex and Claude Sonnet workers each took a task in their own git worktree, up to six at a time, and a merge queue only let a branch in if the full test suite passed without a new failure; an autopilot run then checked main after each batch. By build 34 that gate was 3,210 tests plus 93 scripted autopilot scenarios that actually drive the game. A fresh build lands on TestFlight for the family most mornings.
Local models did a lot of the grunt work on a Mac Studio: Z-Image for pictures, Hunyuan3D for turning reference images into props, and a gemma vision model that looks at screenshots the way a nine-year-old would. That last one caught a street full of townspeople stuck in T-poses before my nephews did.
Each branch, in its own worktree
- Worker's report
must end done or partial
- Merge main in
a conflict holds the branch
- Generate and test
two branches at a time, to keep the Mac up
- Compare
a test main already fails doesn't count against the branch
Then main, once per batch
- Merge the passing ones
in order, no second check
- Generate, tests, autopilot
about 40 minutes
- New baseline
main's failures, for the next batch to compare against
- Chose
- Test every branch on its own copy, in parallel, then check main once per batch
- Over
- A full check of main after every merge
- Because
- Each check of main takes about 40 minutes. The price is that a clash between two branches only shows up on main, after both are in.
- data
- deterministic code
Here are three and a half days of the merge queue, straight from its log.
47 runs of the merge queue over three and a half days: 84 branches merged, 43 held (22 for a failing test, 20 for a conflict with main, 1 for an unclean worktree).
- merged
- held: a test failed
- held: conflict with main
- held: worktree not clean
- autopilot scenario failing on main afterwards
Nov 24, 19:26
- held: a test failed: ProcessionDanceTests.RuntimeLightsStayWithinBudget
- merged
- merged
Main, after this batch
- known test failures
- 0
- autopilot
- 75 passed, 6 failed
failing: arms_on_rifle, story_flow, story_tide_chart, follow_camera, every_mode_playable, nuggets, animals
Rules the agents can't break
Every Odia word
- Wikidata, Odia Wikipedia
the source of record
- Copy script
byte for byte; no model may type Odia
- Flag
needs native review
- Family
a native speaker reads it
Every new prop or scene
- Reference image
- Hunyuan3D, Z-Image
on a Mac Studio, not the cloud
- Kid's-eye check
a local vision model flags tiny text and T-poses
- Merge gate
tests, autopilot, and no combat near temples
- data
- deterministic code
- a person
- a model
- No model writes Odia. Every Odia word is copied byte for byte from Wikidata or Odia Wikipedia by a script, and stays flagged until a native speaker in my family has read it.
- Every fact has a source. Each chapter has field notes with a link for each claim, and anything with one source is flagged for a second.
- Temples are never in combat. Sacred sites only appear as distant views, and the build fails if gameplay can reach one.
Carrom, measured from tournament footage
My only note on carrom was that it should feel like pool: pull back, let go, and it follows physics "to a tee". So the board is built to the International Carrom Federation's rules, with a source for every size and weight: the surface, the coins, the striker, the pockets.
The rules don't say how slippery a powdered board is, so the agents measured it. They took four public tournament videos, including a World Cup final, and mapped every frame to a flat top-down view of the board, checked against the printed base circles: within 0.3% on two boards, about 2% by eye on the other two. Then they tracked 43 coins sliding to a stop and fit how fast each one slowed down. Friction came out at 0.136 ± 0.031. My first guess had been half that. Replayed in the game, the measured value stops a coin within about a coin's width of where the real one stopped; the old guess sent it about twice as far.
Each board is the mean of its tracked slides, ±1 standard deviation. Powder is what makes a competition board fast: the unpowdered home board has nearly three times the friction.
| First guess | 0.0705 |
|---|---|
| ICF World Championship 2022 | 0.095 ± 0.012 |
| Mahalaxmi tournament 2025 | 0.132 ± 0.016 |
| US Open 2026 | 0.147 ± 0.032 |
| World Cup final 2025 | 0.169 ± 0.05 |
| What the game uses | 0.136 ± 0.031 |
| A home board, no powder | 0.38 ± 0.06 |
| ICF limit for a legal board | 0.391 |
Try it. This is the same board and the same numbers, in the browser:
Board friction
measured, 43 slides on four boards
Pull back from the blue striker and let go.
The simulation runs in whole numbers at 240 steps a second, so a shot replays exactly the same every time. The aim guide is a hidden copy of that same simulation, so the line it draws is the shot you get. Seventeen tests check each physical law against its textbook answer. Five properties, like how bouncy a coin is against another coin, couldn't be measured from 30 fps video. They're marked provisional, with a protocol for filming a real board at 240 fps.
What broke
Running seven or eight Unity editors overnight, plus the Simulator and GPU jobs, kernel-panicked the Mac at 1:30am. Seven hours of nothing. Now there's a hard cap of four editors and nothing launches when the load is high. Another night the merge queue sat idle for five hours because a "nothing is running" check matched its own watcher process.
This one is personal and non-commercial. Some of the 3D models are licensed for exactly that, so it stays a family game.