ui-tests-local-vm
Skill142k starsChanged 39 days agoMITView on GitHub
Run PowerToys UITest.Next suites in persistent Hyper-V VMs over PowerShell Direct. Validate full default and constrained suites on Windows 10 and Windows 11, plus applicable ARM64 guests, then automatically hand implementation tasks to ui-tests-pipeline-ci for commit/push and CI validation. Local green is not end-to-end completion. Use for agentic UI-test iteration, reusable standard-user desktops, payload staging, evidence export, VM customization, clean baselines, or hosts without nested virtualization. Keywords: Hyper-V, local VM, virtual machine, PowerShell Direct, Copy-VMFile, VMBus, checkpoint, unattend, autounattend, ISO, Windows 10 LTSC, Windows 11, ARM64, Windows on ARM, UI tests, UITest.Next, winappcli, TRX, CI handoff.
Trending
More talk lately.about the whole repository
Who's talking about microsoft/PowerToys
- A Hacker News story“Fancy Zones, a tiling window manager”Hacker News · Sep 6, 2019 · 507 points
- A Hacker News story“PowerToys: Windows system utilities to maximize productivity”Hacker News · Sep 5, 2019 · 343 points
- A Hacker News story“PowerToys – Windows system utilities to maximize productivity”Hacker News · May 7, 2019 · 82 points
- snowie2000/mactype“Generic Subpixel Algorithm for Triangular-Structure QD-OLEDs / Pentile / WOLED / Others”GitHub · Apr 20, 2023 · 42 reactions
- A Hacker News story“PowerToys Release 0.70 with Mouse Without Borders and PowerToys Peek”Hacker News · May 24, 2023 · 41 points
The biggest 5 of 111 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 111
Talked about on GitHub, Bluesky and Hacker News (111 times).
On GitHub · 42
- Apr 20, 2023Generic Subpixel Algorithm for Triangular-Structure QD-OLEDs / Pentile / WOLED / Others — snowie2000/mactype42 reactions · 32 comments
- Oct 10, 2023Option to disable subpixel rendering on Windows instead of having to use CLI argument — microsoft/vscode28 reactions · 11 comments
- Mar 31, 2020Powertoys — QL-Win/QuickLook23 reactions · 2 comments
- May 18, 2021Obsolete due to MS PowerToys — tibold/svg-explorer-extension16 reactions · 11 comments
- Apr 30, 2026No results since vscode 1.118 — taooceros/Flow.Plugin.VSCodeWorkspace10 reactions · 4 comments
37 more on GitHub
- Jan 28, 2026(powertoys) 0.97.1's download URL is incorrect — mkevenaar/chocolatey-packages9 reactions · 1 comment
- Oct 13, 2023Tracking issue for DSC Resources — microsoft/winget-cli8 reactions
- Apr 20, 2022Question: When will InfoBadge be available in WinUI3? — microsoft/microsoft-ui-xaml8 reactions · 2 comments
- Apr 8, 2026Suggested fix for Windows host 1.4.6 breaks text input from iOS and Android (Resulted in modifier keys general fix) — rustdesk/rustdesk5 reactions · 38 comments
- Oct 17, 2026Remove version: Microsoft.PowerToys version 0.102.2862.0 — microsoft/winget-pkgs2 reactions · 9 comments
- Jun 11, 2026powertoys@0.100.0: Fix runtime issues by copying required files in the installer script — ScoopInstaller/Extras2 reactions · 3 comments
- Dec 6, 2023DwmGetColorizationParameters fallback in case of failure #593 — lepoco/wpfui2 reactions · 1 comment
- Dec 13, 2022Implement IFileDropResult to support drag&drop of results — lin-ycv/EverythingPowerToys2 reactions
- Sep 29, 2021add other localization resources — Flow-Launcher/Flow.Plugin.WindowsSettings2 reactions · 1 comment
- Apr 27, 2026[codex] Add low memory mode for supported utilities — Michaelihc/PowerToys1 reaction · 3 comments
- Feb 14, 2026Adds Microsoft PowerToys to Tools section — phoboslab/qoi1 reaction
- Jan 30, 2026PowerToys: Correct Typo in chocolateyinstall.ps1 $url64 Value — mkevenaar/chocolatey-packages1 reaction · 3 comments
- Oct 30, 2025[PowerToys Awake] Clarify lock screen behavior, add security considerations — MicrosoftDocs/windows-dev-docs1 reaction · 5 comments
- Oct 28, 2025[PowerToys] Shortcut Guide V2 docs — MicrosoftDocs/windows-dev-docs1 reaction · 15 comments
- Feb 21, 2025Update InvokeTestingPlatformTask to prefer running Exe over `dotnet exec dll` — microsoft/testfx1 reaction · 9 comments
- Feb 11, 2025Add Extensions page to Settings UI — microsoft/terminal1 reaction · 9 comments
- Jan 7, 2025Remove workaround that's not needed anymore — MicrosoftDocs/windows-dev-docs1 reaction · 9 comments
- Dec 18, 2024chore: configure Dependabot for GitHub Actions updates — microsoft/markitdown1 reaction · 1 comment
- Aug 5, 2024Updated Awake settings — MicrosoftDocs/windows-dev-docs1 reaction · 3 comments
- Jul 15, 2024Update PowerToys script to newer tag — mkevenaar/chocolatey-packages1 reaction · 5 comments
- Jul 15, 2024powertoys@0.82.1: Fix for the tag change — ScoopInstaller/Extras1 reaction · 3 comments
- May 14, 2024PowerToys PowerRename random values feature docs — MicrosoftDocs/windows-dev-docs1 reaction · 4 comments
- May 2, 2024Create similarIssues.yml which automatically comments with similar issues on the repo — dotnet/maui1 reaction · 4 comments
- Jan 25, 2024Update copyright year and copyright string — microsoft/WinUI-Gallery1 reaction · 2 comments
- Jan 22, 2024Add PowerToys Text Extractor — dynobo/normcap1 reaction · 2 comments
- Nov 21, 2023Implement FREETYPE_CUSTOM_GEOMETRY environment variable for unusual subpixel formats — rennr/freetype1 reaction · 15 comments
- Nov 13, 2023PowerToys Run for 0.75.1 requires Plugin ID in Main — bostrot/PowerToysRunPluginWinget1 reaction · 6 comments
- Aug 31, 2023[PowerToys][FindMyMouse] Add new activation methods — MicrosoftDocs/windows-dev-docs1 reaction · 2 comments
- Jun 4, 2023[Peek] Update docs to reflect new navigation keys — MicrosoftDocs/windows-dev-docs1 reaction · 6 comments
- May 15, 2023[PowerToys] Add Peek docs — MicrosoftDocs/windows-dev-docs1 reaction · 9 comments
- Apr 5, 2023[SettingsControls] Accessibility improvements — CommunityToolkit/Labs-Windows1 reaction · 2 comments
- Dec 30, 2022Use localized name for shell link programs — Flow-Launcher/Flow.Launcher1 reaction · 7 comments
- Dec 11, 2022Update quick-accent.md — MicrosoftDocs/windows-dev-docs1 reaction · 3 comments
- Oct 22, 2022[Program Plugin] Fix program UID and other bugs — Flow-Launcher/Flow.Launcher1 reaction · 4 comments
- Sep 30, 2022PowerToys text improvements — MicrosoftDocs/windows-dev-docs1 reaction · 12 comments
- Jul 23, 2022[PowerToys] Docs update for activation command change — MicrosoftDocs/windows-dev-docs1 reaction · 10 comments
- Jun 23, 2022v0.59.0 added support for arm — MicrosoftDocs/windows-dev-docs1 reaction · 1 comment
On Bluesky · 41
- Jan 22, 2026Hot tip: Turns out you can disable the Copilot button on the keyboard with the keyboard remapping tool (map it onto the left-ctrl button… — @keithng.bsky.social14 likes and reposts · 2 replies
- Sep 7, 2023برای استخراج متن از تصویر در ویندوز Microsoft PowerToys رو از گیتهاب دانلود و نصب کنید. github.com/microsoft/Po... وارد تنظیمات اون بشید… — @yetanotheruserhere.bsky.social9 likes and reposts
- Jan 8, 2025So, let me get this straight. Microsoft (yes, actually them) developed an OPEN SOURCE addon for Windows that adds a bunch of use of useful… — @dzaladan.eurosky.social5 likes and reposts
- Aug 12, 2023https://learn.microsoft.com/en-us/windows/powertoys/ — @starsetbyte.lol5 likes and reposts · 2 replies
- Jan 6, 2026📦 microsoft / PowerToys ⭐ 127,159 (+46) 🗒 C# Microsoft PowerToys is a collection of utilities that help you customize Windows and… — @github-trending.bsky.social4 likes and reposts
36 more on Bluesky
- May 16, 2025📦 microsoft / PowerToys ⭐ 118,571 (+41) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social3 likes and reposts
- May 7, 2025Microsoft... Faut les sucer en chantant "Microsoft est le plus grand contributeur du libre au monde, Microsoft est beau, Microsoft est… — @zurbo.fr3 likes and reposts · 1 reply
- Mar 23, 2025powertoys fancyzones, get that shit fixed up github.com/microsoft/Po... — @ket.bsky.social3 likes and reposts · 1 reply
- Jan 7, 2025If you're a Windows user, this bundle of efficiency gadgets from @microsoft.com should be definitely on your radar!… — @jankabatek.com3 likes and reposts
- Dec 19, 2024📦 microsoft / PowerToys ⭐ 112,455 (+71) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social3 likes and reposts
- Jan 11, 2024📦 microsoft / PowerToys ⭐ 100,904 (+86) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social3 likes and reposts
- Nov 22, 20232. download Windows PowerToys and find the Text Extractor module. The default keybind Win-Shift-T lets you select text directly from your… — @meganox.myatproto.social3 likes and reposts · 2 replies
- Oct 31, 2023Why?! 😶 Why haven't I installed MS PowerToys sooner? 😒 Love them! 😍 — @ferociousbyte.dev3 likes and reposts · 1 reply
- Dec 12, 2025github.com/microsoft/Po... learn.microsoft.com/en-us/window... indeed, it does! have some relevant links :) — @auralyn.northsky.social2 likes and reposts
- Oct 17, 2025📦 microsoft / PowerToys ⭐ 124,453 (+79) 🗒 C# Microsoft PowerToys is a collection of utilities that help you customize Windows and… — @github-trending.bsky.social2 likes and reposts
- Jul 29, 2025📦 microsoft / PowerToys ⭐ 121,315 (+82) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social2 likes and reposts
- Mar 10, 2025PowerToys has some useful tools too github.com/microsoft/Po... — @emeraldfox.gay2 likes and reposts
- Mar 6, 2025📦 microsoft / PowerToys ⭐ 115,374 (+62) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social2 likes and reposts
- Jan 28, 2025You rang? PowerToys: github.com/microsoft/Po... AI Dev Gallery: github.com/microsoft/AI... — @baldbeardedbuilder.com2 likes and reposts · 2 replies
- Jan 14, 2025It's free, open source, and developed by Microsoft. github.com/microsoft/Po... — @crossmod.bsky.social2 likes and reposts
- Sep 5, 2024📦 microsoft / PowerToys ⭐ 108,627 (+60) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social2 likes and reposts
- Nov 13, 2026🚀 GitHub Intelligence Drop gstack (TypeScript • 🟢) ⭐ 141.5K → https://github.com/garrytan/gstack PowerToys (C • 🟢) ⭐ 141K →… — @githubfeed.bsky.social1 likes and repost
- Sep 11, 2026Power Display within PowerToys would probably work for ya - github.com/microsoft/Po... — @siberionhusky.bsky.social1 likes and repost
- Jun 12, 2026I just starred microsoft/PowerToys on GitHub: https://github.com/microsoft/PowerToys — @chiefgyk3d.com1 likes and repost
- Apr 1, 2026I really find the Mouse Without Borders tool (part of github.com/microsoft/Po...) super useful. There's a few rough edges for features I'd… — @david.gardiner.net.au1 likes and repost · 1 reply
- Jan 31, 2026📦 microsoft / PowerToys ⭐ 128,642 (+61) 🗒 C# Microsoft PowerToys is a collection of utilities that help you customize Windows and… — @github-trending.bsky.social1 likes and repost
- Nov 9, 2025And last but not least, in fact very important, is powertoy, and the command palette github.com/microsoft/Po... — @vnphanquang.com1 likes and repost
- Sep 17, 20251. FlipFlip by StarrHelixx github.com/ififfy/flipf... For studying art REFs 2. PureRef www.pureref.com 2. Draw-IO www.drawio.com —… — @mireu9999.bsky.social1 likes and repost · 1 reply
- May 21, 2025📦 microsoft / PowerToys ⭐ 118,951 (+95) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social1 likes and repost
- Feb 16, 2025GitHub: github.com/microsoft/Po... — @rand0mbits.bsky.social1 likes and repost
- Feb 3, 2025microsoft power toys has a window manager that lets you do exactly that - set custom zones for each display… — @lucyluuu.me1 likes and repost · 1 reply
- Dec 22, 2024Two must haves on every new Windows laptop I have github.com/microsoft/Po... Powertools and www.voidtools.com Everything Pretty much lets… — @nathanbeddoe.com1 likes and repost
- Sep 23, 2024Github, too github.com/microsoft/Po... — @obol.bsky.social1 likes and repost
- Sep 16, 2024https://github.com/microsoft/PowerToys Interesting — @yee.nu1 likes and repost
- Mar 17, 2024Años buscando cómo cambiar el mapa de caracteres de mi teclado en Windows y resulta que existía esto publicado por el propio Microsoft.… — @jmbeas.es1 likes and repost · 1 reply
- Sep 29, 2023📦 microsoft / PowerToys ⭐ 95,738 (+58) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social1 likes and repost
- Sep 4, 2023Favorite productivity tools that I use daily: 1) PowerToys - github.com/microsoft/Po... - fancy zones, text extractor, and more 2) Beeftext… — @drewmaust.bsky.social1 likes and repost
- Oct 18, 2025Ny Powertoys (om du ikke bruker det, get it!) har nå fått Light Switch og Peek! Light Switch endrer automatisk light/dark mode basert på… — @visn.es0 likes and reposts · 1 reply
- Sep 4, 2025📦 microsoft / PowerToys ⭐ 122,846 (+52) 🗒 C# Windows system utilities to maximize productivity — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 21, 2025I discovered that PowerToys for Windows is a thing. * Spotlight-like search with Alt+Space; * Caffeine-like app to prevent the PC from… — @andrey.nering.dev0 likes and reposts · 1 reply
- Aug 12, 2025Eine Auswahl der Tools: https://github.com/memstechtips/WIMUtil https://github.com/memstechtips/UnattendedWinstall… — @sebastianlaube.layer8.space.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 28
- Sep 6, 2019Fancy Zones, a tiling window manager507 points · 163 comments
- Sep 5, 2019PowerToys: Windows system utilities to maximize productivity343 points · 126 comments
- May 7, 2019PowerToys – Windows system utilities to maximize productivity82 points · 29 comments
- May 24, 2023PowerToys Release 0.70 with Mouse Without Borders and PowerToys Peek41 points · 12 comments
- May 3, 2025PowerToys – Windows system utilities to maximize productivity10 points · 2 comments
23 more on Hacker News
- Oct 29, 2020Microsoft PowerToys – Color Picker7 points
- Feb 21, 2021PowerToys6 points
- May 8, 2019Microsoft PowerToys for Windows 106 points · 2 comments
- May 21, 2025The Windows efficiency toolkit open-sourced by Microsoft5 points · 1 comment
- Apr 30, 2020Microsoft PowerToys v0.17.05 points
- May 29, 2023A plea to Microsoft: Subpixel text rendering for WRGB stripe and RGB triangular4 points
- Nov 3, 2023Microsoft PowerToys: utilities for tuning and streamlining Windows experience3 points · 1 comment
- Nov 3, 2022Release v0.64.0 · Microsoft/PowerToys3 points
- Jan 10, 2022PowerToys: Utilities to tune and streamline Windows for greater productivity3 points
- Nov 1, 2021Microsoft PowerToys3 points
- Oct 9, 2025PowerToys has detected an app Always On Top message · Issue #309732 points
- Oct 30, 2023PowerToys: Windows system utilities to maximize productivity2 points
- Feb 9, 2023PowerToys Quick Accent adds the ability to type en and em dashes2 points · 1 comment
- Aug 23, 2020Microsoft PowerToys for Windows 102 points · 1 comment
- Aug 2, 2020Microsoft PowerToys2 points
- May 19, 2020PowerToys v0.18.02 points
- Oct 1, 2023Powertoys bug #2701: [New setting] Check for updates automatically (on/off)1 point
- Nov 3, 2022PowerToys: Windows system utilities to maximize productivity1 point
- May 28, 2021MS PowerToys is a set of utilities for power users to tune their Windows 101 point · 1 comment
- Jun 24, 2020PowerToys Keyboard Manager1 point
- May 30, 2020Windows PowerToys Run1 point
- Oct 29, 2019Microsoft Powertoys v0.12.01 point
- May 8, 2019Microsoft Reboots PowerToys for Windows 101 point
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/.github/copilot-instructions.mdCopilot instructions
- powertoys-verificationSkill
- release-note-generationSkill
- ui-tests-migrationSkill
- ui-tests-pipeline-ciSkill
- winmd-api-searchSkill
- wpf-to-winui3-migrationSkill
- add-adaptive-card-formSkill
- add-dock-bandSkill
- add-extension-settingsSkill
- add-fallback-commandsSkill
- publish-extensionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 15 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Run PowerToys .Next UI tests in a persistent, interactive Windows VM while keeping product and test execution off the host.
- Very specific: line 24
Start guests with the default resource profile: 4 vCPUs and 8 GB RAM.
- Distinctive: line 46
Use it when asked to:
- Distinctive: line 48
Create or migrate UI tests and iterate repeatedly without reprovisioning Windows each run.
- Distinctive: line 51
Run tests as a true standard user while retaining a separate administrator control channel.
- Very specific: line 53
Keep a reproducible local VM baseline with optional .NET 10, WebView2, diagnostics, or msvsmon.
- Distinctive: line 57
Do not treat a persistent VM as proof of clean-profile behavior.
- Distinctive: line 69
Do not modify stabilized tests merely to make the local VM green.
- Distinctive: line 80
Use licensed Microsoft subscription media for LTSC when available, and always record the edition, ISO hash, and installed full build …
- Distinctive: line 100
Read only what the task needs:
- Distinctive: line 145
Create and maintain this task list:
- Very specific: line 187
If it reports IsReady=false, stop and ask the user to run the elevated command it prints (see references/setup.md §0).
- Very specific: line 199
Follow references/setup.md to write the untracked vm.config.psd1, save the administrator credential with Windows DPAPI, obtain install …
- Very specific: line 232
Keep the guest's VHDX and VM configuration on NTFS.
- Distinctive: line 249
Keep VM files and writable exchange folders outside the repository.
- Distinctive: line 250
Keep the guest's default inbound network posture.
- Distinctive: line 252
Use a DPAPI-protected credential file.
- Very specific: line 254
Run UI tests in an already logged-on standard-user desktop, never in session 0 or as SYSTEM.
- Distinctive: line 255
Keep a separate administrator account only for VM control and scheduled-task registration.
- Distinctive: line 256
Verify user, token integrity, Explorer presence, session ID, and display size before tests.
- Very specific: line 257
Run product/tests from guest-local storage under C:\PowerToysUiTestRun.
- Distinctive: line 258
Use PowerShell 7 for interactive probe/test scheduled tasks.
- Very specific: line 262
Always parse TRX and require total > 0 plus executed == total.
- Distinctive: line 264
Keep the VM after normal runs for iteration.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Local VM UI testing
Run PowerToys .Next UI tests in a persistent, interactive Windows VM while keeping product and test
execution off the host. Use this skill as the execution complement to
ui-tests-migration. Restore the baseline checkpoint or recreate the
guest when clean-profile behavior must be validated.
The guest is a Hyper-V virtual machine. Nothing runs nested, so the same scaffold works on x64 and on Windows on ARM, where nested virtualization is unavailable to any Linux-hosted emulator.
The local correctness gate passes when the full suite is green on Windows 10 and on
Windows 11, in two separate VMs. Run Windows 10 Enterprise LTSC 2021 first for the fastest
feedback, then run the same unfiltered suite on Windows 11. Differences in the shell, compositor,
theming, and timing break tests that contain nothing Windows 11-specific, and those are exactly
the failures worth catching locally instead of in CI. On a Windows on ARM host, Windows 11 ARM64
is the only practical guest; run it with -Platform ARM64 and get the Windows 10 half from an x64 host.
Start guests with the default resource profile: 4 vCPUs and 8 GB RAM. Get the target suite fully
green before lowering resources with the Constrained profile (1 vCPU and 4 GB RAM).
For create, migrate, or stabilize tasks, complete both profiles and then automatically invoke ui-tests-pipeline-ci: pass its access preflight, commit and push the scoped changes, queue CI, and remain attached until terminal validation. Do not mark the task complete at local green or wait for another user request to publish/run CI. Respect explicit local-only/no-push/no-CI scope and the Microsoft FTE/access gates. Local execution or VM setup alone does not authorize publication. See the pipeline skill for the shared completion and blocker rules.
How the host reaches the guest
| Concern | Mechanism |
| Control channel | PowerShell Direct over VMBus. No listener, port, certificate, or firewall rule in the guest. |
| Bulk payload | Copy-VMFile over the Guest Service Interface, ~82 MB/s. The session copy is a fallback and stalls on archives near a gigabyte. |
| Exchange | Guest-local C:\PowerToysUiTestExchange\<name>, mirrored by the controller. The host never shares a folder with the guest. |
| Host privilege | Hyper-V access: an elevated shell, or an account in the local Hyper-V Administrators group. Creating a guest additionally requires real elevation. |
| Console | scripts/Get-VmConsoleImage.ps1 renders the framebuffer to PNG, so an agent can read boot and desktop state without VMConnect. |
When to use this skill
Use it when asked to:
- Create or migrate UI tests and iterate repeatedly without reprovisioning Windows each run.
- Validate Explorer, hotkey, WebView2, shell-extension, foreground, or composed-visual behavior in a real interactive desktop.
- Run tests as a true standard user while retaining a separate administrator control channel.
- Reuse unchanged PowerToys, winappcli, and .NET payloads and refresh only changed archives.
- Keep a reproducible local VM baseline with optional .NET 10, WebView2, diagnostics, or
msvsmon. - Collect durable
status.json, TRX, transcripts, logs, screenshots, and failure attachments. - Compare revisions in one stable VM before confirming the result from a restored checkpoint.
Do not treat a persistent VM as proof of clean-profile behavior. Caches, registrations, settings, and first-run state survive between runs. Restore the baseline checkpoint or recreate the VM when those are the behavior under test.
Relationship to other UI-test skills
| Skill | Owns |
ui-tests-migration | Test design, project scaffolding, framework APIs, assertions, lifecycle, and CI stability. |
ui-tests-local-vm | Fast persistent-VM setup, deployment, interactive execution, evidence export, and iteration. |
ui-tests-pipeline-ci | Required post-local commit/push, access preflight, scoped CI, and terminal sign-off for implementation tasks. |
Do not modify stabilized tests merely to make the local VM green. First prove that the suite executes, produces assertion-bearing TRX, and has a useful success rate. Classify environment-specific failures separately unless the task explicitly asks for stabilization.
Guest OS policy
- Two guests, two full suites. Windows 10 Enterprise LTSC 2021 (build 19044/21H2, newer than the
Windows 10 20H2 baseline) and Windows 11. Both must be fully green before the local gate passes.
LTSC is not available through Fido;
-Source Fido -Windows 10automates Microsoft's official mobile-user-agent ISO page and is the practical public default. The public ISO/MCT images are too old for .NET 10 CET, so Setup Dynamic Update must bring Win10 to 1904x.5007+ before the baseline. Use licensed Microsoft subscription media for LTSC when available, and always record the edition, ISO hash, and installed full build (references/setup.md §3). - Windows 10 runs first: it is the faster loop and surfaces most defects. Windows 11 then runs the same suite, unfiltered - not only the tests that look Windows 11-specific. A test with no Windows 11 content can still fail there, which is the whole reason for the second pass.
- Narrow filters belong to iteration and diagnosis. They are never the evidence for the Windows 11 pass.
- Give each OS its own VM name,
vm.config.psd1, VHDX, checkpoints, and exchange. Never upgrade or repurpose the Windows 10 guest into the Windows 11 guest; the two baselines must stay independent. - Surfaces that exist only on Windows 11, such as the tier-1 Explorer context menu, need no special handling: the full Windows 11 run already covers them.
- On a Windows on ARM host, use a Windows 11 ARM64 guest with
-Platform ARM64. Hyper-V does not emulate a foreign architecture, so that host cannot supply the Windows 10 x64 pass - run it on an x64 host and report both. - A Windows 11 host requirement does not make Windows 11 the first guest target.
-Platformis not cosmetic: it flows to the guest as theplatformenvironment variable, names visual baselines, and marks the run as pipeline-like. Use onlyx64Win10,x64Win11, orARM64.
Required reads
Read only what the task needs:
- references/setup.md - host requirements, scaffolding, media acquisition, unattended guest creation, credentials, standard-user desktop, and checkpoint baselines.
- references/agentic-loop.md - payload contract, controller usage, focused-to-suite iteration, evidence, verdicts, and reset strategy.
- references/customization.md - persistent image customization,
.NET 10, WebView2,
msvsmon, resource profiles, and golden-baseline guidance. - references/troubleshooting.md - guest creation, PowerShell Direct, interactive session, scheduled-task, focus, timeout, and export failures.
- references/shell-extensions-and-signing.md - read
for any shell-extension module (context menu, preview/thumbnail handler). Why unsigned CI PR
builds cannot register a sparse MSIX (0% on CI), classic (registry-COM, signing-free) vs modern
(sparse-MSIX) surfaces, Debug vs Release/
NDEBUGgating, runtime detection, and reproducing CI's classic scenario on a local signed VM. - ui-tests-migration - required whenever test code or framework behavior is being created, migrated, or stabilized.
Default agentic cycle
flowchart LR
A[Design or edit test] --> B[Host build]
B --> C[Package changed payload]
C --> D[Start or reuse VM]
D --> E[Probe standard-user desktop]
E --> F[Run focused test]
F --> G[Export status TRX evidence]
G --> H{Need test change?}
H -- Yes --> A
H -- No --> I[Run full suite on Win10]
I --> J[Run same full suite on Win11]
J --> K{Both fully green?}
K -- No --> A
K -- Yes --> L[Full constrained suites on both OSes]
L --> M{Local matrix green?}
M -- No --> A
M -- Yes --> N[Clean-profile confirmation when required]
N --> O[ui-tests-pipeline-ci: preflight, commit, push]
O --> P[Scoped CI and terminal validation]The CI continuation applies to implementation tasks; explicit local-only and setup-only tasks stop at their requested local outcome.
Create and maintain this task list:
- [ ] 0. Verify host setup FIRST: `Initialize-LocalVmHost.ps1 -VmRoot <root> -CheckOnly`. If it reports
IsReady=false, STOP and ask the user to run the elevated command it prints - Hyper-V group
membership, the DPAPI credential, and guest creation all need a human. Never autopilot past it
- [ ] 1. Read ui-tests-migration guidance for the target test surface
- [ ] 1a. Read the target module's dev docs — `doc/devdocs/modules/<module>.md` (search `doc/devdocs/`,
including `common/`, if the exact file is missing) — for development-cycle gotchas such as
Release/`NDEBUG` registration gating, signed sparse-MSIX context menus, and Explorer restarts,
so a module's registration/deployment requirements do not surface as opaque test failures.
For shell-extension modules also read references/shell-extensions-and-signing.md.
- [ ] 2. Scaffold or verify the local VM - references/setup.md
- [ ] 3. Build product and test projects on the host to exit code 0
- [ ] 4. Package a lean exchange and verify archive hashes
- [ ] 5. Run the controller with -PlanOnly and inspect its request/plan
- [ ] 6. Probe the non-admin interactive desktop before test execution
- [ ] 7. Run one focused test synchronously; keep the agent turn attached, read the controller
result's `.Failed` array (non-passed tests + first error line) instead of re-parsing TRX, and
use `scripts/Invoke-GuestScript.ps1` for guest-state inspection
- [ ] 8. Diagnose the first controlling failure without weakening assertions
- [ ] 9. Rebuild and rerun with -ReuseStagedPayload
- [ ] 10. Widen to the full module suite on Windows 10 and report pass rate/root-cause groups
- [ ] 11. Run the same full suite in the Windows 11 VM; both must be green before the local gate passes
- [ ] 12. Restore the baseline checkpoint for clean-profile confirmation when required
- [ ] 13. Run the full Constrained suite on both OSes; preserve default and constrained evidence
- [ ] 14. For implementation tasks, invoke ui-tests-pipeline-ci without another user prompt, pass
access preflight, commit/push task-owned changes, and record the exact branch/SHA
- [ ] 15. Queue scoped CI and use the pipeline skill's watcher to verify terminal results; local green alone
cannot complete the task unless the user explicitly requested local-only scopeQuick start
Host setup is a one-time, human-only step: Hyper-V group membership, the DPAPI guest credential, and guest creation all need elevation or a password. Check it before anything else - this needs no elevation and changes nothing:
pwsh .github\skills\ui-tests-local-vm\scripts\Initialize-LocalVmHost.ps1 -VmRoot X:\PowerToysUiTestVm -CheckOnlyIf it reports IsReady=false, stop and ask the user to run the elevated command it prints (see
references/setup.md §0). Otherwise scaffold
the VM directory outside the repository:
pwsh .github\skills\ui-tests-local-vm\scripts\Initialize-LocalVm.ps1 `
-DestinationRoot X:\PowerToysUiTestVmThe scaffold and its shared exchange can live on any volume, including a Dev Drive. Only the VHDX
and VM configuration paths, set separately in vm.config.psd1, should point at NTFS.
Follow references/setup.md to write the untracked vm.config.psd1, save the
administrator credential with Windows DPAPI, obtain install media, and create the guest with
New-UiTestVm.ps1. Then stage the archives described in
references/agentic-loop.md and run:
pwsh .github\skills\ui-tests-local-vm\scripts\Invoke-LocalVmUiTest.ps1 `
-VmName PowerToysUiTest-Win10 `
-VmRoot X:\PowerToysUiTestVm `
-ExchangeRoot X:\PowerToysUiTestVm\shared\PowerToysUiTests\MyModule `
-TestExecutable MyModule.UITests.Next.exe `
-Filter 'Name=MyModule.FocusedTest' `
-Platform x64Win10 `
-BuildLabel (git rev-parse HEAD) `
-SuiteTimeout 15m `
-TimeoutMinutes 25 `
-ReuseStagedPayloadThe controller starts the VM if needed, requests automatic host sleep prevention, verifies the
interactive standard-user desktop, dispatches the guest runner, and waits synchronously for matching
status.json. It reports whether sleep prevention succeeded, fails early if the guest task never
starts or exits without status, summarizes TRX, and leaves the persistent VM running by default.
Non-negotiable rules
- Complete host setup before anything else and never autopilot around it. Hyper-V group
membership, the DPAPI guest credential, and guest creation are human-only: two need elevation that
no tool call can approve, one needs a password that must never reach a model.
Initialize-LocalVmHost.ps1performs all three; agents run it-CheckOnly, and onIsReady=falsereportBLOCKED, print the elevated command it emits, and wait. Do not ask for a password, do not substitute a weaker channel, do not proceed on a partial setup.Invoke-LocalVmUiTest.ps1enforces the same check. - Keep the guest's VHDX and VM configuration on NTFS. On this project's host, keeping them on a Dev
Drive wedged the VM management service twice -
vmmsat 0% CPU, evenGet-VMhanging, host reboot to recover - and moving to NTFS fixed it. This is an observation on one host, not a property of ReFS: Hyper-V on plain ReFS is supported, so-AllowReFsVolumeoverrides the default refusal. The scaffold and the exchange are unaffected and run fine on a Dev Drive. - Build on the host; run PowerToys and tests only in the VM when host execution is prohibited.
- Invoke every focused, full-suite, and constrained controller run synchronously. Keep the active agent turn attached until the controller returns matching status/TRX evidence; never background the controller or end the turn while it runs.
- Complete the local correctness gate with two green full suites: Windows 10 and Windows 11, in separate VMs. Windows 10 runs first for speed; Windows 11 runs the same unfiltered suite, never a Win11-only subset. Narrow filters are for iteration, not for sign-off. On a Windows on ARM host the ARM64 Windows 11 guest covers the Windows 11 half and the Windows 10 half needs an x64 host.
- Establish a fully green correctness baseline with the default (4 vCPU / 8 GB) resources before
running the same tests under
Constrained(1 vCPU / 4 GB) resources. - For implementation tasks, require both resource profiles and the subsequent pipeline handoff. Report unavailable publication/CI prerequisites as blocked, not as full validation success.
- Keep VM files and writable exchange folders outside the repository.
- Keep the guest's default inbound network posture. The control channel does not need connectivity, so do not enable remoting, open ports, or attach the guest to a routable network for test dispatch.
- Use a DPAPI-protected credential file. Never put credentials in prompts, scripts, request JSON, unattend files kept after install, source control, or command-line arguments.
- Run UI tests in an already logged-on standard-user desktop, never in session 0 or as
SYSTEM. - Keep a separate administrator account only for VM control and scheduled-task registration.
- Verify user, token integrity, Explorer presence, session ID, and display size before tests.
- Run product/tests from guest-local storage under
C:\PowerToysUiTestRun. - Use PowerShell 7 for interactive probe/test scheduled tasks. PowerShell Direct and OEM bootstrap remain PS5.1-compatible by design; do not enable a remoting endpoint merely to use PS7.
- Reuse payloads by per-component hashes; refresh only changed tests/product/tools.
- Preserve assertions and visual thresholds. Classify VM-specific failures from evidence.
- Always parse TRX and require
total > 0plusexecuted == total. A process exit code alone cannot distinguish assertions, skipped/inconclusive tests, zero tests, timeout, or infrastructure failure. - Keep the VM after normal runs for iteration. Stop it explicitly when idle; delete its VHDX only for an intentional baseline reset.
- The controller requests automatic host sleep prevention and reports
HostSleepPrevented; failure is a warning. It cannot override manual sleep, lid-close policy, reboot, shutdown, or power loss. - Final clean-profile claims require a restored baseline checkpoint or a recreated guest. Restore with
Reset-LocalVm.ps1 -Restore.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

