Sure 匯入自家匯出檔後,所有金額正負號翻轉
My import said "successful". Every amount came back negative.
ReturnTrip 發現,開源理財應用程式 Sure 雖顯示匯入成功,重新匯入自家匯出檔後,所有金額的正負號仍會翻轉。ReturnTrip 以 1,000 筆芝加哥市付款資料作比對,在修正前的實際測試中,250/250 個金額及 2/2 次測試均出現問題;修正後,250 個金額在 2/2 次測試中均正確還原。工具亦在示範應用程式中捕捉到 5 個匯入錯誤,4 次修復測試有 3 次通過重新執行驗證。
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
- 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.
- A local proxy captures the real file bytes and proves the uploaded file is the exact export.
- 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.
- 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
來源:DEV Community · dev.to