In fact, I believe iOS uses hardlinks for this, as it is possible to save a 40GB video on a device with 64GB storage instantly - while logged out of iCloud and without an Internet connection.
Since hardlinks are used, there is likely no way to tell the original and copy apart except by their paths. The photo-rescuing algorithm that shipped in 17.5 probably wandered around the filesystem farther than intended, possibly via mds.
So Apple is probably not stealing your photos. If it is, this bug is not evidence of it.
Apple needs to explain that bug that resurfaced deleted photos - https://news.ycombinator.com/item?id=40433384 - May 2024 (60 comments)
Apple's photo bug exposes the myth of 'deleted' - https://news.ycombinator.com/item?id=40422136 - May 2024 (50 comments)
Apple Releases iOS 17.5.1 with Fix for Reappearing Photos Bug - https://news.ycombinator.com/item?id=40417703 - May 2024 (3 comments)
iOS 17.5 Bug May Also Resurface Deleted Photos on Wiped, Sold Devices - https://news.ycombinator.com/item?id=40393913 - May 2024 (31 comments)
iOS 17.5 is allegedly resurfacing pictures that were deleted years ago - https://news.ycombinator.com/item?id=40372867 - May 2024 (23 comments)
iPhone owners say the latest iOS update is resurfacing deleted nudes - https://news.ycombinator.com/item?id=40370078 - May 2024 (47 comments)
Fyi, if you want to tell apple to not store the decryption keys for your iCloud Photos, you can go into iCloud settings and enable Advanced Data Protection.
You have to click through a number of warnings and set up recovery keys. We of course can’t prove that Apple isn’t still storing the keys, but imo they probably don’t even want to as it’s not their business model.
That's all there is to it.
Apple, like all the other cloud companies does not delete anything.
The connection details say summary over 4 days, last denied May 19. This would put the first connection on May 15 or 14, soon after 13.6.7 and iOS 17.5 were released on May 13.