Implement and document state-changes messages in YAML.