The onboarding scan keeps the consent-first rewrite. Since main's folder check moved out of wireProjectWorkspace, applying a scan now checks that each chosen project is still a folder (not only inside the scan folder) before anything is written; a discovery test covers a project replaced by a file after the scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MRtGG9ARfqqhma3t85Ro2u