* fix(artifacts): recheck failed DMG detaches before reporting cleanup failure NativeDmgArtifactReader.close() detached each device once and, when a detach failed, asked `hdiutil info` once whether the device was still attached. On APFS images, detaching the synthesized container ejects the image disk too. `hdiutil info` can still list that ejected device briefly, and a just-read volume can report busy. Either way a real cleanup succeeded but close() reported "DMG detach or mount-root cleanup failed" and kept the mount root. macOS CI hit this intermittently in verify:macos-bundle: `hdiutil detach /dev/disk23` failed with "No such file or directory" (already ejected) and the device was still counted as attached. The #1103 review also raised the missing recheck. After the first pass, recheck the remaining devices up to three times with 250/500/1000 ms settle delays. Drop any that hdiutil no longer lists, retry the detach of any still listed, and fail only for devices that stay attached. The host seam gains an optional delay so tests run without real waits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(artifacts): share DMG detach fixtures to stay under the duplication gate The new busy-device and recheck cases copied the fake hdiutil host and the APFS close sequence from neighbouring tests, which pushed jscpd to its 2.5% threshold in Static checks. Share one single-device host between the busy and retained-attachment cases and one APFS close helper between the ejected-device cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>