{
  "x402Version": 2,
  "id": 31576,
  "slug": "31576",
  "resource": "https://foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev/v1/csv/integrity",
  "description": "Automated data-pipeline integrity gate for ETL regression detection and breaking CSV/schema changes. Compares profiles, data-quality deltas, and data contracts, then returns an evidence-backed PASS/WARN/FAIL pipeline action.",
  "type": "http",
  "serviceName": "Foundry CSV Pipeline Integrity",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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": [
    "csv-pipeline-validation",
    "data-pipeline-integrity",
    "etl-regression-detection",
    "data-contract-validation",
    "csv-schema-drift",
    "bazaar"
  ],
  "sourceHost": "foundry-csv-pipeline-integrity-mainnet.inference-chip-index.workers.dev",
  "lastUpdated": "2026-10-07T01:04:28.759Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-07T01:04:28.334Z"
  },
  "metadata": {
    "serviceName": "Foundry CSV Pipeline Integrity",
    "extensions": {
      "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "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"
  }
}