Skip to content

R06: launch trusted updater from packaged host - #250

Open
Oleksii-debug wants to merge 7 commits into
r06-package-updater-exe-0929-solfrom
r06-host-updater-launch-0929-sol
Open

Oleksii-debug wants to merge 7 commits into
r06-package-updater-exe-0929-solfrom
r06-host-updater-launch-0929-sol

Conversation

@Oleksii-debug

Copy link
Copy Markdown
Owner

Scope

Canonical successor to #249. Connects the packaged main host to the already-packaged updater and existing #245 process orchestration without introducing browser path/PID authority or a second update mechanism.

Exact lineage

  • parent: r06-package-updater-exe-0929-sol@784ec4c514620179fac1fe3efdc6f2d91a33302f (R06: package standalone updater with canonical trust authorities #249)
  • candidate: r06-host-updater-launch-0929-sol@56eb145bc9f741d39f7c240a4156c45e32376105
  • direct parent → candidate: AHEAD 7 / BEHIND 0; exact parent is merge-base
  • lasting diff: 5 paths: pending-update native layer/UI, packaged host binding, fixed updater-launch authority, focused tests

Product behavior

  • adds a separate empty-payload application_update.apply_and_restart command; staging still does not auto-install;
  • execution is allowed only after a durable apply handoff exists and exactly matches the repeatedly re-verified pending update;
  • pending_status now recovers matching durable apply_ready state across app restarts;
  • derives the updater path mechanically as the -Updater.exe sibling of the running installed executable; the browser cannot choose executable/path/PID/argv;
  • requires the already-merged R06: restore same-publisher Authenticode proof with fail-closed regressions #228 Authenticode authority to positively prove current host and packaged updater share a valid signer before constructing/launching R06: add host-only updater process handoff #245's fixed process plan;
  • binds the host execution callback after the pywebview window exists: successful updater process creation precedes window.destroy, allowing the updater to wait for exact parent exit and then continue R06: wire trusted updater command to atomic apply core #246/R06: relaunch updated app and rollback failed spawn #248 apply/relaunch flow;
  • updater PID and local paths are never returned to the browser;
  • if launch fails or does not return a valid PID, host shutdown is not requested;
  • explicit accessible two-step UI: Підготувати встановлення then Встановити й перезапустити; install button is disabled until verified durable apply authority is ready.

Regression coverage

New host-launch tests cover fixed sibling derivation, same-publisher-before-plan ordering, negative/unavailable publisher proof, launch→shutdown ordering, no launch without matching handoff, empty-payload enforcement, invalid child PID fail-closed, late callback binding after window creation, exact request-id correlation, recovery of durable apply_ready, no PID/path disclosure, and static keyboard/live-region/no-innerHTML UI contracts.

Safety / recovery semantics

If the updater starts but host shutdown itself fails, the updater remains blocked by #245's parent-exit barrier and cannot mutate installed bytes; its bounded parent wait fails safely. The existing updater cross-process serialization and exact-byte apply authority remain canonical.

Explicit non-claims / remaining blockers

  • production Authenticode signing identity/private key is still external release work;
  • no post-restart health confirmation/rollback cleanup yet: R06: relaunch updated app and rollback failed spawn #248 only proves process creation and preserves rollback bytes;
  • no elevation policy change;
  • no physical Windows 11/WebView2 end-to-end update acceptance or HUMAN_NVDA acceptance claimed here.

READY_FOR_INTEGRATION=NO pending exact-head hosted qualification and changed-head review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant