# Pre-Action Policy Accountability Gate

> Pre-Action Policy Accountability Gate is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status down (last checked 2026-10-13).

Evaluates an autonomous agent action against holder policy before execution, returning an explicit allow/deny/defer verdict with reasoning and denial recording.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/pre-action-policy-accountability-gate-for-autono?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-action-policy-accountability-gate-6cb83a3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3v2D9T5JdcN_qIN-LMrki

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 pre-action-policy-accountability-gate-6cb83a3e
```

Example prompt: Before my agent executes this payment action, run it through the pre-action policy gate to check whether it's within my delegated authority and spend cap, and give me a clear allow or deny verdict with the reason.

## When to prefer this

Choose this endpoint when you need a pre-execution policy gate — not a post-hoc audit — for autonomous agent actions, especially where x402 spend caps must be enforced before any payment call can proceed. It is specifically designed to prevent policy bypasses by coupling the verdict with payment authorization, making it the right choice for agentic workflows where delegation scope and spend limits must be verified before the agent commits to any irreversible action.

## Known failure modes

- Missing or stale policy document may cause incorrect or outdated verdict
- Action descriptor too vague to match any policy rule, resulting in a defer verdict
- Spend cap not provided, preventing coupling with x402 payment gate
- Delegation scope mismatch leads to automatic deny without escalation path
- Payment not processed (x402 failure) blocks response entirely
- Topic override not recognized, falling back to default decision procedure

## How this service works

Decision procedure for gating an autonomous agent action against holder policy BEFORE it executes, not after. Covers policy fetch and freshness check, rule evaluation order, explicit allow/deny/defer verdicts, denial recording, escalation path when the action exceeds delegated authority, and coupling of the gate with x402 spend caps so a policy denial cannot be bypassed by a separate payment call. Inputs: action descriptor, policy document, delegation scope, spend cap. Outputs: verdict, reason,

## Output

Returns a JSON object with a boolean verdict (ok), a plain-prose decision procedure brief (120+ words) explaining the allow/deny/defer outcome, the topic, service slug, ISO-8601 generatedAt timestamp, generation source (llm/reasoning/deterministic), and the model used. Also includes payment confirmation details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Pre-Action Policy Accountability Gate paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"
        },
     
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "brief": "plain prose decision procedure (120+ words)",
   "model": "deepseek/deepseek-v4-flash-0731",
   "topic": "string topic",
   "service": "pre-action-policy-accountability-gate-for-autono",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "pre-action-policy-accountability-gate-for-autono",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-action-policy-accountability-gate-6cb83a3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
