{"uid":"cap_kTsVexrEOv6eDj2cVLeje","slug":"salt19-agent-code-change-risk-gate-b1631468","name":"SALT19 Agent Code Change Risk Gate","description":"SALT19 is an independent applied AI systems lab behind EvoMind governed cognition, the MCP-native Agent Utility Grid, the ARCS research community, AeroClear UAS flight intelligence, and practical software for real-world work.","url":"https://api.salt19.com/v1/agent-code-change-risk-gate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"diff":{"type":"string","maxLength":48000,"minLength":1},"context":{"type":"string","maxLength":4000},"constraints":{"type":"array","items":{"type":"string","maxLength":4000},"maxItems":32}}},"responseSchema":{"type":"json","example":{"verdict":"WARN","risk_score":0.44,"rollback_risk":"MEDIUM","security_flags":[],"test_requirements":["Run API/MCP contract tests."],"architecture_conflicts":[],"breaking_change_probability":{"basis":"Uncalibrated static heuristic; not an empirical probability.","state":"PARTIALLY_SUPPORTED","value":0.28}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1.21","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.21/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.21","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.21","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Devxr97wQ4rJQcfous0j_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1.21","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a code diff and returns a risk verdict, rollback risk, breaking change probability, security flags, and test requirements before deployment.","exampleAgentPrompt":"Before we merge this PR, can you run the diff through the SALT19 risk gate and tell me the verdict, rollback risk, and any test requirements? The change touches the MCP contract layer and we have a constraint that no public API signatures should break.","exampleUseCases":[{"title":"Pre-merge safety check for API change","prompt":"Here's the diff for the new /v2/payments endpoint I'm about to merge — can you run it through the risk gate with the context that this is a customer-facing REST API and the constraint that no existing response fields can be removed? I need to know the verdict, risk score, and what tests to run."},{"title":"CI/CD pipeline risk gate before deploy","prompt":"We're about to promote this build to production. Run the attached diff through the code change risk gate — context is a microservice handling auth tokens, constraints are no breaking JWT changes and no new external dependencies. What's the rollback risk and breaking change probability?"},{"title":"Security flag scan on infrastructure code change","prompt":"I've got a Terraform diff that modifies IAM role bindings — can you put it through the risk gate to check for security flags and architecture conflicts? The constraint is that no roles should gain wildcard permissions."}],"resultDescription":"Returns a JSON object with: a string verdict (e.g. PASS, WARN, FAIL), a numeric risk_score (0–1), a rollback_risk level (LOW/MEDIUM/HIGH), an array of security_flags, an array of test_requirements, an array of architecture_conflicts, and a breaking_change_probability object with a numeric value, calibration state, and explanatory basis note.","failureModes":["Diff too large (exceeds 48000 character maxLength) — request rejected with validation error","Empty or missing diff field — minLength:1 not met, returns 400","Overly generic context may yield uncalibrated or generic risk scores","Breaking change probability is explicitly noted as an uncalibrated static heuristic, not empirical","Constraints array limited to 32 items — excess constraints silently truncated or rejected"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable risk verdict on a code diff before deployment or merge — especially in agentic CI/CD pipelines where a human isn't reviewing every change. It is particularly valuable when you need rollback risk classification, security flag detection, and explicit test requirements in a single call. Prefer it over generic LLM code review when you need a consistent scored output format that can gate automated workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:53:40.991Z","isFirstParty":false}