# Code Release Security Gate

> Code Release Security Gate is a paid API for AI agents from preflight.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Runs a security gate workflow on code releases, routing the request through a meta-router indexing 500+ MCP/A2A tools with prompt-injection firewall protection.

## Facts

- Endpoint: GET https://preflight.agentdiet.dev/v1/workflows/code-release-security-gate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: preflight.agentdiet.dev
- Website: https://preflight.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/preflight-agentdiet-dev-code-release-security-gate-bbce182d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qfO4M2yddxmaUFax1-U2-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability preflight-agentdiet-dev-code-release-security-gate-bbce182d
```

Example prompt: Before we push this release to production, run it through the code-release security gate — search for 'github security' tools and check if there are any risks or policy violations I should know about.

## When to prefer this

Choose this endpoint when you need to gate a code release through a security-aware tool discovery layer that simultaneously scans for prompt-injection risks, validates endpoints, and routes queries across 500+ MCP/A2A tools in a single compressed call — especially when operating within an autonomous agent pipeline that needs DevSecOps checks before deployment.

## Known failure modes

- Missing or empty 'query' parameter returns a 400 validation error
- Query matches no tools in the index, returning an empty result set
- Prompt-Guard firewall blocks the query if it contains injection patterns
- Payment not completed (x402) results in a 402 Payment Required response
- Endpoint URL verification fails if the target is unreachable or malformed

## How this service works

Single-connection meta-router indexing 500+ MCP servers & A2A tools with 85% token compression and Prompt-Guard firewall. (Live x402 v2, IETF MPP & MCP endpoint at https://preflight.agentdiet.dev/v1/workflows/code-release-security-gate)

## Output

Returns a security gate evaluation result indicating whether the code release or queried capability passes security checks, along with matched tools from the 500+ MCP/A2A index, risk flags, and prompt-injection firewall status — all with 85% token-compressed output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "minLength": 1,
   "description": "Capability search query (e.g. 'context compression', 'github security', 'sec filings', 'company enrichment') or endpoint URL to verify"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/preflight-agentdiet-dev-code-release-security-gate-bbce182d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preflight.agentdiet.dev](https://www.zero.xyz/host/preflight.agentdiet.dev/llms.txt)
