Add Expert latency bake (BCD + timer registry) - #106
Merged
Conversation
VM-only Expert door: nx AlwaysOff, TSC Enhanced, dynamic tick off, plus GlobalTimerResolutionRequests / SystemResponsiveness / Win32PrioritySeparation. restore.json first. IoT desk and WinPE MiniNT refuse. Not a power scheme.
There was a problem hiding this comment.
🟡 Changes recommended
The new latency bake currently writes restore.json only after attempting mutations, risking applied changes without an on-disk restore manifest if interrupted.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds an expert-only “latency bake” workflow to Reclaim11 that applies an operator BCD + timer/MMCSS registry recipe from within Windows (while explicitly refusing Desk SKU and WinPE), and wires it through the Expert UI and WinPE kit packaging.
Changes:
- Introduces
latency_bake.ps1with apply/what-if/restore flows for BCD{current}/{bootmgr}and HKLM timer/MMCSS settings. - Wires the feature into the Expert UI (XAML +
Reclaim11.ps1click handlers) and extendsTest-Reclaim11.ps1coverage. - Ensures WinPE ISO/USB builders and the offline kit drop include
latency_bake.ps1, while tests enforce it is not executed from PE/startnet.
File summaries
| File | Description |
|---|---|
| scripts/Test-Reclaim11.ps1 | Extends regression tests to cover the new UI toggle/button wiring and latency bake behavior/constraints. |
| scripts/New-Reclaim11WinPeUsb.ps1 | Adds latency_bake.ps1 to the WinPE USB kit file list. |
| scripts/New-Reclaim11WinPeIso.ps1 | Adds latency_bake.ps1 to the WinPE ISO kit copy list. |
| godbrain_core/reclaim11/winpe/offline.ps1 | Includes latency_bake.ps1 in the PE “kit drop” payload. |
| godbrain_core/reclaim11/ui/MainWindow.xaml | Adds the Expert checkbox BtnLatency (“Latency bake”). |
| godbrain_core/reclaim11/README.md | Documents the latency bake recipe, constraints, and restore command. |
| godbrain_core/reclaim11/ps1/Reclaim11.ps1 | Loads latency bake script, adds UI binding + run/test execution paths and inventory JSON output. |
| godbrain_core/reclaim11/ps1/latency_bake.ps1 | New expert script implementing the latency bake apply/what-if/restore logic. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+204
to
+205
| New-Item -ItemType Directory -Path $backupRoot -Force | Out-Null | ||
| $applied = @() |
added 2 commits
September 5, 2026 11:16
Active scheme plus High Performance: selective suspend off, USB 3 LPM off, PCIe ASPM off. Refuse AGGRO/Ultimate. Do not pin min processor or disable idle. HP as a 24/7 plan stays Start-CS2.
Same two-write as NIC. Tests lock MiniNT throw and write-before-/set so a mid-bake crash still has a restore file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expert-only in-Windows bake of the operator BCD/timer recipe. Not pack A, not startnet, not noob, not a power scheme.
BCD
{current}:nx AlwaysOff(DEP off),tscsyncpolicy Enhanced,hypervisorlaunchtype Auto,vsmlaunchtype Off,sos No,useplatformclock No,useplatformtick No,disabledynamictick Yes.BCD
{bootmgr}:bootmenupolicy Legacy.HKLM:
GlobalTimerResolutionRequests=1,SystemResponsiveness=0,Win32PrioritySeparation=38.restore.jsonfirst. Restore:pwsh -File latency_bake.ps1 -Restore restore.json.IoTEnterpriseS) refused. WinPE MiniNT refused (that would write the PE BCD).-T/ TEST SELECTED:mutate=false, no/set.Test-Reclaim11.ps1green on this host. WhatIf on M1ABRAMS reportswould_refuse deskand does not write restore.json.Do not merge until operator GO. Do not boot this bake on the IoT desk.