Skip to main content

Module fixture

Module fixture 

Source
Expand description

Synthetic four-layer capture fixtures.

These let us exercise the snapshot orchestrator on the build host (no GPU, no LLM, no CRIU) with realistic-shaped payloads. Used by Phase-1 microbenchmarks and the examples/01-hello-fork/ example.

Structsยง

FixtureCacheCapture
Synthetic cache-layer capture: writes N pages and a manifest blob.
FixtureEffectsCapture
Synthetic effects-layer capture: writes a JSONL ledger blob.
FixtureModelCapture
Synthetic model-layer capture: writes one base + one diff blob.
FixtureSpec
Tunable knobs for the fixture set. Defaults sized for a sub-500-ms run on macOS arm64 (the build host). CI / GPU hosts override cache_pages and model_diff_bytes upward.
FixtureTraceCapture
Synthetic trace-layer capture: writes a JSONL message blob.
FixtureWorldCapture
Synthetic world-layer capture: writes N file blobs + an env blob + a procs blob (placeholder), then a tree-manifest blob.