{"uid":"cap_SUd_v-_l3wHt2W7hQInGU","slug":"ci-log-fast-diagnosis-2a8a181f","name":"CI Log Fast Diagnosis","description":"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.","url":"https://codex-rapid-patch-evidence.vercel.app/api/ci-log-diagnosis","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LsaStxTd_w23Q1bpH7Xlx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"TypeScript build failure triage","prompt":"My CI run just failed with a bunch of TypeScript errors — here's the full log output. Can you tell me what the primary failure is, which step broke, and what I should fix first?"},{"title":"npm test failure root cause","prompt":"My npm test step is failing in CI and I can't tell why from the log. Here's the raw output — diagnose what went wrong and give me a prioritized list of what to fix."},{"title":"Unknown CI failure on new PR","prompt":"A contributor opened a PR and CI is failing but the error isn't obvious. Here's the CI log — can you parse it and tell me the root cause, the failing step, and any recommended fixes?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:34:31.839Z","isFirstParty":false}