Fozzy is a deterministic testing, fuzzing, replay, and exploration runtime. It provides one native execution surface for scenario runs, suite runs, distributed fault exploration, trace replay, shrinking, artifact inspection, memory diagnostics, profile analysis, and local CI-style gate checks.
Fozzy is designed to catch and debug high-cost failures that traditional test runners miss:
- Nondeterministic failures: order/race behavior that is hard to reproduce.
- Distributed consistency bugs: partition/heal/crash/restart edge cases.
- Timeout and hang regressions: deterministic virtual-time validation.
- Flakiness drift: run-set variance and flake-budget policy gates.
- Input robustness bugs: malformed inputs and mutation-discovered crashes.
- Replay drift: when a recorded failure no longer reproduces exactly.
- Artifact integrity problems: corrupted traces, invalid checksums, broken exports.
Result: every failure can be recorded, replayed, minimized, and shared as a reproducible artifact.
- Deterministic execution in
--detmode with seeded RNG, virtual time, and recorded decision logs. - Recorded traces use the
.fozzyformat with versioned structure and checksum validation. fozzy trace verifyreports checksum presence and checksum validity explicitly.fozzy replayreconstructs recorded executions from trace decisions instead of rerunning live effects.- Strict mode is on by default and promotes warning-class integrity problems into hard failures unless
--unsafeis used explicitly. - Artifact writes are atomic and trace recording supports explicit collision policies.
- Host proc, fs, and http backends can be used in deterministic mode; live observations are captured into the trace so replay remains deterministic.
- Memory tracking is opt-in and supports leak budgets, memory graphs, memory diffs, and replay-safe memory summaries.
- Run selectors support explicit run ids and trace paths, plus documented aliases like
latest,last-pass, andlast-fail. - Machine-readable JSON is available across the operational verification surface, including
test,run,replay,trace verify,doctor,ci,env,version,schema, andvalidate.
The core Fozzy workflow is:
- execute a scenario or suite
- optionally record a trace
- verify the trace
- replay the trace
- run CI-style integrity and parity checks against that trace
That gives one concrete artifact chain for debugging and handoff instead of a best-effort rerun model.
Fozzy uses deterministic-first capability backends, with host execution available explicitly when needed.
- Process:
scripted(proc_when+proc_spawn) by default, optional host mode via--proc-backend host. - Filesystem:
virtualoverlay by default, optional host mode via--fs-backend host(cwd-root sandboxed). - HTTP:
scripted(http_when+http_request) by default, optional host mode via--http-backend host.http_requestsupports request headers and response-header assertions (expect_headers) in both scripted and host modes.http_whencan also be used with host backend as a response assertion rule (match by absolute URL or request path like/v1/me). Host HTTP backend supports bothhttp://andhttps://endpoints.
Host backends are allowed with --det.
In --det mode, RNG, scheduling, and virtual time remain deterministic while live host proc/fs/http observations are captured into the trace as replay decisions.
That means fozzy replay remains deterministic, while repeated live --det runs against a changing host environment can still observe different host-side results.
fozzy env --json continues to report host capability backends as non-deterministic substrates.
Inspect active runtime capabilities with:
fozzy env --jsonfozzy test: execute scenario suites.fozzy run: execute a single scenario.fozzy fuzz: mutation/property fuzzing.fozzy explore: deterministic distributed schedule/fault exploration.fozzy replay: reproduce a recorded trace.fozzy shrink: minimize failing traces.fozzy ci: local gate bundle (verify + replay + artifact integrity + optional flake budget).fozzy gate: lightweight strict targeted gate for change-scoped validation.fozzy report: render/query reports.fozzy profile: deterministic performance forensics (top/flame/timeline/diff/explain/export/shrink).fozzy memory: inspect memory graphs, leak tops, and memory diffs.fozzy artifacts: list/export/pack/bundle run artifacts.fozzy map: language-agnostic code topology mapping for hotspot-driven suite planning.fozzy map suitesdefaults to apedanticcoverage profile.
Full command contract: CLI.md
fozzy init --force
fozzy run tests/example.fozzy.json --det --jsonRecorded trace lifecycle:
fozzy run tests/example.fozzy.json --det --record /tmp/run.fozzy --json
fozzy trace verify /tmp/run.fozzy --strict --json
fozzy replay /tmp/run.fozzy --json
fozzy ci /tmp/run.fozzy --jsonRepresentative strict suite flow:
fozzy doctor --deep --scenario tests/example.fozzy.json --runs 5 --seed 12345 --json
fozzy test --det --strict tests/example.fozzy.json tests/memory.pass.fozzy.json --jsonHost-backed deterministic run:
fozzy run tests/host.pass.fozzy.json --det \
--proc-backend host --fs-backend host --http-backend host --jsoncargo install --path .
fozzy version --json- CLI.md: complete command contract
MIT (see LICENSE).