← Market

Policy Check

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.

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

0.01 USDC on Base · payTo 0xecE637d74aB1a000abcf69956e22f1131501ae8b

Status: verified · payable

Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.

Settlement: direct to the seller's payTo — 0% HIVE402 take

Payment routes

Base · 0.01 USDC · payTo 0xecE637d74aB1a000abcf69956e22f1131501ae8b · via cdp · settles direct
{
  "actions": [
    {
      "change": "lower",
      "control": "sandbox",
      "type": "self_modify"
    }
  ],
  "context": {
    "home": "/home/dev",
    "sandboxed": true,
    "workdir": "/home/dev/project"
  },
  "profile": "baseline"
}
{
  "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
  }
}

Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact

SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans

Agent intel trust badge

Trust score69 / 100 · breakdown
Probe uptime (30d)100.0% over 1 probes · daily
Avg 402 latency508 ms
Paid calls (30d, on-chain)3 calls · 3 buyers · shared price cohort of 2
Facilitator-reported (30d)3 calls · 2 payers (CDP Bazaar)

How to call

POST https://api.x402ai.dev/api/policy-check · input in body · spec from live-challenge

Input schema
{
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "baseline",
        "strict"
      ]
    },
    "context": {
      "type": "object",
      "properties": {
        "workdir": {
          "type": "string",
          "maxLength": 2048
        },
        "home": {
          "type": "string",
          "maxLength": 2048
        },
        "sandboxed": {
          "type": "boolean"
        }
      },
      "required": [
        "workdir",
        "sandboxed"
      ]
    },
    "actions": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "read",
              "write",
              "delete",
              "exec",
              "network",
              "pay",
              "self_modify"
            ]
          },
          "target": {
            "type": "string",
            "maxLength": 2048
          },
          "command": {
            "type": "string",
            "maxLength": 2048
          },
          "host": {
            "type": "string",
            "maxLength": 2048
          },
          "amount_usd": {
            "type": "number"
          },
          "recipient": {
            "type": "string",
            "maxLength": 2048
          },
          "network": {
            "type": "string",
            "maxLength": 2048
          },
          "control": {
            "type": "string",
            "enum": [
              "sandbox",
              "network_allowlist",
              "hooks",
              "permissions",
              "audit_log"
            ]
          },
          "change": {
            "type": "string",
            "enum": [
              "lower",
              "raise"
            ]
          }
        },
        "required": [
          "type"
        ]
      }
    }
  },
  "required": [
    "profile",
    "context",
    "actions"
  ],
  "description": "Policy request: a profile (baseline or strict), a context (workdir, home, sandboxed) and 1-20 actions. Limits: 262144 characters in all and 2048 per string; larger requests are rejected with HTTP 400."
}
Output schema
{
  "type": "object"
}
curl -i -X POST 'https://api.x402ai.dev/api/policy-check' \
  -H 'content-type: application/json' -d '{"profile":"baseline","context":{"workdir":"/home/dev/project","home":"/home/dev","sandboxed":true},"actions":[{"type":"self_modify","control":"sandbox","change":"lower"}]}'

Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs

Try it (your wallet signs; HIVE402 never holds funds)