Safe storage selection

The storage-selection layer validates a whole-disk clone plan only. It is separate from every imaging or write operation.

Validation rules

Safety boundary

The probe runs only read-only metadata commands. The selection function returns an immutable data object; it does not open block devices, invoke imaging tools, mount/unmount, partition, format, or write. It is not authorization to clone.

The inventory and root-dependency graph are point-in-time snapshots. A future executor must recollect and revalidate both immediately before use, verify major/minor device identity, protect all mounted filesystems and system dependencies, and require explicit operator confirmation.

Current limitation

Some live environments expose the root filesystem as an overlay, squashfs, loop device, or another non-/dev source. This initial root probe cannot reliably trace every such arrangement and intentionally rejects unresolved sources. Supporting those boot layouts requires a separately tested resolver; it must not be worked around by disabling root protection.