--- title: "CIP step catalog" slug: "build-ai-ready-systems-build-reference-cip-step-catalog" description: "Schema-backed CIP step reference — fetch, paginate, map, merge, filter, output, and pythonInline with required fields and minimal JSON excerpts." tags: ["Integration", "Cip", "Developer", "Integrator"] updated: 2026-11-30T18:30:28Z published: 2026-11-30T18:30:28Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-build-reference-cip-step-catalog" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # CIP step catalog Reference for **`$defs.cipStep*`** on Business Entity **`execution.cip.operations.*.steps`**. Each step is a single keyed object — one of the types below. Authoring context: [Configure data flow](/docs/build-ai-ready-systems-business-entities-configure-data-flow). Certification: [CIP execution](/docs/build-ai-ready-systems-publish-certify-cip-execution). CIP is not an integration system CIP has no `if` / `else` / `switch` step. It does not hide vendor logic or replace Connected System capabilities. Pipelines compose fetch, map, filter, and related steps over declared operations — vendor behavior stays in OpenAPI, MCP, and certified capabilities, not inside CIP control-flow. ## Prerequisites - [Configure data flow](/docs/build-ai-ready-systems-business-entities-configure-data-flow) open while editing `execution.cip` - Schema synced via Builder validate (or local `aifabrix validate <systemKey>`) ## Where it lives Execution uses the published operation's compiled mapping and output contract. Path values configured by the integration owner are bound during compilation, omitted from caller input, and cannot be overridden by a caller. Per-record identity remains a caller requirement. Draft edits do not change a published operation. The operation `input` contract is not a step. An input property that holds a system key may declare `x-aifabrix-refersTo` (`existingSystem` or `newSystemKey`); see [Configure CIP argument keys](/docs/build-ai-ready-systems-business-entities-configure-cip-argument-keys). | Layer | Location | | --- | --- | | Steps | `<datasourceKey>.json` → **`execution.cip.operations.<key>.steps[]`** | | Schema defs | External datasource schema `$defs.cipStep*` | | Help | Builder topic **`cipOverview`**, **`schemaCatalog`** | ## How to set 1. Open the operation under **`execution.cip.operations`** that matches your capability key. 2. Append steps as **single-key objects** only — never invent keys outside this catalog. 3. Prefer the common list pattern: `fetch` → `paginate` → `map` → `filter` → `output`. 4. Re-run `aifabrix validate <systemKey>` after each structural change. ## Defaults and examples | Step | Purpose | Typical default | | --- | --- | --- | | **`fetch`** | Obtain raw payload | `source: openapi` + `openapiRef` | | **`paginate`** | Walk list pages | `strategy: cursor` (when vendor pages) | | **`map`** | Normalize fields | `useFieldMappings: true` | | **`merge`** | Combine accumulates | `strategy: array` | | **`filter`** | ABAC / JMESPath | `abac.mode: mandatory` | | **`output`** | Emit records or persist binary documents | `mode: records`; `documents` for document storage | | **`pythonInline`** | Sandboxed transform | rare — prefer `map`/`filter` | ## Step types at a glance | Step | Purpose | | --- | --- | | **`fetch`** | Obtain raw payload from OpenAPI, HTTP, another datasource, a viewpoint, or local record storage | | **`paginate`** | Walk cursor / page / offset results after fetch | | **`map`** | Normalize vendor fields via `fieldMappings` or inline DSL | | **`merge`** | Combine accumulated fetch outputs | | **`filter`** | ABAC and/or JMESPath filter before emit | | **`output`** | Emit `records`, or persist binary files and emit document references with `documents` | | **`pythonInline`** | Sandboxed transform when declarative steps are not enough | Common optional step wrappers: `enabled`, `order`, `stepId`, `onError`, `lineage` (where schema allows). ## fetch **Purpose:** Load a payload for the operation. `source` is **where I/O happens**. CIP operation `shape` classifies writes (`create`, `update`, `upsert`, `delete`, `business`) and custom reads (`list`, `get`, `lookup`) when fetch inference is insufficient; it is not the capability key. Pipeline `output.mode` is **`records`** for ordinary record output or **`documents`** for binary document persistence. **Required:** object key `fetch` with **`source`**. Closed enum: | `source` | Meaning | Required | Forbidden | | --- | --- | --- | --- | | `openapi` | Vendor/OpenAPI HTTP | `openapiRef` and/or `operationId` | SQL `query` | | `http` | Explicit method + path | `method` + `path` | SQL `query` | | `datasource` | Nested datasource operation | `datasource` (unless composition selects) + `operation` (default `list`) | SQL `query` | | `viewpoint` | Saved SQL against record storage (`storageType: view`) | SQL string `query` | vendor `path`/`method`; persist shapes | | `record` | Local table I/O (no vendor HTTP) | none beyond `source` (identity/body from the capability and `exposed.profiles`) | SQL `query`; do not treat as vendor HTTP | `source: record` is singular. Do not write `fetch.source: records`. `output.mode: records` remains plural. CIP `fetch.source` compiles to COM **`source`** (same pattern as `writeShape`). Named perspectives are `source: viewpoint`. Local table and vendor fetches are the other tokens — capability keys such as `list` / `search` / `get` are examples, not a closed set. `fetch.responseType` is `json` by default. Use `binary` only with `source: openapi` or `source: http` for a file response; it carries one binary record to document output. Bytes stay out of traces and returned evidence. Useful optional fields (vendor/nested): `query` (parameter object), `bodyTemplate`, `headers`, `expectedItemsPath`, `accumulate`, `skipUnauthorized`, `parameters` (datasource). `query` is a SQL **string** only for `viewpoint`. ``` { "fetch": { "source": "openapi", "openapiRef": "list", "query": { "limit": "100" } } } ``` Viewpoint (SQL against governed record storage): ``` { "fetch": { "source": "viewpoint", "query": "SELECT customer_id AS \"customerId\", SUM(amount) AS total FROM records_example_orders GROUP BY customer_id" } } ``` Local table **read** (core list/get needs no declared `shape`; a custom multi-record read declares `shape: list`, and a custom single-record read may declare `shape: get`): ``` { "fetch": { "source": "record" } } ``` Local table **persist** — `shape` on the **operation**, not inferred from the key: ``` { "registerEmployee": { "shape": "create", "steps": [ { "fetch": { "source": "record" } }, { "output": { "mode": "records" } } ] } } ``` `upsert` is an operation shape, not a new step type. It must be declared and compose exactly one datasource `create` fetch and one datasource `update` fetch for the same datasource. Identity comes from `validation.repeatingValues` entries with `strategy: "reject"`; every identity field must be present in the request. CIP resolves record existence once and executes only the permitted half. Missing or ambiguous identity, an unresolved record, or denied access stops without falling back. Validate the production transport used by the integration; platform connector and worker acceptance is tracked separately from the schema and datasource execution contract. **When to use:** Vendor or child-entity HTTP (`openapi` / `http` / `datasource`); calculated read-only perspectives (`viewpoint`); local record-storage list/get/create/update with no vendor HTTP (`record`). **When not:** Do not invent a sixth source. `record` is not vendor HTTP. `viewpoint` is not a table write. Do not use a capability key (`create`, `list`, …) as the fetch source. ## paginate **Purpose:** Continue fetching pages after an initial `fetch` (typically `list`). **Required:** `paginate.strategy` — `cursor` | `page` | `offset` | `none`. ``` { "paginate": { "strategy": "cursor", "cursorField": "$.paging.next.after", "cursorParam": "after", "pageSizeParam": "limit", "pageSize": 100, "maxPages": 50 } } ``` **When to use:** List operations with vendor pagination. **When not:** Single-record `get` / `create` / `update` / `delete` unless the vendor truly pages those responses. ## map **Purpose:** Transform raw API records into the normalized metadata model. **Required:** object key `map` (inner properties optional; defaults apply). Prefer **`useFieldMappings: true`** so **`fieldMappings.attributes`** drive expressions. Optional `inputPath` (default `$.items[*]`) and `inline` overrides. Pipe functions (`toLower`, `split`, `index`, and the rest of the closed list) are documented in [Configure field-mapping expressions](/docs/build-ai-ready-systems-business-entities-configure-field-mapping-expressions). ``` { "map": { "useFieldMappings": true, "inputPath": "$.results[*]" } } ``` **When to use:** Almost every list/get after fetch. **When not:** Do not invent a `transform` step — use `map` (or `pythonInline` as last resort). ## merge **Purpose:** Merge accumulated fetch outputs (`fetch.accumulate: true`) — data transformation only. **Required:** `merge.strategy` — `object` | `array` | `union` | `byKey` (optional `keyField`). ``` { "merge": { "strategy": "array" } } ``` **When to use:** Multi-fetch orchestration into one batch. **When not:** Simple single-fetch pipelines — skip merge. ## filter **Purpose:** Filter mapped records before output (ABAC and/or JMESPath). **Required:** object key `filter`. ``` { "filter": { "abac": { "mode": "mandatory", "policyScope": "datasource" } } } ``` `abac.mode`: `mandatory` | `optional` | `disabled`. Optional `expression` (+ `expressionLanguage: jmespath`). **When to use:** Enforce or explain ABAC on list/get results. **When not:** Do not disable ABAC in production tenants without a documented exception. ## output **Purpose:** Finalize the pipeline. `records` emits governed records; `documents` persists binary content through the document pipeline and emits document references. **Required:** object key `output`. Prefer **`mode: records`**. ``` { "output": { "mode": "records" } } ``` Optional: `limit`, `includeConfidence`. For keyed file retrieval, pair `fetch.responseType: binary` with `output.mode: documents`. The datasource must use `entityType: documentStorage` and `documentStorage.enabled: true`; map its stable key from request parameters or response headers. The document pipeline retains metadata, projects protection and applies ingestion eligibility. `ingestAfterSync` does not bypass approval or required-link checks. A simulation does not prove persistence. Operation fragment (requires the surrounding datasource and matching OpenAPI `get` declaration): ``` { "get": { "steps": [ { "fetch": { "source": "openapi", "openapiRef": "get", "responseType": "binary" } }, { "output": { "mode": "documents" } } ] } } ``` Use [Build a document storage entity](/docs/build-ai-ready-systems-business-entities-guides-build-document-storage-entity) for keyed-get testing and storage prerequisites. **When to use:** End of every operation that should return governed records. **When not:** Leaving output off often breaks sync and agent consumption — include it unless validate proves otherwise. ## pythonInline **Purpose:** Sandboxed inline Python on the current record batch when declarative steps cannot express the transform. **Required:** `pythonInline.code` — small pure snippet; no imports, IO, or network (runtime must enforce sandboxing). ``` { "pythonInline": { "code": "return [r for r in records if r.get('status') == 'active']" } } ``` **When to use:** Rare edge transforms after map. **When not:** Prefer `map` / `filter` first. Prefer **`execution.engine: python`** only for full custom handlers, not routine field mapping. ## Validate Inspect the published caller input and test both owner-configured path values and caller-supplied record identity. Missing compiled ownership facts on a legacy artifact grant no exemption from required input: republish through the normal lifecycle, then rerun the affected operation. ``` aifabrix validate ``` Reject invented step keys; use this catalog and Builder help topic **`schemaCatalog`** when property names fail. ## Common mistakes | Mistake | Fix | | --- | --- | | Treating an omitted input as proof that the owner supplies it | Verify the published contract; republish legacy artifacts missing ownership facts | | `transform` or other invented keys | Use `map` / `filter` / `pythonInline` | | `fetch` without `openapiRef` for `source: openapi` | Add `openapiRef` matching **`openapi.operations`** | | List without `output` | Add `{"output":{"mode":"records"}}` | | `pythonInline` for routine field renames | Use `map` + fieldMappings | ## Related - [Configure data flow (CIP execution)](/build-ai-ready-systems-business-entities-configure-data-flow.md) - [CIP execution](/build-ai-ready-systems-publish-certify-cip-execution.md) - [Configure business vocabulary](/build-ai-ready-systems-business-entities-configure-business-vocabulary.md) - [Configure field-mapping expressions](/build-ai-ready-systems-business-entities-configure-field-mapping-expressions.md)