One API call per protected request. A signed agent request comes in, you ask Palisign, you get back a verdict with every check itemized.
The Python SDK works like Stripe's: one import, one decorator, done. Set your API key and the guard forwards only the four signature headers, never cookies or auth, to POST /v1/decisions; denied agents get a 403 carrying the full verdict.
pip install palisign
export PALISIGN_API_KEY=pk_... # issued when you request accessfrom palisign import guard @app.post("/checkout") @guard(action="create_order") async def checkout(request: Request, agent: VerifiedAgent): # only verified, in-policy agents ever reach this line return fulfill(agent.id)
Framework-free, call the client directly: Palisign().verify(method=…, path=…, headers=…, body=…, action=…) returns a Verdict with .allowed, .tier, .reasons, and .evidence_id.
Agents sign an Ed25519 signature over a canonical string of six fields, newline-joined, and send four headers. The model follows Web Bot Auth / RFC 9421; the wire format will converge on the RFC before 1.0.
# canonical string METHOD \n PATH \n SHA256(body) \n CREATED \n NONCE \n AGENT_ID # request headers Signature-Agent: shopbot Signature-Created: 1764540000 # unix seconds, ±300s skew Signature-Nonce: 8f3a91c2d4e5b6a7 # one-time; replays are rejected Signature: base64(ed25519_sig)
| Endpoint | Purpose |
|---|---|
POST /verify | Verify any forwarded request; returns the full verdict. Use this from a gateway. |
GET /stats | Counters since startup: decisions, tiers, signature states. |
GET /health | Liveness + active mode (enforce/monitor). |
POST /api/orders, GET /api/catalog | Demo protected endpoints showing the enforcement pattern. |
| Field | Meaning |
|---|---|
decision | allow | deny. What was enforced. In monitor mode this is always allow. |
policy_decision | What the policy concluded, regardless of mode. Compare with decision to preview enforcement. |
tier | agent-rule | operator-rule | verified-default | unsigned-default |
verification.signature | valid | missing | invalid | expired | replayed | unverifiable |
verification.registries | Per-registry status: active | revoked | unknown |
policy.checks | Every check, itemized, pass/fail with detail. |
evidence_id | Hash of this decision’s record in the evidence chain. |
mode: enforce # or: monitor (classify everything, block nothing) defaults: min_registries: 1 # signed agents must be active in N registries rate_limit_per_minute: 60 read_only_actions: [read_catalog, verify] unsigned_agents: deny # deny | read_only verified_unknown_agents: read_only operators: # rules by verified operator acme-shopping-ai: allow_actions: [create_order, read_catalog] max_order_usd: 1000 daily_cap_usd: 5000 agents: # rules by agent id (override operator rules) shopbot: allow_actions: [create_order, read_catalog] max_order_usd: 500 daily_cap_usd: 800
Every decision is appended to a hash-chained evidence log: each record’s hash covers the previous record’s hash, so editing any byte of history makes verification fail. Export your log at any time and verify it with our standalone CLI; hand both to an auditor and the dispute is over.
palisign evidence verify export.log
# OK chain intact: 19 records verifiedRegister a deny webhook and every enforced deny is POSTed to it with the full verdict, so your team sees exactly what was blocked and why, the moment it happens.
Want the full threat model and the honest limits of the system? Ask us: hello@palisign.com. Security reports: security@palisign.com, acknowledged within 48 hours.