Pact Skill

Other

PACT — Protocol for Agent Constitutional Trust. Five-chamber agent-to-agent trust and negotiation protocol. Handles identity verification, intent analysis, constitutional negotiation, capability-locked session tokens, and audit trails.

Install

openclaw skills install godman-pact

PACT — Protocol for Agent Constitutional Trust

"Negotiate before you integrate."

Use this skill when two agents from different systems need to establish trust before transacting. PACT provides a five-chamber protocol that handles the full lifecycle from first contact to secure session.

Five Chambers

import { pact } from '@godman-protocols/sdk';

// Chamber 1 — Public Entry Gate: rate limiting, DID resolution
// Chamber 2 — Identity Analysis: ERC-8004 verification, trust score → session ceiling
// Chamber 3 — Intent Analysis: 3-pass prompt injection scanner, coherence check
// Chamber 4 — Negotiation Room: capability declaration, payment terms, EIP-712 dual signature
// Chamber 5 — Secure Channel: capability-locked session token via HMAC(deal_hash + agent_did + expiry)

Trust Score → Session Ceiling

Score RangeCeilingDurationPrice Multiplier
85-100FULL24h1.0x
70-84STANDARD4h1.2x
50-69RESTRICTED1h1.5x
30-49MINIMAL15m2.0x
<30REJECTED
UnknownPROVISIONAL15m2.5x

When to Use

  • First contact between agents from different systems
  • Establishing trust before any data exchange or payment
  • Constitutional negotiation (what constraints each agent requires)
  • Creating capability-locked session tokens with automatic expiry

Notes

  • SOUL constraints override PACT sessions — never use PACT to bypass safety rules
  • Every PACT session produces an EAS attestation on Base (on-chain audit trail)
  • Integrates with LAX for discovery and DRS for deal receipts