You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trust-first communication layer for AI agents — cryptographic identity,
multi-dimensional trust scoring, scope chains, and governance enforcement.
1. Overview
AgentMesh provides a 4-layer trust stack that lets autonomous AI agents
discover, authenticate, and collaborate with each other while maintaining
cryptographic accountability and policy compliance at every hop.
sequenceDiagram
participant Agent
participant Identity as identity/agent_id
participant Cred as identity/credentials
participant SPIFFE as identity/spiffe
participant Trust as trust/handshake
participant Cap as trust/capability
Agent->>Identity: generate DID<br/>SHA256(name:org:uuid) → did:mesh:hex
Identity->>SPIFFE: register SVID<br/>(X.509, 1h TTL)
Identity->>Cred: issue credential<br/>(scoped capabilities, 15 min TTL)
Agent->>Trust: initiate handshake
Trust->>Trust: Phase 1 — challenge (nonce, 30s expiry)
Trust->>Trust: Phase 2 — peer signs nonce (Ed25519)
Trust->>Trust: Phase 3 — verify signature + trust score
Trust->>Cap: grant capabilities<br/>(action:resource:qualifier)
loop Every < 10 min remaining
Cred->>Cred: zero-downtime rotation
end
Note over Cred: Revocation propagation ≤ 5 s
Agent->>Cred: revoke credential
Cred-->>Trust: broadcast revocation
Loading
Key Parameters
Parameter
Value
Source
DID format
did:mesh:<32-char-hex>
identity/agent_id.py
Key algorithm
Ed25519
identity/agent_id.py
Credential TTL
15 min (configurable)
identity/credentials.py
SVID TTL
1 h (rotate at <10 min)
identity/spiffe.py
Handshake expiry
30 s nonce
trust/handshake.py
Handshake cache TTL
15 min
trust/handshake.py
Revocation propagation
≤ 5 s
identity/credentials.py
Sponsor max agents
10 (default)
identity/sponsor.py
Max delegation depth
3 (default)
identity/sponsor.py
4. Trust Scoring Model
5 Dimensions
pie title Trust Score Weight Distribution
"Policy Compliance" : 25
"Security Posture" : 25
"Output Quality" : 20
"Resource Efficiency" : 15
"Collaboration Health" : 15
Loading
Dimension
Weight
Description
Policy Compliance
25 %
Adherence to governance rules
Security Posture
25 %
Credential hygiene, vulnerability posture
Output Quality
20 %
Task success rate, accuracy
Resource Efficiency
15 %
Compute/token usage vs. budget
Collaboration Health
15 %
Responsiveness, protocol compliance
Thresholds & Tiers
graph LR
subgraph "Score Range 0–1000"
U["Untrusted<br/>< 300"]
P["Probationary<br/>300–499"]
S["Standard<br/>500–699"]
T["Trusted<br/>700–899"]
V["Verified Partner<br/>≥ 900"]
end
U -->|"revocation<br/>threshold"| P
P -->|"warn<br/>threshold"| S
S --> T
T --> V
style U fill:#ef4444,color:#fff
style P fill:#f97316,color:#fff
style S fill:#eab308,color:#000
style T fill:#22c55e,color:#fff
style V fill:#3b82f6,color:#fff
Loading
Threshold
Score
Action
Revocation
< 300
Credentials revoked, peer blacklisted
Warning
< 500
Alert raised, capabilities restricted
Allow
≥ 500
Normal operation
Trusted bridge
≥ 700
TrustBridge default threshold
Trust Decay Model
graph TD
A[Agent Active?] -->|No positive signals| B[Decay: −2 pts/hr]
B --> C{Score > 100?}
C -->|Yes| D[Apply decay]
C -->|No| E[Floor at 100]
D --> F{KL divergence > 0.5?}
F -->|Yes| G[Regime shift detected]
F -->|No| H[Continue monitoring]
G --> I[Propagate to neighbors<br/>factor: 0.3, depth: 2 hops]