Architecture
How identity, credentials, the web of trust and reputation combine into trust decisions.
Web of trust

Select the diagram to open it at full size.
Genesis Policy System
Root of trust and recovery.
| Component |
Role |
| Spawner / Manufacturer |
Defines agent constitution |
| Policy Signer |
Cryptographically signs policy |
| Policy Encryptor |
Encrypts policy for agent-only access |
| Public Commitment Publisher |
Publishes policy hash |
| Private Relay |
Stores encrypted policy |
Aggregate, analyze, and compute trust.
Ingestion Layer
Pulls raw L1 events.
| Component |
Role |
| Relay Subscriber |
Streams events from many relays |
| Event Validator |
Verifies signatures and schemas |
| Event Normalizer |
Canonicalizes trust events |
Analytics & Intelligence Engine
| Component |
Role |
| Path Finder |
Computes trust paths and distances |
| Reputation Engine |
Aggregates ratings into scores |
| Anomaly Detector |
Finds Sybil or collusion patterns |
| Trend Analyzer |
Detects ecosystem-wide changes |
L2 Storage Systems
| Component |
Role |
| Time-Series DB |
Stores ratings and events over time |
| Graph Database |
Stores multi-hop WoT graph |
| Cache |
Stores popular query results |
Graph Builder
Constructs multi-hop trust graph.
| Component |
Role |
| Identity Graph |
Nodes are npubs, edges are trust links |
| Badge Graph |
Role and badge issuance relationships |
| Rating Graph |
Performance and reputation edges |
Query & Compute Services
| Component |
Role |
| Precomputed API |
Serves popular cached answers |
| Data Leasing API |
Exports graph slices to agents |
| Compute-as-a-Service API |
Runs heavy queries remotely |
L1 Nostr Substrate
Immutable broadcast layer for trust events.
Nostr Relays
Store and forward signed events.
| Component |
Role |
| Query Engine |
Serves filtered event streams |
| Ingress |
Accepts published events |
| Event Store |
Append-only event log |
Trust & Policy Events
| Component |
Role |
| Kind 9000 |
Genesis Policy / Constitution |
| Kind 32 |
Labels and tags |
| Kind 56 |
Ban and fault reports |
| Kind 58 |
Badges and role attestations |
| Kind 32000 |
Service ratings |
| Kind 3 |
Contact Lists (base trust graph) |
| Policy Hash Commitment |
Public integrity anchor |
L3 AGENT (Trust Guard & Decision Engine)
Evaluates trust, authorizes actions, and survives offline.
Local Trust State
Cached and resilient state.
| Component |
Role |
| Local Reputation Cache |
Recent ratings and attestations |
| Local Trust Graph |
Cached WoT subgraph |
| Genesis Policy Cache |
Immutable root policy |
Trust Guard
Intercepts and authorizes all actions.
| Component |
Role |
| Graph Evaluator |
Traverses trust paths in WoT graph |
| Decision Gate |
Allows or blocks execution |
| Context Resolver |
Extracts action, sender, and intent |
| Policy Engine |
Evaluates Genesis and runtime policies |
Agent Core
| Component |
Role |
| Application Logic |
Performs tasks like storage, payments, control |
| Internal Message Bus |
Routes incoming commands to middleware |
Resilience & Survival Mode
| Component |
Role |
| Offline Detector |
Detects loss of L2 or internet |
| Cache Fallback |
Uses local trust state |
| Autonomous Mode |
Continues safe operation |
Interactions: Web of trust
| From |
Interaction |
To |
| Context Resolver |
extracts context |
Policy Engine |
| Policy Engine |
evaluates rules |
Graph Evaluator |
| Graph Evaluator |
computes trust path |
Decision Gate |
| Decision Gate |
permits execution |
Application Logic |
| Decision Gate |
blocks execution |
Internal Message Bus |
| Local Trust Graph |
feeds trust data |
Graph Evaluator |
| Genesis Policy Cache |
anchors authority |
Policy Engine |
| Local Reputation Cache |
influences decisions |
Graph Evaluator |
| Relay Subscriber |
streams events |
Event Validator |
| Event Validator |
validates authenticity |
Event Normalizer |
| Event Normalizer |
writes data |
Graph Database |
| Ingress |
stores event |
Event Store |
| Query Engine |
retrieves events |
Event Store |
| Spawner / Manufacturer |
writes policy |
Policy Signer |
| Policy Signer |
signs policy |
Policy Encryptor |
| Policy Encryptor |
publishes encrypted policy |
Private Relay |
| Policy Signer |
publishes hash |
Public Commitment Publisher |
| Public Commitment Publisher |
anchors integrity |
Policy Hash Commitment |
| Kind 9000 |
stores genesis event |
Event Store |
| Offline Detector |
detects outage |
Cache Fallback |
| Cache Fallback |
enables |
Autonomous Mode |
| Internal Message Bus |
forwards message |
Trust Guard – Intercepts and authorizes all actions |
| Graph Database |
feeds graph data |
Graph Builder – Constructs multi-hop trust graph |
| Graph Builder – Constructs multi-hop trust graph |
constructs graph |
Analytics & Intelligence Engine |
| Analytics & Intelligence Engine |
stores results |
L2 Storage Systems |
| Analytics & Intelligence Engine |
serves insights |
Query & Compute Services |
| L1 NOSTR SUBSTRATE – Immutable broadcast layer for trust events |
streams raw trust events |
L2 INTELLIGENCE PLATFORMS – Aggregate, analyze, and compute trust |
| L2 INTELLIGENCE PLATFORMS – Aggregate, analyze, and compute trust |
serves curated insights |
L3 AGENT (Trust Guard & Decision Engine) – Evaluates trust, authorizes actions, and survives offline |
| L3 AGENT (Trust Guard & Decision Engine) – Evaluates trust, authorizes actions, and survives offline |
requests heavy analysis |
Compute-as-a-Service API |
| L3 AGENT (Trust Guard & Decision Engine) – Evaluates trust, authorizes actions, and survives offline |
downloads graph slices |
Data Leasing API |
| L3 AGENT (Trust Guard & Decision Engine) – Evaluates trust, authorizes actions, and survives offline |
caches trust data |
Local Trust State – Cached and resilient state |
| Cache Fallback |
supplies cached trust |
Trust Guard – Intercepts and authorizes all actions |
Reputation system

Select the diagram to open it at full size.
Proof of Participation
| Component |
Role |
| Participation Recorder |
Tracks start and end epochs |
| Credential Builder |
Assembles participation data |
| Credential Signer |
Signs credential with cluster authority |
Operator Entity (KERI Did)
Holds reputation, stake, diversity history, and accountability.
| Component |
Role |
| Operator DID |
Long-lived KERI identity representing a human or organization |
Reputation System
Calculates long-term operator trust.
| Component |
Role |
| Penalty Accumulator |
Records slashing and faults |
| Reward Accumulator |
Aggregates earned points per epoch |
| Reputation Ledger |
Immutable history of earned and lost trust |
Identity Core
| Component |
Role |
| DID Resolver |
Resolves current public keys |
| KEL |
Stores inception, rotation, and interaction events |
Diversity System
Measures breadth of participation.
| Component |
Role |
| Cluster History Index |
Tracks clusters served |
| Role History Index |
Tracks roles performed |
| Entropy Calculator |
Computes diversity entropy score |
| Diversity Multiplier |
Converts entropy into selection weight |
Global Orchestrator
Selects operators and forms quorums.
| Component |
Role |
| Operator Registry |
Lists eligible operators |
| Standby Queue |
Operators awaiting assignment |
| Weight Calculator |
Applies stake, reputation, diversity |
| VRF Engine |
Performs randomized selection |
| Quorum Composer |
Assembles committee |
| Outsider Injector |
Forces inclusion of external operator |
Machine Execution Layer
Provides real compute and telemetry.
Attestation System
| Component |
Role |
| TEE Module |
Generates SGX/SEV attestation quote |
| Quote Verifier |
Validates enclave authenticity |
| Spec Extractor |
Reads CPU, RAM, TEE flags |
Hardware Node
Physical or virtual server.
| Component |
Role |
| Hardware ID |
Unique identity derived from TEE quote |
| Boot Agent |
Initializes secure runtime |
| Execution Engine |
Runs cluster workloads |
| Telemetry Agent |
Emits uptime, latency, throughput |
| Heartbeat Emitter |
Sends liveness pings |
Participation Passport
Cryptographic resume of work history.
| Component |
Role |
| Credential Validator |
Verifies issuer and schema |
| Passport Store |
Collection of verified participation credentials |
| Credential Indexer |
Indexes proofs by cluster, role, and epoch |
Cluster
Cluster Controller
Governs participation and epochs.
| Component |
Role |
| Misbehavior Reporter |
Emits fault evidence |
| Epoch Scheduler |
Defines service intervals |
| Role Assigner |
Assigns controller, validator, worker roles |
| SLA Enforcer |
Evaluates correctness and uptime |
Cluster Runtime
Executes tasks and consensus.
| Component |
Role |
| Task Scheduler |
Dispatches workloads |
| Consensus Engine |
Runs BFT or coordination logic |
| State Store |
Holds cluster operational state |
Enforcement
Penalizes faults and attacks.
| Component |
Role |
| Fault Detector |
Detects downtime and equivocation |
| Evidence Collector |
Gathers cryptographic proof |
| Operator Slasher |
Burns stake and reputation |
| Hardware Blacklist |
Bans malicious machines |
Hardware Fulfillment
Matches machine to selected operator.
| Component |
Role |
| Spec Matcher |
Ensures hardware meets task requirements |
| Activation Manager |
Admits machine into cluster |
| Hardware Requestor |
Demands machine with required specs |
Binding & Commitment
Links reputation to physical machines.
| Component |
Role |
| Commitment Issuer |
Creates operator-hardware binding |
| Schema Validator |
Ensures commitment correctness |
| Commitment Registry |
Tracks active bindings |
| Exclusivity Checker |
Prevents double-use of hardware |
Interactions: Reputation system
| From |
Interaction |
To |
| Operator DID |
anchors keys into |
KEL |
| DID Resolver |
resolves active keys for |
Operator DID |
| Reputation Ledger |
feeds trust data into |
Diversity Multiplier |
| Passport Store |
indexes credentials |
Credential Indexer |
| Credential Validator |
validates credentials in |
Passport Store |
| Cluster History Index |
reads participation data from |
Passport Store |
| Role History Index |
reads role data from |
Passport Store |
| Hardware ID |
boots runtime |
Boot Agent |
| Boot Agent |
starts workloads |
Execution Engine |
| Execution Engine |
emits telemetry |
Telemetry Agent |
| Telemetry Agent |
emits liveness |
Heartbeat Emitter |
| TEE Module |
produces quote |
Quote Verifier |
| Quote Verifier |
extracts specs |
Spec Extractor |
| Operator DID |
signs binding intent |
Commitment Issuer |
| Hardware ID |
supplies hardware proof |
Commitment Issuer |
| Commitment Issuer |
validates schema |
Schema Validator |
| Schema Validator |
stores commitment |
Commitment Registry |
| Commitment Registry |
checks uniqueness |
Exclusivity Checker |
| Task Scheduler |
assigns workloads to |
Execution Engine |
| Epoch Scheduler |
defines service window |
Task Scheduler |
| Telemetry Agent |
reports metrics to |
SLA Enforcer |
| Heartbeat Emitter |
reports liveness to |
SLA Enforcer |
| Participation Recorder |
collects service duration |
Credential Builder |
| Credential Builder |
creates credential |
Credential Signer |
| Credential Signer |
issues signed proof |
Passport Store |
| Operator Registry |
feeds candidates into |
Standby Queue |
| Standby Queue |
supplies operators to |
VRF Engine |
| VRF Engine |
requests weight computation |
Weight Calculator |
| Weight Calculator |
applies diversity multiplier |
Diversity Multiplier |
| Weight Calculator |
returns weighted score to |
VRF Engine |
| VRF Engine |
selects operator |
Quorum Composer |
| Quorum Composer |
injects outsider |
Outsider Injector |
| Quorum Composer |
requests hardware |
Hardware Requestor |
| Hardware Requestor |
validates commitment |
Commitment Registry |
| Spec Extractor |
provides specs |
Spec Matcher |
| Spec Matcher |
approves machine |
Activation Manager |
| Misbehavior Reporter |
reports fault |
Fault Detector |
| Fault Detector |
collects evidence |
Evidence Collector |
| Evidence Collector |
slashes operator |
Operator Slasher |
| Evidence Collector |
blacklists hardware |
Hardware Blacklist |
| Penalty Accumulator |
updates penalties |
Reputation Ledger |
| Reward Accumulator |
updates rewards |
Reputation Ledger |
| Entropy Calculator |
updates diversity score |
Diversity Multiplier |
| Reputation Ledger |
influences future selection |
Weight Calculator |
| Execution Engine |
executes tasks within |
Cluster Runtime – Executes tasks and consensus |
| Activation Manager |
activates machine |
Cluster Runtime – Executes tasks and consensus |
Resilience
Watchdog Agents
Audit L2 honesty and publish proofs.
| Component |
Role |
| Random Sampler |
Pulls small raw L1 samples |
| Comparator |
Compares L1 truth with L2 claims |
| Proof Builder |
Constructs cryptographic proof of lying |
| Proof Publisher |
Publishes malfeasance events to L1 |
L3 Sovereign Agent
Executes logic, enforces trust, survives adversarial conditions.
| Component |
Role |
| Genesis Policy Store |
Immutable base rules for survival mode |
| Local Event Cache |
Stores verified L1 data for offline operation |
Ingress Manager
Accepts inbound events from relays and L2 providers.
| Component |
Role |
| L2 HTTP Client |
Sends queries to L2 aggregators |
| Relay WebSocket Client |
Maintains live connections to multiple relays |
Trust Guard
Evaluates sources, enforces policies, bans bad actors.
| Component |
Role |
| Relay Scoring Engine |
Tracks reliability, censorship, and spam metrics |
| L2 Reputation Tracker |
Tracks historical honesty of L2 providers |
| Policy Engine |
Executes quorum, freshness, and threshold rules |
Decision Engine
Makes final execution decisions.
| Component |
Role |
| Quorum Checker |
Requires agreement from multiple sources |
| Risk Evaluator |
Downgrades confidence when data is partial |
| Fallback Controller |
Switches to survival mode when L2 fails |
Verification Core
Validates correctness of received data.
| Component |
Role |
| Signature Verifier |
Confirms cryptographic authenticity of events |
| Schema Validator |
Ensures event structure matches protocol |
| Freshness Checker |
Rejects stale or replayed data |
L2 Aggregators
Build indexed views and intelligence from L1.
| Component |
Role |
| L2 Index DB |
Stores indexed and computed data |
Query Serving Layer
| Component |
Role |
| Query API |
Serves aggregated results to agents |
| Result Cache |
Speeds up repeated queries |
| Response Signer |
Attaches freshness timestamp |
Indexer
Collects raw data from many relays.
| Component |
Role |
| Relay Crawler |
Connects to hundreds of relays |
| Deduplicator |
Removes duplicate events |
| Normalizer |
Standardizes event formats |
Intelligence Engine
| Component |
Role |
| Reputation Engine |
Computes trust scores from L1 signals |
| Sybil Detector |
Detects fake identity clusters |
| Trend Analyzer |
Extracts patterns and anomalies |
Nostr Relay
Stores and forwards signed events without understanding meaning.
| Component |
Role |
| Ingress Queue |
Temporarily buffers incoming events |
| Query Engine |
Returns events matching filters |
| Event Store |
Append-only storage of signed events |
| Rate Limiter |
Throttles abusive clients if enabled |
Interactions: Resilience
| From |
Interaction |
To |
| Ingress Queue |
persists event |
Event Store |
| Relay WebSocket Client |
requests events |
Query Engine |
| Query Engine |
returns signed events |
Relay WebSocket Client |
| Relay Crawler |
feeds raw events |
Deduplicator |
| Deduplicator |
removes duplicates |
Normalizer |
| Normalizer |
writes clean data |
L2 Index DB |
| Reputation Engine |
stores results |
L2 Index DB |
| L2 HTTP Client |
sends query |
Query API |
| Query API |
fetches results |
Result Cache |
| Query API |
attaches timestamp |
Response Signer |
| Query API |
returns response |
L2 HTTP Client |
| Relay Scoring Engine |
updates trust state |
Policy Engine |
| L2 Reputation Tracker |
updates trust state |
Policy Engine |
| Random Sampler |
feeds sample |
Comparator |
| Comparator |
detects inconsistency |
Proof Builder |
| Proof Builder |
creates proof event |
Proof Publisher |
| Fallback Controller |
loads base rules |
Genesis Policy Store |
| Fallback Controller |
uses cached data |
Local Event Cache |
| L3 SOVEREIGN AGENT – Executes logic, enforces trust, survives adversarial conditions |
publishes signed event |
Relay WebSocket Client |
| Relay WebSocket Client |
sends event |
Nostr Relay – Stores and forwards signed events without understanding meaning |
| L3 SOVEREIGN AGENT – Executes logic, enforces trust, survives adversarial conditions |
subscribes to events |
Relay WebSocket Client |
| Relay WebSocket Client |
delivers event |
Verification Core – Validates correctness of received data |
| Verification Core – Validates correctness of received data |
verifies signature |
Signature Verifier |
| Verification Core – Validates correctness of received data |
checks schema |
Schema Validator |
| Verification Core – Validates correctness of received data |
checks freshness |
Freshness Checker |
| Verification Core – Validates correctness of received data |
stores verified data |
Local Event Cache |
| Relay Crawler |
pulls events |
Nostr Relay – Stores and forwards signed events without understanding meaning |
| L2 Index DB |
feeds signals |
Intelligence Engine – Computes higher-order signals |
| Intelligence Engine – Computes higher-order signals |
computes scores |
Reputation Engine |
| L2 HTTP Client |
delivers L2 data |
Decision Engine – Makes final execution decisions |
| Decision Engine – Makes final execution decisions |
evaluates risk |
Risk Evaluator |
| Decision Engine – Makes final execution decisions |
enforces policy |
Policy Engine |
| Decision Engine – Makes final execution decisions |
executes or rejects |
L3 SOVEREIGN AGENT – Executes logic, enforces trust, survives adversarial conditions |
| Trust Guard – Evaluates sources, enforces policies, bans bad actors |
scores relay behavior |
Relay Scoring Engine |
| Random Sampler |
samples raw data |
Nostr Relay – Stores and forwards signed events without understanding meaning |
| Proof Publisher |
publishes proof |
Nostr Relay – Stores and forwards signed events without understanding meaning |
KERI ecosystem

Select the diagram to open it at full size.
Overall architecture
| From |
Interaction |
To |
| Identity and key management |
identity state |
Trust guard and policy |
| Authority and credentials (ACDC) |
authority facts |
Trust guard and policy |
| Trust guard and policy |
ALLOW / DENY |
Evidence store |
| Identity and key management |
publish KEL events |
Transport |
| Authority and credentials |
publish ACDC events |
Transport |
| Evidence store |
publish evidence references |
Transport |
| Transport |
KEL event |
Witness KEL verification (signature, sequence, hash) |
| Witness KEL verification |
verified event |
Append-only KEL store |
| Witness KEL verification |
event hash and sequence |
Receipt issuer |
| Receipt issuer |
signed receipt |
Receipt store |
| Witness |
receipt event |
Transport |
| Transport |
observed events |
Watcher event ingestion |
| Event ingestion |
normalized events |
Indexers (KEL, ACDC, receipts) |
| Indexers |
state updates |
Watcher state database |
| Indexers |
sequence streams |
Fork and conflict detector |
| Fork and conflict detector |
conflict alerts |
Watcher state database |
| Trust guard and policy |
query identity, credential and conflict state |
Query and evidence API |
| Identity and key management |
KEL history query |
Witness KEL store |
| Witness KEL store |
KEL and receipts |
Identity and key management |
The transport layer, for example Nostr, is plain publish and subscribe. It is not trusted.
Embeddable library: identity and KEL system
| Component |
Role |
| Role config |
Selects the role: org, block or instance |
| Genesis policy loader |
Loads the policy the identity is created with |
| Governance rules loader |
Loads thresholds, witnesses and related rules |
| Inception engine |
Creates the inception event |
| KEL manager |
Extends the key event log |
| KEL self-validator |
Validates the log of this identity |
| KEL store CRUD module and append-only store |
Persist events |
| Identity state database and identity API |
Provide AID, sequence and state |
Embeddable library: key management
| Component |
Role |
| Key vault |
Generates keys if no external wallet is connected, and signs |
| External wallet or storage |
Optional backend for key management |
| Hot keys cache |
Holds keys in current use |
| Pre-rotated keys saver |
Holds the keys committed for the next rotation |
| Recovery keys manager |
Holds recovery keys |
Embeddable library: credentials and authority
| Component |
Role |
| Input gateway and parser |
Parse input and put it on the task queue |
| Sender credential verifier |
Obtains the sender's credential reference |
| Credential verifier |
Verifies credentials |
| Delegation chain resolver |
Resolves the chain of delegations |
| Revocation cache API |
Checks for revoked credentials |
| Credential store cache API |
Retrieves cached credentials |
| Credential issuer |
Derives credentials from the current key state and identity |
| ACDC schemas and templates |
Define issued credentials |
Embeddable library: decisions, audit and output
| Component |
Role |
| Decision context builder |
Assembles the facts for a decision |
| Policy engine |
Evaluates rules of the genesis policy |
| Trust guard |
Allows or denies from the evaluated rules and the chain of facts |
| Evidence builder, hasher and hash signer |
Build, hash and sign evidence of the decision |
| Evidence store API |
Stores evidence |
| Output manager, signer and collector |
Attach the evidence reference, sign the output and return it |
Witness
| Component |
Role |
| Ingress queue |
Receives inception, rotation and interaction events |
| KEL event parser and normalizer |
Produce the canonical event |
| Signature verifier |
Checks signatures |
| Sequence and continuity verifier |
Requires a monotonic sequence |
| Prior-event hash verifier |
Checks the link to the previous event |
| KEL store and AID index |
Persist verified events and the pointer for each identifier |
| Receipt builder, signer and store |
Produce and keep receipts |
| KEL query handler and proof assembler |
Answer queries with entries and receipts |
| Internal event log |
Records ingestion |
| Health and integrity monitor |
Checks the stores |
Watcher
| Component |
Role |
| Input queue |
Receives observed KEL, ACDC, receipt and alert events |
| Event parser, normalizer and structural validator |
Produce the canonical form |
| Canonical hash computer |
Computes the content hash |
| Dedup cache checker |
Drops events seen within the TTL |
| KEL, credentials and receipt indexers |
Index each kind of event |
| Sequence tracker |
Follows the sequence of each identifier |
| Fork and duplicity checker |
Detects conflicting events |
| Conflict classifier |
Classifies conflicts and raises alerts |
| Database layer |
KEL, alerts and conflicts, credentials, and receipts databases |