fauxtel is the input half of the riskctl test loop: a deterministic simulator that speaks OTLP over gRPC, the same wire format a real workload would use, so the system under test cannot tell simulated traffic from the real thing.
A scenario YAML drives the run as a sequence of phases: a healthy baseline, a degradation window, then recovery. Each phase sets the request rate, the error and refusal probabilities, a weighted topic mix, a pod memory level, and how many pod restarts to spread across the window. The three scenarios that ship with the project each move only their own signal family, which is the point: an end-to-end test can assert that dataset drift moves the dataset rating and leaves the hardware and model ratings alone.
The signals map onto riskctl’s three risk components. Request topics carry the dataset mix, the memory gauge and restart counter stand in for hardware, and per-request status (ok, error, refusal) stands in for the model. Requests rotate across Kubernetes-shaped pod names and every resource attribute identifies the simulated workload properly.
Runs are seeded, so the same scenario produces the same requests, outcomes and restarts every time, which is what makes a failing test reproducible rather than a story about flakiness.
Written in Go on the official OpenTelemetry SDK, with tests that push telemetry through an in-process OTLP receiver to prove the wire format without needing a cluster. The code lives in the fauxtel repository.