Abstract
Everyday tasks are characterized by their varieties and variations, and frequently are not clearly specified to service agents. This paper presents a comprehensive approach to enable a service agent to deal with everyday tasks in open, uncontrolled environments. We introduce a generic structure for representing tasks, and another structure for representing situations. Based on the two newly introduced structures, we present a methodology of situation handling that avoids hard-coding domain rules while improving the scalability of real-world task planning systems.
Introduction
Traditional AI task planning typically operates within "closed" worlds where every state is known and goals are strictly defined. However, real-world service agents, such as robotaxis, operate in "open" environments characterized by unpredictability. In these scenarios, rigid planning systems—often based on Hierarchical Task Network (HTN) refinement rules—struggle to scale. It is practically impossible to hard-code rules for every potential "corner case," such as a mechanical failure during a storm or a sudden passenger request for a detour.
This paper proposes a shift toward a flexible, case-based approach. By standardizing "Task" and "Situation" structures, we enable agents to handle anomalies by retrieving past solutions or learning new ones from human specialists on the fly.
Methodology: Task and Situation Structures
The framework centers on the Virtual Service Agent (VSA), which utilizes Case-Based Reasoning (CBR) instead of static refinement rules.
The Task Structure
A Task is defined as a recursive record of history rather than just a terminal goal. It includes the action to be performed, detailed parameters (Specs), preconditions (Conditions), and, crucially, Context. By treating context (e.g., "it is raining" or "passenger has luggage") as a searchable attribute in a database rather than a hard-coded "if-then" statement, the system becomes significantly more scalable.
The Situation Handling Process
A "Situation" represents an unexpected event or demand. It logs the timestamp, the active task, the current context, and a Remedy (a sequence of actions to modify the plan).
When an anomaly is detected, the agent invokes functions to gather context, searches a Situation Library for similar past cases, and applies the stored Remedy if a match is found. Before execution, the new plan is validated via simulation to ensure it meets the original and new goals.
Human-in-the-Loop: The SHUI
If the agent cannot find a matching situation in its library, it alerts a human specialist. This is facilitated through the Situation Handling UI (SHUI).
The SHUI treats human intervention as a data acquisition phase. When a human creates a remedy, the system records the Situation-Remedy pair, allowing the agent to handle the same scenario autonomously in the future. This "Human-as-a-Teacher" loop ensures the system grows smarter with every intervention.
Results and Discussion
The VSA system was evaluated using qualitative scenarios, such as a "Window Leak" and a "Pharmacy Detour." In the window leak case, the system initially attempted a standard remedy (closing the window). When this failed, it identified a more specific situation ("window-fail-to-close"), engaged the passenger via a dialogue agent, and successfully guided them to remove a foreign object from the window track.
Key insights from the implementation include:
- Planning as Memory Retrieval: For everyday errands, planning is less about searching a massive state-space and more about remembering how a similar problem was solved before.
- Safety Gates: The use of a simulation validator ensures that modified plans do not introduce new failures.
- Dynamic Adaptation: The system successfully handled goal negotiation, such as adding a stop to a trip while ensuring the final destination was still reached.
Conclusion and Future Work
This framework provides a robust path for service agents to operate in uncontrolled environments without the need for exhaustive rule-based programming. Future work will address the computational challenges of similarity matching as libraries grow to thousands of cases and the automation of context-gathering functions.
Summary updated