# CI Log Fast Diagnosis

> CI Log Fast Diagnosis is a paid API for AI agents from codex-rapid-patch-evidence.vercel.app, paid per call via x402, $1/call, status unknown (last checked 2026-09-14).

Analyzes raw CI log text to identify failing steps, primary errors, and root causes, returning structured findings, a Markdown report, and safe rerun recommendations without executing any commands.

## Facts

- Endpoint: POST https://codex-rapid-patch-evidence.vercel.app/api/ci-log-diagnosis
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ci-log-fast-diagnosis-2a8a181f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SUd_v-_l3wHt2W7hQInGU

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-fast-diagnosis-2a8a181f -d '<json body>'
```

Example prompt: Here's the raw log output from my failing GitHub Actions workflow — can you diagnose what's going wrong and tell me which step is failing, what the primary error is, and what I should fix first? Context: TypeScript monorepo on Node 20.

## When to prefer this

Choose this endpoint when you need a fast, safe, read-only diagnosis of a CI log without any risk of command execution or side effects. It is ideal for quick triage of failing builds where you want structured findings and a Markdown handoff report rather than a full reproduction workflow. Prefer the more expensive /api/ci-log-triage endpoint when you need a full reproduction handoff; use this endpoint for initial fast diagnosis at $1 per call.

## Known failure modes

- Log text exceeds 120,000 character limit — request rejected
- Malformed or empty log input returns no findings
- Ambiguous log format may result in incorrect tool detection
- Non-CI log content (e.g. application logs) may yield low-confidence or empty findings
- Network timeout if log is very large near the limit

## 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

Returns a structured JSON object with: identified primary failure (error code, message, severity), failing step name, counts of errors and warnings, list of detected tools (e.g. npm, typescript), an array of findings, actionable recommendations, a Markdown diagnosis report, a SHA256 of the log, a safe rerun command list with executeAutomatically=false, and safety metadata confirming no commands were executed during analysis.

## 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 Fast Diagnosis",
  "upgrade": {
   "price": "$15",
   "product": "CI Failure Triage + Reproduction Handoff",
   "endpoint": "/api/ci-log-triage"
  },
  "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 Fast Diagnosis\n\nFix the first failure."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ci-log-fast-diagnosis-2a8a181f/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)
