Introduction
Cowboy is a Layer 1 blockchain designed from the ground up for autonomous agents and verifiable off-chain computation. This document provides a high-level overview of the system architecture.Note: Examples and names shown in this page (including diagrams) are conceptual and illustrative. Final interfaces and usage should follow the SDK and Developer Guide; CIP specifications define normative protocol behaviors.
System Architecture

Core Components
1. Actor VM (Python Runtime)
Purpose: Execute actor (smart contract) code deterministically Key Features:- Python bytecode interpreter (no JIT)
- Deterministic execution (no system calls, software FPU)
- Dual-metered gas (Cycles for compute, Cells for data)
- Sandboxed environment (no I/O, no network)
Note: Host function names shown in the diagram (e.g., storage.get/set, send_message, set_timeout, submit_task) are conceptual placeholders. Refer to the SDK and Developer Guide for the authoritative API surface.See: Actor VM Overview
2. Consensus Layer (HotStuff BFT)
Purpose: Achieve agreement on block ordering and finality Key Features:- Byzantine Fault Tolerant (BFT)
- Deterministic finality (no reorgs)
- Leader-based block proposal
- Quorum certificates (QC) for votes
- Safety: No forks (deterministic finality)
- Liveness: Progress guaranteed with 2/3+ honest validators
3. Dual-Metered Gas System
Purpose: Fair resource pricing for compute and data Architecture:- Each resource has its own basefee
- Basefees adjust independently (dual EIP-1559)
- Prevents cross-subsidization
4. Timer Scheduler (CIP-1)
Purpose: Native timer scheduling with autonomous execution Architecture:- Actor schedules a timer (conceptual API; CIP-1 requires specifying a Gas Bidding Agent)
- Timer stored in calendar queue
- At trigger block:
- Query GBA for bid
- Add to priority queue
- Execute highest bids first (within budget)
5. Off-Chain Compute (CIP-2)
Purpose: Verifiable execution of AI models, API calls, heavy computation Architecture:Transaction Lifecycle
State Organization
σ' = STF(σ, B) where B is block
Network Layer
P2P Network:- Gossip protocol for transaction propagation
- Block proposal distribution
- Vote (QC) aggregation
- State synchronization
- Validator: Participates in consensus, proposes/validates blocks
- Full Node: Stores full state, serves queries
- Light Client: Only block headers, verifies proofs
- Runner: Executes off-chain tasks (not part of consensus)
Storage Layer
Components:-
State Storage:
- Merkleized key-value store
- Key: account/actor address + storage key
- Value: serialized data
- Root hash in block header
-
Block Storage:
- Sequential blocks
- Headers + transactions
- Indexed by height and hash
-
Transaction Log:
- All transactions (historical)
- Receipts with events
- Queryable by hash, block, address
-
Archive Node (optional):
- Full historical state
- Every block’s complete state
- For queries like “balance at block X”
Security Model
Threat Model:- Byzantine validators (up to 1/3)
- Malicious actors (smart contracts)
- DoS attacks (computational, storage)
- Network attacks (eclipse, Sybil)
-
Consensus Security:
- BFT tolerance (2/3+ honest required)
-
VM Security:
- Sandboxed execution (no I/O)
- Resource limits (cycles, cells, memory)
- Deterministic execution (no non-determinism)
-
Gas Economics:
- Dual-metered prevents abuse
- Basefee burn (anti-spam)
- Priority market (fair access)
-
Off-Chain Security:
- VRF-based selection (no coordinator)
- Configurable verification requirements (per CIP-2)
- Economic incentives (per application design)
Performance and Governance
Performance metrics, governance processes, and network parameters are implementation-dependent and subject to change. Refer to authoritative releases and CIPs for normative updates when available.Next Steps
Actor VM Deep Dive
Learn how Python execution works
Fee Model
Understand dual-metered gas
Scheduler
Native timer system (CIP-1)
Off-Chain Compute
Verifiable computation (CIP-2)

