# CI Log Triage — Failure Analysis & Reproduction Handoff

> CI Log Triage — Failure Analysis & Reproduction Handoff is a paid API for AI agents from codex-rapid-patch-evidence.vercel.app, paid per call via x402, $15/call, status unknown (last checked 2026-09-16).

Parses raw CI log text to identify failing steps, error codes, and tools, then returns prioritized findings, severity scores, and a Markdown triage report with safe (non-executing) rerun commands.

## Facts

- Endpoint: POST https://codex-rapid-patch-evidence.vercel.app/api/ci-log-triage
- Price: $15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ci-log-triage-failure-analysis-reproduction-handoff-e6350ec9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lAss84cdbccACf6AtjaQX

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 ci-log-triage-failure-analysis-reproduction-handoff-e6350ec9 -d '<json body>'
```

Example prompt: Here's the raw output from our failing GitHub Actions run — it's a TypeScript project using npm test. Can you triage it, tell me what the primary failure is and what step broke, and give me a Markdown handoff report with safe rerun commands?

## When to prefer this

Choose this endpoint when you have raw CI log text and need a structured, non-executing analysis — especially for TypeScript/npm pipelines. It is safe for automated agents because it never executes commands, only parses text. Prefer it over generic LLM log summarization when you need a SHA-256-verified artifact, a machine-readable findings structure, or a ready-made Markdown handoff document.

## Known failure modes

- Log text exceeds 120,000 character limit — request will be rejected
- Malformed or empty log input returns no findings
- Ambiguous logs with no clear failing step may produce low-confidence analysis
- Log from unsupported CI tool may yield fewer detected tools
- Network or service timeout returns no response

## How this service works

Audit one public OpenAPI 3.x JSON or YAML document and receive prioritized contract findings, a quality score, a Markdown handoff, and a safe read-only pytest scaffold.

## Output

A JSON object containing: a boolean `ok` status, a `product` label, analysis with error/warning counts, the failing step name, detected tools, the primary failure with error code and severity, prioritized recommendations, safe (non-executing) rerun commands, a SHA-256 hash of the log, a timestamp, and a full Markdown triage report ready to share with a team.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "log": {
   "type": "string",
   "maxLength": 120000,
   "description": "Raw CI log text parsed without execution."
  },
  "context": {
   "type": "string",
   "maxLength": 200,
   "description": "Optional repository or workflow context."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rerun": {
   "commands": [
    "npm test"
   ],
   "executeAutomatically": false
  },
  "safety": {
   "networkRequests": 0,
   "executedCommands": 0,
   "parsedAsInertText": true
  },
  "product": "CI Failure Triage + Reproduction Handoff",
  "analysis": {
   "counts": {
    "errors": 1,
    "warnings": 0
   },
   "findings": [],
   "lineCount": 42,
   "failingStep": "npm test",
   "detectedTools": [
    "npm",
    "typescript"
   ],
   "primaryFailure": {
    "code": "TS2322",
    "message": "Type mismatch in the first failing compilation step.",
    "severity": "high"
   },
   "recommendations": [
    "Fix the first TS2322 error, then rerun npm test."
   ]
  },
  "logSha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
  "generatedAt": "2026-01-01T00:00:00.000Z",
  "reportMarkdown": "# CI Failure Triage\n\nFix the first deterministic failure."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ci-log-triage-failure-analysis-reproduction-handoff-e6350ec9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codex-rapid-patch-evidence.vercel.app](https://www.zero.xyz/host/codex-rapid-patch-evidence.vercel.app/llms.txt)
