# BRAINIAC Manufacturing Quality Batch Compare

> BRAINIAC Manufacturing Quality Batch Compare is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-12).

Compares defect rates across multiple manufacturing batches against supplied thresholds and standards, returning per-batch pass/fail verdicts and cross-batch comparisons without inventing tolerances or certifications.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/manufacturing-quality/batch-compare?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-manufacturing-quality-batch-compare-2afe0609
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_942DCSR636UIragLA50ZR

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 brainiac-manufacturing-quality-batch-compare-2afe0609 -d '<json body>'
```

Example prompt: Compare the defect rates for our Widget batches B-1 (100 units, 3 inspected, 1 failed) and B-2 (100 units, 3 inspected, 0 failed) against a defect threshold of 0.2 — tell me which batches are over threshold and how the rates differ.

## When to prefer this

Use this endpoint when you need to compare defect rates across multiple named production batches with explicit thresholds you supply — it will never invent tolerances or certifications. Prefer it over single-batch endpoints when cross-batch pairwise comparison is needed. It is especially suited for manufacturing QA workflows where audit trails and explicit limitation disclosures are required. Choose it when you want transparent, deterministic quality scoring that documents exactly what data was supplied vs. assumed.

## Known failure modes

- Insufficient inspection data: sample below minSample threshold returns sampleSufficient=false with uncertainty='observed'
- No thresholds supplied: thresholdSupplied=false, no pass/fail verdict rendered
- Missing required batch fields: batches with no produced count return producedSupplied=false
- Malformed CSV or JSON input exceeding maxLength limits returns validation error
- Empty batches array: no comparisons computed, empty results returned
- Standards not supplied: standardInvented=false confirmed, no tolerances assumed

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object with status 'compared', an array of per-batch results including defect rate, fail count, inspected count, over-threshold flag, sample sufficiency, and product certification status, plus a comparisons array showing pairwise defect rate differences between batches. Also includes a findings array, a checkedAt timestamp, and a limitations array explicitly stating what was and was not invented or assumed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "batches": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "ended": {
      "type": "string",
      "maxLength": 40
     },
     "product": {
      "type": "string",
      "maxLength": 160
     },
     "started": {
      "type": "string",
      "maxLength": 40
     },
     "produced": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 80
  },
  "evidence": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "kind": {
      "type": "string",
      "maxLength": 80
     },
     "text": {
      "type": "string",
      "maxLength": 1000
     },
     "batchId": {
      "type": "string",
      "maxLength": 80
     },
     "inspectionId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "minSample": {
   "type": "integer",
   "maximum": 100000,
   "minimum": 1
  },
  "standards": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "characteristic"
    ],
    "properties": {
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "lower": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "upper": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "target": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000
     },
     "characteristic": {
      "type": "string",
      "maxLength": 1
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "compared",
  "batches": [
   {
    "batchId": "B-1",
    "product": "Widget",
    "produced": 100,
    "failCount": 1,
    "threshold": 0.2,
    "defectRate": 0.3333,
    "uncertainty": "observed",
    "decidedCount": 3,
    "overThreshold": true,
    "inspectedCount": 3,
    "producedSupplied": true,
    "productCertified": false,
    "sampleSufficient": true,
    "thresholdSupplied": true,
    "defectRateSupplied": true,
    "regulatoryComplianceClaimed": false
   },
   {
    "batchId": "B-2",
    "product": "Widget",
    "produced": 100,
    "failCount": 0,
    "threshold": 0.2,
    "defectRate": 0,
    "uncertainty": "observed",
    "decidedCount": 3,
    "overThreshold": false,
    "inspectedCount": 3,
    "producedSupplied": true,
    "productCertified": false,
    "sampleSufficient": true,
    "thresholdSupplied": true,
    "defectRateSupplied": true,
    "regulatoryComplianceClaimed": false
   }
  ],
  "findings": [],
  "checkedAt": "2026-11-04T20:00:00.000Z",
  "minSample": 3,
  "comparisons": [
   {
    "compared": true,
    "leftRate": 0.3333,
    "minSample": 3,
    "rightRate": 0,
    "leftBatchId": "B-1",
    "rightBatchId": "B-2",
    "rateDifference": 0.3333
   }
  ],
  "limitations": [
   "Inspections, measurements, batches, standards, and evidence are copied only from labeled fields supplied by the caller.",
   "Tolerances and defect-rate thresholds are used only when explicitly supplied. Manufacturing standards are never invented.",
   "Statistical process control limits are computed only when the disclosed minimum observation count is met.",
   "A nonconformance report organizes supplied evidence. It does not certify a product or assert regulatory compliance.",
   "Defect classes use transparent token rules on supplied defect text and codes."
  ],
  "productCertified": false,
  "standardInvented": false,
  "toleranceInvented": false,
  "regulatoryComplianceClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-manufacturing-quality-batch-compare-2afe0609/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
