Cover Click to Do, Settings agent and Paint AI in the extended AI purge - #71
Merged
Merged
Conversation
The extended AI purge missed AI features Microsoft added over the 24H2/25H2 cycle. Add the documented WindowsAI policies for Click to Do (screen analysis) and the agentic Settings search, and the Paint AI policies (Cocreator, generative fill, Image Creator) at the Paint policy key, which is separate from the Photos generative-fill key already handled. DisableAIDataAnalysis and DisableClickToDo are user-and-machine scoped per the WindowsAI policy CSP, so write them in both HKLM and HKCU. The update watchdog re-asserts the two new machine-wide WindowsAI policies after an update resets them. All new values are declared in the rollback provider so Scope B restores them, and the drift guard covers them. Not verified on a real 24H2/25H2 Copilot+ device. The values, scopes, and rollback coverage are unit-tested; the effect on hardware is not.
The Unreleased section was added by replacing the 4.2.3 header instead of inserting above it, which left the 4.2.3 entries orphaned directly under Unreleased. Put the header back so each release section is separate again.
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.
Draft for review. Speculative: the registry values and rollback coverage are unit-tested, but the effect on a real 24H2/25H2 Copilot+ device is not verified. Opening as a draft rather than merging.
What changed
The extended AI purge missed AI features Microsoft added over the 24H2/25H2 cycle. Added, all with paths and scopes taken from the WindowsAI policy CSP:
DisableClickToDo) - on-screen content analysis; new in 24H2/25H2.DisableSettingsAgent) - AI-model Settings search; new in 25H2.DisableCocreator,DisableGenerativeFill,DisableImageCreator) atSOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint. This is the documented Paint policy key and is separate from the existingPolicies\Microsoft\Windows\Photos\DisableGenerativeFillwrite, which is retained.DisableAIDataAnalysisandDisableClickToDoare documented as both machine and user scope, so they are written in HKLM and HKCU.AllowRecallEnablementandDisableSettingsAgentare machine scope only.The update watchdog floor now re-asserts the two new machine-wide WindowsAI policies (
DisableClickToDo,DisableSettingsAgent) so a feature update cannot silently turn them back on.Every new value is declared in
Get-ExtendedAIPurgeRegistryTargets, so Scope B rollback restores them and the AST drift guard covers them.Testing
Invoke-StaticValidation.ps1 -RequirePSScriptAnalyzer, 129 files) green locally.Tests\UnitPester 5.7.1 suite: 189 passed, 0 failed locally (adds a scope-coverage assertion in Test-ModuleRollback and floor assertions in Test-UpdateWatchdog).build.ps1) since embedded sources changed.Open question for review
RemoveMicrosoftCopilotApp(WindowsAI CSP) was deliberately left out: it is conditional (Enterprise/Pro/Edu only, not launched in 28 days) and Winnow already removes Copilot harder via Appx removal plusTurnOffWindowsCopilot. Add it only if you want the policy-driven path as belt-and-suspenders.