Intent-Code Divergence
Medium
- Confidence
- 95% confidence
- Finding
- The prose says within-source deduplication should key on `content_hash` and `parent_doc_id`, but the implementation checks `content_hash` and `source_record_id`. If multiple parent documents can exist under one source record, this mismatch can cause incorrect deduplication behavior, leading to skipped writes, stale metadata, or data integrity issues in retrieval and lifecycle handling.
