{"uid":"cap__t-qjW2zGWU3V4PsGEtjr","slug":"writerslogic-policy-gate-verifiable-ai-agent-authorization-4c66a757","name":"WritersLogic Policy Gate – Verifiable AI Agent Authorization","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/policy-gate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mCSbcu6woydQcaGvEY5XJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates a JsonLogic policy against a proposed agent action and returns a signed, verifiable allow/deny receipt indicating which rule decided the outcome","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Gate agent payments with spend limits","prompt":"My agent is about to pay 75 USDC to a vendor. Run that against my policy — rule 1 denies anything over 200 USDC, rule 2 allows anything under 100 USDC, first-match combining — and give me the signed receipt proving which rule allowed it."},{"title":"Authorize a tool call before execution","prompt":"Before my agent calls the 'send_email' tool, check it against my policy that denies any tool not in the approved list and allows the rest by default, then return the signed decision receipt so the auditor can verify it offline."},{"title":"Audit trail for multi-agent workflow","prompt":"My fleet of agents needs a tamper-evident log of every action they take. Evaluate this action request — tool name 'write_file', args path '/etc/hosts' — against my deny-overrides policy that blocks writes to system paths, and return the signed receipt with hashes of the policy, request, and decision."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:33:17.140Z","isFirstParty":false,"canonicalSlug":"writerslogic-policy-gate-verifiable-ai-agent-authorization-4c66a757"}