Marionette

Deterministic I/O and simulation testing library for Zig

Image 1 of 1: Marionette documentation home with its models, contracts and blog posts

Production-shaped code runs against std.Io under a seeded simulator for time, disk, network and scheduling. Tests inject crashes, torn writes and partitions, and a failure replays from its recorded decisions, configuration and trace.

Trade-offs

  • A library, not a runtime or framework. The composition root supplies explicit I/O authorities, and ordinary unit tests still belong in std.testing.
  • Replay holds for a fixed build. The same seed recreates the same execution only for a fixed build and workload.

Q&A3

expectSimPass records semantic choices on the first execution, exact-replays them on the second and compares traces. expectSimFuzz repeats that check across derived seeds.

Reviews

Loading reviews

    More in Distributed systems

    See all 20 →
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • clinkC++ stream processing engine that stays correct when processes die
    • pg-statusSidecar that reports PostgreSQL master, replicas and replication lag

    More in Testing

    See all 19 →
    • MockNest ServerlessWireMock-compatible API mocking in an AWS account
    • VayuAn API client and native load tester in one local desktop app
    • KatesPerformance, chaos and security testing for Kafka on Kubernetes
    • AgentLeakPrivacy-leakage testing for AI agents across every execution channel
    • KiiraType-checks the TypeScript code fences in Markdown against the real project
    • KhaosKafka traffic generator that reproduces failures on demand

    More in Zig

    See all 10 →
    • zs3S3-compatible server in a single static Zig binary under 1 MB
    • PrefabLensSemantic diffs and merges for Unity YAML assets, in GitHub, the Editor and a CLI
    • ZedisOpinionated Redis-compatible in-memory store written in Zig
    • FlooAuthenticated tunneling toolkit for private services, in Zig
    • resttyBrowser terminal renderer on libghostty-vt, WebGPU and WebAssembly
    • REAmoWireless control surface for REAPER on a phone or tablet