How Ambiguous Software Requirements Delayed Railway Safety Systems

How Ambiguous Software Requirements Delayed Railway  Safety Systems

When thinking about railway safety issues, most people picture hardware failures, human error, or infrastructure wear and tear. But in recent years, a quieter and more technical issue has emerged as a major cause of disruption in the railway industry: ambiguous low-level software requirements in critical control systems.

A key example of this challenge can be found in the deployment of the European Rail Traffic Management System (ERTMS), particularly the European Train Control System (ETCS). Despite being designed to modernize and unify signaling across Europe, its rollout was plagued by repeated delays, failed interoperability tests, and growing integration costs.

The Promise of ETCS

ETCS is the core signaling component of ERTMS, intended to replace the patchwork of national train protection systems with a standardized control framework. With multiple operational levels (from Level 1’s trackside balises to Level 2’s continuous radio-based supervision), ETCS aims to enhance both safety and efficiency.

However, implementation was not centralized. Dozens of different suppliers across Europe, building onboard units, trackside infrastructure, and central systems, were left to interpret the same set of specifications. The result was a series of conflicting implementations, even when all vendors claimed compliance with the same requirements.

Where the Specification Fell Short

The ETCS System Requirements Specification (SRS), published by UNISIG, forms the technical foundation for vendor implementations. Despite its comprehensive scope, much of the SRS was written in natural language and left several critical behaviors loosely defined. These ambiguities turned into real problems during testing and deployment:

  1. Level Transition Behavior

When a train transitions between ETCS Level 1 (fixed balises) and Level 2 (radio communication via GSM R), both onboard and trackside systems must manage this switch consistently. In practice, timing constraints, fallback behaviors, and state handling during failed transitions were not clearly defined. One vendor’s software might enter an undefined or idle state, while another would retry radio communications indefinitely. These inconsistencies led to failed interoperability and required extensive debugging and rework.

  1. Mode and State Transitions

ETCS trains operate in various modes (e.g., Full Supervision, Staff Responsible) that dictate how automatic or manual control is handled. Without precise rules for when and how transitions between these modes occur, systems either refused to upgrade to full supervision when it was safe to do so or downgraded prematurely. The resulting operational inefficiencies often forced manual overrides and undermined the intended safety assurances.

  1. Braking Curve Discrepancies

The computation of braking curves is one of the most safety-critical functions in onboard ETCS software. Different vendors interpreted tolerances, rounding rules, and environmental inputs differently due to under-specified requirements. Even minor differences in braking behavior can significantly affect train spacing and overall system performance.

The Cost of Ambiguity

The consequences of these inconsistencies were wide-ranging:

  • Project delays in countries like Belgium, Spain, and Denmark, often by several years.
  • Failed certifications, requiring vendors to revise their software to align with clarified expectations.
  • Rising costs for rail operators and suppliers, driven by repeated testing, debugging, and re integration.
  • Erosion of trust in ERTMS as a reliable and interoperable standard.

In many cases, vendors had complied with the letter of the SRS, but not with a unified interpretation, because no such interpretation existed at the level of detail required for reliable integration.

Industry Response and Improvements

To address these issues, the rail industry has implemented several corrective strategies:

  • Refinement of Requirements: Key documents such as ETCS Subset-026 and Subset-034 were revised to include more explicit behavioral definitions.
  • Formal Methods and Model-Based Design: Formal specification techniques and modeling tools are increasingly used to define and validate system behavior before implementation.
  • Model-Based Testing: Test scenarios derived from formal models help uncover ambiguities early and ensure compliance with both the spirit and the letter of the requirements.
  • Updated Baselines: New ETCS baselines (e.g., Baseline 3) provide improved clarity and testability, reducing the room for divergent interpretations.

A Structured Language for Unambiguous Requirements

Rely is a restricted natural language developed specifically for defining low-level software requirements in safety-critical domains. Inspired by the EARS methodology, originally proposed by Rolls-Royce for aircraft engine software, Rely combines the readability of natural language with the unambiguous structure of formal methods.

Key Features of Rely:

  • Single interpretation per requirement: Each statement has exactly one syntactic and semantic meaning.
  • Scenario-based syntax: Uses structured templates such as WHEN / IF / THEN, improving predictability and traceability.
  • Support for timing and constraints: Enables precise expression of temporal logic, state transitions, and retries.
  • Verifiability by design: Requirements written in Rely can be parsed, simulated, and tested automatically.

How Rely Could Have Addressed ETCS Failures

  1. Clarifying Timing and Transitions

During the ETCS rollout, transitions between operational levels suffered from vague timing definitions. A typical ambiguous requirement might state:

"The system should switch to standby when it is idle for a while."

In Rely, this could be rephrased with full clarity:

While in Idle state for 50 cycles, the system shall transition to the Standby state.

This removes guesswork and enables all implementers to apply consistent timing logic.

One of the key innovations of the solution is its integrated assistant based on Generative AI, which is capable of reading and understanding requirements written in natural language. By leveraging advanced natural language processing techniques, the assistant can accurately interpret informal specifications and automatically translate them into formal requirements using the Rely language. This not only streamlines the authoring process but also reduces ambiguity and ensures consistency across the entire specification lifecycle.

  1. Standardizing Mode Transitions

Different vendors implemented divergent logic for switching operational modes. Rely enforces a single syntax structure, ensuring that mode-switching conditions and outcomes are uniformly understood and applied across systems.

  1. Ensuring Consistency in Safety-Critical Computations

Brake curve discrepancies were common due to under-specified mathematical behavior. Rely supports exact expressions of formulaic logic, including tolerances and rounding methods, ensuring that critical safety algorithms yield consistent outcomes across platforms.