Task decomposition and plan repair 00:00:01 A hold fails halfway through The small rehearsal room disappears while June is preparing the confirmation. The date, time window and head count are still correct. Starting the entire request again wastes work, while sending the drafted confirmation promises a room nobody holds. Planning separates a goal into work with preconditions and dependencies. Execution changes the environment, which can invalidate the remainder of a previously sensible plan. A typed outcome lets the planner distinguish success, conflict, delay and denial. Link confirmation to a successful hold on that room and time. When room A becomes unavailable, invalidate the dependent confirmation and look for room B inside the unchanged time window. 00:00:50 Trace the room dependencies The hold depends on a specific room and time. Preparing a confirmation in parallel must not commit it before the hold succeeds. The executor returns a typed conflict. This is an infeasible choice, not merely a slow network response. Keep the validated time constraint while replacing the failed dependent step. Revalidate availability before a new confirmation. 00:01:16 Keep the work that is still valid A plan is made with incomplete information, and the environment can change between planning and execution. An itinerary may stop being feasible when a connection closes. Represent dependencies explicitly and recheck critical preconditions at execution time before committing an irreversible action. Room A is available when the plan is drafted and unavailable at commit time. The executor must recheck the precondition. Decompose a goal into subtasks with concrete inputs, outputs and completion checks. Distinguish work that can proceed independently from work that requires an earlier result. “Find an available room” must produce a room ID and time window before “reserve the room” can run. A hold step returns a token and expiry timestamp. A confirmation step requires both, so it cannot run before the hold succeeds. A plan spanning independent services can stop with some effects already committed. Track which actions have an approved compensation, what can be retried and what needs human intervention. A trip planner reserves a room and then the train sells out. Check the room’s cancellation terms before offering a refund or promising that the whole itinerary was undone. When one step fails, identify its dependents and preserve valid completed work. A stale availability check should invalidate a reservation attempt, while an unrelated confirmed preference can remain in state. 00:02:49 Which part of the plan must change? Would retrying the identical hold indefinitely resolve a confirmed availability conflict? A confirmed conflict changes feasibility. Retries are for failures that might change under the same operation. June repairs the branch whose assumptions changed. She checks current availability and only then issues a confirmation tied to the replacement hold.