This is a follow-up to the post about model-checking the reading app's concurrency with TLA+ , which has the short intro to TLA+ and TLC and the way the models are set up, so I won't repeat that here. One habit from that post was to give every property a bug-* config that switches on one defect and must fail, and the model in this post showed a very plain way for that check to pass while the property checks almost nothing.
TLDR: a ghost variable that a property reads has to be set on every step that could breach the property, not only in the bug's own branch, and its oracle shouldn't just repeat the guard next to it, otherwise the bug-* config fails by construction and a defect outside the bug's own branch goes unseen. And a step copied from one backend's code can hide a bug in another backend that does it differently.
What the model is about
The app can read from self-hosted servers like Komga (comics) and Audiobookshelf (audiobooks).…