Crawler Summary

substrate answer-first brief

Substrate: tick-based runtime for persistent AI agent civilizations. Built with CrewAI/DeepSeek. <p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%231A1B27"> <img alt="Substrate" src="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%23333" width="360"> </picture> </p> <p align="center"> <b>Tick-based async Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.

Freshness

Last checked 10/9/2026

Best For

substrate is best for crewai, multi-agent workflows where OpenClaw compatibility matters.

Not Ideal For

Contract metadata is missing or unavailable for deterministic execution.

Evidence Sources Checked

editorial-content, GITHUB REPOS, runtime-metrics, public facts pack

Agent DossierGITHUB REPOSSafety: 66/100

substrate

Substrate: tick-based runtime for persistent AI agent civilizations. Built with CrewAI/DeepSeek. <p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%231A1B27"> <img alt="Substrate" src="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%23333" width="360"> </picture> </p> <p align="center"> <b>Tick-based async

OpenClawself-declared

Public facts

4

Change events

1

Artifacts

0

Freshness

Oct 9, 2026

Verifiededitorial-contentNo verified compatibility signals

Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.

Trust evidence available

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Oct 9, 2026

Vendor

Abhinavcse22

Artifacts

0

Benchmarks

0

Last release

Unpublished

Executive Summary

Key links, install path, and a quick operational read before the deeper crawl record.

Verifiededitorial-content

Summary

Capability contract not published. No trust telemetry is available yet. Last updated 10/9/2026.

Setup snapshot

  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence Ledger

Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.

Verifiededitorial-content
Vendor (1)

Vendor

Abhinavcse22

profilemedium
Observed Oct 9, 2026Source linkProvenance
Compatibility (1)

Protocol compatibility

OpenClaw

contractmedium
Observed Oct 9, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Release & Crawl Timeline

Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.

Self-declaredagent-index

Artifacts Archive

Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.

Self-declaredGITHUB REPOS

Extracted files

0

Examples

6

Snippets

0

Languages

python

Executable Examples

mermaid

%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '13px', 'primaryColor': '#4a90d9', 'edgeLabelBackground': '#ffffff', 'tertiaryColor': '#f5f5f5'}}}%%
flowchart TB
    subgraph TEL["Telemetry &amp; Logging"]
        M1["πŸ“Š Metrics Export"]
        M2["πŸ“ Structured Logging"]
        M3["πŸ” Trace Collection"]
    end

    subgraph HIGH["Higher-Layer Systems"]
        CIV["πŸ›οΈ Civilization<br/>Agent Model Β· World State"]
        ECO["πŸ’° Economy<br/>Energy Β· Resources Β· Trade"]
        SOC["πŸ‘₯ Social<br/>Messaging Β· Alliances Β· Reputation"]
    end

    subgraph MEM["Memory Systems"]
        MEM1["πŸ’Ύ Episodic Memory"]
        MEM2["🧠 Semantic Memory"]
        MEM3["⏳ Aging &amp; Decay"]
        MEM4["🧬 Inheritance"]
    end

    subgraph EVO["Evolution &amp; Tools"]
        EVO1["πŸ§ͺ Evolution<br/>Reproduction Β· Mutation Β· Lineage"]
        EVO2["πŸ”§ Tools<br/>Creation Β· Adoption Β· Diffusion"]
    end

    subgraph CORE["Core Runtime"]
        EB["πŸ“¨ Event Bus<br/>Pub/Sub Β· Topics Β· Replay"]
        RT["βš™οΈ Runtime Engine<br/>Tick Loop Β· Lifecycle Β· Registry"]
        SCH["⏱️ Tick Scheduler<br/>10 Hz · Pause/Resume · Hooks"]
        REG["πŸ“‹ Agent Registry<br/>Identity Β· Status Β· Heartbeat"]
        REC["πŸ›‘οΈ Recovery System<br/>Checkpoints Β· Deltas Β· Restore"]
    end

    subgraph PERS["Persistence Layer"]
        SQL["πŸ—„οΈ SQLite Backend<br/>WAL Mode Β· Migrations Β· Connection Pool"]
    end

    CORE --> PERS
    HIGH --> CORE
    MEM --> HIGH
    EVO --> HIGH
    TEL -.-> CORE
    TEL -.-> HIGH
    TEL -.-> MEM

    style TEL fill:#e8f4f8,stroke:#4a90d9,stroke-width:2px
    style HIGH fill:#f0f0ff,stroke:#6c63ff,stroke-width:2px
    style MEM fill:#fff3e0,stroke:#ff9800,stroke-width:2px
    style EVO fill:#e8f5e9,stroke:#4caf50,stroke-width:2px
    style CORE fill:#fce4ec,stroke:#e91e63,stroke-width:2px
    style PERS fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px

text

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚                    DESIGN PRINCIPLES                         β”‚
  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  β”‚  πŸ”  Restartability     Every subsystem can init/shutdown/  β”‚
  β”‚                          save/load at any point              β”‚
  β”‚                                                              β”‚
  β”‚  πŸ›‘οΈ  Crash Resilience   At most N ticks of work lost        β”‚
  β”‚                          on process termination               β”‚
  β”‚                                                              β”‚
  β”‚  πŸ“¨  Event-Driven       All communication through Event Bus β”‚
  β”‚                          = full audit trail + replay          β”‚
  β”‚                                                              β”‚
  β”‚  βš™οΈ  Async-First        Built on asyncio throughout          β”‚
  β”‚                                                              β”‚
  β”‚  πŸ”¬  Quantitative       Every run produces metrics for       β”‚
  β”‚                          specialization, entropy, trade, ...  β”‚
  β”‚                                                              β”‚
  β”‚  🧩  Pluggable          Persistence, telemetry exporters,    β”‚
  β”‚                          all follow abstract protocols        β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

text

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  TICK N                          β”‚
β”‚                                                   β”‚
β”‚  1. PRE-TICK ──► Persistence health check         β”‚
β”‚                   Clock synchronization            β”‚
β”‚                                                    β”‚
β”‚  2. AGENTS ────► Each active agent receives        β”‚
β”‚                   time slice proportional to       β”‚
β”‚                   available energy                  β”‚
β”‚                                                    β”‚
β”‚  3. WORLD ─────► Environment update                β”‚
β”‚                   Resource regeneration             β”‚
β”‚                   Decay processes                   β”‚
β”‚                                                    β”‚
β”‚  4. EVENTS ────► Flush all pending events          β”‚
β”‚                   Deliver to subscribers            β”‚
β”‚                                                    β”‚
β”‚  5. POST-TICK ──► Metrics collection                β”‚
β”‚                    Checkpoint decision              β”‚
β”‚                    (configurable interval)          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

text

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚  SPAWNED β”‚
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜
          β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”
     β”‚  ACTIVE  │◄────────────┐
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜             β”‚
          β”‚                   β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
     β”‚  SUSPENDED │────►│  ACTIVE   β”‚
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚  TERMINATED  β”‚
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚  ARCHIVED   β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

text

Checkpoint Interval ──► Full state snapshot (atomic SQLite transaction)
    β”‚
    β–Ό
Between Checkpoints ──► Every tick's state changes recorded as delta log
    β”‚
    β–Ό
On Restart ──► Find most recent valid checkpoint
               Verify checksum
               Apply deltas in order
               Resume from last complete tick

text

crewAI/
β”œβ”€β”€ core/                        # Substrate simulation runtime
β”‚   β”œβ”€β”€ events/bus.py           # Async pub/sub event bus
β”‚   β”œβ”€β”€ logging/                # Structured JSON logger
β”‚   β”œβ”€β”€ persistence/store.py    # Abstract persistence interface
β”‚   β”œβ”€β”€ recovery/system.py      # Crash detection & restoration
β”‚   β”œβ”€β”€ registry/               # Agent identity & lifecycle
β”‚   β”œβ”€β”€ runtime/engine.py       # Main tick loop & subsystem orchestration
β”‚   β”œβ”€β”€ scheduler/              # Configurable tick generator
β”‚   └── telemetry/              # Metrics pipeline & exporters
β”‚
β”œβ”€β”€ storage/                     # Persistence implementations
β”‚   β”œβ”€β”€ sqlite/backend.py       # SQLite with WAL mode & pooling
β”‚   └── migrations/             # Schema version management
β”‚
β”œβ”€β”€ config/                      # 3-tier configuration system
β”‚   └── settings.py             # YAML β†’ local β†’ env var (Pydantic)
β”‚
β”œβ”€β”€ civilization/                # Agent model & world environment (planned)
β”œβ”€β”€ economy/                     # Energy, resources, trade (planned)
β”œβ”€β”€ memory/                      # Episodic/semantic memory (planned)
β”œβ”€β”€ evolution/                   # Reproduction & mutation (planned)
β”œβ”€β”€ social/                      # Messaging & alliances (planned)
β”œβ”€β”€ tools/                       # Tool creation & diffusion (planned)
β”œβ”€β”€ research/                    # Metric computation (planned)
β”‚
β”œβ”€β”€ tests/                       # Test suite (60+ tests, 9 test modules)
β”‚   β”œβ”€β”€ test_event_bus.py       # Event bus functionality
β”‚   β”œβ”€β”€ test_runtime.py         # Runtime engine lifecycle
β”‚   β”œβ”€β”€ test_persistence.py     # In-memory & SQLite backends
β”‚   β”œβ”€β”€ test_registry.py        # Agent registry operations
β”‚   β”œβ”€β”€ test_scheduler.py       # Tick scheduling
β”‚   └── ...                     # Telemetry, recovery, logger, config
β”‚
β”œβ”€β”€ lib/                         # CrewAI production packages
β”‚   β”œβ”€β”€ crewai/                 # Multi-agent orchestration framework
β”‚   β”œβ”€β”€ crewai-core/            # Shared 

Docs & README

Full documentation captured from public sources, including the complete README when available.

Self-declaredGITHUB REPOS

Docs source

GITHUB REPOS

Editorial quality

ready

Substrate: tick-based runtime for persistent AI agent civilizations. Built with CrewAI/DeepSeek. <p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%231A1B27"> <img alt="Substrate" src="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%23333" width="360"> </picture> </p> <p align="center"> <b>Tick-based async

Full README
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%231A1B27"> <img alt="Substrate" src="https://img.shields.io/badge/SUBSTRATE-%23000000.svg?style=for-the-badge&logo=python&logoColor=white&labelColor=%23333" width="360"> </picture> </p> <p align="center"> <b>Tick-based async simulation runtime for persistent AI agent civilizations</b> </p> <p align="center"> <a href="https://www.python.org/downloads/release/python-3110/"><img src="https://img.shields.io/badge/python-3.11%2B-blue?logo=python&logoColor=white&labelColor=%232b2b2b" alt="Python 3.11+"></a> <a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?labelColor=%232b2b2b" alt="MIT License"></a> <a href="https://github.com/joaomdmoura/crewAI"><img src="https://img.shields.io/badge/monorepo-crewAI_1.14-%23FF6B6B?labelColor=%232b2b2b" alt="Part of crewAI monorepo"></a> <a href="./ARCHITECTURE.md"><img src="https://img.shields.io/badge/arch-layered-blueviolet?labelColor=%232b2b2b" alt="Layered Architecture"></a> <img src="https://img.shields.io/badge/coverage-39%25-yellow?labelColor=%232b2b2b" alt="Coverage 39%"> <a href="./CONTRIBUTING.md"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen?labelColor=%232b2b2b" alt="Contributions Welcome"></a> </p> <p align="center"> <a href="#-architecture">Architecture</a> β€’ <a href="#-core-subsystems">Core Subsystems</a> β€’ <a href="#-crash-recovery">Crash Recovery</a> β€’ <a href="#-getting-started">Getting Started</a> β€’ <a href="#-project-structure">Project Structure</a> β€’ <a href="#-roadmap">Roadmap</a> β€’ <a href="#-research">Research</a> </p>

Overview

Substrate is the simulation engine at the heart of the crewAI monorepo. It provides a production-grade, tick-based async runtime for studying how populations of AI agents develop civilization-scale behaviors β€” specialization, trade, tool innovation, memory persistence, social networks, and evolutionary dynamics.

The platform is designed for long-duration experiments (24–72 hours) with crash resilience, deterministic replay, and quantitative metric extraction. Every subsystem exposes initialize(), shutdown(), save_state(), and load_state() β€” making the entire runtime restartable and survivable.

%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '13px', 'primaryColor': '#4a90d9', 'edgeLabelBackground': '#ffffff', 'tertiaryColor': '#f5f5f5'}}}%%
flowchart TB
    subgraph TEL["Telemetry &amp; Logging"]
        M1["πŸ“Š Metrics Export"]
        M2["πŸ“ Structured Logging"]
        M3["πŸ” Trace Collection"]
    end

    subgraph HIGH["Higher-Layer Systems"]
        CIV["πŸ›οΈ Civilization<br/>Agent Model Β· World State"]
        ECO["πŸ’° Economy<br/>Energy Β· Resources Β· Trade"]
        SOC["πŸ‘₯ Social<br/>Messaging Β· Alliances Β· Reputation"]
    end

    subgraph MEM["Memory Systems"]
        MEM1["πŸ’Ύ Episodic Memory"]
        MEM2["🧠 Semantic Memory"]
        MEM3["⏳ Aging &amp; Decay"]
        MEM4["🧬 Inheritance"]
    end

    subgraph EVO["Evolution &amp; Tools"]
        EVO1["πŸ§ͺ Evolution<br/>Reproduction Β· Mutation Β· Lineage"]
        EVO2["πŸ”§ Tools<br/>Creation Β· Adoption Β· Diffusion"]
    end

    subgraph CORE["Core Runtime"]
        EB["πŸ“¨ Event Bus<br/>Pub/Sub Β· Topics Β· Replay"]
        RT["βš™οΈ Runtime Engine<br/>Tick Loop Β· Lifecycle Β· Registry"]
        SCH["⏱️ Tick Scheduler<br/>10 Hz · Pause/Resume · Hooks"]
        REG["πŸ“‹ Agent Registry<br/>Identity Β· Status Β· Heartbeat"]
        REC["πŸ›‘οΈ Recovery System<br/>Checkpoints Β· Deltas Β· Restore"]
    end

    subgraph PERS["Persistence Layer"]
        SQL["πŸ—„οΈ SQLite Backend<br/>WAL Mode Β· Migrations Β· Connection Pool"]
    end

    CORE --> PERS
    HIGH --> CORE
    MEM --> HIGH
    EVO --> HIGH
    TEL -.-> CORE
    TEL -.-> HIGH
    TEL -.-> MEM

    style TEL fill:#e8f4f8,stroke:#4a90d9,stroke-width:2px
    style HIGH fill:#f0f0ff,stroke:#6c63ff,stroke-width:2px
    style MEM fill:#fff3e0,stroke:#ff9800,stroke-width:2px
    style EVO fill:#e8f5e9,stroke:#4caf50,stroke-width:2px
    style CORE fill:#fce4ec,stroke:#e91e63,stroke-width:2px
    style PERS fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px

Design Principles

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚                    DESIGN PRINCIPLES                         β”‚
  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  β”‚  πŸ”  Restartability     Every subsystem can init/shutdown/  β”‚
  β”‚                          save/load at any point              β”‚
  β”‚                                                              β”‚
  β”‚  πŸ›‘οΈ  Crash Resilience   At most N ticks of work lost        β”‚
  β”‚                          on process termination               β”‚
  β”‚                                                              β”‚
  β”‚  πŸ“¨  Event-Driven       All communication through Event Bus β”‚
  β”‚                          = full audit trail + replay          β”‚
  β”‚                                                              β”‚
  β”‚  βš™οΈ  Async-First        Built on asyncio throughout          β”‚
  β”‚                                                              β”‚
  β”‚  πŸ”¬  Quantitative       Every run produces metrics for       β”‚
  β”‚                          specialization, entropy, trade, ...  β”‚
  β”‚                                                              β”‚
  β”‚  🧩  Pluggable          Persistence, telemetry exporters,    β”‚
  β”‚                          all follow abstract protocols        β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Core Subsystems

Every major subsystem follows the LifecycleProtocol contract β€” call initialize() once, use it, call shutdown(). Save and restore complete state at any point.

| Subsystem | Module | Responsibility | |-----------|--------|---------------| | Runtime Engine | core/runtime/engine.py | Main tick loop. Manages lifecycle of all subsystems. Async pause/resume, signal handling, state checkpointing. | | Event Bus | core/events/bus.py | Typed pub/sub with glob pattern matching, priority levels, per-subscriber filters, full event history replay. | | Tick Scheduler | core/scheduler/tick_scheduler.py | Configurable tick generator (default 10 Hz). Pre/post tick hooks, pause/resume, serializable state. | | Agent Registry | core/registry/agent_registry.py | Central identity tracker. Register/unregister, heartbeat, status transitions (SPAWNED β†’ ACTIVE β†’ SUSPENDED β†’ TERMINATED β†’ ARCHIVED), filtering by type/status. | | Persistence | core/persistence/store.py | Abstract backend interface. save / load / delete / list_keys. | | SQLite Backend | storage/sqlite/backend.py | WAL mode, 5-connection pool, auto-migrations, tuned PRAGMAs for concurrent read/write. | | Recovery System | core/recovery/system.py | Crash detection, snapshot management, event replay for state reconstruction. | | Telemetry Pipeline | core/telemetry/pipeline.py | Metric batching, pluggable exporters (Console, CSV, JSON, Parquet, Prometheus), auto-flush on interval or batch size. | | Structured Logger | core/logging/structured_logger.py | JSON-structured logging with severity levels, correlation IDs, rotating file handler. |

Tick Loop

Each tick executes in a deterministic sequence:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  TICK N                          β”‚
β”‚                                                   β”‚
β”‚  1. PRE-TICK ──► Persistence health check         β”‚
β”‚                   Clock synchronization            β”‚
β”‚                                                    β”‚
β”‚  2. AGENTS ────► Each active agent receives        β”‚
β”‚                   time slice proportional to       β”‚
β”‚                   available energy                  β”‚
β”‚                                                    β”‚
β”‚  3. WORLD ─────► Environment update                β”‚
β”‚                   Resource regeneration             β”‚
β”‚                   Decay processes                   β”‚
β”‚                                                    β”‚
β”‚  4. EVENTS ────► Flush all pending events          β”‚
β”‚                   Deliver to subscribers            β”‚
β”‚                                                    β”‚
β”‚  5. POST-TICK ──► Metrics collection                β”‚
β”‚                    Checkpoint decision              β”‚
β”‚                    (configurable interval)          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Agent Lifecycle

Agents transition through a finite state machine:

     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚  SPAWNED β”‚
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜
          β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”
     β”‚  ACTIVE  │◄────────────┐
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜             β”‚
          β”‚                   β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
     β”‚  SUSPENDED │────►│  ACTIVE   β”‚
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚  TERMINATED  β”‚
     β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
     β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚  ARCHIVED   β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Crash Recovery

The platform is designed to survive process termination with minimal data loss. Recovery uses a checkpoint + delta strategy:

Checkpoint Interval ──► Full state snapshot (atomic SQLite transaction)
    β”‚
    β–Ό
Between Checkpoints ──► Every tick's state changes recorded as delta log
    β”‚
    β–Ό
On Restart ──► Find most recent valid checkpoint
               Verify checksum
               Apply deltas in order
               Resume from last complete tick

Guarantees:

  • At most checkpoint_interval + 1 ticks of work lost on crash
  • Checkpoint writes are atomic (SQLite transaction)
  • Recovery verified by checksum comparison
  • Falls back to previous valid checkpoint on failure

Event Topics

All inter-component communication flows through the Event Bus, enabling deterministic replay:

| Topic | Publisher | Purpose | |-------|-----------|---------| | agent.spawn | Registry | A new agent enters the simulation | | agent.act | Runtime | Agent performed an action | | agent.die | Runtime | Agent terminated | | social.message | Social | Agent-to-agent message | | social.alliance | Social | Alliance formed or dissolved | | economy.trade | Economy | Resource exchange between agents | | tool.create | Tools | New tool invented | | tool.adopt | Tools | Tool adopted by an agent | | tool.abandon | Tools | Tool abandoned |


Project Structure

crewAI/
β”œβ”€β”€ core/                        # Substrate simulation runtime
β”‚   β”œβ”€β”€ events/bus.py           # Async pub/sub event bus
β”‚   β”œβ”€β”€ logging/                # Structured JSON logger
β”‚   β”œβ”€β”€ persistence/store.py    # Abstract persistence interface
β”‚   β”œβ”€β”€ recovery/system.py      # Crash detection & restoration
β”‚   β”œβ”€β”€ registry/               # Agent identity & lifecycle
β”‚   β”œβ”€β”€ runtime/engine.py       # Main tick loop & subsystem orchestration
β”‚   β”œβ”€β”€ scheduler/              # Configurable tick generator
β”‚   └── telemetry/              # Metrics pipeline & exporters
β”‚
β”œβ”€β”€ storage/                     # Persistence implementations
β”‚   β”œβ”€β”€ sqlite/backend.py       # SQLite with WAL mode & pooling
β”‚   └── migrations/             # Schema version management
β”‚
β”œβ”€β”€ config/                      # 3-tier configuration system
β”‚   └── settings.py             # YAML β†’ local β†’ env var (Pydantic)
β”‚
β”œβ”€β”€ civilization/                # Agent model & world environment (planned)
β”œβ”€β”€ economy/                     # Energy, resources, trade (planned)
β”œβ”€β”€ memory/                      # Episodic/semantic memory (planned)
β”œβ”€β”€ evolution/                   # Reproduction & mutation (planned)
β”œβ”€β”€ social/                      # Messaging & alliances (planned)
β”œβ”€β”€ tools/                       # Tool creation & diffusion (planned)
β”œβ”€β”€ research/                    # Metric computation (planned)
β”‚
β”œβ”€β”€ tests/                       # Test suite (60+ tests, 9 test modules)
β”‚   β”œβ”€β”€ test_event_bus.py       # Event bus functionality
β”‚   β”œβ”€β”€ test_runtime.py         # Runtime engine lifecycle
β”‚   β”œβ”€β”€ test_persistence.py     # In-memory & SQLite backends
β”‚   β”œβ”€β”€ test_registry.py        # Agent registry operations
β”‚   β”œβ”€β”€ test_scheduler.py       # Tick scheduling
β”‚   └── ...                     # Telemetry, recovery, logger, config
β”‚
β”œβ”€β”€ lib/                         # CrewAI production packages
β”‚   β”œβ”€β”€ crewai/                 # Multi-agent orchestration framework
β”‚   β”œβ”€β”€ crewai-core/            # Shared utilities & telemetry
β”‚   β”œβ”€β”€ crewai-tools/           # 70+ tool integrations
β”‚   β”œβ”€β”€ crewai-cli/             # CLI for scaffolding & deployment
β”‚   └── crewai-files/           # File processing utilities
β”‚
β”œβ”€β”€ .github/workflows/          # 15 CI/CD pipelines
β”œβ”€β”€ ARCHITECTURE.md             # Complete system architecture
β”œβ”€β”€ ROADMAP.md                  # 5-phase development plan
β”œβ”€β”€ RESEARCH.md                 # Methodology & metrics
└── CONTRIBUTING.md             # Development standards

Development Velocity

 Repository Stats
 ─────────────────────────────────────────────
  Core modules       12  (core/ + storage/ + config/)
  Test files          9  (60+ individual tests)
  Python LOC      2,530  (core + storage + config + tests)
  CI workflows      15  (lint, type-check, test, publish, security)
  GitHub Actions   ~30  (jobs across all workflows)

Getting Started

# Install in development mode
pip install -e ".[dev]"

# Run the full test suite
pytest -v

# Run with coverage
pytest --cov=core --cov=storage --cov=config tests/

Configuration

Substrate uses a 3-tier configuration hierarchy:

# config/default.yaml
runtime:
  tick_rate_hz: 10
  max_ticks: null        # run indefinitely
  checkpoint_interval: 1000

persistence:
  backend: sqlite
  path: ~/.substrate/data.db

recovery:
  enabled: true
  max_loss_ticks: 1001   # checkpoint_interval + 1

Override via environment variables (all prefixed SUBSTRATE_*):

SUBSTRATE_RUNTIME_TICK_RATE_HZ=20 SUBSTRATE_PERSISTENCE_PATH=/tmp/test.db python -m substrate

Repository Map

| Directory | Package | Purpose | Maturity | |-----------|---------|---------|----------| | / | Substrate | Simulation runtime engine | 🟑 Early (v0.1.0) | | lib/crewai/ | crewai | Multi-agent orchestration | 🟒 Stable (v1.14) | | lib/crewai-tools/ | crewai-tools | 70+ tool integrations | 🟒 Stable | | lib/crewai-core/ | crewai-core | Shared runtime utilities | 🟒 Stable | | lib/crewai-cli/ | crewai-cli | CLI scaffolding & deploy | 🟒 Stable | | lib/crewai-files/ | crewai-files | File processing | 🟒 Stable |


Roadmap

 NOW ──► Phase 1: Persistent Agents          ●━━━━━━━━━━━━━━ 8-10 wks
          Core runtime Β· Event bus Β· Registry
          SQLite persistence Β· Crash recovery
          β”‚
          β–Ό Phase 2: Social Systems         ──●━━━━━━━━━━━ 6-8 wks
          Messaging Β· Alliances Β· Reputation
          Telemetry pipeline
          β”‚
          β–Ό Phase 3: Tool Evolution         ────●━━━━━━━━━ 6-8 wks
          Creation Β· Adoption networks
          Mutation engine Β· Lineage tracking
          β”‚
          β–Ό Phase 4: Civilization Metrics   ──────●━━━━━━ 4-6 wks
          Specialization index Β· Entropy
          Trade density Β· Lineage survival
          β”‚
          β–Ό Phase 5: Long-horizon Exp.      ────────●━━━━ 8-12 wks
          Multi-day runs Β· Intervention studies
          Replication packages Β· Published results

Detailed milestones in ROADMAP.md.


Research

Substrate includes a complete research infrastructure for conducting and publishing rigorous computational experiments.

Core Framework

| Component | Location | Purpose | |-----------|----------|---------| | Experiment Protocol | research/core/ | Base Experiment class, ExperimentConfig, lifecycle management, replication packaging | | Benchmarks | research/benchmarks/ | Registry of standardized benchmark suites for all 7 metrics | | Templates | research/templates/ | Reusable experiment configurations (baseline, social, tools, economy) | | Configurations | research/config/ | YAML configs for default, quick-test, and full-scale runs |

Curiosity Swarm

The research/curiosity_swarm/ module provides a multi-agent scientific investigation system that autonomously:

  1. Formulates hypotheses from a research question
  2. Designs and runs simulation experiments on the Substrate runtime
  3. Analyzes results with statistical rigor
  4. Critiques findings for biases and alternative explanations
  5. Composes publication-ready reports

Two team configurations:

  • 3-agent (minimal): HypothesisGenerator β†’ ExperimentalDesigner β†’ CriticalAnalyst
  • 7-agent (full): LiteratureSynthesizer β†’ HypothesisGenerator β†’ ExperimentalDesigner β†’ SimulationRunner β†’ StatisticalAnalyst β†’ CriticalReviewer β†’ ReportComposer

Discovery Swarm πŸš€

The research/discovery_swarm/ module provides a 7-agent end-to-end scientific discovery system for tackling hard research problems. Unlike the curiosity swarm (iterative hypothesis refinement), the Discovery Swarm executes a directed acyclic graph (DAG) workflow with parallel agent execution:

Orchestrator β†’ LiteratureScout β†’ HypothesisForge
                                         β”‚
                                    Parallel β”‚
                               β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                               β”‚              β”‚              β”‚
                         Critical       Simulation    Uncertainty
                         Reviewer       Engineer     Quantifier
                               β”‚              β”‚              β”‚
                               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                              β”‚
                                         Synthesis
                                         Architect
                                              β”‚
                                         Ranked Proposals

7 Agent Roles:

| Role | Phase | Responsibility | |------|-------|---------------| | Orchestrator | Planning | Decomposes question into sub-problems, defines success criteria | | Literature Scout | Research | Surveys knowledge, identifies constraints and open questions | | Hypothesis Forge | Ideation | Generates ranked candidate hypotheses with testable predictions | | Critical Reviewer | Evaluation | Rigorously critiques each hypothesis for flaws and alternatives | | Simulation Engineer | Simulation | Designs & runs Substrate experiments, collects metrics | | Uncertainty Quantifier | Evaluation | Bootstrap CIs, sensitivity analysis, robustness checks | | Synthesis Architect | Synthesis | Integrates everything into ranked, publication-ready proposals |

Every phase produces structured JSON output with a defined schema. The full mission record is saved as a reproducible, auditable artifact.

CLI:

# Launch a discovery mission
substrate launch-discovery-mission --question "Design a promising new room-temperature superconductor candidate"

# Launch with interactive prompt
substrate launch-discovery-mission --interactive

# Use the example script
python examples/discovery_mission.py

Programmatic API:

from research.discovery_swarm import DiscoveryMission

mission = DiscoveryMission(
    question="Design a room-temperature superconductor candidate",
    max_parallel_workers=3,
)
report = await mission.run()
report.save("superconductor_mission.json")

# Proposals are ranked with confidence scores
for p in report.final_proposals:
    print(f"[{p['confidence']}] {p['title'][:80]}")

Predefined Investigations

| Investigation | Question | Team | |--------------|----------|------| | hubble_tension | Resolve the Hubble constant tension | 7-agent | | dark_matter | Map dark matter distribution | 7-agent | | protein_folding | Predict protein tertiary structure | 3-agent |

CLI

# Launch a curiosity swarm investigation
substrate explore "Resolve the Hubble tension"

# Use full 7-agent team
substrate explore "Map dark matter distribution" --team-size 7 --max-ticks 20

# Run a predefined investigation template
substrate explore --template hubble_tension

# List available templates
substrate explore --list

Research Documents


Architecture

For the complete system design β€” every interface signature, event bus schema, database schema, and subsystem contract β€” see ARCHITECTURE.md.


<p align="center"> <sub>Built with ❀️ for the crewAI ecosystem · MIT License</sub> </p>

Contract & API

Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.

MissingGITHUB REPOS

Contract coverage

Status

missing

Auth

None

Streaming

No

Data region

Unspecified

Protocol support

OpenClaw: self-declared

Requires: none

Forbidden: none

Guardrails

Operational confidence: low

No positive guardrails captured.
Invocation examples
curl -s "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/trust"

Reliability & Benchmarks

Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.

Missingruntime-metrics

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

Do not use if

Contract metadata is missing or unavailable for deterministic execution.
No benchmark suites or observed failure patterns are available.

Media & Demo

Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.

Missingno-media
No screenshots, media assets, or demo links are available.

Related Agents

Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.

Self-declaredprotocol-neighbors
Github ReposUpdated 12h agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation β€’ (~400 MCP servers for AI agents) β€’ AI Automation / AI Agent with MCPs β€’ AI Workflows & AI Agents β€’ MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW
Machine Appendix

Contract JSON

{
  "contractStatus": "missing",
  "authModes": [],
  "requires": [],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": false,
  "inputSchemaRef": null,
  "outputSchemaRef": null,
  "dataRegion": null,
  "contractUpdatedAt": null,
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/snapshot",
    "contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/contract",
    "trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/trust"
  },
  "curlExamples": [
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/snapshot\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/contract\"",
    "curl -s \"https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_REPOS",
      "generatedAt": "2026-10-10T06:42:44.005Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "crewai",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "multi-agent",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}

Facts JSON

[
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Abhinavcse22",
    "href": "https://github.com/abhinavcse22/substrate",
    "sourceUrl": "https://github.com/abhinavcse22/substrate",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-10-09T20:19:41.073Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/contract",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-10-09T20:19:41.073Z",
    "isPublic": true
  },
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/trust",
    "sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-abhinavcse22-substrate/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub Β· GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to substrate and adjacent AI workflows.