Keep the container root helper used by the main-instance name migration. Adapt imported-file ids and component swap tests to the current APIs, and check copied swaps through their position refs and swap groups. AI-assisted-by: gpt-6