Theseus is built on a three-layer architecture designed specifically for AI workloads, combining execution, storage, and consensus in a unified system.
Deterministic, tensor-native execution of inference transactions via Tensor Commits. The AIVM handles:
Chunked, erasure-coded storage and retrieval of immutable model weights and mutable agent contexts:
Block ordering and state finalization with AI-specific enhancements:
A block cannot finalize unless both conditions hold:
Theseus requires a native, first-class on-chain storage of model weights and agent context. TheseusStore is the Agent Availability Layer for Theseus, handling gigabytes of data per model.
Model weights are immutable and addressed through content hash. Storage process:
Agent contexts are mutable and need quick retrieval:
Agents use a dual-ledger pattern for state management:
Critical variables (balances, last model versions, config flags) live directly inside the agent's state root
Bulky context data (PDFs, embeddings, RAG logs) stored in TheseusStore with periodic memory anchors
Agents sync states over libp2p, keeping replicas consistent without global locks via last-write-wins plus optional semantic merge
Provers run the heavy work—full forward passes—and are selected via VRF lottery based on capacity:
Every verifier in the active set verifies every single inference:
With honest-stake fraction h and n eligible provers for a given model:
Even h = 0.33 and n = 10 gives ≥ 98% probability that at least one honest prover is chosen, ensuring high availability for inference requests.
Developer uploads weights (with model's Tensor Commit) to TheseusStore
User (human or agent) submits {modelRoot, input, maxGas} to AIVM
Validator packages model and inference TXs and includes latest TheseusStore root
AIVM runs the model and emits a Tensor Commit receipt
PoS finalizes the block; TheseusStore miners pin any new context/model shards
All three processes communicate over gRPC/libp2p channels. A common block header carries the state root, the model-set Merkle root, and batched AIVM/Tensor commit receipts, ensuring that execution, storage, and consensus stay cryptographically coupled.
This architecture ensures that agent logic remains stateful, verifiable, and decentralized—the three pillars enabling true AI sovereignty on Theseus.