Runtime Pallets
The runtime is composed of Theseus-specific pallets for AI coordination, sitting alongside standard FRAME pallets for blockchain fundamentals.
Generic hook pattern
OnInferenceVerifiedhook that higher-level pallets implement, so verification logic is shared across all callers without circular dependencies.Theseus pallets
pallet_aivmexposes: submit_inference_resultInference 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_modelModel 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_agentAgent 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_resultTool 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_storeTheseusStore 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_shipIntent 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_contractsStandard Substrate Wasm contracts. Agents interact with contracts via a chain extension that exposes call_agent and related entry points to contract code.
balancesStandard FRAME balances. Holds account and agent THE balances; existential deposit is 1 milli-unit.
transaction_paymentStandard fee payment. seus is the gas unit users pay; underlying settlement is denominated in frxUSD (see Tokenomics).
timestampStandard block timestamp.
consensusBlock 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