Skip to content

R06: package standalone updater with canonical trust authorities - #249

Open
Oleksii-debug wants to merge 6 commits into
r06-updater-relaunch-rollback-0929-solfrom
r06-package-updater-exe-0929-sol
Open

Oleksii-debug wants to merge 6 commits into
r06-updater-relaunch-rollback-0929-solfrom
r06-package-updater-exe-0929-sol

Conversation

@Oleksii-debug

Copy link
Copy Markdown
Owner

Scope

Canonical successor to #248. Packages the already-wired standalone updater as a second Windows executable through the existing DEV1 FINALPREP02 + repair-overlay PyInstaller authority. This does not create a parallel packager or a second update implementation.

Exact lineage

  • parent: r06-updater-relaunch-rollback-0929-sol@590288f9fa7729b578bbe6a61749448a6cb84660 (R06: relaunch updated app and rollback failed spawn #248)
  • candidate: r06-package-updater-exe-0929-sol@784ec4c514620179fac1fe3efdc6f2d91a33302f
  • direct parent → candidate: AHEAD 6 / BEHIND 0; merge-base is the exact parent
  • lasting diff: 6 paths, limited to existing DEV1 packaging overlay, packaged host version/entrypoint, and focused tests

Product integration

  • centralizes the existing host-owned semantic version 0.6.0-r06.3dev.a in desktop_host.version; both the main packaged host and updater import the same authority;
  • adds desktop_host.updater_main, which forwards only the fixed updater argv to R06: wire trusted updater command to atomic apply core #246/R06: relaunch updated app and rollback failed spawn #248's trusted runner with the shared host-owned version and the already-merged R06: restore same-publisher Authenticode proof with fail-closed regressions #228 verify_same_publisher_authenticode authority;
  • updater entrypoint fails closed with a bounded exit code and does not echo filesystem-path/error details;
  • extends the existing build_windows.ps1 instead of introducing a second build system: main EXE remains unchanged in role and a separate one-file/windowed ScriptureArchive-R06-DEV01-Updater.exe is produced alongside it;
  • produces updater SHA-256/size text evidence, a dedicated updater build manifest and artifact readback;
  • extends the existing Windows release gate to require the updater EXE + manifest + readback and prove those identities agree with exact packaged updater bytes and the main build manifest;
  • existing DEV1 workflow already invokes this canonical release gate and uploads r06_platform/dist/**, so no parallel CI workflow is added.

Regression coverage

test_packaged_updater_entrypoint.py proves unchanged fixed argv forwarding, exact shared version authority, exact canonical Authenticode verifier identity, single fail-closed execution on errors, and rejection of missing callable authorities. The release gate continues to run the full composed overlay test suite before packaging.

Explicit non-claims / remaining release blockers

  • no production Authenticode signing identity/private key is introduced; unsigned builds must therefore continue to fail positive same-publisher verification in real production update use;
  • the packaged main host does not yet launch the updater or orchestrate its own shutdown after apply_ready;
  • no post-restart health commit/rollback cleanup yet;
  • no elevation policy change;
  • no physical Windows 11/WebView2 acceptance or HUMAN_NVDA acceptance claimed by this PR alone.

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