feat(desktop): signed Windows NSIS updates on the main channel #6854
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6854"
general
weight: 0.35
JasonBuildAI
Goal And Delivered Outcome
main, the signed desktop-update pipeline builds macOS only (desktop-updater.ymlhas a singlemacos-15matrix entry;scripts/desktop_update_feed.pypublishes onlydarwin-aarch64), and the App's update surface is gated to macOS. A Windows install therefore has no signed-update journey at all, only manual installers and a separately installed CLI.823008357(loopback feed + test key; the channel/platform copy logic is unchanged at27c3d26f9, details in the receipt comment). The receipt covers successful replacement/restart and a verified-but-unlaunchable failure with service recovery; the official-feed/key and policy-blocked-installer variants remain for the canary.main: rebased ontoc97f921e2f18fbd7e155495b7eb5029031c97fe3for this revision (see Validation).Included Fix
about:blankbecause the navigation fence accepted only thetauri://scheme and the workspace origin, while Windows serves the bundled boot page over the WebView2 transport aliashttp://tauri.localhost.workspace_navigationinlib.rsnow also accepts that exact boot origin, covered by the extendednavigation_keeps_the_workspace_fence_and_hands_external_web_links_off_onceunit test: both boot variants stay inside the fence, lookalike hosts (http://tauri.localhost.evil.example/,http://elsewhere.localhost/) are handed off to the browser exactly once, andfile:///javascript:/mailto:remain unreachable. This repairs pre-existing Windows behavior that the delivered update journey depends on; without it the update surface cannot render on Windows at all.823008357):desktop_update_statusnow exposes the hostplatform, and the update panel chooses its idle copy from that platform plus the selected channel. Windows stable/MSI names the manual signed-installer path, Windows main keeps the launch-time NSIS promise, macOS keeps the prepared-update wording, and a legacy payload withoutplatformfalls back to neutral channel wording. The browser smoke asserts macOS, Windows stable, Windows main and English stable, and rejects the old unconditional Windows sentence. The re-review confirmed the fix on the current production bundle.0.0.0-main.1.0, updated to B0.0.0-main.2.0through the real panel; the old App and both owned services exited, B restarted, new owned services connected, and an independent CLI process survived. A signed invalid-PE payload stopped the owned services, Windows refused launch, and after dismissing the OS error dialog the same window returned toapp_install_failedwith services restored and retry available. Details, PIDs and hashes are in the receipt comment.build-windowsjob.build-macosremains the stable/main leg, andpublishuses explicit result checks: a stable release publishes the Darwin feed whenbuild-windowsis skipped, while a main release still rejects a skipped or failed Windows build.tests/desktop/test_update_feed.pyevaluates the publish condition for both channels and pins the dependency edges.dcbc04589): the upload step enablesnullglobbefore enumerating.gz/.sig/.exe, so a Darwin-only stable release reaches the immutable feed anddesktop-stablepointer instead of passing the unmatched glob togh. Main still builds Windows and the feed still rejects a missing Windows artifact. The regression executes the exact production shell block for stable Darwin-only and main complete, checking theghcall log and publication order. Main with missing Windows fails in the preceding feed builder before the upload step.0603b49f): preserved main's service-lifetime and startup-state additions while keeping bothservice_lifetimeandservice_lifecycle; combinedstartup_stateandplatformin the native status payload; and retained main's 59-line transfer-failure/boot smoke coverage alongside the Windows stable/main cases. No conflict resolution selected one side wholesale.adoptand stopped by its caller; the rejection now recordsreclaimedso a failed installer launch still producesrestore_pending. Release is serialized withadoptso a late set is either counted by the release or adopted after the handoff ends. Two new lifecycle tests cover both orderings.examples/desktop-update-browser-smoke.mjs. Restored those blocks from main while keeping the Windows stable/main channel cases, and kept main's "open the local version first" macOS copy with the manual-update sentence. The production-bundle smoke passes with the restored failure, no-install, check-only-retry and boot-diagnostics assertions..sigthat is not a decodable minisign signature instead of only checking for non-empty content, and the workflow tests pin the signed Windows build step, its embedded-version assertion and the pointer upload staying inside the advance branch, while the artifact rename becomes idempotent. Rust-side, a failed install no longer folds the macOS continuation journal into a Windows-safe restart (install_failure_statetakes an explicit journal-applies input), the platform/action gate is a pure two-column table so both host columns are covered from any test process, and the navigation-fence test pins transport-alias port and scheme lookalikes, the published.sigmust match the four-line minisign structure the client parses (74-byte and 64-byte payloads) with tests for comment-only, wrong-length and embedded-newline inputs, andfinalize_install_failureno longer attempts the journal effect where no such journal can exist. Both update surfaces stop naming repair or rollback in states where this release disables them (boot.jsunrepairedFallback,desktop-update.tsxphaseMessage), the desktop update browser smoke asserts that wording, and the smoke's static-file guard now also serves Windows paths so the smoke runs on Windows.Author Declaration
Implemented against
main@dc9fdbb51. That comment said "no PR before direction agreement"; the repository owner then directed proceeding, with these decisions: minisign only (no Authenticode in this phase), NSIS only (MSI stays manual), main channel first and the stable rollout as a separate maintainer decision.| Criterion (spec clause) | Disposition | Symbol / path | Test or command |
| --- | --- | --- | --- |
| #5204: independent per-OS update evidence | implemented (main channel) |
.github/workflows/desktop-updater.yml,scripts/desktop_update_feed.py|python -m unittest discover -s tests/desktop -p 'test_update_feed.py'|| Feed advertises a Windows NSIS updater on main | implemented |
QUALIFIED_PLATFORMS["main"]|test_immutable_source_and_qualified_platform|| Feed fails closed on missing, empty, duplicate or unsigned Windows artifacts | implemented |
build()inscripts/desktop_update_feed.py|test_windows_artifact_fails_closed_on_the_main_channel|| Stable channel keeps manual Windows installs | implemented |
QUALIFIED_PLATFORMS["stable"]|test_stable_channel_excludes_windows_until_that_rollout_is_approved|| Windows App check / install / restart journey | implemented |
app_update_action_supportedinmaintenance.rs| Rustwindows_keeps_the_signed_app_update_journey_without_macos_recovery_actions(CIvalidate, macOS) || Windows repair / align / rollback report explicit unavailable | implemented |
update_action_platform_unavailable+boot.js/desktop-update.tsxcopy | same Rust test || Automatic launch-time update on Windows | implemented |
automatic_app_updateinmaintenance.rs|windows-desktop-testsnative regression; author-side installed receipt at823008357|| Rollback / repair mechanism on Windows | out_of_scope | - | explicit unavailable state only |
| Authenticode signing | out_of_scope | - | minisign only, unchanged from macOS |
| Stable-channel Windows enablement | deferred (maintainer) | - | post-merge canary and stable decision |
tests/test_ci_resource_policy.py,cargo fmt --check(reports a pre-existingservices.rsdiff also present onupstream/main; not claimed clean),cargo clippy --all-targets --locked,examples/desktop-release-workflow-smoke.pyandscripts/check_rfc_bilingual.pylocally. Deliberately left out: no MSI feed entry, no Authenticode, no Windows rollback mechanism, no stable-channel change. An author-side installed-NSIS receipt was produced on this head with a loopback feed and test key; it covers the success and launch-failure journeys. The official-feed/public-key and policy-blocked-installer variants are not claimed.Scope And Continuation
Validation
27c3d26f9d8dfc3eef405a5e9a1b7b29bdcecc58(merge base0603b49f332c90828b08807e055505bfe1522312). The installed-NSIS screenshots were captured at823008357;service_lifecycle_windows_update_tests.rsis byte-identical at27c3d26f9;service_lifecycle.rsadditionally carries the late-handoff restore-debt fix, andlib.rsalso carries main'sservice_lifetimeand startup-state changes, anddesktop-update.tsxkeeps the channel/platformidleMessagewith main's "open the local version first" macOS copy.| Check kind | Result | Public-safe evidence / limitation |
| --- | --- | --- |
| static | mixed (pre-existing) |
cargo fmt --checkreports a pre-existingservices.rsformatting diff identical onupstream/main; no Rust file is changed by this round, so formatting is not claimed clean. || unit | passed |
python -m unittest discover -s tests/desktop: 28 passed at27c3d26f9, including the exact production upload-loop regression for stable Darwin-only, main with Windows complete, and main missing Windows. || unit | passed |
cargo test --locked --lib -- service_lifecycle --test-threads=1at27c3d26f9: 8 passed, including the new late-adoption debt cases and the Windows update handoff/failed-launch recovery paths. || unit | passed |
cargo test --locked --libon Windows at823008357: 134 passed, 1 failed, 2 ignored. The single failure is the pre-existingservices::tests::timed_output_large_output_does_not_deadlockin the untouchedservices.rs; this host resolvespython3to the Microsoft Store stub. || unit | passed | Dashboard
npx tsc --noEmitandnpm run build:chatat823008357. || integration | passed |
examples/desktop-update-browser-smoke.mjsat823008357, including the macOS, Windows stable, Windows main and English stable idle-copy assertions and the repair-free wording. || workflow | passed |
tests/desktop/test_update_feed.pyevaluates thepublishcondition (stable with a skipped/failed Windows leg publishes Darwin; main rejects it), pins the build/publish dependencies, and executes the exact upload shell block with a fakeghlog. Stable Darwin-only uploads the feed and pointer without an.exeor literal glob; main uploads its Windows installer; feed upload precedes pointer upload; main without Windows fails closed in the feed builder. || source_premerge | mixed (18/19) |
loopx canary premerge --from-git-diff --git-diff-base upstream/mainatdcbc04589: diff hygiene, changed-Python compile, all 8 risk-profile smokes, public/private boundary and 9/10 catalog canaries passed. The remaininghot-path-interface-budget-smokefails in the pre-existing Windows extension-doctor executable-bit check;readiness.pyis outside this diff. || visual | passed | Installed-NSIS and production-bundle screenshots at 1280×900 and 390×844 are embedded in the Frontend / Visual Evidence section. |
| integration | mixed on the previous approved head
dcbc045| Signed Desktop Updatesvalidateandwindows-desktop-testspassed atdcbc045(including the previously flaky loopback test). The unrelatedchat-bundle-browser,windows-powershellandRelease Artifacts buildjobs still fail outside this diff; some Python shards were still running. The new head27c3d26f9reruns the checks; release build jobs are skipped on PR as expected. || real_entrypoint | passed (author-side installed NSIS) | Installed A
0.0.0-main.1.0-> panel update B0.0.0-main.2.0: old App PID 41724 and owned services 43428/31044 exited, B PID 52560 restarted, new owned services 43608/28136 connected, independent CLI PID 37672 stayed alive (HTTP 200). Failure: signed invalid-PE ZIP stopped the owned services via the pre-exit hook, Windows refused launch, and after the OS error dialog was dismissed the same App/window returned toerror/app_install_failedwith services restored (40576/44664), retry available and the independent CLI alive. Bounded: loopback feed + test key, repository CLI viaLOOPX_BIN, invalid-PE payload rather than a policy-blocked installer. || real_entrypoint | not_run (official canary) | The official feed/key and policy-blocked-installer variants are main-only; the first live production proof is the post-merge main-channel canary. |
Frontend / Visual Evidence
about:blanktransport page (see Included Fix), so the update panel did not render at all, anddesktop_updatereturned the genericplatform_update_not_supportedfallback. The "this channel has no update package for this platform" copy is the post-change behavior when a channel has no Windows entry, not the pre-PR state.repair/align_runtime/rollbackreturn the explicitupdate_action_platform_unavailablestate with dedicated Chinese and English copy, and states without a dedicated code switch to repair-free wording instead of naming the disabled repair or hidden rollback controls; the check / install / restart journey renders as on macOS. The idle copy is channel- and platform-scoped: Windows stable/MSI points at the manual signed installer, Windows main names the launch-time NSIS path, macOS keeps the prepared-update wording, and a legacy status withoutplatformuses neutral channel wording. Buttons remain hidden or disabled through the existingbundled_repair_available/rollback_availablestate fields - no layout or control change.823008357run (loopback feed + test key); the browser images use synthetic native status from the same tree. The channel/platform copy is unchanged;service_lifecycle.rsnow includes the late-handoff restore-debt fix, andlib.rsalso carries main's current service-lifetime/startup changes, anddesktop-update.tsxcarries main's macOS idle copy. No private data.<img src="https://github.com/JasonBuildAI/loopx/releases/download/pr-6854-native-evidence-20261019/panel-available-a.png" width="720" alt="Installed A with an available update">
Installed A, real panel:
0.0.0-main.2.0is available after the signed check.<img src="https://github.com/JasonBuildAI/loopx/releases/download/pr-6854-native-evidence-20261019/app-b-after-update.png" width="720" alt="Restarted B workspace">
After the passive NSIS install and automatic restart: the B workspace is interactive.
<img src="https://github.com/JasonBuildAI/loopx/releases/download/pr-6854-native-evidence-20261019/failure-restored-window.png" width="720" alt="Recovered failure window">
After the refused launch and dismissing the Windows error dialog:
app_install_failed, services restored, check/retry still available.<img src="https://github.com/JasonBuildAI/loopx/releases/download/pr-6854-native-evidence-20261019/update-idle-windows-stable.png" width="720" alt="Windows stable idle copy at 1280x900">
Windows-stable idle copy in the production bundle at 1280×900: manual signed installer path, main/NSIS scope.
<img src="https://github.com/JasonBuildAI/loopx/releases/download/pr-6854-native-evidence-20261019/update-idle-windows-stable-mobile.png" width="360" alt="Windows stable idle copy at 390x844">
The same copy at 390×844; the panel wraps without horizontal overflow.
Type of Change
LoopX Area
Technical Direction
Shared-authority RFC fixture impact
Coordination And Merge
apps/**behavior changes require maintainer authorization; merge readiness is left to the maintainer after validation.loopx update/--loopx-upgrade-request) remains macOS-only, and a Windows desktop keeps using the separately installed CLI.build-windowsjob. A stable release publishes the Darwin-only feed without depending on that leg, while a main release still requires it; stable release pages keep the unsigned installers for manual installation.always()plus per-job result checks), not a prose convention: the workflow regression intests/desktop/test_update_feed.pymodels stable-Darwin success with a skipped/failed Windows leg and main rejection of a missing Windows leg.Boundary Checklist
python3 scripts/check_rfc_bilingual.py --base main --head HEADpasses, or no paired RFC changed (no paired RFC changed; the check passes).none.Signed-off-bytrailer (git commit -s).