repair_source_conflict
Resolve source-name conflicts by designating one document as primary after a dry-run preview. Commit marks other candidates as duplicates without deleting content.
Instructions
Resolve a source-name conflict (from list_source_conflicts) by naming one document as the primary. Always dry_run first to see what would change; committing (dry_run=false) marks the other candidates as duplicates -- their content is not deleted, but this still cannot be trivially undone, so double-check the dry-run result first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | True (the default): report only, changes nothing, and returns the candidate_count/fingerprint pair to echo back for the real commit. False: commit the repair -- requires expected_candidate_count and expected_candidate_fingerprint from a prior dry-run, and fails if the candidate set changed since then. | |
| primary_doc_id | Yes | Document ID from that conflict's sample_doc_ids to keep as the single primary. | |
| canonical_source_key | Yes | The conflict's canonical_source_key, from list_source_conflicts. | |
| expected_candidate_count | No | candidate_count echoed from the dry-run. Required when dry_run is false. | |
| expected_candidate_fingerprint | No | fingerprint echoed from the dry-run. Required when dry_run is false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||