memoryguard_rule_merge_safe
Merge duplicate rules into a single canonical definition while preserving source awareness and history. Admin-only, requires explicit confirmation, and respects safety checks without bypass.
Instructions
Admin-only source-aware fold of active same-group duplicate rules into one canonical definition. Reuses the V2 historical reconciliation transaction. Requires confirmed=true. There is no force or bypass; composer/pair safety still decides mergeability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | Yes | must be true; the mutation refuses any other value | |
| workspace | No | ||
| idempotency_key | Yes | ||
| mutation_receipt | Yes | native mutation receipt for this merge transaction | |
| canonical_source_id | No | active rule_source_links.memory_id in the trusted share group | |
| duplicate_source_ids | No | active duplicate source ids in the same share group | |
| canonical_definition_id | No | active definition id in the trusted share group | |
| duplicate_definition_ids | No | active duplicate definition ids in the same share group | |
| expected_definition_revisions | Yes | CAS map of involved definition or source ids to current revisions |