FLUX Simulation Engine
Describe your customers and what they do in YAML, and this engine turns that into synthetic rows that follow a FLUID data contract: the same rows every time, with a report that says plainly what the run does not show.
Documentation: https://agenticstiger.github.io/flux/engine/
The pages in this repository describe the main branch, and the latest release on PyPI can lag behind it. The documentation site above holds a copy of them taken at a pinned engine version, so it can be older still. A feature that main has and the latest release lacks is marked where a page first mentions it, with the release it came after, for example (added after 0.6.0). To run exactly what the pages describe, install the engine from main:
uv tool install git+https://github.com/Agenticstiger/flux-engine
Which version these pages describe has the pip form.
Try it
You need uv.
uvx --from flux-sim-engine fluxsim init demo && cd demo && uvx --from flux-sim-engine fluxsim run . --verify --ship -o out
That writes a small project, runs a 500-customer simulation, checks the result and packs an evidence archive into out/, in a few seconds. With the command installed (uv tool install flux-sim-engine, or pip install flux-sim-engine in a virtual environment), the same two steps print this:
$ fluxsim init demo
created demo with a small FLUX bundle and its FLUID contract (10 files):
...
$ cd demo
$ fluxsim run . --verify --ship -o out
...
emitted payment_recovery_moment: 155 rows (scenario)
reproducible: not checked | validity: not asserted
...
shipped out/demo.flux.tgz
run ... complete; shipped to out
Open .flux/runs/<runId>/EVIDENCE.md first: its last section, "What Was Not Proven", lists what the run does not show. The tutorial goes through each step.
What it is
- Repeatable. The same bundle and the same seed give the same bytes on every system the project's CI checks (Linux on Python 3.11 to 3.14, and macOS on 3.11 to 3.13, with determinism checked on 3.12 for each change).
fluxsim replay runs a recorded plan again and refuses unless it reaches the digest you give it.
- Declarative. A bundle is YAML documents for the world, the personas, the signals, the journeys and the treatments. It refers to a FLUID contract and never restates it, so the rows have the shape the contract expects.
- Six steps, one command each.
validate, plan, apply, run, verify, ship. ship packs the bundle, the run and a manifest into one archive, writes two unsigned in-toto statements beside it, and the report inside always ends in a section called "What Was Not Proven".
- One pass when you want one.
fluxsim run . --verify is the one-pass path: it plans, applies and verifies in a single command, so the rows are drawn once and verify reads each emit once. Run plan, apply and verify on their own to review a plan before it is applied: plan stages the run, and apply --run-id commits it without drawing the rows again.
What it is not