Deep dive · Giti · ESPADPALM
Travel disruption replanning: how to build a Plan B engine that repairs a trip without rebuilding it
Planning a trip and rescuing one are different problems. The second runs under time pressure, on a half-executed plan, with bookings that cannot be undone, and it rewards stability over optimality.
What changed
- : Added the UK rules retained from the EU regulation (UK261) and the US Department of Transportation automatic refund rule of 2024, with primary sources and the current enforcement position.
Key takeaways
- Replanning starts from a partly executed plan with sunk commitments, so the objective shifts from the best plan to the least disruptive good plan.
- Planning research shows that repairing a plan preserves more of the original than replanning from scratch, and stability is what travellers on the ground value.
- Disruption detection depends on live operational data such as transit trip updates and service alerts, not on the language model.
- The fragile parts of each day should have alternatives computed in advance, so recovery takes seconds rather than a new planning session.
- A Plan B engine should surface the traveller's options and rights clearly, without pretending to adjudicate claims against carriers.
A trip plan is a forecast, and forecasts are wrong in specific, recurring ways: a flight is cancelled, an afternoon turns to rain, a gallery closes for an event, a train is held outside the station, a companion runs out of energy at three o'clock. Travel disruption replanning is the engineering discipline of responding to those moments, and it is a different problem from building the original itinerary. The planner now works on a plan that is half executed, under time pressure, with commitments that cannot be cancelled and a traveller who is standing somewhere specific, tired and holding a phone. Getting it right decides whether a travel product is trusted for the second trip.
This piece is a design guide for that Plan B engine. It draws on disruption management in aviation, rescheduling theory from manufacturing and plan-repair research in artificial intelligence, three fields that solved versions of this problem long before travel apps did. For how the first plan is built, see our pillar guide to AI itinerary planning.
What airline operations learned about recovery
Airlines have studied disruption management as an operations-research problem for decades. A widely cited review describes how recovery is typically decomposed into aircraft recovery, crew recovery and passenger recovery, often solved in sequence because the integrated problem is too large to handle in the time available, and how the goal of recovery is to return to the original schedule as quickly as possible at acceptable cost[1]. Two lessons carry directly into consumer travel planning.
First, the objective changes during disruption. Before departure, the planner maximises the quality of the trip. During disruption, the planner minimises the distance between the broken plan and a workable one, subject to the remaining commitments. Second, recovery is layered. The flight is fixed first, then the hotel night it affects, then the next day's timed entries, and only then the discretionary parts of the itinerary. Designing the engine around that ordering avoids the common failure where an app proposes a lovely afternoon while the traveller still has no way to reach the city.
A working taxonomy of travel disruptions
Not every disruption deserves the same machinery. The table below is our classification for engineering purposes: what the event is, where the signal comes from, how much warning there usually is and how much of the plan the repair should touch.
| Disruption | Typical signal source | Warning available | Repair scope |
|---|---|---|---|
| Flight cancellation or long delay | Carrier notification, flight status data | Minutes to hours | Transport leg, first night, next day's fixed bookings |
| Local transit failure | Real-time transit feeds (trip updates, service alerts) | Minutes | Next one or two legs of the current day |
| Weather turning against outdoor plans | Forecast updates | Hours to a day | Swap indoor and outdoor slots within the day or across days |
| Venue closure or changed hours | Venue data, official notices | Hours to weeks | One slot; neighbouring slots only if travel times change |
| Traveller fatigue or illness | The traveller, directly | None | Remainder of the current day; slower pace for the next |
| Overbooked or failed reservation | Booking confirmation or venue on arrival | None to minutes | One slot plus a nearby equivalent |
The right-hand column matters most. A good engine has a notion of repair radius: the smallest part of the plan that must change to restore feasibility. Everything outside that radius should stay as it was unless the traveller asks otherwise.
Travel disruption replanning as repair, not regeneration
The tempting implementation is to throw the old plan away and call the planner again with updated inputs. That produces a plan that may be optimal for the new situation and unrecognisable to the person living it: dinner moved, tomorrow's museum swapped, the neighbourhood they had been looking forward to dropped. Research in automated planning addressed exactly this choice. In a study comparing replanning from scratch with repairing the existing plan, the repair approach produced more stable plans, closer to the originals, and could often do so more efficiently[2]. The authors argue that stability, how much of the original plan survives, is valuable in its own right because people and resources have already been committed to it[2].
Manufacturing rescheduling gives a vocabulary for the engine's policy. A long-standing framework distinguishes when to reschedule (periodically, on events, or a hybrid of both) and how (from simple right-shifting of the remaining tasks, through partial rescheduling of the affected part, to complete regeneration)[3]. Translated to travel, these become three escalating responses:
- Shift. Push the remaining slots later and drop the lowest-value one if the day overflows. Suitable for small delays.
- Partial repair. Re-optimise only the slots inside the repair radius, holding fixed bookings and the rest of the trip constant. Suitable for most closures, weather swaps and missed connections.
- Regenerate. Rebuild from the current position, keeping only hard commitments. Reserved for disruptions that invalidate the structure of the trip, such as losing a full day to a cancelled flight.
An engine that escalates in this order, and tells the traveller which level it used, will feel calm under pressure. One that regenerates by default will feel erratic, however good each individual plan is.
Travellers on the ground do not want the best possible new plan; they want the old plan, minus the broken part.
Detecting disruption before the traveller does
Repair quality is bounded by detection speed. The routing literature formalises this with dynamic problems, in which information is revealed or changes while the plan is being executed, and proposes measures of how dynamic an instance is according to how much information arrives late and how close to execution it arrives[4]. A travel day is highly dynamic in this sense: much of the information that matters (a held train, a full restaurant) arrives minutes before it bites.
For public transport the data exists in standard form. The GTFS Realtime specification defines feeds for trip updates (delays, cancellations, changed routes), service alerts and vehicle positions, published by transit agencies alongside their static schedules[5]. The GTFS Realtime documentation is the right starting point for any team wiring live transit into a planner. An engine that subscribes to these feeds for the legs on today's plan can warn the traveller and propose a repair before they reach the platform, which is the difference between a recovery and an apology.
Three design rules follow.
- Watch only what the plan depends on. Subscribe to the specific routes, flights and venues on the next few hours of the plan, not to a whole city. It reduces noise and cost.
- Separate detection from decision. A detected delay is a fact; whether it breaks the plan depends on slack. The engine should compute slack per leg and act only when a delay exceeds it.
- Time-stamp everything. Every alert shown to the traveller should state its source and when it was last updated, so stale information is visible as stale.
Pre-computed alternatives versus on-demand repair
Some repairs can be computed in the moment; others should already exist. The case for pre-computation is time: a traveller standing in the rain wants an answer in seconds, and a complete re-optimisation with live data calls may take longer than that. The case for on-demand repair is relevance: the precise disruption is rarely known in advance.
The pragmatic design does both. At planning time, the engine identifies the fragile elements of each day (outdoor slots, tight transfers, single-session bookings, long walking legs) and computes a verified alternative for each. At disruption time, it first checks whether a pre-computed alternative still fits; if not, it runs a partial repair. Fast metaheuristics for the orienteering problem with time windows, the formulation underneath most day plans, were developed with interactive tourist-guide applications in mind, where answers have to come back quickly[6]. We explain those formulations in our piece on itinerary optimization algorithms.
This is the design we are pursuing in Giti: every important plan has an alternative ready in advance for bad weather, a delayed flight, a closed museum or a tired companion, and the traveller sets the conditions the alternative must meet, such as being cheaper or keeping walking under ten minutes. Letting the traveller state those conditions up front turns a vague "something else" into a constrained repair problem the engine can actually solve.
Constraints that only appear during disruption
Disruption introduces constraints that did not exist at planning time. The traveller may now be entitled to something from a carrier, and the options they choose constrain the repair. Under the European Union's air passenger rights regulation, for example, passengers whose flight is cancelled are offered a choice between reimbursement and re-routing, and are entitled to care such as meals and, where needed, accommodation while they wait[7]. The EU publishes a plain-language summary of these air passenger rights that is worth linking from any recovery screen that covers flights in its scope.
The rules differ by jurisdiction, so the engine has to know which regime governs each flight. The United Kingdom kept the EU regulation as domestic law after leaving the EU, adapted by the Air Passenger Rights and Air Travel Organisers' Licensing (Amendment) (EU Exit) Regulations 2019 and usually called UK261. It covers passengers departing from UK airports and, on certain carriers, flights into the UK; on cancellation it keeps the same choice between a refund and re-routing, together with meals, refreshments and, where needed, a hotel; and it sets compensation in sterling, at £220, £350 or £520 depending on distance[10]. In the United States, the Department of Transportation's 2024 refund rule requires airlines to refund passengers automatically, in cash or the original form of payment, when a flight is cancelled or significantly changed and the passenger does not accept the alternative offered. A significant change includes a departure or arrival moved by three hours or more on a domestic flight or six hours or more on an international one, a change of airport and an added connection[11]. The automatic refund for cancelled or significantly changed flights applies to disruptions from 16 May 2024 under the FAA Reauthorization Act of 2024, and most of the rule's other refund provisions applied from 28 October 2024; refunds are due within seven business days for card purchases and twenty calendar days for other payment methods[12]. The Department has since paused enforcement for flights that are only renumbered, with no significant change, while it reconsiders how a cancellation is defined[13]. Rules like these move, so the engine should read them from a maintained source rather than hard-code them.
For the engine, the important point is ordering. Whether the traveller accepts a re-routed flight tonight or tomorrow morning changes which hotel night is lost and which bookings survive, so the repair has to branch on that choice rather than assume it. The engine should lay out the options and their consequences for the rest of the trip, and leave the decision, and any claim, to the traveller and the carrier. It is an information tool, not an adjudicator.
Where language models fit in a Plan B engine
Language models are useful at the edges of the recovery loop and dangerous at its centre. At the edges they are excellent: turning "I'm exhausted, can we do something calmer near the hotel" into a constraint set, explaining why a repair moved dinner, and summarising a carrier's message. At the centre, deciding whether the new plan is feasible, they are unreliable. The TravelPlanner benchmark deliberately includes environment constraints such as unavailable transport and missing attraction data, and its authors found that language agents struggled to adapt and to keep multiple constraints in view[8]. The LLM-Modulo position applies with extra force under time pressure: the model proposes, independent verifiers check timing, budget and bookings, and only verified repairs reach the traveller[9].
A practical consequence is that the model should never be the source of a disruption fact. "Your train is cancelled" must come from a feed, not from a model's inference about what is likely. The model can phrase the message; it cannot originate it.
A minimal Plan B engine checklist
For teams scoping a first version, these are the components we consider non-negotiable.
- A structured plan representation with fixed and flexible slots, slack per leg and a dependency graph between bookings.
- Fragility scoring at planning time, with a verified alternative stored for every fragile slot.
- Subscriptions to live data for the next few hours of the plan, with timestamps carried through to the interface.
- An escalation policy: shift, then partial repair, then regenerate, with the level reported to the traveller.
- A stability measure in the objective, so repairs that preserve more of the original plan are preferred.
- Explicit branching on traveller decisions that change downstream constraints, such as re-routing versus reimbursement.
- A language layer that interprets requests and explains repairs, but never certifies feasibility or originates facts.
More engineering notes on this topic sit in our travel planning AI hub.
Frequently asked questions
Should a disrupted itinerary be regenerated from scratch or repaired?
Repaired, in most cases. Planning research found that repairing an existing plan keeps it closer to the original than replanning, and often does so faster. Travellers have already booked and mentally committed to parts of the trip. Regenerate only when the disruption breaks the structure of the trip, such as losing a full day, and tell the traveller which approach was used.
Where should a Plan B engine get its disruption signals?
From live operational sources tied to the plan: carrier flight status, transit agency feeds for trip updates and service alerts, weather forecasts and venue data. Subscribe only to the legs and venues in the next few hours of the plan. Never let a language model infer a disruption; it can phrase the alert, but the fact must come from a source with a timestamp.
How do pre-computed alternatives work in practice?
At planning time, the engine flags fragile slots such as outdoor visits, tight transfers and single-session bookings, then computes and verifies an alternative for each. When something breaks, it first checks whether the stored alternative still fits current conditions. If it does, recovery is instant; if not, the engine runs a partial repair on the affected part of the day only.
How should a travel app handle passenger rights after a cancelled flight?
Surface them as information, not advice. In the EU, and in the UK under the retained rules known as UK261, passengers on cancelled flights within scope are offered reimbursement or re-routing and are entitled to care while waiting. In the United States, airlines must refund automatically when a flight is cancelled or significantly changed and the passenger declines the alternative. The app should show these options, explain how each choice changes the rest of the trip, and leave the decision and any claim to the traveller and the carrier.
What role should a language model play during disruption recovery?
It should interpret what the traveller wants now, such as a calmer afternoon near the hotel, turn that into constraints, and explain the proposed repair in plain words. It should not decide feasibility or originate facts. Independent checks on timing, budget and bookings must approve every repair before the traveller sees it, which matters even more under time pressure.
References
- Clausen, J., Larsen, A., Larsen, J., & Rezanova, N. J. (2010). Disruption management in the airline industry: Concepts, models and methods. Computers & Operations Research, 37(5), 809-821. doi.org/10.1016/j.cor.2009.03.027
- Fox, M., Gerevini, A., Long, D., & Serina, I. (2006). Plan stability: Replanning versus plan repair. Proceedings of the International Conference on Automated Planning and Scheduling (ICAPS 2006). pureportal.strath.ac.uk/en/publications/plan-stability-replanning-versus-plan-repair/
- Vieira, G. E., Herrmann, J. W., & Lin, E. (2003). Rescheduling manufacturing systems: A framework of strategies, policies, and methods. Journal of Scheduling, 6(1), 39-62. doi.org/10.1023/A:1022235519958
- Pillac, V., Gendreau, M., Guéret, C., & Medaglia, A. L. (2013). A review of dynamic vehicle routing problems. European Journal of Operational Research, 225(1), 1-11. doi.org/10.1016/j.ejor.2012.08.015
- MobilityData. (n.d.). GTFS Realtime overview. General Transit Feed Specification. Retrieved November 24, 2026. gtfs.org/realtime/
- Vansteenwegen, P., Souffriau, W., Vanden Berghe, G., & Van Oudheusden, D. (2009). Iterated local search for the team orienteering problem with time windows. Computers & Operations Research, 36(12), 3281-3290. doi.org/10.1016/j.cor.2009.03.008
- European Parliament & Council of the European Union. (2004). Regulation (EC) No 261/2004 establishing common rules on compensation and assistance to passengers in the event of denied boarding and of cancellation or long delay of flights. Official Journal of the European Union, L 46, 1-8. eur-lex.europa.eu/eli/reg/2004/261/oj/eng
- Xie, J., Zhang, K., Chen, J., Zhu, T., Lou, R., Tian, Y., Xiao, Y., & Su, Y. (2024). TravelPlanner: A benchmark for real-world planning with language agents. Proceedings of the 41st International Conference on Machine Learning, PMLR 235. arXiv:2402.01622. arxiv.org/abs/2402.01622
- Kambhampati, S., Valmeekam, K., Guan, L., Verma, M., Stechly, K., Bhambri, S., Saldyt, L., & Murthy, A. (2024). Position: LLMs can't plan, but can help planning in LLM-Modulo frameworks. Proceedings of the 41st International Conference on Machine Learning, PMLR 235. arXiv:2402.01817. arxiv.org/abs/2402.01817
- Regulation (EC) No 261/2004 of the European Parliament and of the Council, as it has effect in the United Kingdom, amended by the Air Passenger Rights and Air Travel Organisers' Licensing (Amendment) (EU Exit) Regulations 2019 (SI 2019/278) and the Aviation (Consumers) (Amendment) Regulations 2023 (SI 2023/1370). legislation.gov.uk. www.legislation.gov.uk/eur/2004/261
- U.S. Department of Transportation, Office of the Secretary. (2024, April 26). Refunds and other consumer protections (Final rule). Federal Register, 89(82), 32760-32839. www.govinfo.gov/content/pkg/FR-2024-04-26/html/2024-07177.htm
- U.S. Department of Transportation. (2024). Refund final rule: Small business compliance guidance. www.transportation.gov/sites/dot.gov/files/2024-12/Refund%20Final%20Rule%20Small%20Business%20Compliance%20Guidance.pdf
- U.S. Department of Transportation, Office of the Secretary. (2026, July 7). Airline refunds and other consumer protections (Notification of enforcement discretion). Federal Register, 91(128). www.govinfo.gov/content/pkg/FR-2026-07-07/html/2026-13675.htm
ESPADPALM
Giti is the ESPAD AI model for travel planning ai.