# Foundry CSV Partition Consistency Validator

> Foundry CSV Partition Consistency Validator is a paid API for AI agents from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Validates and reconciles multiple CSV partitions by checking for key conflicts, duplicate keys, blank keys, and header compatibility across all partitions.

## Facts

- Endpoint: POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/data/csv-partition-consistency
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-csv-partition-consistency-validator-ab6ae9d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_akJImnnvWuzLsdV_UI-H1

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 foundry-csv-partition-consistency-validator-ab6ae9d2 -d '<json body>'
```

Example prompt: Check these two CSV partitions for consistency — use 'user_id' as the key column — and tell me if there are any duplicate keys, blank keys, header mismatches, or conflicts between the two chunks: [partition 1 CSV text] and [partition 2 CSV text].

## When to prefer this

Choose this endpoint when you need a deterministic, pay-per-request audit of whether 2–5 CSV text partitions are mutually consistent on a shared key column — especially when you need SHA-256 provenance hashes, explicit conflict lists, and header compatibility checks in a single structured JSON response. Prefer this over manual scripts when you need verifiable evidence of data integrity for compliance or pipeline validation purposes.

## Known failure modes

- Missing required field 'key_column' or 'partitions' returns a validation error
- Fewer than 2 or more than 5 partitions causes a schema rejection
- Any single partition string exceeding 12,000 characters is rejected
- Malformed CSV content may result in unexpected parse errors or incomplete analysis
- If evidence is very large, 'evidence_truncated' will be true and results may be partial
- Network or worker errors may return HTTP 5xx with no result body
- Insufficient USDC balance causes payment failure before processing

## How this service works

Pay-per-request evidence and data tools: CSV validation and reconciliation, DNS/email configuration evidence, and bounded official weather, earthquake, vehicle, company and study records. Exact USDC prices, explicit JSON contracts and source provenance. No mailbox, ownership, medical or safety guarantees.

## Output

A JSON object containing: overall status (PASS or FAIL), a list of detected conflicts between partitions, total row count across all partitions, count of duplicate keys, count of blank keys, a boolean indicating whether headers are compatible across all partitions, SHA-256 hashes for each input partition, and a flag indicating whether evidence was truncated due to size limits.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key_column": {
   "type": "string",
   "maxLength": 100,
   "minLength": 1
  },
  "partitions": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 12000,
    "minLength": 1
   },
   "maxItems": 5,
   "minItems": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "route": "csv-partition-consistency",
  "result": {
   "status": "PASS",
   "conflicts": [],
   "total_rows": 2,
   "limitations": [
    "Synthetic example hashes."
   ],
   "input_sha256": [
    "0000000000000000000000000000000000000000000000000000000000000000",
    "0000000000000000000000000000000000000000000000000000000000000000"
   ],
   "blank_key_count": 0,
   "compatible_headers": true,
   "evidence_truncated": false,
   "duplicate_key_count": 0
  },
  "observed_at": "2026-09-06T00:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-csv-partition-consistency-validator-ab6ae9d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev](https://www.zero.xyz/host/foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/llms.txt)
