---
title: "digital_twin_bootstrap"
description: "Initialize a digital twin from scratch then run a first sync loop."
canonical: "https://acs.synapti.ai/workflows/digital-twin-bootstrap/"
last_updated: "2026-11-16T03:28:14Z"
---

# Initialize a digital twin from scratch then run a first sync loop.

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

- Workflow id: `digital_twin_bootstrap`
- Risk: high
- Catalog: reference workflows
- Declares Standard 1.1.0
- Steps: 3

**Figure: Steps of digital_twin_bootstrap: 3 steps.** Read top to bottom: no step changes state; and the highest step risk is medium, at steps 1, 2 and 3.

| # | Capability | Layer | Role | Gates | On failure | Reads from | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | `invoke` | COORDINATE |  |  |  |  | medium |
| 2 | `invoke` | COORDINATE |  |  |  | 1 | medium |
| 3 | `invoke` | COORDINATE |  |  |  |  | medium |

## Inputs

**Figure: Inputs of digital_twin_bootstrap.** 3 inputs, 0 required (filled pin) and 3 optional (outlined pin), with 2 named fields inside them.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `user_input` | object | No |  |
| `user_input.domain` | string | No |  |
| `user_input.constraints` | object | No |  |
| `previous_world_state` | object | No |  |
| `world_state_out` | object | No |  |

## Steps

1. [`invoke`](https://acs.synapti.ai/capabilities/invoke/index.md): Build initial world model baseline Stores `world_model_out`. (risk medium)
2. [`invoke`](https://acs.synapti.ai/capabilities/invoke/index.md): Run initial sync loop using the baseline just built Stores `sync_out`. (risk medium)
3. [`invoke`](https://acs.synapti.ai/capabilities/invoke/index.md): Run initial sync loop from the world state passed in Stores `sync_existing_out`. (risk medium)

## Data flow

**Figure: Which step reads which stored output.** 1 step reads the output of earlier steps, 1 read in all; step 2 (invoke) reads the most, from 1 step.

- Step 2 reads from step 1.

## Risk

**Figure: Risk of digital_twin_bootstrap: declared high; highest step risk medium, at step 1 (invoke).** The catalog declares high; the highest step risk is medium.

- Step 1 (`invoke`): medium
- Step 2 (`invoke`): medium
- Step 3 (`invoke`): medium

## Success criteria

- World model built
- First sync completed
- Audit produced

## Related

- Composed skill: [digital-twin-bootstrap](https://acs.synapti.ai/guides/skills/digital-twin-bootstrap/index.md)

## Validate it

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

## Workflow YAML

```yaml
digital_twin_bootstrap:
  goal: Initialize a digital twin from scratch then run a first sync loop.
  risk: high
  success:
  - World model built
  - First sync completed
  - Audit produced
  steps:
  - capability: invoke
    purpose: Build initial world model baseline
    workflow_id: world_model_build
    store_as: world_model_out
    condition: ${world_state_out} == null
    skip_if_false: true
    input_bindings:
      input:
        user_input: ${user_input}
    risk: medium
    mutation: false
    requires_checkpoint: false
    requires_approval: false
    timeout: null
    retry: null
    failure_modes: []
  # The first sync starts from the baseline just built, or from the world
  # state passed in (in which case the build step was skipped and has no
  # output to read).
  - capability: invoke
    purpose: Run initial sync loop using the baseline just built
    workflow_id: digital_twin_sync_loop
    store_as: sync_out
    condition: ${world_state_out} == null
    skip_if_false: true
    input_bindings:
      input:
        user_input: ${user_input}
        # result holds the invoked workflow's stores; the state step's output
        # wraps the world state in its `state` field, so this hands the sync
        # loop a world state, the same shape as world_state_out below
        previous_world_state: '${world_model_out.result.state_out.state: object}'
    risk: medium
    mutation: false
    requires_checkpoint: false
    requires_approval: false
    timeout: null
    retry: null
    failure_modes: []
  - capability: invoke
    purpose: Run initial sync loop from the world state passed in
    workflow_id: digital_twin_sync_loop
    store_as: sync_existing_out
    condition: ${world_state_out} != null
    skip_if_false: true
    input_bindings:
      input:
        user_input: ${user_input}
        previous_world_state: '${world_state_out: object}'
    risk: medium
    mutation: false
    requires_checkpoint: false
    requires_approval: false
    timeout: null
    retry: null
    failure_modes: []
  inputs:
    user_input:
      type: object
      properties:
        domain:
          type: string
        constraints:
          type: object
    previous_world_state:
      type: object
      ref: schemas/world_state_schema.yaml#/world_state
    world_state_out:
      type: object
      ref: schemas/world_state_schema.yaml#/world_state
```
