Launch RecallManager v1 beta#1
Merged
Merged
Conversation
- Get-RecallWindowsInfo: rename local $isWindows to $isWindowsOs; assigning to the read-only automatic $IsWindows variable throws in PowerShell 6+ (PSScriptAnalyzer error). - Tests: import the module at file scope so InModuleScope resolves during Pester's discovery phase. Previously the "Effective state reasoning" block failed to load, so 3 of 7 tests never ran. Suite now: PSScriptAnalyzer 0 errors, Pester 7/7 passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What changed
Turns the original one-question DISM toggle into a state-aware Recall management module (
src/RecallManager) with public commands (Get-RecallStatus,Get-RecallAudit,Get-RecallPlan,Set-RecallProfile,Restore-RecallConfiguration,Export-RecallReport), four desired-state profiles, Pester tests, CI workflows, and docs.This branch also includes two fixes found during live testing on a Windows 11 device (build 26200):
Get-RecallWindowsInfo: renamed local$isWindows->$isWindowsOs. Assigning to the read-only automatic$IsWindowsvariable throws in PowerShell 6+ (PSScriptAnalyzer error).InModuleScoperesolves during Pester's discovery phase. Previously the "Effective state reasoning" block failed to load, so 3 of 7 tests never ran.Safety impact
SnapshotsOff/PrivacyHardenedprofiles)PrivacyHardeneddisables/removes the component)Validation
Write-Host,-Profileparam)Documentation
No doc changes in the fix commit. Change-path testing (Apply/Restore on a Copilot+ device, screenshots) is still outstanding per
docs/testing.mdbefore tagging the beta.🤖 Generated with Claude Code