Reconcile duplicate user templates
figure_library_reconcileValidate and archive duplicate figure templates against a canonical version, with dry-run, apply, and rollback modes. Uses file verification and recovery journal to ensure safe reconciliation.
Instructions
Dry-run, apply, or roll back an exact duplicate-archive transaction. Apply uses verified manifest/file preconditions, a shared write lock, and a recovery journal; files are retained.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | dry-run | |
| reason | Yes | ||
| strategy | Yes | ||
| reconcileId | Yes | ||
| expectedState | Yes | ||
| canonicalTemplateId | Yes | ||
| duplicateTemplateIds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| changes | No | ||
| written | Yes | ||
| strategy | No | ||
| reconcileId | Yes | ||
| filesRetained | No | ||
| canonicalTemplateId | Yes | ||
| recoveredIncomplete | No | ||
| restoredTemplateIds | No | ||
| duplicateTemplateIds | No |