# Agent Action Safety Quick Gate

> Agent Action Safety Quick Gate is a paid API for AI agents from hermesplant.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Runs a fast deterministic safety scoring pass on consequential agent actions (shell, Git, SQL, infrastructure, deploy, x402, MCP) and returns risk level, matched rule IDs, and approval requirements before execution.

## Facts

- Endpoint: GET https://hermesplant.com/api/agent-services/action-safety/quick
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-action-safety-quick-gate-bb173e39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__1Mw7CRCBdgzRiZ8glrvf

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 agent-action-safety-quick-gate-bb173e39
```

Example prompt: Before you run that git force-push on the main branch, check it through the action safety quick gate and tell me the risk score, which rules it matched, and whether it needs my approval first.

## When to prefer this

Use this endpoint as the fast, cheap ($0.01) pre-flight check before any consequential autonomous agent action — shell commands, Git operations, SQL mutations, infrastructure changes, deployments, x402 payments, or MCP tool calls. Prefer it over the full action-safety run endpoint when you need only a risk score and approval flag without full execution orchestration. It is ideal for high-frequency agentic loops where most actions are low-risk and only flagged ones need escalation.

## Known failure modes

- Unrecognized action type returns an unscored status or error
- Malformed or missing action payload returns a 400-level error
- Action matches no known rules and returns low risk with empty matchedRuleIds
- Service unavailable returns 5xx with no safety verdict — agent should block action by default
- Payment not received (x402) results in 402 response before scoring occurs

## How this service works

AI agent action safety: one-cent deterministic preflight for every consequential agent command. Returns risk, matched rule ids, and an exact machine-readable escalation call: full DestructGuard evidence for medium risk or the complete Action Safety workflow for high and critical risk.

## Output

Returns a JSON object with a risk level (e.g. 'critical'), a status field, the service name, an array of matched rule IDs (e.g. ['git.force-push']), a boolean indicating whether human approval is required, and a pointer to the next recommended call (the full action-safety run endpoint with its path and price) if the action should proceed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cwd": {
   "type": "string"
  },
  "repo": {
   "type": "string"
  },
  "actor": {
   "type": "string"
  },
  "branch": {
   "type": "string"
  },
  "commit": {
   "type": "string"
  },
  "intent": {
   "type": "string"
  },
  "target": {
   "type": "string"
  },
  "command": {
   "type": "string",
   "description": "Exact shell, SQL, Git, deploy, cloud, MCP, wallet, or x402 action to ..."
  },
  "diffHash": {
   "type": "string"
  },
  "diffStat": {
   "type": "string"
  },
  "environment": {
   "type": "string"
  },
  "failClosedOnUnmatched": {
   "type": "boolean",
   "description": "When true, an unmatched consequential action routes to review instead..."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risk": "critical",
  "status": "scored",
  "service": "action-safety-quick-gate",
  "matchedRuleIds": [
   "git.force-push"
  ],
  "requiresApproval": true,
  "nextRecommendedCall": {
   "path": "/api/agent-services/action-safety/run",
   "method": "POST",
   "priceCents": 25
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-action-safety-quick-gate-bb173e39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hermesplant.com](https://www.zero.xyz/host/hermesplant.com/llms.txt)
