What's wrong
Scan and DryRun both print a full per-group KEEP:/DELETE: listing of every affected path before doing anything. Deduplicate.Run (FileDeduplicator/Verbs/Deduplicate.cs:63-68) instead only prints a generic count and policy statement — "Found {duplicates.Count} group(s) of duplicate files." / "Keeping the copy with the shortest filename in each group." — before asking "Proceed with deletion? (y/N): ". The actual paths to be deleted only appear (via Console.WriteLine($" Deleted: {file}")) after each file is already gone.
Failure scenario
The "keep shortest filename" heuristic is a blunt policy — e.g. two identical files report-final-DO-NOT-DELETE.pdf and r.pdf would keep r.pdf and delete the other. Because Deduplicate never lists which files fall into which bucket, a user confirming y has no way to catch a bad outcome before the deletion is irreversible, unlike DryRun/Scan which would have shown it. This undermines the confirmation step's purpose as a safety gate for a destructive operation.
Suggested fix
Before the y/N prompt, print the same per-group KEEP/DELETE listing that DryRun.Run already produces (the listing logic is essentially duplicated between Deduplicate.Run, DryRun.Run, and Scan.Run and could be shared).
Acceptance criteria
Running Deduplicate interactively shows every path to be deleted, grouped with its kept counterpart, before the confirmation prompt is presented.
What's wrong
ScanandDryRunboth print a full per-groupKEEP:/DELETE:listing of every affected path before doing anything.Deduplicate.Run(FileDeduplicator/Verbs/Deduplicate.cs:63-68) instead only prints a generic count and policy statement —"Found {duplicates.Count} group(s) of duplicate files."/"Keeping the copy with the shortest filename in each group."— before asking"Proceed with deletion? (y/N): ". The actual paths to be deleted only appear (viaConsole.WriteLine($" Deleted: {file}")) after each file is already gone.Failure scenario
The "keep shortest filename" heuristic is a blunt policy — e.g. two identical files
report-final-DO-NOT-DELETE.pdfandr.pdfwould keepr.pdfand delete the other. BecauseDeduplicatenever lists which files fall into which bucket, a user confirmingyhas no way to catch a bad outcome before the deletion is irreversible, unlikeDryRun/Scanwhich would have shown it. This undermines the confirmation step's purpose as a safety gate for a destructive operation.Suggested fix
Before the
y/Nprompt, print the same per-groupKEEP/DELETElisting thatDryRun.Runalready produces (the listing logic is essentially duplicated betweenDeduplicate.Run,DryRun.Run, andScan.Runand could be shared).Acceptance criteria
Running
Deduplicateinteractively shows every path to be deleted, grouped with its kept counterpart, before the confirmation prompt is presented.