Skip to content

Releases

v0.3.0 - Multi-Backend Capstone Release

Choose a tag to compare

@nerdsane nerdsane released this 11 Jan 21:45

Bloodhound v0.3.0 - Multi-Backend Capstone Release

This release introduces Bloodhound's pluggable backend architecture with four determinism mechanisms working together. Each backend is optimal for different bug types.

🎯 Key Innovation: Not Just Hypervisors

Bloodhound uses multiple determinism mechanisms, not just traditional hypervisors:

Backend Mechanism Speed Best For
Simulated In-process actors 33,456 iter/sec Fast iteration, logic bugs
Hermit ptrace + PMU 10-50x slower Thread race detection
gVisor DST Userspace kernel 2-5x slower Disk/network faults
QEMU TCG Full emulation 100-1000x slower Complete system determinism

✅ Capstone Test Results

All 5 scenarios pass with 4 backends working together:

  • Scenario 1: Thread race detection (Hermit) - deterministic goroutine scheduling
  • Scenario 2: Disk fault resilience (gVisor DST) - 17 corruptions detected in buggy store
  • Scenario 3: Network partition recovery (Simulated) - fast split-brain exploration
  • Scenario 4: Full determinism proof (QEMU TCG) - identical seed initialization
  • Scenario 5: Fast iteration (Simulated) - 33,456 iterations/second

🔧 gVisor DST Improvements

  • Added fault hooks to pread64, preadv, preadv2, pwrite64, pwritev, pwritev2
  • FD filtering (0-2) protects stdio while allowing application file faults
  • Deterministic xorshift64 RNG for reproducible fault patterns
  • Config propagation via ToFlags() to child processes

🍴 Backend Forks

All forks rebased to upstream (2026-01-11):

📖 Documentation

  • Updated ADR-005 (Execution Modes) with multi-backend validation
  • Updated ADR-009 (gVisor DST Integration) with pread/pwrite hooks
  • Comprehensive capstone README with test results

🚀 Quick Start

```bash

Run capstone demo (all backends)

cd examples/multi-backend-capstone
./run_demo.sh --all

Or individual backends

./run_demo.sh --scenario 01-thread-race --backend hermit
./run_demo.sh --scenario 02-disk-faults --backend gvisor
```


Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@nerdsane nerdsane released this 10 Jan 02:56

What's New

OCI Image Integration

  • Pull images directly from OCI registries without Docker daemon (--oci flag)
  • Layer-level caching by sha256 digest for efficient multi-image pulls
  • --disk SERVICE=PATH flag for pre-built disk images (skip translation entirely)
  • Pure Rust implementation using oci-distribution crate

Registry Authentication

  • Read credentials from ~/.docker/config.json
  • Support for Docker Hub, ghcr.io, gcr.io, and other OCI registries
  • Docker Hub hostname variant handling (docker.io, index.docker.io)
  • Automatic fallback to anonymous auth when no credentials found

Container Auto-Translation

  • Automatic Docker container to VM disk translation
  • Digest-based caching for efficient rebuilds
  • Overlay support for copy-on-write changes per seed

Property Checking System

  • YAML-configured property triggers in bloodhound.yaml
  • Script, HTTP, and file-based property checks
  • Integrated with SimulationCoordinator step execution

Discrete-Event Simulation

  • Fast simulation engine for CI pipelines
  • Process, disk, timer, and network simulator actors
  • Deterministic scheduling for reproducible tests

Performance Improvements

  • Parallel exploration for multi-seed testing
  • TCG optimizations and adaptive time stepping
  • Layer caching reduces image pull times significantly

Installation

# Clone and build
git clone https://github.com/nerdsane/bloodhound.git
cd bloodhound
cargo build --release

Quick Start

# Pull from OCI registry (no Docker needed)
bloodhound explore --async-vm --oci --compose docker-compose.yml

# Use pre-built disk images
bloodhound explore --async-vm --disk myservice=/path/to/disk.qcow2 --compose docker-compose.yml

# Pull private images (after docker login)
docker login ghcr.io
bloodhound explore --async-vm --oci --compose private-compose.yml

Full Changelog

v0.1.0...v0.2.0

Bloodhound v0.1.0

Choose a tag to compare

@nerdsane nerdsane released this 08 Jan 19:20

First release of Bloodhound - a deterministic simulation testing platform
for distributed systems.

Highlights

  • Actor-based simulation architecture with TimeActor, FaultActor, VmActor,
    WorkloadActor, and EventCollectorActor
  • Deterministic execution via patched QEMU with seeded PRNG
  • Fault injection including network partitions, process crashes, disk faults
  • Property checking with Safety, Liveness, and Invariant properties
  • BUGGIFY-style probabilistic fault injection macros
  • Time-travel debugging with snapshot/restore support
  • Docker Compose integration for defining system topology

Commands

  • bloodhound test - Run deterministic simulation tests
  • bloodhound explore - Explore state space with multiple seeds
  • bloodhound debug - Debug failures with time-travel
  • bloodhound replay - Replay execution traces
  • bloodhound verify - Verify determinism across runs

Platform Support

Linux x86_64 (Fully Tested)

  • Full support for real VM mode with QEMU/KVM
  • Harness/simulation mode for unit testing
  • All 296 unit tests + 44 integration tests passing

macOS (Harness Mode Only)

  • Harness/simulation mode works (unit tests pass)
  • Real VM mode (--async-vm) is UNTESTED and likely requires:
    • QEMU built with HVF (Hypervisor.framework) support
    • Different VM configuration
  • Use --actor-mode without --async-vm for simulation testing

Known Limitations

  • Real VM execution only tested on Linux with KVM
  • Patched QEMU fork (nerdsane/qemu) only built for Linux
  • macOS real VM support is experimental

Installation

Download the appropriate binary for your platform from the assets below, or build from source:

cargo install --git https://github.com/nerdsane/bloodhound