---
title: "receive"
description: "Accept pushed data or events"
canonical: "https://acs.synapti.ai/capabilities/receive/"
last_updated: "2026-11-16T04:04:36Z"
---

# receive

Accept pushed data or events

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

Layer: [PERCEIVE](https://acs.synapti.ai/layers/perceive/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 receive runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

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

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

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

## Contract

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

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | string | No | Source channel |
| `filter` | object | No | Event filter criteria |
| `timeout` | string | No | Wait timeout |
| `accept_from` | array of string | No | Principals to accept items from; items from others are dropped and counted (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); items whose sender identity says otherwise, or that carry none, are dropped and counted (identity@1, STANDARD v1.1 §5.17) |
| `accept_trust_classes` | array of string | No | Trust classes to accept items from; others, and items 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 items (and items with no trust class) make any step that requires approval and uses them be asked of a person, whatever mandate would cover it (identity@1, STANDARD v1.1 §5.17) |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object | Yes | Received data/events |
| `source` | string | No | Event source |
| `timestamp` | string | No | Format: date-time |
| `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 10 fields: 5 are in receive'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 |
| --- | --- |
| `source` | Yes, optional |
| `timestamp` | Yes, optional |
| `received` | No, the skill's own |
| `data` | Yes, required |
| `parsed_count` | No, the skill's own |
| `validation` | No, the skill's own |
| `conflicts` | 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: receive in workflows.** 6 workflows use receive, in 6 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 3
- [`digital_twin_sync_loop`](https://acs.synapti.ai/workflows/digital-twin-sync-loop/index.md): step 1
- [`model_monitoring`](https://acs.synapti.ai/workflows/model-monitoring/index.md): step 1
- [`patient_monitoring`](https://acs.synapti.ai/workflows/patient-monitoring/index.md): step 1
- [`production_line_monitoring`](https://acs.synapti.ai/workflows/production-line-monitoring/index.md): step 1
- [`predictive_maintenance`](https://acs.synapti.ai/workflows/predictive-maintenance/index.md): step 2

## Claude Code skill

**Figure: What the receive skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks receive 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 receive 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 | `channel`, `filter`, `timeout` |
| `delegation@1` | `accept_from` |
| `identity@1` | `sender_check`, `accept_trust_classes`, `always_ask_trust_classes` |

**Figure: The field names each step of the receive procedure uses.** 7 of the procedure's 8 steps use the name of an input or output field of the receive skill as a word; 8 output fields of 10 are used by no step (timestamp, received, parsed_count, validation, conflicts, confidence, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Identify input source |  | `source`, `data` |
| 2. Validate source accessibility |  | `source` |
| 3. Detect format |  | `data` |
| 4. Parse input |  | `data` |
| 5. Validate structure | `channel` | `data` |
| 6. Extract events/messages |  | `data` |
| 7. Ground evidence |  | `data` |
| 8. Format output |  |  |

All 3 examples of the skill write out every one of its 10 output fields.

**Figure: The field names each verification check of the receive skill uses.** 3 of the 5 checks use the name of an input or output field as a word; 8 output fields of 10 are named by no check (source, timestamp, received, parsed_count, validation, conflicts, evidence_anchors and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Source is accessible and data retrieved successfully |  | `data` |
| 2. Format detection matches actual data format |  | `data` |
| 3. All messages parsed without critical errors |  |  |
| 4. Validation errors logged with actionable detail |  |  |
| 5. confidence is the probability of the reported result (§4.1.1) |  | `confidence` |

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

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

### Intent

Execute **receive** to ingest incoming data from external sources and parse it into a structured, validated form for downstream processing.

**Success criteria:**
- Input data is successfully ingested from the source
- Data is parsed according to expected format
- Validation against schema (if one applies) passes or errors are captured
- Structured output is ready for downstream capabilities
- Malformed or unexpected data is handled gracefully

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

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `channel` | No | string | Source channel |
| `filter` | No | object | Event filter criteria |
| `timeout` | No | string | Wait timeout |
| `accept_from` | No | array[string] | Principals to accept items from; items from others are dropped and counted, and each kept item carries its authenticated `sender` (Standard v1.1 `delegation@1`) |
| `sender_check` | No | array[string] | Accepted `authenticated_by` values of the sender's identity; items without a matching identity are dropped and counted (Standard v1.1 `identity@1`) |
| `accept_trust_classes` | No | array[string] | Trust classes to accept items from; others are dropped and counted (`identity@1`). Any kept item with an identity carries it as `sender_identity` |
| `always_ask_trust_classes` | No | array[string] | Trust classes whose items (and items with no trust class) make any step that requires approval and uses them be asked of a person, whatever mandate would cover it (`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).

In a workflow, a step can also `wait` for a matching event with a required
timeout (Standard v1.1 `wait@1`); see
[ORCHESTRATION_EXTENSIONS.md](https://acs.synapti.ai/guides/orchestration-extensions/index.md).

### Procedure

1) **Identify input source**: Determine where data is coming from
   - File path: Read from local filesystem
   - URL: Fetch from network endpoint
   - Inline: Extract from request payload
   - Stream: Connect to data stream

2) **Validate source accessibility**: Verify source can be read
   - Check file exists and is readable
   - Verify URL is reachable
   - Confirm stream is connected
   - Check size does not exceed the size limit

3) **Detect format**: Identify data format if not specified
   - Check content-type headers or file extension
   - Inspect data prefix for format signatures
   - Fall back to text if ambiguous

4) **Parse input**: Transform raw data into structured form
   - JSON: Parse to object/array using safe parser
   - XML: Parse to DOM or object representation
   - YAML: Parse to object using safe loader
   - CSV: Parse to array of records
   - Text: Split into lines/tokens as appropriate
   - Binary: Extract structured fields per schema

5) **Validate structure**: Check parsed data against schema
   - If a schema applies to the channel (e.g. `schemas/event_v2.yaml`): validate and collect errors
   - If no schema: perform basic sanity checks
   - Flag missing required fields
   - Flag type mismatches

6) **Extract events/messages**: Identify discrete units in the data
   - Single message: wrap as single-element array
   - Batch: extract individual events
   - Stream chunk: identify complete messages

7) **Ground evidence**: Record provenance for ingested data
   - Source URI or path
   - Timestamp of receipt
   - Size and checksum if applicable

8) **Format output**: Structure results according to output contract

### Output Contract

Return a structured object:

```yaml
source: string  # Event source: where data came from
timestamp: string  # ISO 8601 date-time of receipt
received:
  source_type: file | url | inline | stream
  format_detected: json | xml | yaml | csv | text | binary
  size_bytes: integer  # Size of received data
  encoding: string  # Character encoding used
data:
  - id: string  # Unique message identifier
    type: string | null  # Event/message type if identifiable
    payload: object  # Parsed message content
    timestamp: string | null  # Message timestamp if present
    metadata: object | null  # Additional message metadata
    sender: string  # Host-authenticated principal that sent the item (with accept_from)
    sender_identity: object  # Sender's identity as the host reported it (identity@1)
    inquiry_id: string       # For answers to an inquiry: the inquiry they answer
    answers: array           # For answers to an inquiry: [{question_id, value}]
parsed_count: integer  # Number of messages/events parsed
validation:
  schema_ref: string | null  # Schema used for validation
  valid: boolean  # Whether all messages passed validation
  errors:
    - message_id: string
      field: string
      error: string
      severity: error | warning
conflicts:
  - type: string  # Type of conflict/anomaly
    description: string
    affected_messages: array[string]
confidence: number  # probability that the parsed data is what was received (§4.1.1)
evidence_anchors: array[EvidenceAnchor]  # Source references; each {ref, kind} (STANDARD v1.2 §6.5)
assumptions: array[string]  # Explicit assumptions
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `data` | array[object] | Received messages/events, each with its parsed `payload` (and `sender` / `sender_identity` when the host authenticates senders) |
| `data[].inquiry_id` | string | For answers to an inquiry: the `inquiry_id` of the `inquire` output they answer (Standard v1.2 §5.13.1) |
| `data[].answers` | array[object] | For answers to an inquiry: one `{question_id, value}` per question answered, keyed by the question's `id` (or its `parameter`) and typed by its `answer_type`; never an unasked question, a wrong type or a question twice |
| `source` | string | Event source: origin of the data |
| `timestamp` | string | ISO 8601 date-time of receipt |
| `received` | object | Transport details: source type, detected format, size, encoding |
| `validation.valid` | boolean | Whether validation passed |
| `validation.errors` | array | Validation error details |
| `conflicts` | array | Anomalies or conflicts in data |
| `confidence` | number | Probability, 0.0-1.0, that the parsed data is what was received (§4.1.1); lower after parse or validation errors |
| `evidence_anchors` | array of evidence anchors (§6.5) | Source references |
| `assumptions` | array | Explicit assumptions |

### Examples

#### Example 1: Receiving JSON API Response

**Input:**
```yaml
channel: "https://api.example.com/events"
```

**Output:**
```yaml
source: "https://api.example.com/events"
timestamp: "2024-01-16T12:00:00Z"
received:
  source_type: url
  format_detected: json
  size_bytes: 4256
  encoding: "utf-8"
data:
  - id: "evt_001"
    type: "order.created"
    payload:
      order_id: "ORD-12345"
      customer_id: "CUST-789"
      total: 129.99
      currency: "USD"
    timestamp: "2024-01-16T11:58:30Z"
    metadata:
      source_system: "ecommerce"
      version: "2.1"
  - id: "evt_002"
    type: "order.paid"
    payload:
      order_id: "ORD-12345"
      payment_method: "credit_card"
      transaction_id: "TXN-ABC123"
    timestamp: "2024-01-16T11:59:00Z"
    metadata:
      source_system: "payments"
      version: "1.0"
parsed_count: 2
validation:
  schema_ref: "schemas/event_v2.yaml"
  valid: true
  errors: []
conflicts: []
confidence: 1.0
evidence_anchors:
  - {ref: "https://api.example.com/events", kind: url}
  - {ref: "file:schemas/event_v2.yaml", kind: file}
assumptions:
  - "API response is authoritative source of truth"
  - "Timestamps are in UTC"
```

**Evidence pattern:** Source URL recorded; schema validation confirmed; each message given unique ID.

---

#### Example 2: Receiving Malformed Data

**Input:**
```yaml
channel: "/var/log/sensor_data.json"
```

**Output:**
```yaml
source: "/var/log/sensor_data.json"
timestamp: "2024-01-16T14:30:00Z"
received:
  source_type: file
  format_detected: json
  size_bytes: 1024
  encoding: "utf-8"
data:
  - id: "msg_001"
    type: "sensor_reading"
    payload:
      sensor_id: "SENS-001"
      temperature: 23.5
      humidity: null
      timestamp: "2024-01-16T14:29:00Z"
    timestamp: "2024-01-16T14:29:00Z"
    metadata: null
  - id: "msg_002"
    type: "sensor_reading"
    payload:
      sensor_id: "SENS-002"
      temperature: "ERROR"
      humidity: 65.2
      timestamp: null
    timestamp: null
    metadata: null
parsed_count: 2
validation:
  schema_ref: "schemas/sensor_reading.yaml"
  valid: false
  errors:
    - message_id: "msg_001"
      field: "humidity"
      error: "Required field is null"
      severity: warning
    - message_id: "msg_002"
      field: "temperature"
      error: "Expected number, got string 'ERROR'"
      severity: error
    - message_id: "msg_002"
      field: "timestamp"
      error: "Required field is null"
      severity: error
conflicts:
  - type: "data_quality"
    description: "Sensor SENS-002 reporting error state instead of reading"
    affected_messages: ["msg_002"]
confidence: 0.5
evidence_anchors:
  - {ref: "file:/var/log/sensor_data.json", kind: file}
  - {ref: "file:schemas/sensor_reading.yaml", kind: file}
assumptions:
  - "File contains most recent sensor batch"
  - "'ERROR' string indicates sensor malfunction"
next_actions:
  - "Investigate sensor SENS-002 for malfunction"
  - "Check why SENS-001 humidity is null"
```

---

#### Example 3: Receiving Webhook Payload

**Input:**
```yaml
channel: inline  # payload delivered with the request
```

**Payload received:**
```xml
<?xml version="1.0"?>
<notification type="alert">
  <severity>high</severity>
  <message>CPU usage exceeded threshold</message>
  <host>server-01</host>
</notification>
```

**Output:**
```yaml
source: "inline"
timestamp: "2024-01-16T15:00:00Z"
received:
  source_type: inline
  format_detected: xml
  size_bytes: 198
  encoding: "utf-8"
data:
  - id: "msg_001"
    type: "notification.alert"
    payload:
      severity: "high"
      message: "CPU usage exceeded threshold"
      host: "server-01"
    timestamp: null
    metadata:
      xml_root: "notification"
      xml_attributes:
        type: "alert"
parsed_count: 1
validation:
  schema_ref: null
  valid: true
  errors: []
conflicts: []
confidence: 0.95
evidence_anchors:
  - {ref: "inline:xml:notification", kind: record}
assumptions:
  - "XML is well-formed and complete"
  - "No schema validation requested"
```

### Verification

- [ ] Source is accessible and data retrieved successfully
- [ ] Format detection matches actual data format
- [ ] All messages parsed without critical errors
- [ ] Validation errors logged with actionable detail
- [ ] confidence is the probability of the reported result (§4.1.1)

**Verification tools:** Read (to access file sources), Grep (to search for patterns in text data)

### Safety Constraints

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

**Capability-specific rules:**
- Do not execute or run arbitrary code from received data
- Use safe parsing methods (JSON.parse, safe YAML loader)
- Validate size limits before loading large files into memory
- Sanitize file paths to prevent directory traversal
- Do not store credentials or secrets found in payloads
- Log but do not propagate malformed/suspicious data without flagging

### Composition Patterns

**Commonly follows:**
- External triggers (webhooks, API calls, file drops) and scheduled ingestion

**Commonly precedes:**
- `transform` - Normalize received data for processing
- `verify` - Deeper validation beyond schema
- `integrate` - Merge received data with existing state
- `synchronize` - Combine with other data sources
- `recall` - Check received data against prior context

**Anti-patterns:**
- Never process received data without validation
- Never trust received data for authentication decisions without verification
- Avoid processing unbounded streams without size limits

**Workflow references:**
- See `reference/composition_patterns.md#digital-twin-sync-loop` for receive as entry point
- First step in most data ingestion pipelines
