# `BB.Dsl.Verifiers.ValidateStateRefs`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/dsl/verifiers/validate_state_refs.ex#L5)

Validates that state references in commands are valid.

This verifier checks:
- All states in `allowed_states` are defined in the `states` section (or `:idle`)
- The `initial_state` setting references a defined state
- Commands using `{BB.Command.SetState, to: state}` reference valid states

---

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