quipu_merge_apply
Apply reviewed merge decisions to finish a share merge or fork promotion in one transaction, recording the reviewer and decisions hash while refusing undecided, stale, or invalid rows.
Instructions
WRITE. Finish a share merge (incoming + base) or a fork promotion (fork): the clean part plus every decided row in ONE transaction whose source records the reviewer and the decisions hash. Refuses and writes nothing on an undecided row, stale decisions (either side moved), more values than sh:maxCount, a value that is not an RDF term, or (forks) a SHACL refusal. Applying the same decisions again returns outcome already-applied and writes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Its parent share. Inline, as /import takes it. | |
| fork | No | Apply to this fork's promotion, instead of incoming + base. | |
| actor | No | Who is applying. | |
| dry_run | No | Run every check and report the counts it would write; write nothing. | |
| incoming | No | The share to merge. Inline, as /import takes it. | |
| reviewer | Yes | Who decided. Recorded in provenance. | |
| decisions | Yes | The file from merge_decisions with each row's decision set (quipu_merge_resolve): {choose: ours|theirs|base|both} or {values: [N-Triples terms]}. |