# `Statifier.Effect.Trace.MacrostepStable`
[🔗](https://github.com/riddler/statifier-ex/blob/v2.0.0/lib/statifier/effect/trace/macrostep_stable.ex#L1)

Trace payload for `{:trace, %__MODULE__{}}` - emitted when the
configuration reaches quiescence, i.e. the macrostep's microstep loop has
no more eventless transitions or internal events to drain
(`docs/observability.md` constraint 2's "macrostep stable" row).
`configuration` is the full configuration (ADR-0005, ancestors included)
as it stood at quiescence.

Built with `new/2`, never a struct literal, so `macrostep`/`microstep`/
`round` are always stamped from the `Statifier.MachineState` at hand.

# `t`

```elixir
@type t() :: %Statifier.Effect.Trace.MacrostepStable{
  configuration: MapSet.t(non_neg_integer()),
  macrostep: non_neg_integer(),
  microstep: non_neg_integer(),
  round: non_neg_integer()
}
```

# `new`

```elixir
@spec new(machine_state :: Statifier.MachineState.t(), fields :: keyword()) :: t()
```

Stamps `macrostep`/`microstep`/`round` from `machine_state` and sets
`fields` (`:configuration`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
