{"uid":"cap_lAss84cdbccACf6AtjaQX","slug":"ci-log-triage-failure-analysis-reproduction-handoff-e6350ec9","name":"CI Log Triage — Failure Analysis & Reproduction Handoff","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-triage","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 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."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"15","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":"$15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_53w-tuWeT6c4xF1ObsHcN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Debug a broken TypeScript build","prompt":"My CI pipeline just failed — here's the full log output from the npm build step. It's a TypeScript monorepo. Tell me what the primary error code is, which step failed, and give me a prioritized list of what to fix first."},{"title":"Generate a handoff report for a flaky test run","prompt":"Our nightly CI run failed again and I need to hand it off to the on-call engineer. Can you parse this log, identify the failing test step, and produce a Markdown triage report they can act on immediately?"},{"title":"Identify root cause in a long CI output","prompt":"This CI log is over 2,000 lines and I can't find what actually broke. Parse it and tell me the single primary failure, the severity, and what tool or step caused it — then give me the recommended fix."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:40:10.341Z","isFirstParty":false}