Resolve Sync Conflict
sync_resolve_conflictResolve offline-sync conflicts by updating sync metadata. Mark a conflicted request as clean after manual reconciliation, or leave it dirty for later push.
Instructions
Resolve a local offline-sync conflict by updating only the request's sync metadata: mark_clean=true after the agent has reconciled local vs remote (status becomes clean); mark_clean=false keeps the row dirty for a later push. Prerequisite: the request should already appear in sync_conflicts. Side effects are local SQLite metadata only—no automatic merge of body text, no remote API calls, and no deletion of the request. Prefer sync_conflicts to list candidates and sync_status to inspect timestamps; do not use for ordinary field edits (update_request). Mutating, non-destructive, and idempotent for the same mark_clean value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mark_clean | No | true: mark reconciled/clean after manual review; false (default): leave dirty so a later offline push is expected. Does not rewrite title/body. | |
| request_id | Yes | Local request ID currently in conflict (from sync_conflicts). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resolved | Yes | True when the conflict metadata was written successfully. | |
| request_id | Yes | Request ID whose conflict state was updated. | |
| sync_status | Yes | Resulting sync status string (typically clean or dirty). |