Skip to content

v47 patch 2

Choose a tag to compare

@ArthurJDurand ArthurJDurand released this 04 Oct 22:17
· 47 commits to main since this release

Post-release corrections to v47 patch 1's source-lineage architecture,
four hardening fixes, and the corresponding harness update.

Fixed

  • OS-fallback missing-WIM guard no longer requires WinRE status to be
    Enabled. With WinRE Disabled, a matching state file, and an unreadable
    registered WIM, the guard now forces a rebuild instead of letting the
    full-update path fall through to a loose WIM at
    C:\Windows\System32\Recovery\winre.wim — bypassing the strip/injection
    pipeline entirely.
  • Base WIM copy is hash-verified immediately after Copy-Item. The
    checkpoint's SourceHash now describes the bytes that actually entered
    servicing, not the bytes we intended to copy.
  • Win32_ComputerSystemProduct.Version is trimmed before being used as
    the machine-type fallback. Prevents vendor DMI quirks (observed: ASUS)
    from leaking whitespace into the HW component of DesiredStateId.
  • Workspace candidate filter now excludes only the UEFI System
    Partition (IsSystem -and -not IsBoot) rather than any partition
    flagged IsSystem. The OS-volume fallback in Get-WorkDirPlan is
    reachable again on legacy/BIOS single-volume machines.
  • Get-GitHubBaseWinRE returns $false on extraction failure instead
    of throwing. Contract is now consistent with the two call sites that
    already map failure to EXIT_FATAL.
  • Duplicate Verified partition log line is suppressed. The
    pre-shrink verification path no longer prints the same line twice.

Changed (harness)

  • Test-WinRE.ps1 v24. Active-WIM diagnostic probe now probes both
    forms of the reagentc-registered location, matching production's
    dual-path behavior. Get-ThisMachineProfile trims
    Win32_ComputerSystemProduct.Version to align with production's DSI
    computation.

Migration

ScriptVersion remains 47; ScriptPatchLevel moves from 1 to 2. No
fleet-wide rebuild is forced.

  • A v47 patch 1 Step 3 checkpoint on disk at the moment of upgrade is
    invalidated on first patch-2 run; the run rebuilds from Step 2. This
    is the correct convergence for a checkpoint whose source identity
    cannot be proven under the new rules.
  • Machines whose padded Win32_ComputerSystemProduct.Version field is
    exactly 4 characters (observed: ASUS) see a one-time
    DesiredStateId change from the Version-trim fix and rebuild once on
    the next scheduled run. All other machines continue on the fast path.

Field verification

The non-destructive paths of v47 patch 2 have been exercised on three
physical machines:

  • Dell Pro Max 16 Premium MA16250 (Core Ultra 7 265H, Win11 26300) —
    full rebuild with Dell WinPE11 A10 OEM pack (64 drivers injected),
    fast path on second run.
  • ASUS Vivobook X1504ZA (i3-1215U, Win11 26300) — C: actively encrypting
    during the run; dedicated-partition path completed successfully;
    no re-encryption of the new recovery partition.
  • ASUS Vivobook X1504VA (i7-1355U, Win11 26300) — same shape as the
    X1504ZA.

All three: Operating mode: DEDICATED, Byte drift: NO on the second
run, reagentc /enable exit 0.

Full detail

CHANGELOG.md