v1.3.1 — audit guidance and teardown idempotency
Bug-fix release. Module version 1.3.1.
Note: GitHub releases were last cut at v1.0.0.1. Versions 1.1 through 1.3.0 shipped in the repository without tagged releases — see CHANGELOG.md for the full record of what landed in between.
Audit told you to run a command that could not help
When cached base images were the only dirty findings, Audit-HomeLabArtifacts.ps1 advised running Remove-HomeLab and re-auditing. Remove-HomeLab -KeepBaseImages preserves those images by design, so repeating it could never clear the verdict — the documented fast-rebuild workflow looped.
The verdict now distinguishes that case and names the switch that applies:
VERDICT: host is DIRTY -- cached base images only.
Kept the cache on purpose? Re-run this audit with -AllowBaseImageCache.
Need a from-scratch host? Run Remove-HomeLab -RemoveBaseImageCache, then re-audit.
Mixed findings, or findings that include VMs, still produce the original hard DIRTY verdict.
Remove-HomeLab prompted with nothing to remove
The hosts-file step called ShouldProcess before checking whether any lab entries existed, so a repeat teardown on an already-clean hosts file prompted for confirmation and then reported success for work it had not done. It now looks before it asks. Hand-made entries that resolve a lab VM name are still detected and removed.