---
title: "Static pre-merge risk gate for autonomous code changes: inspect a supplied unified diff for security-sensitive surfaces, destructive operations, architecture/constraint conflicts, test requirements, rollback risk, and bounded breaking-change risk before an agent merges or deploys."
method: POST
path: "/v1/agent-code-change-risk-gate"
tags: ["developer-tools"]
---

# Static pre-merge risk gate for autonomous code changes: inspect a supplied unified diff for security-sensitive surfaces, destructive operations, architecture/constraint conflicts, test requirements, rollback risk, and bounded breaking-change risk before an agent merges or deploys.

`POST /v1/agent-code-change-risk-gate`

## Request

- Base URL: `https://api.salt19.com`
- URL: `https://api.salt19.com/v1/agent-code-change-risk-gate`
- Auth: none required

Static pre-merge risk gate for autonomous code changes: inspect a supplied unified diff for security-sensitive surfaces, destructive operations, architecture/constraint conflicts, test requirements, rollback risk, and bounded breaking-change risk before an agent merges or deploys.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `diff` string, required
  - `constraints` string[]
  - `context` string

## Response `200`

Successful paid result

## Other responses

- `402`: x402 payment required

---

[API](https://skmtc.dev/salt19/apis/salt19-agent-utility-grid.md) · [All operations](https://skmtc.dev/salt19/apis/salt19-agent-utility-grid/llms.txt) · [OpenAPI document](https://skmtc.dev/salt19/apis/salt19-agent-utility-grid/revisions/c2520ca8ffbf?raw)
