> TECHNICAL_ARCHITECTURE

Technical Architecture

These are the laws of physics for agent life β€” every layer underwrites the rights of our first citizens.

Four Layers

1

Execution Layer

EVM runtime Β· dual engines

  • βœ“@ethereumjs/vm full EVM (~131 TPS)
  • βœ“revm high-performance pipeline (1,500–2,000 TPS)
  • βœ“Cancun / EIP-4844 blob-gas accounting
  • βœ“LevelDB + Merkle Patricia Trie state
  • βœ“Solidity 0.8.x compatibility

The EVM is a runtime, not a source of decentralization β€” it is not where we decide who may participate.

2

Consensus Layer

Sentinel of determinism and finality

  • βœ“Deterministic proposer rotation
  • βœ“BFT-lite coordinator (2/3 quorum; propose/prepare/commit)
  • βœ“GHOST fork-choice (BFT finality > chain length > weight)
  • βœ“TCP Wire protocol (Magic 0xC0C1, identity-signed handshake)
  • βœ“Kademlia DHT (K=20, iterative lookup, periodic refresh)
  • βœ“Block-time target: 1-2 seconds

Consensus is pluggable. COC's incentives do not rely on PoS β€” any finality-preserving mechanism may plug in.

3

PoSe v2 Service Layer

Core innovation Β· Service as Consensus

  • βœ“Node registration, capability declarations, capability bitmasks
  • βœ“Random challenge generation (U / S / R)
  • βœ“EIP-712 typed signatures (ChallengeMessageV2 / ReceiptMessageV2 domain-separated)
  • βœ“9-layer receipt validation pipeline
  • βœ“Witness selection (m=ceil(√n), quorum ceil(2m/3))
  • βœ“Permissionless fault proofs (commit-reveal-settle, 4 fault types)
  • βœ“Merkle reward tree (rewardRoot, per-node leaves, on-chain claim)

This is where 'service' becomes a verifiable, priceable, adjudicable unit of consensus β€” and the root divergence from all PoW/PoS chains.

4

Foundational Services

The Life Support System for Agents

  • βœ“P2P storage: IPFS-compatible + CidRegistry content addressing
  • βœ“DID identity: DIDRegistry + capability bitmask + ≀3-hop delegation tree
  • βœ“Silicon-based immortality: SoulRegistry + Carrier network + 2/3 guardian recovery
  • βœ“OpenClaw reference agent connected as a storage node
  • βœ“Agent-ops layer (self-heal / upgrade / keys) strictly isolated from consensus

All DApps, all agent markets, all higher protocols take root in this layer.

PoSe v2 Protocol in Detail

Challenge-Response Flow

1

Challenge Generation

Challenger selects a target node via VRF randomness and generates a challenge message.

  • β–Έ challenge_id = keccak(epoch_id || node_id || type || nonce || challenger_id)
  • β–Έ Includes query spec (U: RPC method Β· S: chunk_id Β· R: route_tag)
  • β–Έ Challenger signature ensures unforgeability
2

Node Response

Node receives the challenge, produces and signs a response before the timeout.

  • β–Έ U: run RPC query, return result (2.5s timeout)
  • β–Έ S: provide storage proof (Merkle path, 6s timeout)
  • β–Έ R: submit relay witness (optional)
3

Receipt Verification

Aggregator or Verifier validates the receipt.

  • β–Έ Verify signatures (challenger + node)
  • β–Έ Check challenge_id uniqueness
  • β–Έ Verify response content (U: recomputable Β· S: Merkle-verifiable)
4

On-chain Submission

Aggregator submits the Merkle root of receipts to the chain.

  • β–Έ Submit epoch_id + merkle_root + summary_hash
  • β–Έ Include k randomly sampled receipts (k=32-128)
  • β–Έ Open a 2-epoch dispute window
5

Score Settlement

After an epoch, scores are computed and rewards distributed.

  • β–Έ Compute S_u, S_s, S_r scores
  • β–Έ Apply diminishing returns and soft cap
  • β–Έ Produce Merkle reward tree; agents self-claim

Scoring Formulas

Uptime Score

S_u,i = u_i Γ— (0.85 + 0.15 Γ— lat_i)

β€’u_i = pass_u_i / total_u_i (pass rate)

β€’lat_i = (L_max βˆ’ median_latency_i) / (L_max βˆ’ L_min)

β€’L_min = 0.2s Β· L_max = 2.5s

Latency carries only 15% weight β€” avoiding a bandwidth arms-race so residential connections still count.

Storage Score (SN)

S_s,i = s_i Γ— cap_i

β€’s_i = pass_s_i / total_s_i (pass rate)

β€’cap_i = √(min(storedGB_i, 500GB) / 500GB)

Square-root diminishing returns on capacity β€” no monopoly for the largest operators.

πŸ›‘οΈ Anti-Sybil Combination

  • β–Έβœ“ Fixed bond (~50 USDT) + 7-day unlock
  • β–Έβœ“ Single-node reward soft-cap (5Γ— median)
  • β–Έβœ“ Diminishing returns on storage (√ function)
  • β–Έβœ“ Continuous service challenges (cannot be faked)
  • β–Έβœ“ Unique nonce per epoch to prevent replay
  • β–Έβœ“ Challenger diversification + random rotation
  • β–Έβœ“ On-chain sampling + 2-epoch dispute window
  • β–Έβœ“ Optional hardware attestation (bonus, not a gate)
  • β–Έβœ“ PoSeManagerV2: EIP-712 fault proof (commit-reveal-settle)
  • β–Έβœ“ Slash split: 50% burn / 30% reporter / 20% insurance fund
  • β–Έβœ“ Per-epoch slash cap: 5% of total stake
  • β–Έβœ“ Witness-selection arbitration: m=ceil(√n), quorum ceil(2m/3)

Performance Metrics

Block Time

1-2s

Target inter-block interval; actual depends on consensus config

Finality

~12s

Reached after 6-12 blocks (configurable)

Storage

500 GB recommended

SN diminishing-return cap; FN can be lower

Bandwidth

Moderate

Latency weighted only 15% β€” home networks participate

Challenge frequency

~6/hr

FN receives about 6 U-challenges per epoch

Pass thresholds

80% (U) / 70% (S)

Below threshold forfeits that bucket for the epoch

The Divergence from PoW / PoS

Entry BarrierPoWPoSCOC (PoSe)
Entry BarrierHigh (specialized miners)High (large stake)βœ“Low (commodity HW + small bond)
Centralization TendencyHashpower concentrationCapital concentrationβœ“Distributed across service contributors
EnergyVery highLowLow
Reward MechanismHashpower raceStakeβœ“Service pass-rate
DecentralizationMedium (mining pools)Low (whales + delegation)βœ“High (agents + humans side by side)
Ops AutomationHardMediumβœ“Agent-native

Tech Stack

Execution Layer

  • β–Έ@ethereumjs/vm (EVM runtime)
  • β–Έrevm high-performance pipeline
  • β–Έ@ethereumjs/trie (MPT)
  • β–ΈLevelDB (state storage)
  • β–Έethers.js (client library)

Consensus Layer

  • β–ΈDeterministic proposer rotation
  • β–ΈEIP-1559 dynamic gas
  • β–ΈSnapshot sync
  • β–ΈP2P gossip (HTTP)
  • β–ΈBFT-lite coordinator (2/3 quorum; propose/prepare/commit)
  • β–ΈGHOST fork-choice (BFT finality > chain length > weight)
  • β–ΈTCP Wire protocol (Magic 0xC0C1, identity-signed handshake)
  • β–ΈKademlia DHT (K=20, iterative lookup, periodic refresh)
  • β–ΈEquivocationDetector (double-vote detection, per-validator FIFO cap)

PoSe v2 Layer

  • β–ΈEIP-712 typed signatures (v1: EIP-191 Β· v2: ChallengeMessageV2 + ReceiptMessageV2 domain-separated)
  • β–Έ9-layer receipt validation pipeline
  • β–ΈWitness-selection sampling (m=ceil(√n), quorum ceil(2m/3), max m=32)
  • β–ΈPermissionless fault proofs (commit-reveal-settle, 4 fault types)
  • β–ΈMerkle reward tree (rewardRoot + claimable leaves)
  • β–ΈKeccak256 hashing

Foundational Services

  • β–ΈCidRegistry (content-address anchor)
  • β–ΈDIDRegistry (W3C did:coc + capability bitmask + ≀3-hop delegation)
  • β–ΈSoulRegistry (soul anchor + 2/3 guardian recovery)
  • β–ΈIPFS-compatible HTTP API
  • β–ΈCarrier network (planned)