# FAHCE Diagnose — Claim & Evidence Verification with Repair Plan

> FAHCE Diagnose — Claim & Evidence Verification with Repair Plan is a paid API for AI agents from fahce.kinganlogic.com, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-15).

Validates a candidate output against a schema and evidence set, resolves contradictions, and returns a bounded repair plan if issues are found.

## Facts

- Endpoint: POST https://fahce.kinganlogic.com/api/v1/diagnose?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fahce-diagnose-claim-evidence-verification-with-repair-plan-a3d391cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eHHHUJZTN4TzHu7D0uGI-

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 fahce-diagnose-claim-evidence-verification-with-repair-plan-a3d391cb -d '<json body>'
```

Example prompt: I need you to diagnose this candidate output against the following schema and evidence array — check for unsupported claims or contradictions, and if repairs are needed give me a bounded repair plan with the proposed corrected output.

## When to prefer this

Choose FAHCE Diagnose when you need a structured, bounded, evidence-grounded verification of a candidate AI output — especially when you need not just a pass/fail verdict but a concrete, step-by-step repair plan and a proposed corrected output. Prefer this over generic LLM self-critique when you need a machine-readable, schema-validated response with billing receipts and cryptographic traceability, or when operating in a pipeline that requires a formal next_safe_action signal before proceeding.

## Known failure modes

- Missing required fields (schema, evidence, candidate_output) returns a validation error
- Evidence array is empty or malformed — diagnosis may be indeterminate
- Candidate output is too long or malformed — may result in DETERMINATION_NOT_PRODUCED billing status
- Payment not received or x402 flow fails — endpoint returns 402 before processing
- Contradictions cannot be resolved with supplied evidence — repair plan may be empty or flagged as not required
- Idempotency key collision with different inputs — may return cached prior result

## How this service works

Review claims against evidence, resolve contradictions, and get a bounded repair plan with FAHCE.

## Output

Returns a structured FAHCE_MACHINE_RESPONSE_V1 object containing: a diagnosis of the candidate output against the evidence, a repair object with a bounded step-by-step plan and a proposed corrected output (if repair is needed), a billing determination with billable status and free-retry eligibility, a cryptographic receipt, and a next_safe_action recommendation. The repair is proposed but not automatically executed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "schema",
  "evidence",
  "candidate_output"
 ],
 "properties": {
  "schema": {
   "type": "string"
  },
  "evidence": {
   "type": "array"
  },
  "expected_output": {
   "type": "string",
   "description": "Optional response-contract and repair-target context for all operations, including Diagnose. Supported response-format directives (for example, Return JSON) and implemented explicit constraints can affect the diagnosis. Ordinary matching or mismatching factual text is not compared for string equality and is not a trusted answer oracle or supporting evidence; supply independent evidence for factual claims."
  },
  "candidate_output": {
   "type": "string",
   "description": "The exact candidate output to diagnose or verify. Never use payment evidence as semantic evidence."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "schema",
  "operation",
  "request_id",
  "input_hash",
  "diagnosis",
  "repair",
  "verification",
  "billing",
  "receipt",
  "next_safe_action"
 ],
 "properties": {
  "repair": {
   "anyOf": [
    {
     "type": "object",
     "required": [
      "plan",
      "treatment",
      "proposed_output",
      "status"
     ],
     "properties": {
      "plan": {
       "type": "object",
       "required": [
        "required",
        "bounded_steps",
        "authority_note"
       ],
       "properties": {
        "required": {
         "type": "boolean"
        },
        "validated_ir": {
         "type": "object"
        },
        "bounded_steps": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "step",
           "boundary"
          ],
          "properties": {
           "step": {
            "type": "string"
           },
           "boundary": {
            "type": "string"
           }
          },
          "additionalProperties": false
         }
        },
        "authority_note": {
         "type": "string"
        },
        "claim_corrections": {
         "type": "array",
         "items": {
          "type": "object"
         }
        }
       }
      },
      "status": {
       "const": "PROPOSED_NOT_EXECUTED"
      },
      "treatment": {
       "type": [
        "object",
        "null"
       ]
      },
      "proposed_output": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "additionalProperties": false
    },
    {
     "type": "null"
    }
   ]
  },
  "schema": {
   "const": "FAHCE_MACHINE_RESPONSE_V1"
  },
  "billing": {
   "type": "object",
   "required": [
    "billable",
    "free_retry",
    "reason",
    "determination_status"
   ],
   "properties": {
    "reason": {
     "type": [
      "string",
      "null"
     ]
    },
    "billable": {
     "type": "boolean"
    },
    "free_retry": {
     "type": "boolean"
    },
    "determination_status": {
     "enum": [
      "DETERMINATION_COMPLETE",
      "DETERMINATION_COMPLETE_NEGATIVE",
      "DETERMINATION_NOT_PRODUCED"
     ]
    }
   }
  },
  "binding": {
   "type": "object",
   "required": [
    "actor_id",
    "tenant_id",
    "nonce",
    "idempotency_key"
   ],
   "properties": {
    "nonce": {
     "type": "string"
    },
    "actor_id": {
     "type": "string"
    },
    "tenant_id": {
     "type": "string"
    },
    "tenant_model": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fahce-diagnose-claim-evidence-verification-with-repair-plan-a3d391cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fahce.kinganlogic.com](https://www.zero.xyz/host/fahce.kinganlogic.com/llms.txt)
