---
title: "supply_chain_sync"
description: "Synchronize inventory state with suppliers and trigger replenishment when needed."
canonical: "https://acs.synapti.ai/workflows/supply-chain-sync/"
last_updated: "2026-10-28T18:48:12Z"
---

# Synchronize inventory state with suppliers and trigger replenishment when needed.

Generated from [schemas/workflows/manufacturing_workflows.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/workflows/manufacturing_workflows.yaml) at commit 18c38b74ac21.

- Workflow id: `supply_chain_sync`
- Risk: medium
- Catalog: domain workflows (manufacturing)
- Declares Standard 1.1.0
- Steps: 11

Supply chain synchronization workflow that monitors inventory levels,
detects reorder points, and prepares purchase recommendations.
All purchase orders require human approval.

**Figure: Steps of supply_chain_sync: 11 steps, checkpoint at step 10.** Read top to bottom: only steps 10 and 11 (checkpoint, audit) change state; and the highest step risk is low, at steps 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 and 11.

| # | Capability | Layer | Role | Gates | On failure | Reads from | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | `search` | PERCEIVE |  |  |  |  | low |
| 2 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 3 | `integrate` | SYNTHESIZE |  |  |  | 1 | low |
| 4 | `state` | MODEL |  |  |  | 3 | low |
| 5 | `compare` | UNDERSTAND |  |  |  | 2, 4 | low |
| 6 | `detect` | UNDERSTAND |  |  |  | 5 | low |
| 7 | `predict` | UNDERSTAND |  |  |  | 6 | low |
| 8 | `plan` | REASON |  |  |  | 2, 6, 7 | low |
| 9 | `generate` | SYNTHESIZE |  |  |  | 6, 8 | low |
| 10 | `checkpoint` | VERIFY | checkpoint |  |  | 6 | low |
| 11 | `audit` | VERIFY |  |  |  | 1, 6, 9, 10 | low |

## Inputs

**Figure: Inputs of supply_chain_sync.** 7 inputs, 0 required (filled pin) and 7 optional (outlined pin).

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `erp_inventory` | object | No | ERP system inventory data |
| `wms_inventory` | object | No | Warehouse management system data |
| `production_schedule` | object | No | Upcoming production schedule |
| `preferred_suppliers` | array of string | No | Preferred supplier list |
| `supplier_constraints` | object | No | Supplier minimum order constraints |
| `lead_time` | string | No | Replenishment lead time, as the demand forecast horizon |
| `profile` | object | No |  |

## Steps

1. [`search`](https://acs.synapti.ai/capabilities/search/index.md): Query current inventory levels across warehouses. Stores `inventory_search_out`. (risk low)
2. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get material specifications and reorder parameters. Stores `material_params_out`. (risk low)
3. [`integrate`](https://acs.synapti.ai/capabilities/integrate/index.md): Merge inventory data from multiple sources. Stores `integrated_inventory_out`. (risk low)
4. [`state`](https://acs.synapti.ai/capabilities/state/index.md): Build current inventory state model. Stores `inventory_state_out`. (risk low)
5. [`compare`](https://acs.synapti.ai/capabilities/compare/index.md): Compare current levels against reorder points. Stores `threshold_comparison_out`. (risk low)
6. [`detect`](https://acs.synapti.ai/capabilities/detect/index.md): Identify materials requiring replenishment. Stores `reorder_needed_out`. (risk low)
7. [`predict`](https://acs.synapti.ai/capabilities/predict/index.md): Forecast demand for reorder quantity calculation. Stores `demand_forecast_out`. (risk low)
8. [`plan`](https://acs.synapti.ai/capabilities/plan/index.md): Calculate optimal order quantities. Stores `order_plan_out`. (risk low)
9. [`generate`](https://acs.synapti.ai/capabilities/generate/index.md): Create purchase order recommendations. Stores `po_draft_out`. (risk low)
10. [`checkpoint`](https://acs.synapti.ai/capabilities/checkpoint/index.md): Checkpoint before any supplier communication. Stores `checkpoint_out`. (risk low, changes state)
11. [`audit`](https://acs.synapti.ai/capabilities/audit/index.md): Record supply chain synchronization cycle. Stores `audit_out`. (risk low, changes state)

## Data flow

**Figure: Which step reads which stored output.** 9 steps read the output of earlier steps, 16 reads in all; step 11 (audit) reads the most, from 4 steps.

- Step 3 reads from step 1.
- Step 4 reads from step 3.
- Step 5 reads from steps 2 and 4.
- Step 6 reads from step 5.
- Step 7 reads from step 6.
- Step 8 reads from steps 2, 6 and 7.
- Step 9 reads from steps 6 and 8.
- Step 10 reads from step 6.
- Step 11 reads from steps 1, 6, 9 and 10.

## Risk

**Figure: Risk of supply_chain_sync: declared medium; highest step risk low, at step 1 (search).** The catalog declares medium; the highest step risk is low.

- Step 1 (`search`): low
- Step 2 (`retrieve`): low
- Step 3 (`integrate`): low
- Step 4 (`state`): low
- Step 5 (`compare`): low
- Step 6 (`detect`): low
- Step 7 (`predict`): low
- Step 8 (`plan`): low
- Step 9 (`generate`): low
- Step 10 (`checkpoint`): low
- Step 11 (`audit`): low

## Success criteria

- Inventory state synchronized across systems
- Reorder points detected with lead time analysis
- Purchase recommendations generated
- Supplier communication prepared for approval

## Related

- Domain: [manufacturing](https://acs.synapti.ai/domains/manufacturing/index.md)
- Listed by the [manufacturing](https://acs.synapti.ai/domains/manufacturing/index.md) profile

## Validate it

```sh
python tools/validate_workflows.py --catalog schemas/workflows/manufacturing_workflows.yaml
```

## Workflow YAML

```yaml
supply_chain_sync:
  goal: Synchronize inventory state with suppliers and trigger replenishment when needed.
  risk: medium
  domain: manufacturing
  profile: schemas/profiles/manufacturing.yaml
  description: |
    Supply chain synchronization workflow that monitors inventory levels,
    detects reorder points, and prepares purchase recommendations.
    All purchase orders require human approval.
  success:
    - Inventory state synchronized across systems
    - Reorder points detected with lead time analysis
    - Purchase recommendations generated
    - Supplier communication prepared for approval
  steps:
    - capability: search
      purpose: Query current inventory levels across warehouses.
      risk: low
      mutation: false
      store_as: inventory_search_out
      input_bindings:
        query: inventory_levels
        scope: all_warehouses
        limit: 1000

    - capability: retrieve
      purpose: Get material specifications and reorder parameters.
      risk: low
      mutation: false
      store_as: material_params_out
      input_bindings:
        target: material_master
        format: reorder_parameters

    - capability: integrate
      purpose: Merge inventory data from multiple sources.
      risk: low
      mutation: false
      store_as: integrated_inventory_out
      input_bindings:
        sources:
          - "${inventory_search_out.results: array<object>}"
          - ${erp_inventory}
          - ${wms_inventory}
        strategy: sum_by_location
        conflict_resolution: prefer_recent

    - capability: state
      purpose: Build current inventory state model.
      risk: low
      mutation: false
      store_as: inventory_state_out
      input_bindings:
        scope: supply_chain
        observations: ${integrated_inventory_out.merged}

    - capability: compare
      purpose: Compare current levels against reorder points.
      domain: inventory_threshold
      risk: low
      mutation: false
      store_as: threshold_comparison_out
      input_bindings:
        options:
          - ${inventory_state_out.state}
          - "${material_params_out.data: object}"
        criteria:
          - below_reorder_point
          - below_safety_stock
          - days_of_supply

    - capability: detect
      purpose: Identify materials requiring replenishment.
      domain: reorder
      risk: low
      mutation: false
      store_as: reorder_needed_out
      input_bindings:
        data: ${threshold_comparison_out}
        pattern:
          type: below_threshold
          relative_to: reorder_point

    - capability: predict
      purpose: Forecast demand for reorder quantity calculation.
      domain: demand
      risk: low
      mutation: false
      store_as: demand_forecast_out
      # This step and the next three run only when a reorder is needed;
      # with inventory adequate they are skipped and the audit still runs.
      condition: ${reorder_needed_out.detected} == true
      input_bindings:
        target: material_demand
        horizon: ${lead_time}
        conditions: ${production_schedule}

    - capability: plan
      purpose: Calculate optimal order quantities.
      risk: low
      mutation: false
      store_as: order_plan_out
      condition: ${reorder_needed_out.detected} == true
      input_bindings:
        goal: replenish_inventory
        constraints:
          demand: "${demand_forecast_out.prediction: object}"
          lead_time: "${material_params_out.data.lead_time: number}"
          economic_order_qty: "${material_params_out.data.eoq: number}"
          supplier_minimums: ${supplier_constraints}

    - capability: generate
      purpose: Create purchase order recommendations.
      domain: purchase_order
      risk: low
      mutation: false
      store_as: po_draft_out
      condition: ${reorder_needed_out.detected} == true
      input_bindings:
        specification:
          type: purchase_order_draft
          materials: "${reorder_needed_out.matches: array<object>}"
          quantities: "${order_plan_out.steps: array<object>}"
          suppliers: ${preferred_suppliers}

    - capability: checkpoint
      purpose: Checkpoint before any supplier communication.
      risk: low
      mutation: true
      store_as: checkpoint_out
      condition: ${reorder_needed_out.detected} == true
      input_bindings:
        scope: supply_chain_action
        label: SCM-replenishment

    - capability: audit
      purpose: Record supply chain synchronization cycle.
      risk: low
      mutation: true
      store_as: audit_out
      input_bindings:
        event:
          type: supply_chain_sync
          materials_checked: ${inventory_search_out.total_count}
          reorders_identified: "${reorder_needed_out.matches: array<object>}"
          po_drafts_created: "${po_draft_out.content: object}"
          checkpoint_id: ${checkpoint_out.checkpoint_id}

  inputs:
    erp_inventory:
      type: object
      description: ERP system inventory data
    wms_inventory:
      type: object
      description: Warehouse management system data
    production_schedule:
      type: object
      description: Upcoming production schedule
    preferred_suppliers:
      type: array
      items: {type: string}
      description: Preferred supplier list
    supplier_constraints:
      type: object
      description: Supplier minimum order constraints
    lead_time:
      type: string
      description: Replenishment lead time, as the demand forecast horizon
      default: 14d
    profile:
      type: object
      ref: schemas/profiles/manufacturing.yaml
```
