Two SQLite handles serve one store while they share one holder: the registry hands every handle on a profile the same holder for the file's current generation, and a handle opened after state.db was replaced takes a new one while the older handle keeps the generation it held, as main's registry identity check compares its objects. SQLiteStore.serves_same_store compares holders, and the assembly's Persistence forwards it between the stores the two handles are bound to. A handle opened after the file was replaced reads the replacement and does not serve the same store as the owner; red without the method (the case raises AttributeError), green with it.
Reported-by: Greptile
Reported-by: BearHuddleston