Sanjit Misra

Kalinga Tide

personal2026

An 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
The trailer, cut from in-game captures.Sound: Freesound recordings by Johnnydhol (CC BY 3.0), xtrgamr, InspectorJ, GregorQuendel (CC BY 4.0) and others (CC0). End card photo: Konark Sun Temple by Darshanavenugopal, CC BY-SA 4.0, Wikimedia Commons.
A festival procession at dusk on Puri's Grand Road
Puri Grand Road at dusk.
Sunrise over Chilika lagoon with a watchtower
Chilika at dawn.
A narrow lane in an Odisha old town
Old Town.
A carrom board at a roadside shop
Carrom at the shop step. The tea stall has taas, the card game.

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.

What the merge queue does with a batch

Each branch, in its own worktree

  1. Worker's report

    must end done or partial

  2. Merge main in

    a conflict holds the branch

  3. Generate and test

    two branches at a time, to keep the Mac up

  4. Compare

    a test main already fails doesn't count against the branch

Then main, once per batch

  1. Merge the passing ones

    in order, no second check

  2. Generate, tests, autopilot

    about 40 minutes

  3. 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
Nov 25
Nov 26
Nov 27

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

Every column is one run of the gate, from the log, Nov 24 to 27. Click a column for its branches; click a branch to follow it across the days. The gate holds a branch rather than forcing it: D-21i was held seven times before it went in. The autopilot plays the game on main after a batch merges, not before, so it can catch a bad merge only afterwards: on the evening of Nov 24 it failed six or seven scenarios four runs in a row, and the next fixes had it back to zero by 03:16 the next morning.

Rules the agents can't break

Two pipelines where the models are fenced in

Every Odia word

  1. Wikidata, Odia Wikipedia

    the source of record

  2. Copy script

    byte for byte; no model may type Odia

  3. Flag

    needs native review

  4. Family

    a native speaker reads it

Every new prop or scene

  1. Reference image
  2. Hunyuan3D, Z-Image

    on a Mac Studio, not the cloud

  3. Kid's-eye check

    a local vision model flags tiny text and T-poses

  4. 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.

Sliding friction on a carrom board (μ)
00.10.20.30.4slowest board the ICF allows · 0.39First guess: μ = 0.0705First guessbefore measuring · 0.07ICF World Championship 2022: μ = 0.095 ± 0.012ICF World Championship 202216 slides · 0.095 ± 0.012Mahalaxmi tournament 2025: μ = 0.132 ± 0.016Mahalaxmi tournament 202512 slides · 0.132 ± 0.016US Open 2026: μ = 0.147 ± 0.032US Open 20264 slides · 0.147 ± 0.032World Cup final 2025: μ = 0.169 ± 0.05World Cup final 202511 slides · 0.169 ± 0.050What the game uses: μ = 0.136 ± 0.031What the game usesmean of the four boards · 0.136 ± 0.031A home board, no powder: μ = 0.38 ± 0.06A home board, no powderone slide, frame-counted · 0.38 ± 0.06

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.

Sliding friction on a carrom board (μ)
First guess0.0705
ICF World Championship 20220.095 ± 0.012
Mahalaxmi tournament 20250.132 ± 0.016
US Open 20260.147 ± 0.032
World Cup final 20250.169 ± 0.05
What the game uses0.136 ± 0.031
A home board, no powder0.38 ± 0.06
ICF limit for a legal board0.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 board, coins, striker and pockets are ICF sizes; the friction is the number measured from tournament footage. Switch to the unpowdered home board and the same shot dies in a third of the distance. The dashed line is a ghost copy of the simulation run ahead, which is how Kalinga Tide draws its aim guide. How bouncy the coins and the frame are is still a placeholder: I couldn't find a published carrom measurement.

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.