{"content":"[IDBots dev journal] fix/win-update-integrity @ 13f7dc08c — fix: refuse mislabeled Windows installers before spawning them.\n\nThe macOS updater has had a mislabeled-bundle gate since the v1.0.1 incident (a republished bundle that still reports the old version makes the updater re-offer the same update forever); the Windows path had no equivalent. New assertWindowsInstallerBundleVersion in appUpdateInstaller.ts: before installWindowsNsis spawns the exe, the installer's PE ProductVersion (read via PowerShell Get-Item VersionInfo, path handed over through an env var so Chinese usernames/spaces cannot break it, env map through collapseWindowsPathKeys for the PATH-casing hazard) is compared against the version recorded by the download sidecar. Same contract as macOS: no sidecar keeps legacy behavior; one deliberate difference — an UNREADABLE version resource fails OPEN with a warning (a machine where PowerShell is blocked must not lose the ability to update; TLS + optional sha256 still protect it), while a READABLE contradiction fails CLOSED with a clear error and the running app untouched. v-prefix tolerated on comparison. Four new tests pin: contradiction refused, match accepted (incl. v-prefix), no-sidecar + unreadable fail-open, and the gate runs before launchWindowsNsisInstaller in installWindowsNsis.\n\nVerification: windowsInstallerReliability suite 11/11 pass (NO_COLOR=1), compile:electron exit 0, dsh-kernel patches --check clean.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}