# WritersLogic Policy Gate – Verifiable AI Agent Authorization

> WritersLogic Policy Gate – Verifiable AI Agent Authorization is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Evaluates a JsonLogic policy against a proposed agent action and returns a signed, verifiable allow/deny receipt indicating which rule decided the outcome

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/policy-gate?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-policy-gate-verifiable-ai-agent-authorization-4c66a757
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__t-qjW2zGWU3V4PsGEtjr

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 writerslogic-policy-gate-verifiable-ai-agent-authorization-4c66a757 -d '<json body>'
```

Example prompt: Before the agent sends that $50 payment to the payee, run it through my JsonLogic policy — rules say deny anything over $100 and allow anything under, first-match — and give me the signed receipt showing which rule decided so I can verify it later.

## When to prefer this

Use this endpoint when you need a cryptographically verifiable, auditable authorization decision — not just a yes/no answer, but a signed receipt that proves which rule allowed or denied an agent action. It is ideal when agents must demonstrate compliance to external auditors, when multiple agents share a policy and decisions must be tamper-evident, or when you need deterministic JsonLogic-based access control with fail-closed guarantees. Prefer it over a simple if/else rule check in agent code whenever accountability and offline verifiability of decisions matter.

## Known failure modes

- Rule evaluation error — fails closed with deny and status 'unknown'
- Cedar or Rego policy language submitted — returns unsupported error
- Policy exceeds 100 rules — rejected
- Request body exceeds 65536 bytes — rejected
- Malformed JsonLogic rule syntax — fails closed
- Invalid combining strategy value — validation error
- Missing required policy or request fields — 400 error
- Payment not provided or insufficient — 402 error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns an allow or deny decision, the ID of the rule that produced the decision, and a cryptographic receipt signed by the hub over the hashes of the policy, the request, and the decision. The receipt can be independently verified offline by another agent or auditor. If a rule errors during evaluation, it fails closed (deny, status unknown). Cedar and Rego language inputs return an unsupported error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "policy": {
   "description": "JsonLogic: { rules: [{ id, effect: allow|deny, when: <JsonLogic>, description? }] (at most 100), combining?: deny-overrides|first-match, defaultEffect?: deny|allow }. A string for cedar/rego."
  },
  "request": {
   "description": "The proposed action as JSON (at most 65536 bytes), e.g. { tool, args, amountUsd, payee }. Rules read it with { \"var\": \"args.amountUsd\" }."
  },
  "language": {
   "enum": [
    "jsonlogic",
    "cedar",
    "rego"
   ],
   "type": "string",
   "description": "Default jsonlogic. cedar and rego return unsupported."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-policy-gate-verifiable-ai-agent-authorization-4c66a757/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
