#5728·anki

Various problems causing/handling backup corruption

Author: david-allisonCreated Sep 29, 2026Updated Sep 29, 2026

I was investigating problems with corrupt backups on AnkiDroid, and most of these investigations pointed towards backend issues. These LLM-provided explanations and tests seem legit. Given the quantity of issues, I implemented them as failing tests (via GPT-6 xhigh) to send them over quickly.

Please don't take the unit tests as canonical, or the 'correct' fix [especially the 'retry' behaviour ones]. This is only an hour of work and not tested heavily on my end.

The following AnkiDroid issues contain patches forrslib, based on and tested against main (d1d484c8249a8266a6fe9203694f9087726c6ba2)