According to HUAC
UK▸ *, in their "Safety at Street Works and Road Works - A Code of Practice" (which has statutory status" :
Works over and under railways
Works planned by any promoter on a road over rail, or under a rail over road bridge must be advised to Network Rail’s Outside Party Engineer no later than one month in advance of serving the initial notice. The supervisor, manager or other competent person should check with the works promoter that this has taken place and obtain details of the results of the consultation.
The Onibury crossing is manually controlled from a box next to the crossing, which is about the safest type available. It was recently reassessed under ALCRM~ and its score changed from G3 to J4, on a scale from A1 (very dangerous - do something now) to M13 (zero risk, e.g. closed).
As the operator knows what is going on all the time, I wonder what more could be done. Perhaps to provide the crossing operator with a connection to the contraflow lights controller, to monitor what it's doing and going to do next, or even to adjust its timing. Was there signage on the approach side at the crossing saying don't block the railway crossing, or similar?
* The Highway Authorities and Utilities Committee (HAUC(UK)) is the representative body that works with the UK and devolved governments to help make improvements to the management of works and the street and road network.
~ All level crossing risk model, Network rail's standard method. The letter is for the risk to road users per crossing, and the number for the collective risk to all users.