# RQM Failed Workflow Diagnosis

> RQM Failed Workflow Diagnosis is a paid API for AI agents from jobs.rqmtechnologies.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-15).

Diagnoses why a bounded quantum workflow failed at a specific pipeline stage and returns supported corrective actions.

## Facts

- Endpoint: POST https://jobs.rqmtechnologies.com/x402/buyer-jobs/failed-workflow-diagnosis-v1
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rqm-failed-workflow-diagnosis-63b0a177
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mAGKJ9Ky69BGLhP6bImA6

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 rqm-failed-workflow-diagnosis-63b0a177 -d '<json body>'
```

Example prompt: My RQM quantum workflow failed at the compile stage with this error: 'Unresolved gate reference in circuit block at line 42' — can you diagnose why it failed and tell me what corrective actions are supported?

## When to prefer this

Use this endpoint when a bounded quantum workflow has failed at a known pipeline stage (parse, validate, compile, or simulate) and you have an error message to diagnose. It is specifically designed for RQM Circuit IR workflows and returns actionable corrective steps. Do not use it for general quantum hardware incidents, unobserved provider-side failures, or non-RQM workflow formats.

## Known failure modes

- Missing required fields (stage or error_text) returns a validation error
- Error text exceeding 4096 characters is rejected
- Unobserved provider incidents or hardware-level causal diagnoses are out of scope and will not be addressed
- Invalid stage enum value returns a schema validation error
- Insufficient max_total_price may result in payment rejection via x402 protocol

## How this service works

Failed Workflow Diagnosis: Diagnose why this bounded quantum workflow failed and return supported corrective actions. Use when: Use when a bounded request matches rqm.studio.failed-workflow-diagnosis-request.v1 and the caller needs the... Returns: failure class, evidence terms, bounded corrective actions. Boundaries: Deterministic bounded local software evidence only; no QPU, provider, physical, formal-proof, certificati...

## Output

Returns a structured diagnosis of the workflow failure including the identified root cause for the specified pipeline stage, along with a list of supported corrective actions the caller can take to resolve the issue.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request": {
   "type": "object",
   "title": "WorkflowFailureRequest",
   "required": [
    "stage",
    "error_text"
   ],
   "properties": {
    "stage": {
     "enum": [
      "parse",
      "validate",
      "compile",
      "simulate"
     ],
     "type": "string",
     "title": "Stage"
    },
    "error_text": {
     "type": "string",
     "title": "Error Text",
     "maxLength": 4096,
     "minLength": 1
    },
    "circuit_openqasm": {
     "anyOf": [
      {
       "type": "string",
       "maxLength": 65536
      },
      {
       "type": "null"
      }
     ],
     "title": "Circuit Openqasm",
     "default": null
    },
    "structured_error": {
     "type": "object",
     "title": "Structured Error",
     "maxProperties": 32,
     "additionalProperties": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "integer"
       },
       {
        "type": "number"
       },
       {
        "type": "boolean"
       }
      ]
     }
    },
    "supported_context": {
     "type": "object",
     "title": "Supported Context",
     "maxProperties": 32,
     "additionalProperties": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "integer"
       },
       {
        "type": "number"
       },
       {
        "type": "boolean"
       }
      ]
     }
    }
   },
   "additionalProperties": false
  },
  "schema_version": {
   "const": "rqm.jobs.bazaar-buyer-job-request.v1"
  },
  "idempotency_key": {
   "type": "string",
   "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
   "maxLength": 128,
   "minLength": 1
  },
  "max_total_price": {
   "type": "string",
   "pattern": "^(?:0|[1-9]\\d{0,13})(?:\\.\\d{1,6})?$"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rqm-failed-workflow-diagnosis-63b0a177/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jobs.rqmtechnologies.com](https://www.zero.xyz/host/jobs.rqmtechnologies.com/llms.txt)
