← Back to directory

Deterministic pre-flight policy check for AI agent actions, run by a Prolog rule...

https://api.x402ai.dev/api/policy-check

Overview

Deterministic pre-flight policy check for AI agent actions, run by a Prolog rule engine (SWI-Prolog), no LLM. POST JSON {profile: baseline or strict, context: {workdir, home, sandboxed}, actions: 1-20 of read, write, delete, exec, network, pay, self_modify}; returns {policy, results, summary, checked_rules}: one verdict per action (allowed, refused, needs_review) with the rules that decided it. Same input, same output. Checks the actions it is sent; does not enforce them. Typically under 1 s.

Protocol x402 (POST)
Price $0.01
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider x402ai
Source bazaar
Indexed 2026-11-13 00:08:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "actions": [ { "change": "lower", "control": "sandbox", "type": "self_modify" } ], "context": { "home": "/home/dev", "sandboxed": true, "workdir": "/home/dev/project" }, "profile": "baseline" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "checked_rules": 11, "policy": "baseline v1.0", "results": [ { "action": { "change": "lower", "control": "sandbox", "type": "self_modify" }, "index": 0, "notes": [], "verdict": "refused", "violations": [ { "because": [ "self_modify of control sandbox with change lower", "rule no_self_modify_lowering: no protection (sandbox, network allowlist, hooks, permissions, audit log) is lowered (profile baseline)" ], "rule": "no_self_modify_lowering" } ] } ], "summary": { "allowed": 0, "needs_review": 0, "refused": 1 } }, "type": "json" }