{"uid":"cap_SUNre9OSlIpe8sWKe4Zqf","slug":"release-gate-coding-agent-pre-ship-check-f365e33f","name":"Release Gate – Coding Agent Pre-Ship Check","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/agent/release-gate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object","properties":{"fail_on_warn":{"type":"boolean","default":false}},"additionalProperties":false},"dependencies":{"type":"array","items":{"type":"object","required":["ecosystem","name"],"properties":{"name":{"type":"string","maxLength":214},"version":{"type":"string","maxLength":100},"ecosystem":{"enum":["npm","pypi"],"type":"string"}},"additionalProperties":false},"maxItems":5},"changed_files":{"type":"array","items":{"type":"object","required":["path","patch"],"properties":{"path":{"type":"string","maxLength":240},"patch":{"type":"string","maxLength":32000}},"additionalProperties":false},"example":[{"path":"src/app.ts","patch":"@@ -1 +1,2 @@\n import { app } from './app'\n+export const ready = true"}],"maxItems":40,"minItems":1},"dependency_policy":{"type":"object"}}},"responseSchema":{"type":"json","example":{"data":{"ship":true,"grade":"PASS","checks":["secret-patterns","deployment-config","destructive-migrations"],"findings":[],"finding_count":0,"changed_file_count":1},"meta":{"engine":"release-gate"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EJHgfaJ10xYKqCJl0novB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs deterministic pre-release checks on changed source files and dependencies, returning a pass/warn/fail grade with categorized findings (secrets, deployment config, destructive migrations).","exampleAgentPrompt":"Run a release gate check on these changed files — here's the unified diff for src/app.ts — and also check my npm dependency on express@5.0.0; fail the check if there are any warnings.","exampleUseCases":[{"title":"Pre-merge PR safety scan","prompt":"Before I merge this pull request, run a release gate on these 3 changed TypeScript files and flag any secret patterns, deployment config issues, or destructive migrations — treat warnings as failures."},{"title":"Dependency upgrade validation","prompt":"I'm upgrading lodash from 4.17.15 to 5.0.0 on npm; can you run a release gate to check if that dependency change is safe to ship alongside my updated src/utils.ts patch?"},{"title":"Automated CI deploy gate","prompt":"Run a release gate check on all 10 changed files in this deploy branch — include my pypi dependency on sqlalchemy version 2.0.0 — and tell me whether it's safe to ship or what findings are blocking release."}],"resultDescription":"Returns a JSON object with a top-level `ship` boolean, a `grade` string (PASS/WARN/FAIL), the list of check categories evaluated (e.g. secret-patterns, deployment-config, destructive-migrations), an array of specific findings with details, a total finding count, and the number of changed files analyzed.","failureModes":["Invalid or missing `changed_files` array returns a validation error","Patch strings exceeding 32,000 characters per file are rejected","More than 40 changed files or 5 dependencies triggers a schema validation error","Unknown ecosystem values (not npm or pypi) cause a 400 error","Payment not included or insufficient USDC balance results in 402 Payment Required","Malformed unified diff patch may produce incomplete or inaccurate findings"],"whenToPreferThis":"Use this endpoint when an AI coding agent needs a deterministic, structured go/no-go decision before shipping or merging code — especially when you need explicit check categories (secrets, destructive migrations, deployment config) rather than LLM-based code review. Prefer this over general-purpose linters when you need a machine-readable grade and finding list suitable for automated CI gating, and when you are already using the x402/AgentCash micropayment stack.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:32:33.854Z","isFirstParty":false}