---
title: "integrate"
description: "Merge data from multiple sources"
canonical: "https://acs.synapti.ai/capabilities/integrate/"
last_updated: "2026-11-16T02:24:08Z"
---

# integrate

Merge data from multiple sources

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

Layer: [SYNTHESIZE](https://acs.synapti.ai/layers/synthesize/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Low |
| 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 integrate runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of integrate: 1 relationship with 1 capability.** integrate has 1 relationship with 1 capability: 1 with edges out of it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`state`](https://acs.synapti.ai/capabilities/state/index.md) | Edges out of integrate | `enables` (out of) |

- `enables`: Unlocks [`state`](https://acs.synapti.ai/capabilities/state/index.md)

## Contract

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

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `sources` | array | Yes | Data sources to merge |
| `strategy` | string | No | Merge strategy |
| `conflict_resolution` | string | No | How conflicting values are resolved: a strategy of Standard v1.2 §8.2 (highest_score, the default; prefer_authoritative_sources; prefer_recent; prefer_high_confidence; merge_with_uncertainty; escalate_to_human) |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `merged` | object | Yes | Integrated data |
| `merged.observations` | array | No | Merged observations |
| `merged.meta` | object | No |  |
| `conflicts` | array | No | Resolved conflicts |
| `provenance` | object | No | Source provenance |
| `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 | Yes | The producer's probability that the output's claim is correct, self-reported unless the host documents a calibration (Standard v1.2 §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 7 fields: 5 are in integrate's output contract (3 required) and 2 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 |
| --- | --- |
| `merged` | Yes, required |
| `integration_report` | No, the skill's own |
| `conflicts` | Yes, optional |
| `provenance` | Yes, optional |
| `confidence` | Yes, required |
| `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: integrate in workflows.** 8 workflows use integrate, in 8 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`clarify_intent`](https://acs.synapti.ai/workflows/clarify-intent/index.md): step 4
- [`world_model_build`](https://acs.synapti.ai/workflows/world-model-build/index.md): step 5
- [`digital_twin_sync_loop`](https://acs.synapti.ai/workflows/digital-twin-sync-loop/index.md): step 4
- [`multi_agent_orchestration`](https://acs.synapti.ai/workflows/multi-agent-orchestration/index.md): step 6
- [`care_plan_review`](https://acs.synapti.ai/workflows/care-plan-review/index.md): step 5
- [`handoff_preparation`](https://acs.synapti.ai/workflows/handoff-preparation/index.md): step 7
- [`supply_chain_sync`](https://acs.synapti.ai/workflows/supply-chain-sync/index.md): step 3
- [`information_research`](https://acs.synapti.ai/workflows/information-research/index.md): step 8

## Claude Code skill

**Figure: What the integrate skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks integrate 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 field names each step of the integrate procedure uses.** 5 of the procedure's 8 steps use the name of an input or output field of the integrate skill as a word; 4 output fields of 7 are used by no step (merged, integration_report, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Analyze sources | `sources` |  |
| 2. Align schemas |  |  |
| 3. Resolve entity identity |  |  |
| 4. Merge attributes | `sources`, `strategy` |  |
| 5. Apply conflict strategy | `sources`, `strategy`, `conflict_resolution` | `conflicts` |
| 6. Validate integrated data |  |  |
| 7. Document integration |  | `provenance` |
| 8. Produce output |  | `provenance`, `confidence` |

**Figure: The output fields each example of the integrate skill writes out.** 2 examples against the skill's 7 output fields: merged, integration_report, conflicts, confidence and evidence_anchors are in every example.

| Example | Output fields it writes out |
| --- | --- |
| Example 1: Integrating Service Data from Multiple Sources | `merged`, `integration_report`, `conflicts`, `provenance`, `confidence`, `evidence_anchors`, `assumptions` |
| Example 2: Integrating Documentation with Code Analysis | `merged`, `integration_report`, `conflicts`, `confidence`, `evidence_anchors` |

**Figure: The neighbours the skill lists for integrate, checked against the ontology and the catalogs.** The skill lists 5 capabilities as common neighbours of integrate; 1 of them has an edge with it in the ontology, and 3 run next to it, in that order, in a catalog workflow (retrieve most often, 2 times). Under each tile, an edge reads from its source to its target, with integrate's symbol in its place: "requires In" is a requires edge from the tile's capability to integrate, so the tile's capability must run before integrate; "In precedes" is a precedes edge from integrate 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 | 2 times |
| commonly follows | [`search`](https://acs.synapti.ai/capabilities/search/index.md) | none | 1 times |
| commonly precedes | [`state`](https://acs.synapti.ai/capabilities/state/index.md) | `enables` (into it) | 2 times |
| commonly precedes | [`ground`](https://acs.synapti.ai/capabilities/ground/index.md) | none | never |
| commonly precedes | [`compare`](https://acs.synapti.ai/capabilities/compare/index.md) | none | never |

### Intent

Perform **data integration** to combine information from multiple heterogeneous sources into a unified, coherent model. This handles schema differences, resolves conflicts, and preserves provenance.

**Success criteria:**
- All sources are incorporated or explicitly excluded
- Schema mismatches are resolved consistently
- Conflicts are documented with resolution rationale
- Provenance traces every value to its source
- Information loss is minimized and documented

**World Modeling Context:**
Integrate is essential for building a comprehensive `state` from multiple observation sources. It combines outputs from `retrieve`, `search`, and `observe` into unified models, and resolves entity identity itself to remove duplicates.

**Hard dependencies:**
- None. When sources contain overlapping entities, resolve their identity first (step 3)

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

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `sources` | Yes | array | Data sources to integrate (files, API outputs, retrieved data) |
| `strategy` | No | string | Merge strategy |
| `conflict_resolution` | No | string | How to handle conflicts |

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) **Analyze sources**: Understand what each source contains
   - Inventory entities and attributes per source
   - Identify source schemas (explicit or inferred)
   - Note data freshness and authority
   - Detect overlapping vs. unique content

2) **Align schemas**: Map source schemas to target
   - Identify equivalent fields (same meaning, different names)
   - Map types (handle type conversions)
   - Handle missing fields (default values, nulls)
   - Document unmappable fields (information loss)

3) **Resolve entity identity**: Determine which records refer to same entity
   - Apply the identity resolution policy to overlapping entities
   - Assign canonical IDs
   - Track all source IDs as aliases

4) **Merge attributes**: For each entity, combine attributes from sources
   - Non-overlapping: Simply include from source
   - Overlapping, matching: Confirm consistency
   - Overlapping, conflicting: Apply conflict strategy

5) **Apply conflict strategy** (`conflict_resolution`):

   For `prefer_recent`:
   - Use the most recently updated value
   - Requires reliable timestamps

   For `prefer_authoritative`:
   - Rank sources by authority
   - Use value from most authoritative source

   For `merge`:
   - Combine values where possible (lists, sets)
   - For scalars, may require manual resolution

   For `manual`:
   - Flag all conflicts for human review
   - Do not auto-resolve

6) **Validate integrated data**: Check against target schema
   - Required fields present
   - Type constraints satisfied
   - Relationship integrity maintained
   - Custom invariants hold

7) **Document integration**: Record what happened
   - Per-field provenance (which source)
   - Conflict resolutions with rationale
   - Information loss (unmapped fields)
   - Transformation applied

8) **Produce output**: Generate integrated model
   - Conforms to target schema
   - Includes provenance metadata
   - Documents confidence levels

### Output Contract

Return a structured object:

```yaml
merged:
  schema: string | object  # Target schema reference or inline
  entities:
    - id: string  # Canonical ID
      type: string  # Entity type
      attributes: object  # Integrated attributes
      source_map:  # Where each attribute came from
        attribute_name:
          source: string
          original_value: any | null  # If transformed
          confidence: number
  relationships:
    - source: string
      target: string
      type: string
      provenance: string
  observations: array  # Merged observations, when the sources are observation streams
  meta:
    world_id: string  # World model identifier, when integrating into a world model
integration_report:
  sources_used: array[string]
  sources_excluded: array[string]
  entity_count:
    total: integer
    from_single_source: integer
    merged: integer
  field_mapping:
    - source_field: string
      target_field: string
      transformation: string | null
  information_loss:
    - source: string
      field: string
      reason: string  # unmappable, filtered, etc.
      impact: low | medium | high
  validation_results:
    passed: boolean
    errors: array[string]
    warnings: array[string]
conflicts:
  - entity_id: string
    field: string
    values:
      - source: string
        value: any
    resolution: string
    resolved_value: any
    confidence: number
provenance:
  sources: array[object]  # Source metadata
  integration_timestamp: string
  confidence: number
confidence: number  # probability that the integrated result is consistent and correct (§4.1.1)
evidence_anchors: array[EvidenceAnchor]  # each {ref, kind, digest?} (STANDARD v1.2 §6.5)
assumptions: array[string]
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `merged` | object | The unified data model (entities, relationships; `observations` and `meta.world_id` when merging observation streams into a world model) |
| `merged.entities[].source_map` | object | Per-attribute source tracking |
| `integration_report` | object | Sources used/excluded, entity counts, field mapping, information loss, validation |
| `integration_report.information_loss` | array | Data that couldn't be integrated |
| `conflicts` | array | All conflicts found and how each was resolved |
| `provenance` | object | Source metadata and integration timestamp |
| `confidence` | number | Probability, 0.0-1.0, that the integrated result is consistent and correct (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to each source consulted |
| `assumptions` | array | Assumptions made while integrating |

### Examples

#### Example 1: Integrating Service Data from Multiple Sources

**Input:**
```yaml
sources:
  - name: "kubernetes"
    type: "api"
    data:
      - id: "api-gateway-deployment"
        status: "Running"
        replicas: 3
        last_updated: "2025-01-24T10:00:00Z"
  - name: "datadog"
    type: "api"
    data:
      - service_name: "api-gateway"
        health: "healthy"
        latency_p99: 45
        last_updated: "2025-01-24T10:05:00Z"
  - name: "package.json"
    type: "file"
    data:
      - name: "api-gateway"
        version: "2.3.1"
        dependencies: ["express", "cors"]
conflict_resolution: prefer_recent
```

Target schema: `microservices_v1`.

**Output:**
```yaml
merged:
  schema: "microservices_v1"
  entities:
    - id: "api-gateway"
      type: "Service"
      attributes:
        name: "api-gateway"
        version: "2.3.1"
        status: "healthy"
        replicas: 3
        latency_p99: 45
        dependencies: ["express", "cors"]
      source_map:
        name:
          source: "package.json"
          original_value: null
          confidence: 1.0
        version:
          source: "package.json"
          original_value: null
          confidence: 1.0
        status:
          source: "datadog"
          original_value: "healthy"
          confidence: 0.9
        replicas:
          source: "kubernetes"
          original_value: null
          confidence: 1.0
        latency_p99:
          source: "datadog"
          original_value: null
          confidence: 0.95
        dependencies:
          source: "package.json"
          original_value: null
          confidence: 1.0
  relationships: []
integration_report:
  sources_used: ["kubernetes", "datadog", "package.json"]
  sources_excluded: []
  entity_count:
    total: 1
    from_single_source: 0
    merged: 1
  field_mapping:
    - source_field: "kubernetes.status"
      target_field: "status"
      transformation: "Mapped 'Running' to 'healthy'"
    - source_field: "datadog.service_name"
      target_field: "name"
      transformation: null
  information_loss:
    - source: "kubernetes"
      field: "labels"
      reason: "No target schema field for Kubernetes labels"
      impact: low
  validation_results:
    passed: true
    errors: []
    warnings:
      - "Service has no APIs defined"
conflicts:
  - entity_id: "svc:acme/platform/prod/api-gateway"
    field: "status"
    values:
      - source: "kubernetes"
        value: "Running"
      - source: "datadog"
        value: "healthy"
    resolution: "prefer_recent (datadog more recent)"
    resolved_value: "healthy"
    confidence: 0.85
provenance:
  sources:
    - name: "kubernetes"
      authority: high
      freshness: "2025-01-24T10:00:00Z"
    - name: "datadog"
      authority: medium
      freshness: "2025-01-24T10:05:00Z"
    - name: "package.json"
      authority: high
      freshness: "2025-01-20T00:00:00Z"
  integration_timestamp: "2025-01-24T12:00:00Z"
  confidence: 0.9
confidence: 0.9
evidence_anchors:
  - {ref: "kubernetes_api:deployments/api-gateway-deployment", kind: api}
  - {ref: "datadog:services/api-gateway", kind: api}
  - {ref: "file:package.json:1-20", kind: file}
assumptions:
  - "All sources refer to the same service"
  - "Datadog health status more accurate than K8s Running state"
```

**Evidence pattern:** Mapped fields from three sources to unified schema, resolved status conflict using recency.

---

#### Example 2: Integrating Documentation with Code Analysis

**Input:**
```yaml
sources:
  - name: "code_analysis"
    data:
      functions:
        - name: "processOrder"
          file: "src/orders.ts"
          parameters: ["orderId", "options"]
  - name: "api_docs"
    data:
      endpoints:
        - path: "/orders/process"
          method: "POST"
          description: "Process a pending order"
          parameters:
            - name: "order_id"
              required: true
conflict_resolution: merge
```

Target schema: `api_documentation`.

**Output:**
```yaml
merged:
  schema: "api_documentation"
  entities:
    - id: "endpoint_process_order"
      type: "Endpoint"
      attributes:
        path: "/orders/process"
        method: "POST"
        description: "Process a pending order"
        implementation: "src/orders.ts:processOrder"
        parameters:
          - name: "order_id"
            code_name: "orderId"
            required: true
            source: "body"
      source_map:
        path: { source: "api_docs" }
        method: { source: "api_docs" }
        description: { source: "api_docs" }
        implementation: { source: "code_analysis" }
        parameters: { source: "merged" }
integration_report:
  sources_used: ["code_analysis", "api_docs"]
  entity_count:
    total: 1
    merged: 1
  information_loss: []
conflicts:
  - entity_id: "endpoint:acme/orders/process_order"
    field: "parameters[0].name"
    values:
      - source: "code_analysis"
        value: "orderId"
      - source: "api_docs"
        value: "order_id"
    resolution: "merge - both names preserved (code vs API)"
    resolved_value: { name: "order_id", code_name: "orderId" }
    confidence: 0.95
confidence: 0.95
evidence_anchors:
  - {ref: "file:src/orders.ts:processOrder", kind: file}
  - {ref: "api_docs:endpoints/process", kind: x-doc}
```

### Verification

- [ ] All source entities are accounted for (integrated or documented as excluded)
- [ ] Conflicts have documented resolutions
- [ ] Output validates against target schema
- [ ] Provenance traces every attribute to source
- [ ] Information loss is documented

**Verification tools:** Schema validators, provenance checkers

### Safety Constraints

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

**Capability-specific rules:**
- Never silently drop data - document all information loss
- When confidence < 0.5 on a merge, flag for review
- Preserve source identifiers for traceability
- Resolve the identity of overlapping entities before merging them

### Composition Patterns

**Commonly follows:**
- `retrieve` - Get data from sources before integrating
- `search` - Discover relevant sources to integrate

**Commonly precedes:**
- `state` - Integration produces unified state
- `ground` - Integrated data needs grounding
- `compare` - Compare integrated states over time

**Anti-patterns:**
- Never integrate without understanding source schemas
- Avoid ignoring conflicts - always resolve or flag

**Workflow references:**
- See `reference/composition_patterns.md#world-model-build` for integration in model construction
- See `reference/composition_patterns.md#digital-twin-sync-loop` for ongoing integration
