# BRAINIAC ROS Topic Schema Diff

> BRAINIAC ROS Topic Schema Diff is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Compares two sets of ROS topic message schemas and reports field additions, removals, and type changes between them

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/robotics-intelligence/ros-topic-schema-diff?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-ros-topic-schema-diff-1c3ef5b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UVYKaAeqLkrHqkMpoO3EC

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-ros-topic-schema-diff-1c3ef5b5 -d '<json body>'
```

Example prompt: Compare these two ROS topic schema exports for /joint_states and /cmd_vel — left side is from last week's deployment and right side is from today — and tell me which fields were added, removed, or had type changes.

## When to prefer this

Use this endpoint when you need to programmatically compare ROS topic message schemas between two versions, deployments, or robots — especially when looking for field-level breaking changes (additions, removals, type mismatches) across sensor_msgs, geometry_msgs, or custom message types. Prefer it over manual inspection or generic diff tools when inputs are structured ROS schema exports (CSV or JSON) and you need machine-readable conflict findings per topic. Not suitable for live ROS bag decoding or real-time topic monitoring.

## Known failure modes

- Missing or malformed schema input — no diff can be produced if left/right schemas are absent or unparseable
- Truncated base64 file payload exceeding the 12MB limit
- Empty topics array — returns no items in the diff
- Ambiguous or unlabeled schema fields — missing values are not invented, so partial schemas yield partial diffs
- Input exceeds maxLength constraints on csv/json/text fields (200,000 chars)

## 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 per-topic diff listing added fields, removed fields, and type changes for each ROS topic, along with message type match status, left/right field counts, overall comparison status, structured findings with conflict codes, and a checkedAt timestamp. Also includes a limitations list clarifying that no live equipment is connected and no machine commands are issued.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "cycles": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "endedAt": {
      "type": "string",
      "maxLength": 40
     },
     "program": {
      "type": "string",
      "maxLength": 160
     },
     "robotId": {
      "type": "string",
      "maxLength": 80
     },
     "startedAt": {
      "type": "string",
      "maxLength": 40
     },
     "workcellId": {
      "type": "string",
      "maxLength": 80
     },
     "durationSec": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 2000
  },
  "samples": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "unit": {
      "type": "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "topic": "/joint_states",
    "matched": true,
    "addedFields": [
     "effort"
    ],
    "typeChanges": [],
    "removedFields": [
     "velocity"
    ],
    "leftFieldCount": 2,
    "leftMessageType": "sensor_msgs/JointState",
    "rightFieldCount": 2,
    "messageTypeMatch": true,
    "rightMessageType": "sensor_msgs/JointState"
   }
  ],
  "status": "compared",
  "findings": [
   {
    "code": "schema_diff",
    "kind": "conflict",
    "detail": "Caller-supplied left/right topic schemas differ.",
    "subject": "/joint_states"
   }
  ],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "topicCount": 1,
  "limitations": [
   "ROS bag topic samples, schemas, cycles, downtime, OPC UA tags, PLC alarms, maintenance records, and protocol declarations are copied only from labeled fields or text/CSV/JSON exports supplied by the caller.",
   "No live industrial equipment connection is opened and no machine commands are issued.",
   "Binary .bag/.mcap files are not fully decoded here. Supply topic CSV/JSON exports or labeled sample rows. Missing values are not invented.",
   "Anomaly, cycle-time, downtime, and maintenance estimates use only supplied measurements and intervals.",
   "Protocol compatibility compares caller-supplied required versus available protocol names, versions, and features only. Protocol specifications are not invented."
  ],
  "apiKeyRequired": false,
  "paidProviderUsed": false,
  "machineCommandsIssued": false,
  "liveEquipmentConnected": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-ros-topic-schema-diff-1c3ef5b5/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)
