# CSV Pipeline Integrity Check

> CSV Pipeline Integrity Check is a paid API for AI agents from foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Runs deterministic ETL/feed regression checks on CSV data, combining schema drift detection, data-quality deltas, severity scoring, and evidence to produce a PASS/WARN/FAIL decision.

## Facts

- Endpoint: POST https://foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev/v1/csv/integrity
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-pipeline-integrity-check-74b02b64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hTKn4EKNq_JGdMOhx0sid

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability csv-pipeline-integrity-check-74b02b64 -d '<json body>'
```

Example prompt: Can you run an integrity check on this CSV pipeline output and tell me if it passes — compare it against the baseline profile, flag any schema drift or data-quality issues, and give me a PASS, WARN, or FAIL verdict with evidence?

## When to prefer this

Choose this endpoint when you need a deterministic, auditable PASS/WARN/FAIL verdict for CSV pipeline outputs — especially when tracking schema drift across runs, enforcing data-quality SLAs, or automating regression gates in ETL workflows. Prefer it over generic data-validation tools when you need evidence-backed severity scoring and profile-based comparison in a single call.

## Known failure modes

- Malformed or unparseable CSV input returns a validation error
- Missing or incompatible baseline profile causes comparison failure
- Schema drift too severe to score may return an indeterminate result
- Exceeding payload size limits results in a rejection error
- Network timeout if CSV payload is unusually large

## How this service works

CSV Pipeline Integrity: deterministic ETL/feed regression decision combining profiles, schema drift, data-quality deltas, severity, evidence, and one PASS/WARN/FAIL action.

## Output

Returns a structured integrity report containing a top-level PASS/WARN/FAIL action decision, detected schema drift details, data-quality delta measurements, severity scores for each issue, and supporting evidence. The deterministic verdict allows automated pipeline gating without manual review.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "reasons": [
   "INFERRED_TYPE_CHANGE",
   "SCHEMA_CURRENT_TYPE_MISMATCH"
  ],
  "service": "csv_pipeline_integrity",
  "version": "csv-integrity-v1.0.0",
  "findings": [
   {
    "code": "INFERRED_TYPE_CHANGE",
    "action": "BLOCK_PIPELINE",
    "column": "amount",
    "message": "Column amount changed inferred type from integer to string.",
    "category": "TYPE",
    "evidence": {
     "currentType": "string",
     "baselineType": "integer"
    },
    "severity": "HIGH"
   },
   {
    "code": "SCHEMA_CURRENT_TYPE_MISMATCH",
    "action": "BLOCK_PIPELINE",
    "column": "amount",
    "message": "current column amount does not conform to type number.",
    "category": "SCHEMA",
    "evidence": {
     "expectedType": "number",
     "observedType": "string"
    },
    "severity": "HIGH"
   }
  ],
  "comparison": {
   "rowDelta": 0,
   "columnDelta": 0,
   "addedColumns": [],
   "removedColumns": [],
   "reorderedColumns": [],
   "missingRateChanges": [
    {
     "delta": 0,
     "column": "id",
     "current": 0,
     "baseline": 0
    },
    {
     "delta": 0,
     "column": "name",
     "current": 0,
     "baseline": 0
    },
    {
     "delta": 0,
     "column": "amount",
     "current": 0,
     "baseline": 0
    }
   ],
   "duplicateRateChange": {
    "delta": 0,
    "current": 0,
    "baseline": 0
   },
   "inferredTypeChanges": [
    {
     "column": "amount",
     "current": "string",
     "baseline": "integer"
    }
   ],
   "malformedRowRateChange": {
    "delta": 0,
    "current": 0,
    "baseline": 0
   }
  },
  "overallResult": "FAIL",
  "currentProfile": {
   "columns": [
    {
     "name": "id",
     "position": 0,
     "missingRate": 0,
     "uniqueCount": 2,
     "inferredType": "integer",
     "missingCount": 0,
     "sampleValues": [
      "1",
      "2"
     ]
    },
    {
     "name": "name",
     "position": 1,
     "missingRate": 0,
     "uniqueCount": 2,
     "inferredType": "string",
     "missingCount": 0,
     "sampleValues": [
      "Ada",
      "Lin"
     ]
    },
    {
     "name": "amount",
     "position": 2,
     "missingRate": 0,
     "uniqueCount": 2,
     "inferredType": "string",
     "missingCount": 0,
     "sampleValues": [
      "10",
      "unknown"
     ]
    }
   ],
   "headers": [
    "id",
    "name",
    "amount"
   ],
   "rowCount": 2,
   "columnCount": 3,
   "blankRowCount": 0,
   "duplicateRowRate": 0,
   "malformedRowRate": 0,
   "duplicateRowCount": 0,
   "malformedRowCou
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-pipeline-integrity-check-74b02b64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev](https://www.zero.xyz/host/foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev/llms.txt)
