The scenario_status packages provides the scenario_status ROS node that publishes the current scenario status to a topic. During ros-bag recording this allows to directly match data with a scenario status.
scenario_status