Platform These steps were prepared and run on macOS. They run the same on Linux. On Windows, work inside WSL 2 or a dev container. Other operating systems
One runway, two aircraft, not enough time between them
Runway Board is a small service. A tower team uses it to keep the order of departures and arrivals on each runway. Three pictures explain the whole scenario.
Today: the board accepts any time
Arrivals line up in the sky for runway 09R. Departures wait on the ground for 09L. Each one has a slot: a runway and a time. Two arrivals got slots only 45 seconds apart, and the board accepted both. The tower supervisor finds it by eye.
The callsigns and times are the sample data that the service loads. This pair is really in it.
The rule the ticket asks for
Every slot protects the time after it on the same runway. Normally that is 120 seconds. After a heavy aircraft it is 180 seconds. A new slot inside a protected time must be refused.
A slot closer than 120 seconds to another on the same runway is refused.
When the earlier flight is HEAVY, the gap must be 180 seconds.
The refusal names the conflicting flight and gives the next free time.
Another runway is not affected. A cancelled slot does not count.
These four lines are the acceptance criteria of the ticket, RB-142.
With the change: the board refuses, and says when
Every new slot now passes one check. The board reads the active slots on that runway, refuses a slot that is too close, and offers the next free time. The person still decides what to do with it.
The software refuses and informs. It does not move an aircraft. The person at the position decides.
Why this is a good ticket to learn on
One rule, four criteria. A developer can hold all of it in mind.
Two earlier attempts are still in the code: a list in memory, and a "minute bucket" in the database.
Where does the check live? What happens at exactly 120 seconds? How is the next free time found?
Each criterion can be shown on the running board, without a tool.
The same ticket is then taken through three cadences.