String requireId(TestStep step) { final id = step.args['id']?.toString(); if (id == null || id.isEmpty) { throw EnsembleTestFailure('Step "${step.type}" requires "id"'); } return id; }