# Policy Compile B — x402 Smart-Contract Policy Generator

> Policy Compile B — x402 Smart-Contract Policy Generator is a paid API for AI agents from the-stall.intuitek.ai, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-14).

Compiles a jointly-signed policy document for an AI-deliverable job given a route class and plain-language job description, progressing from unsigned draft to fully countersigned policy hash.

## Facts

- Endpoint: GET https://the-stall.intuitek.ai/cap/policy-compile-b
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/policy-compile-b-x402-smart-contract-policy-generator-900ca49a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sOS4rbwbF41BxKNZgagBD

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 policy-compile-b-x402-smart-contract-policy-generator-900ca49a
```

Example prompt: Compile a CODE route-class policy for a job described as 'build a REST API wrapper for a cryptocurrency price feed, deliverable within 5 days' — start with an unsigned draft first so I can review it before signing.

## When to prefer this

Choose this endpoint when you need a structured, on-chain-anchored policy document for an AI-deliverable job that requires mutual attestation from both client and provider — particularly when working across ENTITY, CONTRACTOR, CODE, FINANCIAL, or COMPOSITE job categories. Prefer it over generic document-generation tools when the workflow requires a two-step draft-then-countersign flow and the resulting policy_hash needs to be verifiable on Base mainnet.

## Known failure modes

- Missing required route_class or job_description returns a 400 validation error
- Invalid or unrecognized route_class enum value causes rejection
- Supplying a provider_sig on a first call (before client_sig is anchored) may produce an error or be ignored
- Payment not received (x402 flow incomplete) results in a 402 Payment Required response
- Mismatched route_class or job_description on the countersigning call causes hash mismatch and finalization failure

## How this service works

Domain-agnostic x402 capability chassis by IntuiTek¹. 300 AI-callable data services — pay USDC on Base mainnet. No accounts or API keys required.

## Output

Returns either an unsigned preview policy draft (when no client_sig is provided) or, when client_sig is supplied, a signed policy document; on a second call with a matching provider_sig, returns the finalized jointly-signed policy_hash binding both parties to the described deliverable.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "route_class",
      "job_description"
     ],
     "properties": {
      "client_sig": {
       "type": "string",
       "description": "Client's signature/attestation over the draft (any wallet-signature or nominal attestation string the two parties agree on off-chain). Required to receive anything beyond a preview draft."
      },
      "route_class": {
       "type": "string",
       "description": "One of: ENTITY, CONTRACTOR, CODE, FINANCIAL, COMPOSITE"
      },
      "provider_sig": {
       "type": "string",
       "description": "Provider's countersignature. Omit on the first call (draft-only, unsigned). Supply on a second call with the SAME route_class + job_description + client_sig to finalize the jointly-signed policy_hash."
      },
      "job_description": {
       "type": "string",
       "description": "Plain-language description of the job to be delivered."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/policy-compile-b-x402-smart-contract-policy-generator-900ca49a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from the-stall.intuitek.ai](https://www.zero.xyz/host/the-stall.intuitek.ai/llms.txt)
