---
title: "synchronize"
description: "Achieve state agreement across agents"
canonical: "https://acs.synapti.ai/capabilities/synchronize/"
last_updated: "2026-11-16T01:14:10Z"
---

# synchronize

Achieve state agreement across agents

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/synchronize/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/synchronize/SKILL.md) at commit 18c38b74ac21. Ontology version 2.2.0.

Layer: [COORDINATE](https://acs.synapti.ai/layers/coordinate/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Medium |
| Changes state | No |
| Needs checkpoint | No |
| Needs approval | No |
| Overridable | No |
| Blocked from autonomy | No |

No ordering edge and no approval or checkpoint flag constrains where synchronize runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of synchronize: 1 relationship with 1 capability.** synchronize has 1 relationship with 1 capability: 1 with edges into it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`delegate`](https://acs.synapti.ai/capabilities/delegate/index.md) | Edges into synchronize | `enables` (into) |

- `enables`: Unlocked by [`delegate`](https://acs.synapti.ai/capabilities/delegate/index.md)

## Contract

**Figure: Contract of synchronize: 7 inputs (2 required), 9 outputs.** synchronize takes 7 inputs, 2 required (filled pin) and 5 optional (hollow pin), and returns 9 outputs. The tables below list every field.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `agents` | array | Yes | Agents to synchronize |
| `state` | object | Yes | State to agree on |
| `timeout` | string | No | Sync timeout |
| `accept_from` | array of string | No | Principals to accept state from (delegation@1, STANDARD v1.1 §5.15) |
| `sender_check` | array of string | No | How a sender must have been authenticated (agent_identity authenticated_by values); a state update whose sender identity says otherwise, or that carries none, is dropped and counted (identity@1, STANDARD v1.1 §5.17) |
| `accept_trust_classes` | array of string | No | Trust classes to accept state from; updates from others, or with no trust class, are dropped and counted (identity@1, STANDARD v1.1 §5.17) |
| `always_ask_trust_classes` | array of string | No | Trust classes whose state (and state with no trust class) makes any step that requires approval and uses it be asked of a person, whatever mandate would cover it (identity@1, STANDARD v1.1 §5.17) |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `synchronized` | boolean | Yes |  |
| `agreed_state` | object | No | Agreed state |
| `participants` | array | No | Participating agents |
| `sender` | string | No | The host-authenticated principal that delivered the agreed state, when the step waited for it (wait@1) |
| `sender_identity` | object | No | The sender's identity as the host reported it (agent_identity_schema.yaml; identity@1, STANDARD v1.1 §5.17) |
| `evidence_anchors` | array of Anchor (or deprecated string or object) | Yes | What the output is based on, as evidence anchors (Standard v1.2 §6.5). An empty list grounds nothing, and the output is then marked inferred (§3.1). |
| `confidence` | number | No | The producer's probability that the output's claim is correct, self-reported; given when the output is inferred (Standard v1.2 §3.1, §4.1.1) From 0 to 1 |
| `inference_method` | string | No | How the output was reached when it is not grounded in evidence; with confidence it marks the output inferred (Standard v1.2 §3.1, §4.1.1). A producer should use model_knowledge, deduction, induction, abduction, analogy, statistical, simulation, assumption or an x- vendor value; a grounding policy (§5.20) requires one of them. |
| `uncertainty` | Uncertainty | No | The uncertainty of the output's principal value; its confidence equals the output's confidence (Standard v1.2 §4.1.1) |

The skill returns 12 fields: 7 are in synchronize's output contract (2 required) and 5 are the skill's own, outside the contract; it leaves out 2 contract fields (inference_method, uncertainty).

| Field of the skill's output | In the output contract |
| --- | --- |
| `synchronized` | Yes, required |
| `agreed_state` | Yes, optional |
| `participants` | Yes, optional |
| `sender` | Yes, optional |
| `sender_identity` | Yes, optional |
| `synchronization` | No, the skill's own |
| `changes` | No, the skill's own |
| `conflicts` | No, the skill's own |
| `summary` | No, the skill's own |
| `confidence` | Yes, optional |
| `evidence_anchors` | Yes, required |
| `assumptions` | No, the skill's own |
| `inference_method` | Yes, but the skill leaves it out |
| `uncertainty` | Yes, but the skill leaves it out |

## Used in workflows

**Figure: synchronize in workflows.** 1 workflow uses synchronize, in 1 step in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`multi_agent_orchestration`](https://acs.synapti.ai/workflows/multi-agent-orchestration/index.md): step 4

## Claude Code skill

**Figure: What the synchronize skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks synchronize as read-only, and every tool only reads.

| What they can do | Tools |
| --- | --- |
| Only read | `Read`, `Grep` |
| Run commands, which can change state | none |
| Change files | none |

**Figure: The inputs of the synchronize skill, by the Standard extension each needs.** 3 inputs work without an extension; 1 input needs delegation@1 and 3 inputs need identity@1. A workflow that binds an extension's input must declare that extension.

| Extension | Inputs |
| --- | --- |
| none | `agents` (required), `state` (required), `timeout` |
| `delegation@1` | `accept_from` |
| `identity@1` | `sender_check`, `accept_trust_classes`, `always_ask_trust_classes` |

Both examples of the skill write out the same 10 of its 12 output fields, and neither writes out sender and sender_identity.

**Figure: The field names each verification check of the synchronize skill uses.** 4 of the 5 checks use the name of an input or output field as a word; 7 output fields of 12 are named by no check (synchronized, participants, sender, sender_identity, synchronization, summary and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. All source data accounted for in changes or conflicts |  | `changes`, `conflicts` |
| 2. Every conflict has resolution or is flagged unresolved |  |  |
| 3. agreed_state passes target schema validation (if one applies) |  | `agreed_state` |
| 4. confidence is the probability of the reported result (§4.1.1) |  | `confidence` |
| 5. evidence_anchors trace every merged field to source |  | `evidence_anchors` |

**Figure: The neighbours the skill lists for synchronize, checked against the ontology and the catalogs.** The skill lists 8 capabilities as common neighbours of synchronize; 1 of them has an edge with it in the ontology, and 2 run next to it, in that order, in a catalog workflow (delegate most often, 1 time). Under each tile, an edge reads from its source to its target, with synchronize's symbol in its place: "requires Sy" is a requires edge from the tile's capability to synchronize, so the tile's capability must run before synchronize; "Sy precedes" is a precedes edge from synchronize to the tile's capability.

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md) | none | never |
| commonly follows | [`transform`](https://acs.synapti.ai/capabilities/transform/index.md) | none | never |
| commonly follows | [`receive`](https://acs.synapti.ai/capabilities/receive/index.md) | none | never |
| commonly follows | [`delegate`](https://acs.synapti.ai/capabilities/delegate/index.md) | `enables` | 1 times |
| commonly precedes | [`state`](https://acs.synapti.ai/capabilities/state/index.md) | none | never |
| commonly precedes | [`integrate`](https://acs.synapti.ai/capabilities/integrate/index.md) | none | never |
| commonly precedes | [`persist`](https://acs.synapti.ai/capabilities/persist/index.md) | none | never |
| commonly precedes | [`verify`](https://acs.synapti.ai/capabilities/verify/index.md) | none | 1 times |

### Intent

Execute **synchronize** to merge data from multiple sources into a coherent, unified result with explicit conflict resolution.

**Success criteria:**
- All source data is accounted for (merged, replaced, or explicitly dropped)
- Conflicts are detected and resolved according to specified strategy
- Provenance is preserved for each merged element
- Output includes lineage trace for every change

**Compatible schemas:**
- `schemas/output_schema.yaml`

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `agents` | Yes | array | Agents to synchronize |
| `state` | Yes | object | State to agree on |
| `timeout` | No | string | Sync timeout |
| `accept_from` | No | array[string] | Principals to accept state from (Standard v1.1 `delegation@1`) |
| `sender_check` | No | array[string] | Accepted `authenticated_by` values of the sender's identity (Standard v1.1 `identity@1`) |
| `accept_trust_classes` | No | array[string] | Trust classes to accept state from (`identity@1`) |
| `always_ask_trust_classes` | No | array[string] | Trust classes whose state (and state with no trust class) makes any step that requires approval and uses it be asked of a person (`identity@1`) |

Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).

### Procedure

1) **Inventory sources**: List all sources to synchronize
   - Record source type (agent output, file, API response)
   - Extract timestamp or version if available
   - Note source authority level (primary, secondary, derived)

2) **Normalize structures**: Transform all sources to comparable format
   - Identify common keys/fields across sources
   - Map equivalent fields with different names
   - Flag structural incompatibilities

3) **Detect conflicts**: Compare values for overlapping entities
   - Exact match: no conflict
   - Value difference: record as conflict with both values
   - Missing in one source: record as addition/deletion

4) **Apply resolution strategy**:
   - `merge`: Combine non-conflicting data; use the conflict rules for overlaps
   - `replace`: Use most recent or highest-priority source
   - `conflict_resolve`: Apply explicit rules; flag unresolvable for human review

5) **Ground claims**: Attach provenance to each merged element
   - Format: `source:<source_id>:<path>` or `conflict:<resolution_method>`
   - Track which source contributed each field

6) **Validate output**: Check merged result against the target schema, if one applies

7) **Format output**: Structure results according to the output contract below

### Output Contract

Return a structured object:

```yaml
synchronized: boolean  # True if all conflicts resolved and an agreed state reached
agreed_state: object | null  # The synchronized result
participants: array[string]  # IDs of the agents/sources synchronized
sender: string  # Host-authenticated principal that delivered the agreed state, when the step waited for it (wait@1)
sender_identity: object  # That sender's identity as the host reported it (identity@1)
synchronization:
  strategy: merge | replace | conflict_resolve
  timestamp: string  # ISO timestamp of sync operation
changes:
  - source: string  # Which source provided this change
    type: add | modify | delete
    entity: string  # Entity ID or path affected
    field: string | null  # Specific field if applicable
    value: object  # New/changed value
conflicts:
  - sources: array[string]  # Sources with conflicting values
    attribute: string  # Field/path in conflict
    values: array[object]  # Conflicting values from each source
    resolution: string | null  # How resolved, or null if unresolved
    resolution_rationale: string | null
summary:
  entities_affected: integer  # Count of entities changed
  unresolved_conflicts: integer  # Count of conflicts needing human review
confidence: number  # probability that the agreed state is what the participants hold (§4.1.1)
evidence_anchors: array[EvidenceAnchor]  # Source references for each claim; each {ref, kind} (STANDARD v1.2 §6.5)
assumptions: array[string]  # Explicit assumptions made during sync
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `synchronized` | boolean | Whether sync completed without unresolved conflicts |
| `agreed_state` | object | The final synchronized state (null when not synchronized) |
| `participants` | array[string] | Identifiers for all agents/sources included |
| `sender` / `sender_identity` | string / object | Who delivered the agreed state, when the step waited for it |
| `changes` | array[object] | Detailed log of every change made |
| `conflicts` | array[object] | All detected conflicts and their resolution |
| `summary` | object | Counts of entities affected and unresolved conflicts |
| `confidence` | number | Probability, 0.0-1.0, that the agreed state is what the participants hold (§4.1.1); lower when many fields conflicted |
| `evidence_anchors` | array of evidence anchors (§6.5) | Source references for each claim |
| `assumptions` | array | Explicit assumptions made during sync |

### Examples

#### Example 1: Merging Two Agent Outputs

**Input:**
```yaml
agents: ["agent_output_1", "agent_output_2"]
state:
  agent_output_1:
    entity: "user_123"
    name: "Alice"
    role: "admin"
    last_seen: "2024-01-15"
  agent_output_2:
    entity: "user_123"
    name: "Alice Smith"
    department: "Engineering"
    last_seen: "2024-01-16"
```

Resolution strategy: `merge`, preferring the longer `name` and the newer `last_seen`.

**Output:**
```yaml
synchronized: true
agreed_state:
  entity: "user_123"
  name: "Alice Smith"
  role: "admin"
  department: "Engineering"
  last_seen: "2024-01-16"
participants: ["agent_output_1", "agent_output_2"]
synchronization:
  strategy: merge
  timestamp: "2024-01-16T14:30:00Z"
changes:
  - source: "agent_output_1"
    type: add
    entity: "user_123"
    field: "role"
    value: "admin"
  - source: "agent_output_2"
    type: add
    entity: "user_123"
    field: "department"
    value: "Engineering"
  - source: "agent_output_2"
    type: modify
    entity: "user_123"
    field: "name"
    value: "Alice Smith"
  - source: "agent_output_2"
    type: modify
    entity: "user_123"
    field: "last_seen"
    value: "2024-01-16"
conflicts:
  - sources: ["agent_output_1", "agent_output_2"]
    attribute: "name"
    values: ["Alice", "Alice Smith"]
    resolution: "prefer_longer"
    resolution_rationale: "Longer name likely more complete"
  - sources: ["agent_output_1", "agent_output_2"]
    attribute: "last_seen"
    values: ["2024-01-15", "2024-01-16"]
    resolution: "prefer_newer"
    resolution_rationale: "More recent timestamp preferred"
summary:
  entities_affected: 1
  unresolved_conflicts: 0
confidence: 0.95
evidence_anchors:
  - {ref: "source:agent_output_1:role", kind: record}
  - {ref: "source:agent_output_2:department", kind: record}
  - {ref: "conflict:name:prefer_longer", kind: record}
  - {ref: "conflict:last_seen:prefer_newer", kind: record}
assumptions:
  - "Both sources refer to same user_123 entity"
  - "Longer name is more complete (not a different person)"
```

**Evidence pattern:** Each field in agreed_state traced to originating source; conflicts logged with resolution method.

---

#### Example 2: Unresolvable Conflict

**Input:**
```yaml
agents: ["system_a", "system_b"]
state:
  system_a: { price: 100, currency: "USD" }
  system_b: { price: 150, currency: "USD" }
```

Resolution strategy: `conflict_resolve`; a `price` conflict requires human review.

**Output:**
```yaml
synchronized: false
agreed_state: null
participants: ["system_a", "system_b"]
synchronization:
  strategy: conflict_resolve
  timestamp: "2024-01-16T15:00:00Z"
changes: []
conflicts:
  - sources: ["system_a", "system_b"]
    attribute: "price"
    values: [100, 150]
    resolution: null
    resolution_rationale: "Price conflict requires human review per policy"
summary:
  entities_affected: 0
  unresolved_conflicts: 1
confidence: 0.3
evidence_anchors:
  - {ref: "source:system_a:price", kind: record}
  - {ref: "source:system_b:price", kind: record}
assumptions:
  - "Both prices refer to same product"
  - "50% price discrepancy exceeds auto-resolve threshold"
```

### Verification

- [ ] All source data accounted for in changes or conflicts
- [ ] Every conflict has resolution or is flagged unresolved
- [ ] agreed_state passes target schema validation (if one applies)
- [ ] confidence is the probability of the reported result (§4.1.1)
- [ ] evidence_anchors trace every merged field to source

**Verification tools:** Read (to validate source accessibility), Grep (to search for schema definitions)

### Safety Constraints

- `mutation`: false
- `requires_checkpoint`: false
- `requires_approval`: false
- `risk`: medium

**Capability-specific rules:**
- Do not auto-resolve conflicts involving security-sensitive fields (credentials, permissions)
- Preserve original source data in evidence_anchors; never discard
- Flag confidence < 0.5 if more than 30% of fields have conflicts
- Stop and request clarification if sources have incompatible schemas

### Composition Patterns

**Commonly follows:**
- `retrieve` - Gathers raw data from multiple sources for synchronization
- `transform` - Normalizes data formats before merge
- `receive` - Ingests incoming events to synchronize with existing state
- `delegate` - Returns outputs from parallel agents to be merged

**Commonly precedes:**
- `state` - Synchronized data becomes canonical state snapshot
- `integrate` - Merged entities may need identity reconciliation
- `persist` - Save synchronized result to durable storage
- `verify` - Validate merged output meets requirements

**Anti-patterns:**
- Never synchronize without evidence anchors (`ground`) for the merged values
- Never synchronize without recording which source each merged value came from
- Avoid synchronizing security-sensitive data without human review

**Workflow references:**
- See `reference/composition_patterns.md#digital-twin-sync-loop` for twin state synchronization
- See `reference/composition_patterns.md#enrichment-pipeline` for parallel data gathering
