{
  "x402Version": 2,
  "id": 8353,
  "slug": "8353",
  "resource": "https://foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev/v1/csv/integrity",
  "description": "CSV Pipeline Integrity: deterministic ETL/feed regression decision combining profiles, schema drift, data-quality deltas, severity, evidence, and one PASS/WARN/FAIL action.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "baselineCsv": "id,name,amount\n1,Ada,10\n2,Lin,20\n",
            "currentCsv": "id,name,amount\n1,Ada,10\n2,Lin,unknown\n",
            "schema": {
              "allowAdditionalColumns": false,
              "columns": [
                {
                  "name": "id",
                  "nullable": false,
                  "required": true,
                  "type": "integer"
                },
                {
                  "name": "name",
                  "nullable": false,
                  "required": true,
                  "type": "string"
                },
                {
                  "name": "amount",
                  "nullable": false,
                  "required": true,
                  "type": "number"
                }
              ],
              "requireOrder": true
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "analysisCompleteness": "FULL",
            "baselineProfile": {
              "blankRowCount": 0,
              "columnCount": 3,
              "columns": [
                {
                  "inferredType": "integer",
                  "missingCount": 0,
                  "missingRate": 0,
                  "name": "id",
                  "position": 0,
                  "sampleValues": [
                    "1",
                    "2"
                  ],
                  "uniqueCount": 2
                },
                {
                  "inferredType": "string",
                  "missingCount": 0,
                  "missingRate": 0,
                  "name": "name",
                  "position": 1,
                  "sampleValues": [
                    "Ada",
                    "Lin"
                  ],
                  "uniqueCount": 2
                },
                {
                  "inferredType": "integer",
                  "missingCount": 0,
                  "missingRate": 0,
                  "name": "amount",
                  "position": 2,
                  "sampleValues": [
                    "10",
                    "20"
                  ],
                  "uniqueCount": 2
                }
              ],
              "duplicateRowCount": 0,
              "duplicateRowRate": 0,
              "headers": [
                "id",
                "name",
                "amount"
              ],
              "malformedRowCount": 0,
              "malformedRowRate": 0,
              "rowCount": 2
            },
            "breakingChanges": [
              {
                "action": "BLOCK_PIPELINE",
                "category": "TYPE",
                "code": "INFERRED_TYPE_CHANGE",
                "column": "amount",
                "evidence": {
                  "baselineType": "integer",
                  "currentType": "string"
                },
                "message": "Column amount changed inferred type from integer to string.",
                "severity": "HIGH"
              },
              {
                "action": "BLOCK_PIPELINE",
                "category": "SCHEMA",
                "code": "SCHEMA_CURRENT_TYPE_MISMATCH",
                "column": "amount",
                "evidence": {
                  "expectedType": "number",
                  "observedType": "string"
                },
                "message": "current column amount does not conform to type number.",
                "severity": "HIGH"
              }
            ],
            "comparison": {
              "addedColumns": [],
              "columnDelta": 0,
              "duplicateRateChange": {
                "baseline": 0,
                "current": 0,
                "delta": 0
              },
              "inferredTypeChanges": [
                {
                  "baseline": "integer",
                  "column": "amount",
                  "current": "string"
                }
              ],
              "malformedRowRateChange": {
                "baseline": 0,
                "current": 0,
                "delta": 0
              },
              "missingRateChanges": [
                {
                  "baseline": 0,
                  "column": "id",
                  "current": 0,
                  "delta": 0
                },
                {
                  "baseline": 0,
                  "column": "name",
                  "current": 0,
                  "delta": 0
                },
                {
                  "baseline": 0,
                  "column": "amount",
                  "current": 0,
                  "delta": 0
                }
              ],
              "removedColumns": [],
              "reorderedColumns": [],
              "rowDelta": 0
            },
            "currentProfile": {
              "blankRowCount": 0,
              "columnCount": 3,
              "columns": [
                {
                  "inferredType": "integer",
                  "missingCount": 0,
                  "missingRate": 0,
                  "name": "id",
                  "position": 0,
                  "sampleValues": [
                    "1",
                    "2"
                  ],
                  "uniqueCount": 2
                },
                {
                  "inferredType": "string",
                  "missingCount": 0,
                  "missingRate": 0,
                  "name": "name",
                  "position": 1,
                  "sampleValues": [
                    "Ada",
                    "Lin"
                  ],
                  "uniqueCount": 2
                },
                {
                  "inferredType": "string",
                  "missingCount": 0,
                  "missingRate": 0,
                  "name": "amount",
                  "position": 2,
                  "sampleValues": [
                    "10",
                    "unknown"
                  ],
                  "uniqueCount": 2
                }
              ],
              "duplicateRowCount": 0,
              "duplicateRowRate": 0,
              "headers": [
                "id",
                "name",
                "amount"
              ],
              "malformedRowCount": 0,
              "malformedRowRate": 0,
              "rowCount": 2
            },
            "findings": [
              {
                "action": "BLOCK_PIPELINE",
                "category": "TYPE",
                "code": "INFERRED_TYPE_CHANGE",
                "column": "amount",
                "evidence": {
                  "baselineType": "integer",
                  "currentType": "string"
                },
                "message": "Column amount changed inferred type from integer to string.",
                "severity": "HIGH"
              },
              {
                "action": "BLOCK_PIPELINE",
                "category": "SCHEMA",
                "code": "SCHEMA_CURRENT_TYPE_MISMATCH",
                "column": "amount",
                "evidence": {
                  "expectedType": "number",
                  "observedType": "string"
                },
                "message": "current column amount does not conform to type number.",
                "severity": "HIGH"
              }
            ],
            "overallResult": "FAIL",
            "processingLatencyMs": 0,
            "reasons": [
              "INFERRED_TYPE_CHANGE",
              "SCHEMA_CURRENT_TYPE_MISMATCH"
            ],
            "recommendation": "BLOCK_PIPELINE",
            "schemaConformance": {
              "baseline": "PASS",
              "current": "FAIL",
              "supplied": true,
              "violations": 1
            },
            "service": "csv_pipeline_integrity",
            "version": "csv-integrity-v1.0.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "baselineCsv": {
                    "description": "Prior known-good CSV including its header row.",
                    "maxLength": 100000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "currentCsv": {
                    "description": "Current CSV to evaluate against the baseline.",
                    "maxLength": 100000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "schema": {
                    "additionalProperties": false,
                    "properties": {
                      "allowAdditionalColumns": {
                        "default": true,
                        "type": "boolean"
                      },
                      "columns": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "maxLength": 128,
                              "minLength": 1,
                              "type": "string"
                            },
                            "nullable": {
                              "default": true,
                              "type": "boolean"
                            },
                            "required": {
                              "default": true,
                              "type": "boolean"
                            },
                            "type": {
                              "enum": [
                                "boolean",
                                "integer",
                                "number",
                                "date",
                                "datetime",
                                "string"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "type"
                          ],
                          "type": "object"
                        },
                        "maxItems": 100,
                        "minItems": 1,
                        "type": "array"
                      },
                      "requireOrder": {
                        "default": false,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "columns"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "baselineCsv",
                  "currentCsv"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "analysisCompleteness": {
                    "enum": [
                      "FULL",
                      "PARTIAL"
                    ]
                  },
                  "baselineProfile": {
                    "type": "object"
                  },
                  "breakingChanges": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "comparison": {
                    "type": "object"
                  },
                  "currentProfile": {
                    "type": "object"
                  },
                  "findings": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "overallResult": {
                    "enum": [
                      "PASS",
                      "WARN",
                      "FAIL"
                    ]
                  },
                  "processingLatencyMs": {
                    "minimum": 0,
                    "type": "number"
                  },
                  "reasons": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "recommendation": {
                    "enum": [
                      "CONTINUE",
                      "REVIEW_BEFORE_CONTINUE",
                      "BLOCK_PIPELINE"
                    ]
                  },
                  "schemaConformance": {
                    "type": "object"
                  },
                  "service": {
                    "const": "csv_pipeline_integrity"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "service",
                  "version",
                  "overallResult",
                  "recommendation",
                  "reasons",
                  "analysisCompleteness",
                  "baselineProfile",
                  "currentProfile",
                  "comparison",
                  "schemaConformance",
                  "breakingChanges",
                  "findings",
                  "processingLatencyMs"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev",
  "lastUpdated": "2026-09-01T08:38:02.325Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-01T08:38:02.003Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev",
    "manifest_name": "foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}