2034126e0d
apply_wal_with_fallback returns via _apply_delete_for_wal_reset_bug on WAL-reset-vulnerable SQLite builds (Debian 12 / Ubuntu 22.04 system Pythons, the reporter's pinned image) before the #110848 existing-WAL cross-VM check, so exactly the deployment class the fix targets still got zero startup signal while doctor flagged it. Share one helper between both early-return paths and key the once-per-process dedupe on the DB path instead of the label so a gateway serving several profiles hears about each database. The docker doc remedy now uses the image's python3 (it ships libsqlite3 but no sqlite3 shell). Review finding: vulnerable-SQLite early return skipped the cross-VM ERROR; dedupe per label; sqlite3 shell absent from image.