Repository navigation
v47 patch 2
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'sSourceHashnow describes the bytes that actually entered
servicing, not the bytes we intended to copy. Win32_ComputerSystemProduct.Versionis trimmed before being used as
the machine-type fallback. Prevents vendor DMI quirks (observed: ASUS)
from leaking whitespace into theHWcomponent ofDesiredStateId.- Workspace candidate filter now excludes only the UEFI System
Partition (IsSystem -and -not IsBoot) rather than any partition
flaggedIsSystem. The OS-volume fallback inGet-WorkDirPlanis
reachable again on legacy/BIOS single-volume machines. Get-GitHubBaseWinREreturns$falseon extraction failure instead
of throwing. Contract is now consistent with the two call sites that
already map failure toEXIT_FATAL.- Duplicate
Verified partitionlog line is suppressed. The
pre-shrink verification path no longer prints the same line twice.
Changed (harness)
Test-WinRE.ps1v24. Active-WIM diagnostic probe now probes both
forms of the reagentc-registered location, matching production's
dual-path behavior.Get-ThisMachineProfiletrims
Win32_ComputerSystemProduct.Versionto 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.Versionfield is
exactly 4 characters (observed: ASUS) see a one-time
DesiredStateIdchange 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.