Dev.to AI 🤖 Ai 👁 0 📖 2 min read

My import said "successful". Every amount came back negative.

Most apps let you export your data and import it back. Browser tests check that the import shows a success message. They don't check whether your data survived the trip. That gap is real. Sure, an open-source finance ap

Most apps let you export your data and import it back. Browser tests check that the import shows a success message. They don't check whether your data survived the trip.

That gap is real. Sure, an open-source finance app, shipped a bug where re-importing its own export flipped the sign of every amount. The screen said "Import successful". It was fixed in pull request #4754.

So I built ReturnTrip for the KaneCLI hackathon, with Claude Code. It proves your app gives back the data it exported.

How it works

  1. Kane CLI drives a real browser. It exports a workspace, creates an empty one, uploads the file through the app's own file input, and exports again.
  2. A local proxy captures the real file bytes and proves the uploaded file is the exact export.
  3. A deterministic comparator checks every record against a trusted source: 1,000 real City of Chicago payments. Typed, duplicate-aware, no AI in the judging.
  4. When data changed, Claude Code patches a locked-down copy of the app, with only Read and Edit. Kane reruns the identical journey on fresh data. Only a clean rerun counts as fixed.

What happened on real runs

The real app. I ran Sure, unmodified, from its own published image, at the commit before the fix. Kane's own screenshot shows "Import successful". ReturnTrip found 250 of 250 amounts flipped, 2 of 2 times. On the fixed commit, all 250 came back clean, 2 of 2 times.

Recreated bugs. 5 import bugs on a demo app, all caught with exact counts: 1,000 flipped signs, 1,000 swapped columns, 263 vendors cut at a comma, 8 identical payments dropped, 600 amounts losing their cents.

Repair. 3 of 4 runs fixed and verified by a fresh Kane rerun. One sign-flip fix was 3 lines, in 25 seconds, for $0.19. The fourth failed because Kane's checker flaked during the rerun, so ReturnTrip reported it as a failure, not a fix.

What I learned

A success message is not evidence. The only proof that data survived is to compare what came back against what went out, record by record.

Every run is published, failures included: https://returntrip-rose.vercel.app

Demo video:

KaneCLIHackathon

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.