Skip to content
kunalgoesbykenPublic

About

Crash testing for Go services: deterministic simulation that breaks the disk and network and replays every failure from one seed. Includes an RL environment for coding agents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

seedfall

Crash testing for Go services: break the disk and network on purpose, then replay every failure from one number.

Website · Getting started · Docs · RL gym

ci regress Go reference

seedfall shrink on seed 1: a lost acknowledged write cut down from 33 faults to 2

seedfall runs your Go service in a deterministic simulation on WebAssembly. It crashes nodes mid-write, tears and fails disk writes, and splits the network, and it names every run by a seed. The same seed gives the same run, byte for byte, on any machine, and seedfall shrink cuts a failure down to the few faults that cause it.

Install

Go 1.25 or newer, on Linux, macOS or Windows:

go install github.com/kunalgoesbyken/seedfall/cmd/seedfall@latest
seedfall doctor

Try it

git clone https://github.com/kunalgoesbyken/seedfall
cd seedfall/examples/kvlog
seedfall run -c seedfall.always.json -seeds 1-100
seedfall shrink -c seedfall.always.json -seed 1

kvlog syncs before it says "saved" and still loses a write: a crash leaves a torn line, the server appends after it, and the next restart can't read past it. The shrink gets 33 faults down to 2.

For your own service, seedfall init writes a starter config and workload. Your code has to build for GOOS=wasip1, so cgo is out. The getting started guide walks through it.

Use it from an AI agent

claude mcp add seedfall -- seedfall mcp

Setup for Codex, Gemini CLI, VS Code, Cursor and others is in docs/agents.

Bugs found

Crash bugs in NATS JetStream (fixed), rosedblabs/wal, tidwall/buntdb (fixed), tidwall/wal, hashicorp/raft, nutsdb, diskv, bitcask, bbolt and jmsadair/raft. Each has a write-up with a replay command in docs/findings.

seedfall-gym

gym/ holds two RL environments built on seedfall. In one, 42 tasks, an agent fixes a crash bug in Go storage code and is rewarded by hidden fault seeds. In the other, gym/rl, a model plans a rolling upgrade of a simulated raft cluster. Qwen3-1.7B trained on it with GRPO went from 0.06 to 0.70 on held-out scenarios (a scripted oracle gets 0.79), after an earlier run exploited a grader hole that is now fixed. See the write-up.

Limits

  • Go only, and the code must build for GOOS=wasip1.
  • It only catches what your workload checks.
  • It samples goroutine orderings and doesn't replace go test -race.

Contributing

See CONTRIBUTING and SECURITY. Licensed under Apache-2.0.

About

Crash testing for Go services: deterministic simulation that breaks the disk and network and replays every failure from one seed. Includes an RL environment for coding agents.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages