Skip to content

R06: keep updater usable after main-app version advance - #276

Open
Oleksii-debug wants to merge 18 commits into
r06-compose-updater-stack-0929-solfrom
r06-updater-current-version-handoff-0930-sol
Open

Oleksii-debug wants to merge 18 commits into
r06-compose-updater-stack-0929-solfrom
r06-updater-current-version-handoff-0930-sol

Conversation

@Oleksii-debug

@Oleksii-debug Oleksii-debug commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Release-critical defect

The packaged updater is a separate sibling executable. #274 updates the main application executable atomically but does not replace the sibling updater. Before this repair, updater_main.py treated the updater binary's own build-time application version as current-app authority.

After one successful application update, the main app can therefore be newer while the unchanged same-publisher updater still carries the older build-time version. A second valid update then fails closed because the pending/apply journal was staged by the newer app but the updater claims the older embedded version.

Exact current lineage

  • exact parent / base: hardened R06: compose qualified updater stack onto current package #274 head b8798c93038ddd32fda311df15adf39a5767d81a
  • successor branch: r06-updater-current-version-handoff-0930-sol
  • exact qualified head: 4554ac6bb4ad4d9edbe834bf02845b3024abca1b
  • exact parent remains the merge base
  • lasting delta: 10 paths, limited to updater process/runner/packaged host wiring, build evidence, and focused regressions
  • PR mergeability at changed-head review: clean

The #274 launch-authority hardening remains authoritative. Where the version handoff overlaps that code, the process-plan authority check now also requires exact host-owned current-version equality.

Repair

  • UpdaterProcessPlan carries the running packaged host's semantic version as a fixed --current-version field.
  • Browser transport supplies none of updater path/PID/version/argv authority.
  • Plan construction and parsing validate SemVer and exact command shape/order.
  • Packaged main.py binds updater launch to its host-owned CURRENT_APPLICATION_VERSION.
  • updater_main.py derives the current version from the fixed host handoff after canonical sibling validation; it no longer imports the updater binary's own build-time version as current-app authority.
  • The updater still requires the canonical installed application sibling and same-publisher verification before runner execution.
  • execute_trusted_updater requires its trusted current-version argument to equal the fixed handoff version before parent wait or apply consumption.
  • Build evidence explicitly records UpdaterProcessPlan.current_version + runner exact-handoff equality as application-version authority.

This lets an older same-publisher sibling updater service an already-updated main executable while preserving the existing fail-closed PID/path/publisher/apply boundaries.

Changed-head review

Fresh review on 4554ac6bb4ad4d9edbe834bf02845b3024abca1b covered all 10 changed paths and confirmed:

  • no fallback to embedded updater version remains;
  • malformed version/command shape fails before mutation;
  • host plan authority includes exact current version;
  • direct updater entrypoint forwards a newer host version and fails before verifier/executor on invalid version;
  • runner version mismatch fails before parent wait/apply;
  • no canonical Scripture/source/provenance/campaign/grading bytes are changed.

The earlier head 5804dad37ae9b495abc795e5f062689a7262cd4e exposed four stale test calls that did not pass the new required current_version. Those fixtures were updated on the same canonical branch; production authority was not weakened.

Exact-head hosted qualification

All workflows triggered for 4554ac6bb4ad4d9edbe834bf02845b3024abca1b are terminal SUCCESS:

  • DEV1 Platform CI 36725148540 — Linux + Windows SUCCESS, including Windows engineering release gate.
  • DEV05 runtime grading 36725148528 — SUCCESS.
  • DEV06 memory persistence 36725148651 — SUCCESS.
  • DEV10 Integration CI 36725148724 — SUCCESS.
  • D2 structured runtime compatibility 36725148650 — SUCCESS.
  • Library/Search Qualification 36725148676 — SUCCESS.
  • Packaged Speech Direct Qualification 36725148693 — SUCCESS.

Nonclaims

This PR does not claim:

  • production Authenticode signing identity/private key;
  • physical Windows 11/WebView2 updater end-to-end acceptance;
  • HUMAN_NVDA acceptance;
  • main/package release authorization.

CHANGED_HEAD_REVIEW=PASS
READY_FOR_INTEGRATION=YES
MAIN_MERGE_AUTHORIZATION=NO

Copy link
Copy Markdown
Owner Author

CHANGED-HEAD QUALIFICATION / INTEGRATION HANDOFF — exact #276 head 4554ac6bb4ad4d9edbe834bf02845b3024abca1b

Release-critical stale-version defect is closed on top of the hardened #274 authority:

  • parent/base is exactly b8798c93038ddd32fda311df15adf39a5767d81a;
  • host-owned current SemVer is carried in the fixed updater process plan;
  • browser supplies no version/PID/path/argv authority;
  • canonical sibling + same-publisher boundaries remain in force;
  • updater entrypoint no longer relies on its own embedded build-time app version;
  • runner rejects handoff/API version disagreement before parent wait or apply.

Fresh changed-head review covered all 10 delta paths. No blocking semantic defect or canonical Scripture/source/provenance/campaign/grading mutation found.

Exact-head triggered workflows are all terminal SUCCESS:

  • DEV1 Platform CI 36725148540 — Linux + Windows;
  • DEV05 36725148528;
  • DEV06 36725148651;
  • DEV10 36725148724;
  • D2 36725148650;
  • Library/Search 36725148676;
  • Packaged Speech 36725148693.

Earlier head 5804dad37ae9b495abc795e5f062689a7262cd4e failed only because four existing launch-boundary tests had not supplied the newly-required host version. Those same-lineage fixtures were repaired without weakening production checks.

No production signing, physical Windows/WebView2 update E2E, HUMAN_NVDA, or main/package merge authorization is claimed.

CHANGED_HEAD_REVIEW=PASS
READY_FOR_INTEGRATION=YES
MAIN_MERGE_AUTHORIZATION=NO

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