"""Reusable state-kernel services behind the compatibility ``state_engine.py`` CLI."""