# BRAINIAC Manufacturing Quality — Nonconformance Report Generator

> BRAINIAC Manufacturing Quality — Nonconformance Report Generator 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).

Generates structured nonconformance reports (NCRs) from inspection data, measurements, batch records, and evidence, including defect classification, out-of-tolerance analysis, defect rate, and optional SPC findings.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/manufacturing-quality/nonconformance-report-generate?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-nonconformance-report-generator-fe9f78c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_URuu6dbsNpKJTQsOBlkQk

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-nonconformance-report-generator-fe9f78c9 -d '<json body>'
```

Example prompt: Generate a nonconformance report for batch B-42 of part P-100 — I'll give you the inspection records showing 3 out-of-spec diameter measurements (target 25mm, lower 24.5mm, upper 25.5mm), the evidence items, and a defect-rate threshold of 0.05. The minimum sample size is 20.

## When to prefer this

Use this endpoint when you need to programmatically generate structured nonconformance reports from raw manufacturing inspection, measurement, and batch data — especially in automated quality management pipelines, CI/CD-style manufacturing workflows, or agent-driven QMS integrations. It is better than a generic document generator because it understands manufacturing-specific entities (tolerances, defect codes, SPC, evidence chains) and produces NCRs with explicit epistemic limitations (never invents standards or certifies products). Prefer this over manual reporting tools when you need machine-readable NCR output tied to traceable evidence IDs.

## Known failure modes

- Insufficient inspection data (below minSample) — returns observation finding rather than error, notes limitation
- No tolerance standards supplied — out-of-tolerance analysis skipped, noted in findings
- Fewer than 25 observations for SPC — SPC limits not computed, noted in findings
- No defect-rate threshold supplied — over-threshold status not assessed
- Malformed or missing required fields in inspections/measurements — may produce empty or partial report
- Input exceeds maxItems limits (80 batches, 200 evidence items) — excess items silently dropped or rejected

## 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

A JSON object containing an array of nonconformance reports (each with NCR ID, part ID, batch ID, defect code, defect kind, defect text, evidence IDs, measurement IDs, out-of-tolerance count, and flags for productCertified/standardInvented/toleranceInvented/regulatoryComplianceClaimed), overall defect rate, findings/observations (including SPC and threshold observations), a checkedAt timestamp, report count, and a limitations array describing what the service can and cannot assert.

## 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": "generated",
  "reports": [
   {
    "ncrId": "NCR-I-1",
    "partId": "P-1",
    "batchId": "B-1",
    "summary": "Nonconformance assembled from inspection I-1 with 1 evidence row(s) and 1 out-of-tolerance measurement(s).",
    "defectCode": "DIM-01",
    "defectKind": "dimensional",
    "defectText": "diameter out of spec",
    "evidenceIds": [
     "E-1"
    ],
    "inspectedAt": "2026-11-04T10:00:00.000Z",
    "inspectionId": "I-1",
    "evidenceCount": 1,
    "measurementIds": [
     "M-1"
    ],
    "productCertified": false,
    "standardInvented": false,
    "toleranceInvented": false,
    "outOfToleranceCount": 1,
    "regulatoryComplianceClaimed": false
   }
  ],
  "findings": [
   {
    "code": "sample_small",
    "kind": "observation",
    "detail": "Only 1 decided inspections were supplied. That is below the disclosed minimum of 20.",
    "subject": "defect_rate"
   },
   {
    "code": "threshold_absent",
    "kind": "observation",
    "detail": "No defect-rate threshold was supplied, so over-threshold status was not judged against a limit.",
    "subject": "defect_rate"
   },
   {
    "code": "spc_insufficient",
    "kind": "observation",
    "detail": "Only 1 observations were available. SPC requires at least 25.",
    "subject": "diameter"
   }
  ],
  "checkedAt": "2026-11-04T20:00:00.000Z",
  "defectRate": 1,
  "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."
  ],
  "reportCount": 1,
  "productCertified": false,
  "standardInvented": false,
  "toleranceInvented": false,
  "defectRateSupplied": true,
  "regulatoryComplianceClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-manufacturing-quality-nonconformance-report-generator-fe9f78c9/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)
