On the evening of Dec. 2, just three days before India’s largest airline would lose control of its operations, IndiGo executives spotted a technology glitch that was delaying late-night check-ins — a small failure that would soon cascade into one of the worst aviation disruptions in the country’s history.

The problem, in turn, was affecting a pilot duty roster recently fine-tuned to incorporate new government rules mandating longer rest hours and fewer night landings.