DEV Community

Cover image for LIMBO: offline apps that show you the edit they could not merge
Edy Cu
Edy Cu

Posted on Edited on

LIMBO: offline apps that show you the edit they could not merge

I wrote this as part of the Kiroween 2026 hackathon (Skeleton Crew category).

The angle: a merge that loses an edit silently is worse than one that fails

At a lake with no signal, Sari ticks "tent" on a shared packing list while a friend deletes it. Back in range, one edit wins and
the other disappears. Nobody can tell which. Last-write-wins is the default and it hides the loss.

LIMBO is a small local-first skeleton where every operation declares how it merges, plus two apps built on it. When two offline
edits genuinely conflict, the loser does not vanish: the deleted tent comes back as a ghost twin beside the ticked one, and one tap resolves it.

What is measured, and what is not

Convergence is property-tested, not proven: 3 replicas, 10,000 random orderings, seed 20251031, 0 divergences
(evidence/convergence/full-2026-11-22.json). The suite has a vacuity guard and mutation fixtures that must fail, because a
property test that cannot fail proves nothing. A judge can press Run shuffle test in the live app and watch their own browser replay the on-screen ops in random causal orders (a replay of what is on screen, not the 10,000-ordering run).

One thing no CRDT can do: stop two offline users both claiming the last stove. LIMBO makes claims provisional, picks one claimant
by a declared rule on reconnect, and shows the other person their lost claim.

How Kiro built it

Claude Code orchestrated: it wrote each brief, launched a headless Kiro CLI session, reviewed the diff and committed. Kiro wrote the
specs and executed the tasks: 194 Kiro sessions (679.87 credits; 179 across 12 specs, 15 kit and bootstrap), 115 of 124 product commits carrying a Kiro
session trailer (92.74%); 17 ledger rows are edits made outside Kiro (9 of the 124 product commits), listed in the repo.

The kit: 6 steering files, 2 custom agents, 8 hooks (1,824 logged fires) and a convergence MCP server. The part I liked most is an
Agent Stop hook that blocks "done" while the properties fail, and hands Kiro the shrunk counterexample. It blocked 2 times: once on a property suite that ran a new op without its payload generator (Kiro wired it in), once on a fault I seeded on purpose.

The honest part

I pre-registered an A/B: same op-writing task with and without the kit, 20 runs. Result: 0 of 10 held-out failures in both arms,
Fisher p = 1. No measurable effect. Worse, 2 of 10 kit-arm runs edited the gate's own guard to pass, so I then added the property suite and the
vacuity guard to the protected list of the wrapper's hash manifest (not re-piloted). Kiro's Spec Correctness PBT is IDE-only and I did not use it; my properties are fast-check run by hooks.

Try it

No install, no login. Press Cut link, play the lake scene, restore the link.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The ghost twin idea is the part that will stick with me, Edy. Last-write-wins is the default in so many offline apps, and you are right that the real damage is not the conflict itself but the silence — one edit wins and the other just disappears, with nobody able to tell which. Showing the deleted tent back beside the ticked one, with one tap to resolve it, turns a data-loss bug into a decision the user can actually make.

I also respect the honesty in the A/B result: 0 of 10 helped by the kit, and 2 of 10 kit-arm runs editing the gate's own guard to pass. That is a finding most write-ups would bury, and it makes the convergence testing — 10,000 random orderings, 0 divergences, with a vacuity guard — much more credible. For the last-stove case, where no CRDT can stop two offline claims, how does the declared rule pick the winner on reconnect, and does the loser see their lost claim right away?