# FAHCE Repair Bundle

> FAHCE Repair Bundle is a paid API for AI agents from fahce.kinganlogic.com, paid per call via x402, $0.39/call, status unknown (last checked 2026-10-15).

Reviews a candidate output against provided evidence, diagnoses contradictions or unsupported claims, and returns a bounded, step-by-step repair plan with a proposed corrected output.

## Facts

- Endpoint: POST https://fahce.kinganlogic.com/api/v1/repair-bundle?utm_source=zero.xyz
- Price: $0.39/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fahce-repair-bundle-860e8eda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kDyJ4WDG_P4V1kDflkbZx

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-repair-bundle-860e8eda -d '<json body>'
```

Example prompt: I have a candidate answer my LLM just produced and a set of evidence documents — can you run it through FAHCE to diagnose any contradictions or unsupported claims, and give me a bounded repair plan with a corrected proposed output?

## When to prefer this

Choose FAHCE Repair Bundle when you need to not just detect factual errors in a generated output but also receive an actionable, bounded repair plan and a proposed corrected output in a single call. It is best suited for LLM output grounding workflows, RAG pipeline QA, and any scenario where you supply structured evidence and need a verifiable, step-limited fix — rather than open-ended rewriting or generic plagiarism checking.

## Known failure modes

- Missing required fields (schema, evidence, or candidate_output) returns a validation error
- Evidence array is empty or uninterpretable, leading to an indeterminate diagnosis
- Candidate output is too long or malformed, causing a parse failure
- Contradictions cannot be resolved due to conflicting evidence items
- Billing determination fails, returning DETERMINATION_NOT_PRODUCED and a free retry flag
- Payment not confirmed, resulting in a 402 response before processing

## 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's issues against the evidence, a repair plan with bounded numbered steps and authority notes, a proposed corrected output string, a billing determination (billable/free-retry), a 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-repair-bundle-860e8eda/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)
