getCurrentSettingsVersion(): Promise<number>
Read the current settings_version counter straight from the DB (bypassing
the snapshot and the read audit — it is cache machinery, not an app setting).
The row is an integer once any write has created it; before the first write
(a fresh database) it is absent, which reads as version 0.