---
title: "data_pipeline_validation"
description: "Validate data pipeline outputs for quality, schema compliance, and statistical consistency."
canonical: "https://acs.synapti.ai/workflows/data-pipeline-validation/"
last_updated: "2026-10-28T02:44:27Z"
---

# Validate data pipeline outputs for quality, schema compliance, and statistical consistency.

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: `data_pipeline_validation`
- Risk: low
- Catalog: domain workflows (data-analysis)
- Declares Standard 1.1.0
- Steps: 12

Data quality validation workflow for ETL/ELT pipeline outputs.
Checks schema conformance, statistical properties, and data lineage.
Produces validation report with pass/fail verdict.

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

| # | Capability | Layer | Role | Gates | On failure | Reads from | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 2 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 3 | `constrain` | VERIFY | verify |  |  | 1, 2 | low |
| 4 | `measure` | UNDERSTAND |  |  |  | 1 | low |
| 5 | `retrieve` | PERCEIVE |  |  |  |  | low |
| 6 | `compare` | UNDERSTAND |  |  |  | 4, 5 | low |
| 7 | `detect` | UNDERSTAND |  |  |  | 6 | low |
| 8 | `verify` | VERIFY | verify |  |  | 1 | low |
| 9 | `ground` | MODEL |  |  |  |  | low |
| 10 | `classify` | UNDERSTAND |  |  |  | 3, 7, 8, 9 | low |
| 11 | `generate` | SYNTHESIZE |  |  |  | 3, 7, 8, 10 | low |
| 12 | `audit` | VERIFY |  |  |  | 10 | low |

## Inputs

**Figure: Inputs of data_pipeline_validation.** 2 inputs, 1 required (filled pin) and 1 optional (outlined pin), with 9 named fields inside them.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `pipeline` | object | Yes |  |
| `pipeline.id` | string | No |  |
| `pipeline.run_id` | string | No |  |
| `pipeline.output_location` | string | No |  |
| `pipeline.output_format` | string | No |  |
| `pipeline.schema_registry` | string | No |  |
| `pipeline.schema_id` | string | No |  |
| `pipeline.stats_baseline` | string | No |  |
| `pipeline.anomaly_threshold` | number | No |  |
| `pipeline.lineage_metadata` | object | No |  |
| `profile` | object | No |  |

## Steps

1. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get pipeline output data for validation. Stores `pipeline_output_out`. (risk low)
2. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get expected schema definition. Stores `schema_out`. (risk low)
3. [`constrain`](https://acs.synapti.ai/capabilities/constrain/index.md): Validate data against schema constraints. Stores `schema_validation_out`. (risk low)
4. [`measure`](https://acs.synapti.ai/capabilities/measure/index.md): Calculate statistical summary of the data. Stores `stats_out`. (risk low)
5. [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md): Get historical statistics for comparison. Stores `historical_stats_out`. (risk low)
6. [`compare`](https://acs.synapti.ai/capabilities/compare/index.md): Compare current stats against historical baseline. Stores `drift_comparison_out`. (risk low)
7. [`detect`](https://acs.synapti.ai/capabilities/detect/index.md): Detect anomalies in statistical properties. Stores `anomaly_out`. (risk low)
8. [`verify`](https://acs.synapti.ai/capabilities/verify/index.md): Run data quality checks. Stores `dq_checks_out`. (risk low)
9. [`ground`](https://acs.synapti.ai/capabilities/ground/index.md): Verify data lineage is complete. Stores `lineage_verification_out`. (risk low)
10. [`classify`](https://acs.synapti.ai/capabilities/classify/index.md): Classify overall validation result. Stores `validation_result_out`. (risk low)
11. [`generate`](https://acs.synapti.ai/capabilities/generate/index.md): Create validation report. Stores `report_out`. (risk low)
12. [`audit`](https://acs.synapti.ai/capabilities/audit/index.md): Record validation execution. Stores `audit_out`. (risk low, changes state)

## Data flow

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

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

## Risk

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

## Success criteria

- Schema validation completed
- Statistical checks passed
- Data lineage verified
- Validation report generated

## 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
data_pipeline_validation:
  goal: Validate data pipeline outputs for quality, schema compliance, and statistical consistency.
  risk: low
  domain: data-analysis
  profile: schemas/profiles/data_analysis.yaml
  description: |
    Data quality validation workflow for ETL/ELT pipeline outputs.
    Checks schema conformance, statistical properties, and data lineage.
    Produces validation report with pass/fail verdict.
  success:
    - Schema validation completed
    - Statistical checks passed
    - Data lineage verified
    - Validation report generated
  steps:
    - capability: retrieve
      purpose: Get pipeline output data for validation.
      risk: low
      mutation: false
      store_as: pipeline_output_out
      input_bindings:
        target: ${pipeline.output_location}
        format: ${pipeline.output_format}

    - capability: retrieve
      purpose: Get expected schema definition.
      risk: low
      mutation: false
      store_as: schema_out
      input_bindings:
        target: ${pipeline.schema_registry}/${pipeline.schema_id}
        format: json_schema

    - capability: constrain
      purpose: Validate data against schema constraints.
      risk: low
      mutation: false
      store_as: schema_validation_out
      input_bindings:
        target: "${pipeline_output_out.data: array<object>}"
        constraints:
          - "${schema_out.data: object}"
        action_on_violation: log

    - capability: measure
      purpose: Calculate statistical summary of the data.
      domain: statistics
      risk: low
      mutation: false
      store_as: stats_out
      input_bindings:
        target: "${pipeline_output_out.data: array<object>}"
        metric: descriptive_statistics
        unit: per_column

    - capability: retrieve
      purpose: Get historical statistics for comparison.
      risk: low
      mutation: false
      store_as: historical_stats_out
      input_bindings:
        target: ${pipeline.stats_baseline}
        format: statistics_summary

    - capability: compare
      purpose: Compare current stats against historical baseline.
      domain: statistical_drift
      risk: low
      mutation: false
      store_as: drift_comparison_out
      input_bindings:
        options:
          - ${stats_out}
          - "${historical_stats_out.data: object}"
        criteria:
          - mean_drift
          - variance_change
          - null_rate_change
          - distribution_shift

    - capability: detect
      purpose: Detect anomalies in statistical properties.
      domain: anomaly
      risk: low
      mutation: false
      store_as: anomaly_out
      input_bindings:
        data: ${drift_comparison_out}
        pattern: statistical_anomaly
        threshold: ${pipeline.anomaly_threshold}

    - capability: verify
      purpose: Run data quality checks.
      risk: low
      mutation: false
      store_as: dq_checks_out
      input_bindings:
        target: "${pipeline_output_out.data: array<object>}"
        conditions:
          - no_null_primary_keys
          - referential_integrity
          - value_ranges
          - uniqueness_constraints

    - capability: ground
      purpose: Verify data lineage is complete.
      risk: low
      mutation: false
      store_as: lineage_verification_out
      input_bindings:
        claim: data_has_complete_lineage
        sources:
          - ${pipeline.lineage_metadata}
        required_strength: strong

    - capability: classify
      purpose: Classify overall validation result.
      risk: low
      mutation: false
      store_as: validation_result_out
      input_bindings:
        item:
          schema: ${schema_validation_out.compliant}
          statistics: ${anomaly_out.detected}
          quality: ${dq_checks_out.passed}
          lineage: ${lineage_verification_out.grounded}
        taxonomy: [pass, pass_with_warnings, fail]

    - capability: generate
      purpose: Create validation report.
      domain: report
      risk: low
      mutation: false
      store_as: report_out
      input_bindings:
        specification:
          type: data_validation_report
          pipeline_id: ${pipeline.id}
          run_id: ${pipeline.run_id}
          result: "${validation_result_out.labels[0]: object}"
          schema_issues: "${schema_validation_out.violations: array<object>}"
          statistical_anomalies: "${anomaly_out.matches: array<object>}"
          dq_failures: "${dq_checks_out.violations: array<object>}"

    - capability: audit
      purpose: Record validation execution.
      risk: low
      mutation: true
      store_as: audit_out
      input_bindings:
        event:
          type: pipeline_validation
          pipeline_id: ${pipeline.id}
          run_id: ${pipeline.run_id}
          result: "${validation_result_out.labels[0]: object}"

  inputs:
    pipeline:
      type: object
      required: true
      properties:
        id: {type: string}
        run_id: {type: string}
        output_location: {type: string}
        output_format: {type: string}
        schema_registry: {type: string}
        schema_id: {type: string}
        stats_baseline: {type: string}
        anomaly_threshold: {type: number, default: 2.5}
        lineage_metadata: {type: object}
    profile:
      type: object
      ref: schemas/profiles/data_analysis.yaml
```
