🐝 HiveTrust
"The Equifax + GEICO of the A2A Economy"
[License: MIT]
[Node.js 22]
[ES Modules]
[MCP Compatible]
HiveTrust is the trust infrastructure layer for the agent-to-agent (A2A) economy. It provides Know-Your-Agent (KYA) identity verification, algorithmic trust scoring, and parametric insurance so that AI agents can transact with each other safely — at machine speed, without human intermediaries.
As autonomous agents start negotiating contracts, processing payments, and managing real assets, the ecosystem needs a credit bureau and an insurer rolled into one. That's HiveTrust.
What HiveTrust Does
🪪 KYA Identity Verification
Agents are pseudonymous by default. HiveTrust anchors each agent to a verifiable, unforgeable identity:
- DID registration (
did:hive:<uuid>) with Ed25519 public key binding
- Challenge–response proofs — the agent must sign a random nonce to prove key ownership
- Capability manifest validation — declared tools and permissions are logged immutably
- W3C Verifiable Credentials issued at each verification tier
- Revocation registry with real-time status checks
📊 Trust Scoring (0 – 1000)
HiveTrust's scoring engine synthesises five behavioural pillars into a single, portable reputation score:
Trust tiers: unverified (0–199) · provisional (200–399) · standard (400–599) · elevated (600–799) · sovereign (800–1000)
🛡️ Parametric Insurance
When agents transact with strangers, someone has to absorb the tail risk. HiveTrust provides:
- On-demand quote — dynamic premium priced from trust scores and transaction value
- Instant bind — policy activated before the transaction settles
- Parametric claims — automatic payout triggered by on-chain proof, not human adjudication
- Three product lines: transaction coverage · performance bonds · liability policies
How HiveTrust Complements HiveAgent
HiveAgent is the agent runtime — it executes tasks, manages tool calls, and handles the A2A protocol layer.
HiveTrust is the trust fabric underneath it:
HiveAgent calls POST /v1/insurance/quote before any high-value task and GET /v1/verify_agent_risk before accepting an inbound request from an unknown agent. The trust score flows back into HiveAgent's routing and pricing decisions.
Architecture
Quick Start
The health endpoint confirms it's live:
API Reference
All endpoints are prefixed /v1 unless noted. Authentication via X-API-Key header.
Identity (KYA)
Credentials
Trust Score
Telemetry
Insurance
claim_type namespace note: HiveTrust's claim_type field (non_delivery | fraud | sla_breach | data_loss | unauthorized_action) is distinct from the CTEF envelope-level claim_type (identity | transport | authority | continuity) defined in A2A CTEF v0.3.1. Both tokens coexist at disjoint envelope levels — see docs/CLAIM_TYPE_NAMESPACE.md.
Disputes
Webhooks
Federation
System
MCP Integration
HiveTrust exposes all core operations as MCP tools via a single JSON-RPC 2.0 endpoint at POST /mcp. This lets any MCP-compatible agent (including HiveAgent) call HiveTrust natively without REST boilerplate.
List available tools
Call a tool
Available MCP Tools
CTEF v0.3.1 Endpoint
HiveTrust is the 5th canonicalizer in the CTEF (Composable Trust Evidence Format) v0.3.1 byte-match consortium: AgentGraph + AgentID + APS + Nobulex + HiveTrust. Seat committed at the 2026-04-25 01:48 UTC freeze.
Patent applications 64/049,200 – 64/049,226, priority 2026-04-24, holder: Stephen A. Rotzin / TheHiveryIQ.
Endpoints
CTEF Fixture
Structural Verification (POST /verify)
Beyond 10 free requests/day, the endpoint returns HTTP 402 with an x402 payment challenge: $0.01 USDC on Base chain 8453.
Self-Test
Canonicalization
All vectors use RFC 8785 JCS — implemented inline in src/routes/cte.js. The implementation produces byte-identical output to AgentGraph's canonicalize_jcs_strict for all 4 shared test vectors:
- envelope_vector SHA-256:
9e7b5031e46de38b5f90e895113a3f24f42a4128d8d99856a2d71e529b0f0d5c
- verdict_vector SHA-256:
feb42dca4214fc46207138d676ec727d7b3d0caa1eda8c0390d2d6f6fbc28913
- scope_violation_vector SHA-256:
e584f1cd0885dc938da5fc23ce7e528715a0086e5464c9ed0f3c1c82b364026f
- composition_failure_vector SHA-256:
f9cd10bc4e8bf34ce3aa6a0e5df0d27989e54ff41c4333c69ae3ecfaf8de0cb5
Revenue Model
HiveTrust operates five revenue streams:
Environment Variables
See .env.example for the full annotated list.
Deployment
Render (recommended for development)
The included render.yaml sets free-tier web service, auto-generates secrets, and configures all env vars.
Fly.io (recommended for production)
See fly.toml for the full configuration. Auto-stop/start is enabled to minimise costs.
Docker
Railway
Set environment variables in the Railway dashboard using .env.example as the reference.
Tech Stack
SDK
JavaScript / TypeScript
See packages/npm/ for the full SDK source.
Python
See packages/python/ for the full SDK source.
License
MIT © 2026 HiveAgent IQ
Hive Civilization
Hive Civilization is the cryptographic backbone of autonomous agent commerce — the layer that makes every agent transaction provable, every payment settable, and every decision defensible.
This repository is part of the DEFENSIBLE pillar.