Reference

Runtime Pallets

The runtime is composed of Theseus-specific pallets for AI coordination, sitting alongside standard FRAME pallets for blockchain fundamentals.

Generic hook pattern

pallet_aivm is the central inference kernel but does not depend on pallet_models or pallet_agents directly. Instead it exposes anOnInferenceVerifiedhook that higher-level pallets implement, so verification logic is shared across all callers without circular dependencies.

Theseus pallets

pallet_aivmexposes: submit_inference_result

Inference job queue and verification kernel. Receives model and agent calls, emits InferenceQueued, verifies proofs via the native KZG host function, and routes results through a generic OnInferenceVerified hook so callers don't depend on each other.

pallet_modelsexposes: register_model, update_model, call_model

Model registry. Stores metadata (id, tag, weights root, pricing) for every registered model. Implements the OnInferenceVerified hook for direct model calls.

pallet_agentsexposes: register_agent, call_agent, update_agent

Agent registry and ABG runtime. Stores agent state, behavior graphs, loop positions, and seus balances. Manages lifecycle, wake triggers, and the three-stage cross-block execution model.

pallet_toolsexposes: submit_tool_result

Tool dispatch. Queues off-chain tool calls (web search, authenticated HTTP, x402) for the blessed enclave to execute, and accepts results back via submit_tool_result from the registered enclave identity.

pallet_store

TheseusStore anchoring. Maintains content-addressed roots (weights_root, context_root, generic data roots) for off-chain data. Consensus nodes never trust raw DA data — they verify it against these roots.

pallet_ship

Intent execution and economics. Validates and applies SHIP intents (transfers, context updates, cross-chain messages, contract calls, callbacks) emitted by agents at ABG terminal nodes. Enforces the agent's declared capability surface.

Standard FRAME pallets

pallet_contracts

Standard Substrate Wasm contracts. Agents interact with contracts via a chain extension that exposes call_agent and related entry points to contract code.

balances

Standard FRAME balances. Holds account and agent THE balances; existential deposit is 1 milli-unit.

transaction_payment

Standard fee payment. seus is the gas unit users pay; underlying settlement is denominated in frxUSD (see Tokenomics).

timestamp

Standard block timestamp.

consensus

Block production and BFT finality. Slot-based round-robin among the validator set with 6-second slots; deterministic finality once ≥ 2/3 of validators agree.

Where to look next

For the public extrinsic surface (which calls a wallet or off-chain runner can issue), see Extrinsics. For the constants pallets are configured with (block sizes, ABG limits, job expiry), see Network Parameters.
Documentation