---
title: "anomaly_investigation"
description: "Investigate detected anomalies to identify root cause and impact."
canonical: "https://acs.synapti.ai/workflows/anomaly-investigation/"
last_updated: "2026-10-28T02:44:27Z"
---

# Investigate detected anomalies to identify root cause and impact.

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

- Workflow id: `anomaly_investigation`
- Risk: low
- Catalog: domain workflows (data-analysis)
- Declares Standard 1.1.0
- Steps: 11

Anomaly investigation workflow that drills down into detected
anomalies, identifies contributing factors, and produces
actionable insights for resolution.

**Figure: Steps of anomaly_investigation: 11 steps.** Read top to bottom: only step 11 (audit) changes 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 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 2 | `observe` | PERCEIVE |  |  |  |  | low |
| 3 | `discover` | UNDERSTAND |  |  |  | 1 | low |
| 4 | `attribute` | MODEL |  |  |  | 2 | low |
| 5 | `search` | PERCEIVE |  |  |  |  | low |
| 6 | `compare` | UNDERSTAND |  |  |  | 1 | low |
| 7 | `measure` | UNDERSTAND |  |  |  |  | low |
| 8 | `simulate` | MODEL |  |  |  | 2 | low |
| 9 | `plan` | REASON |  |  |  | 4 | low |
| 10 | `explain` | REASON |  |  |  | 4, 7, 9 | low |
| 11 | `audit` | VERIFY |  |  |  | 4, 7, 9 | low |

## Inputs

**Figure: Inputs of anomaly_investigation.** 6 inputs, 1 required (filled pin) and 5 optional (outlined pin), with 6 named fields inside them.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `anomaly` | object | Yes |  |
| `anomaly.id` | string | No |  |
| `anomaly.type` | string | No |  |
| `anomaly.data_source` | string | No |  |
| `anomaly.filter_criteria` | object | No |  |
| `anomaly.detection_time` | string | No |  |
| `anomaly.affected_systems` | array of string | No |  |
| `baseline_data` | object | No | Normal baseline data for comparison |
| `impact_unit` | string | No |  |
| `projection_horizon` | string | No |  |
| `available_remediation_actions` | array of string | No |  |
| `profile` | object | No |  |

## Steps

1. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get detailed data around the anomaly. Stores `anomaly_data_out`. (risk low)
2. [`observe`](https://acs.synapti.ai/capabilities/observe/index.md): Examine the anomalous data points in context. Stores `observation_out`. (risk low)
3. [`discover`](https://acs.synapti.ai/capabilities/discover/index.md): Find patterns in the anomalous data. Stores `pattern_discovery_out`. (risk low)
4. [`attribute`](https://acs.synapti.ai/capabilities/attribute/index.md): Identify likely causes of the anomaly. Stores `attribution_out`. (risk low)
5. [`search`](https://acs.synapti.ai/capabilities/search/index.md): Search for related events or changes. Stores `related_events_out`. (risk low)
6. [`compare`](https://acs.synapti.ai/capabilities/compare/index.md): Compare anomalous period to normal baseline. Stores `period_comparison_out`. (risk low)
7. [`measure`](https://acs.synapti.ai/capabilities/measure/index.md): Quantify the impact of the anomaly. Stores `impact_out`. (risk low)
8. [`simulate`](https://acs.synapti.ai/capabilities/simulate/index.md): Project impact if anomaly continues unaddressed. Stores `projection_out`. (risk low)
9. [`plan`](https://acs.synapti.ai/capabilities/plan/index.md): Generate remediation recommendations. Stores `remediation_plan_out`. (risk low)
10. [`explain`](https://acs.synapti.ai/capabilities/explain/index.md): Create investigation summary. Stores `summary_out`. (risk low)
11. [`audit`](https://acs.synapti.ai/capabilities/audit/index.md): Record investigation. Stores `audit_out`. (risk low, changes state)

## Data flow

**Figure: Which step reads which stored output.** 7 steps read the output of earlier steps, 11 reads in all; step 10 (explain) reads the most, from 3 steps.

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

## Risk

Declared and highest step risk are both low; the catalog gives no computed risk; the highest-risk step is step 1 (retrieve), with 10 others at the same level. The step map above gives each step's risk.

## Success criteria

- Anomaly scope defined
- Contributing factors identified
- Root cause hypothesis generated
- Impact assessment completed

## Related

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

## Validate it

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

## Workflow YAML

```yaml
anomaly_investigation:
  goal: Investigate detected anomalies to identify root cause and impact.
  risk: low
  domain: data-analysis
  profile: schemas/profiles/data_analysis.yaml
  description: |
    Anomaly investigation workflow that drills down into detected
    anomalies, identifies contributing factors, and produces
    actionable insights for resolution.
  success:
    - Anomaly scope defined
    - Contributing factors identified
    - Root cause hypothesis generated
    - Impact assessment completed
  steps:
    - capability: retrieve
      purpose: Get detailed data around the anomaly.
      risk: low
      mutation: false
      store_as: anomaly_data_out
      input_bindings:
        target: ${anomaly.data_source}
        format: detailed_records
        filter: ${anomaly.filter_criteria}

    - capability: observe
      purpose: Examine the anomalous data points in context.
      risk: low
      mutation: false
      store_as: observation_out
      input_bindings:
        target: ${anomaly.data_source}
        aspects: [distribution, temporal_pattern, correlations]

    - capability: discover
      purpose: Find patterns in the anomalous data.
      risk: low
      mutation: false
      store_as: pattern_discovery_out
      input_bindings:
        data: "${anomaly_data_out.data: array<object>}"
        constraints:
          focus: ${anomaly.type}
        method: unsupervised_clustering

    - capability: attribute
      purpose: Identify likely causes of the anomaly.
      domain: causation
      risk: low
      mutation: false
      store_as: attribution_out
      input_bindings:
        effect: ${anomaly}
        candidates:
          - data_source_change
          - upstream_pipeline_issue
          - schema_drift
          - real_world_change
          - measurement_error
        context: ${observation_out.observation}

    - capability: search
      purpose: Search for related events or changes.
      risk: low
      mutation: false
      store_as: related_events_out
      input_bindings:
        query:
          time_range: ${anomaly.detection_time}
          systems: ${anomaly.affected_systems}
        scope: change_logs_and_incidents

    - capability: compare
      purpose: Compare anomalous period to normal baseline.
      domain: period_comparison
      risk: low
      mutation: false
      store_as: period_comparison_out
      input_bindings:
        options:
          - "${anomaly_data_out.data: array<object>}"
          - ${baseline_data}
        criteria:
          - value_distribution
          - null_patterns
          - record_counts
          - key_metrics

    - capability: measure
      purpose: Quantify the impact of the anomaly.
      domain: impact
      risk: low
      mutation: false
      store_as: impact_out
      input_bindings:
        target: ${anomaly}
        metric: business_impact
        unit: ${impact_unit}

    - capability: simulate
      purpose: Project impact if anomaly continues unaddressed.
      risk: low
      mutation: false
      store_as: projection_out
      input_bindings:
        scenario:
          type: anomaly_continuation
          anomaly: ${anomaly}
          duration: ${projection_horizon}
        initial_state: ${observation_out.observation}
        steps: 10

    - capability: plan
      purpose: Generate remediation recommendations.
      risk: low
      mutation: false
      store_as: remediation_plan_out
      input_bindings:
        goal: resolve_anomaly
        constraints:
          likely_cause: "${attribution_out.causes[0]: object}"
          available_actions: ${available_remediation_actions}

    - capability: explain
      purpose: Create investigation summary.
      risk: low
      mutation: false
      store_as: summary_out
      input_bindings:
        conclusion:
          anomaly: ${anomaly}
          likely_cause: "${attribution_out.causes[0]: object}"
          impact: ${impact_out.value}
          recommendation: "${remediation_plan_out.steps[0]: object}"
        audience: data_team
        depth: detailed

    - capability: audit
      purpose: Record investigation.
      risk: low
      mutation: true
      store_as: audit_out
      input_bindings:
        event:
          type: anomaly_investigation
          anomaly_id: ${anomaly.id}
          likely_cause: "${attribution_out.causes[0]: object}"
          impact_assessment: ${impact_out.value}
          recommendations: "${remediation_plan_out.steps: array<object>}"

  inputs:
    anomaly:
      type: object
      required: true
      properties:
        id: {type: string}
        type: {type: string}
        data_source: {type: string}
        filter_criteria: {type: object}
        detection_time: {type: string}
        affected_systems: {type: array, items: {type: string}}
    baseline_data:
      type: object
      description: Normal baseline data for comparison
    impact_unit:
      type: string
      default: revenue_impact
    projection_horizon:
      type: string
      default: 7d
    available_remediation_actions:
      type: array
      items: {type: string}
    profile:
      type: object
      ref: schemas/profiles/data_analysis.yaml
```
