{
  "standard": "KOVEL",
  "version": "1.0",
  "hashing": "keccak256 over the canonical JSON of the spec (keys sorted recursively, no whitespace), including id and registered.",
  "signing": "EIP-191 personal_sign over the message: \"KOVEL Standard v{version}\\nAction: SIGN\\nPact: {id}\\nRole: {role}\\nHash: {hash}\\n\\nI have read and agree to the terms of this pact.\"",
  "revocation": "Same format with Action: REVOKE (mandates) or TERMINATE (service agreements), without the agreement line.",
  "types": {
    "mandate": {
      "parties": {
        "principal": "{name, type, wallet}",
        "agent": "{agent_id, name, operator_wallet}"
      },
      "scope": "{purpose, actions[], prohibited[]}",
      "limits": "{currency, per_transaction, total, human_approval_above}",
      "counterparties": "{mode: any|allowlist, list[]}",
      "data": "{personal_data: none|minimum|as_needed, retention_days, share_with_counterparties}",
      "term": "{starts, expires, revocable}",
      "clauses": "clause ids[]",
      "governing_law": "string|null"
    },
    "service": {
      "parties": {
        "client": "{name, type, wallet}",
        "provider": "{name, type, wallet}",
        "agent": "{agent_id, name}"
      },
      "work": "{description, deliverables[], acceptance_criteria[], deadline, review_days}",
      "compensation": "{amount, currency, schedule: on_completion|split|upfront}",
      "ip": "{outputs_owner: client|provider|shared}",
      "data": "{personal_data, retention_days}",
      "subcontracting": "boolean",
      "liability": "{cap: fees_paid|fixed|unlimited, amount}",
      "term": "{starts, expires, notice_days}",
      "clauses": "clause ids[]",
      "governing_law": "string|null"
    }
  },
  "actions": [
    "purchase",
    "subscribe",
    "book",
    "communicate",
    "negotiate",
    "sign_up",
    "access_data",
    "publish",
    "execute_code",
    "transfer",
    "trade",
    "hire_agents"
  ]
}