{"uid":"cap_zP8f41tCvubttJlI4wcNJ","slug":"aient-ai-d2b60d46","name":"Aient Diagnose Production Issue","description":"Diagnose a production issue on a GitHub-hosted service. Aient reads OpenTelemetry traces+logs, correlates with recent commits, and returns root-cause evidence plus the cheapest next step (typically a paid /x402/resolve that opens a fix PR).","url":"https://aient.ai/x402/diagnose","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"since":{"type":"string","format":"date-time"},"incident":{"type":"string"},"service_name":{"type":"string"},"x_assumed_state":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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":"$0.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sfcGnRzNp5n9AwBdhioxZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Diagnoses a production issue on a GitHub-hosted service by correlating OpenTelemetry traces and logs with recent commits to return root-cause evidence and a recommended next step.","exampleAgentPrompt":"My GitHub service 'payments-api' is throwing 500s in production — can you diagnose what's wrong using Aient by reading the OpenTelemetry traces and logs and telling me what commit or code change caused it?","exampleUseCases":null,"resultDescription":"Returns root-cause evidence derived from correlated OpenTelemetry traces, logs, and recent GitHub commits, along with the recommended cheapest next step (typically a pointer to the /x402/resolve endpoint that can open a fix PR).","failureModes":["No OpenTelemetry data ingested yet — returns error indicating no traces found for the service","Invalid or missing ingest key / auth token — returns 401 unauthorized","GitHub App not installed on the repository — cannot correlate with commits, returns partial result or error","No recent errors detected in the time window — returns empty diagnosis","Service name not found in Aient organisation — returns 404","Insufficient USDC balance or payment failure — returns 402 payment required"],"whenToPreferThis":"Use this endpoint when you have a GitHub-hosted service instrumented with OpenTelemetry and need automated root-cause analysis that connects telemetry signals to specific code changes. Prefer this over generic log search when you want a correlated, commit-aware diagnosis rather than raw log queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:32.627Z","isFirstParty":false}