Goals, tasks and planning

How a goal becomes sub-goals, tasks and operations, with one worked example from start to booking.

Experimental Model proposes a plan; code validates and compiles it. Plans of up to three steps today. What works today

The short version

A person states a goal. Robotelos breaks it into sub-goals, each with a success condition. A sub-goal is carried out by tasks, and a task calls operations, which are single actions. Each level answers one question.

From a goal to operations A user goal is split into sub-goals with success conditions. Each sub-goal is carried out by tasks, and each task calls operations. GOALBook a table at an Italian restaurant for 2 tomorrow SUB-GOALrestaurant chosensuccess: a table is selected and approved SUB-GOALbooking confirmedsuccess: the restaurant confirms in writing TASKsearchfind candidates TASKapprovaluser picks one TASKbook tableneeds approval first OPERATIONsearch()one tool call OPERATIONaskUser()one question OPERATIONbook()one external action Each level answers one question: what should become true (goal), what has to be checked (sub-goal), what work is done (task), and what single action runs (operation).
One goal, four levels. Read it from the top: what should become true, what must be checked, what work is done, and which single action runs.

The questions behind each term

TermThe question it answersExample
DomainWhere does this problem belong?Dining, travel, billing
GoalWhat should become true for the person?A table is booked for 2 tomorrow
Sub-goalWhat smaller outcome must hold on the way?A restaurant is chosen and approved
TaskWhat work should be done now?Search restaurants; ask the person to choose
CapabilityWhich ability is needed, independent of any vendor?Restaurant search, table booking
SkillHow does a provider deliver that ability?A search skill that queries two booking services
OperationWhich concrete call is executed?search(), book()
PreferenceWhat does the person prefer, without it being a rule?Outdoor seating, a short walk
ConstraintWhat must hold, as a hard rule?Budget under 60 € per person; no booking before 18:00
ApprovalMay this concrete action run?“Yes, book table 2 for 19:30”
ConsentMay data or a capability be used at all?Allow location for walking time

Two definitions are easy to mix up. An approval permits one action. Consent permits the use of data or a capability for a purpose. A preference is a wish; a constraint is a rule that must be satisfied.

Sub-goal or task?

Use a sub-goal when the outcome has its own success condition and can be planned on its own, for example “restaurant chosen”. Use a task when the step is just work the planner created to reach the outcome, for example “search restaurants”. If you are unsure, ask whether the step can fail as an outcome of its own. If it can, it is a sub-goal.

A worked example: booking a table

The same flow, step by step:

StepWhat happensWho does it
1The person writes: “Book a table at an Italian restaurant for 2 tomorrow evening.”The conversation
2The goal is stored with its constraints: cuisine, party size, time, placeThe goal manager
3The planner derives sub-goals and tasks, and selects the skills that provide search and bookingThe task planner
4The search runs and returns candidates; the person is asked to chooseThe agent, through approvals
5Booking needs approval. The person approves “table for 2, 19:30”The person; the server checks the approval
6The booking runs. If it fails, the planner chooses a fallback, for example another restaurantThe execution engine
7The confirmation is recorded and shown on every device the person follows the conversation onThe server, through the record

If the person changes their mind halfway, for example “actually a French restaurant, and let’s walk”, the planner keeps the completed search, replaces the branch that depends on the old choice, and continues. Each change is recorded as an event, so nothing is lost.

Like a delivery robot: mission, route and control loop

A delivery robot does not act on one message. It has a mission (“deliver this parcel to floor 3 before 16:00”), a route (the lift, the corridor, the stairs), and a control loop that keeps checking the world and reacts when a door is locked. Robotelos uses the same three parts for agents:

PartRobot equivalentWhat it does for you
Goal managerMission controlKeeps track of what you want, what it depends on, when it is done, and which goal comes first. A goal can last for days and move between channels.
Task plannerThe route plannerTurns a goal into steps, works out which steps depend on others, and chooses the skills each step needs. Where a step needs your approval, it asks.
Behavior treeThe control loopRuns the steps in order, checks the conditions as it goes, and switches to a planned fallback when a step is blocked. It reacts to change without starting the whole plan again.

Why not let a language model decide every step? A model that decides everything is hard to predict, hard to stop and hard to audit. The planner gives the work a shape that people can read, and the control loop makes sure each step runs in order, with a planned fallback when something fails. Models still help: they understand your request and propose plans. The rules for what runs, and when, stay explicit.

Mission, route and control loop A mission, a route and a control loop: the goal manager decides what should be true, the task planner works out the steps, and the behavior tree runs them and reacts when something changes. MISSION CONTROLGoal managerWhat should be true?When is it done?What comes first?Robot: “deliver the parcelto floor 3 before 16:00” ROUTE PLANNERTask plannerWhich steps, in which order?What depends on what?Which skills are needed?Robot: “lift, drive to the lift,ride up, unload” CONTROL LOOPBehavior treeRuns each stepChecks conditions every tickSwitches to a fallback when blockedRobot: “door locked? takethe stairs instead” sensors and results: what actually happened A robot does not replan every second. It follows the plan, and changes the plan only when the world changes.
Mission, route and control loop. The goal manager decides what should be true, the task planner works out the steps, and the behavior tree runs them and reacts when the world changes.

How the pieces fit together

The conversation carries every result of this flow: messages, approvals with their details, outcomes, and the state of each participant. The goal manager, the task planner and the behavior tree decide what happens next, and the record shows what has happened so far.

Explore or act

Every goal is either exploring or acting. An exploring goal can look things up and compare options, but it cannot change anything in the world. An acting goal can propose changes, and every change still needs the person’s approval and the right permissions. Only the person, or an explicit choice in a trusted control panel, can switch a goal to acting.

Partly done is a real state

If a goal involves several bookings and only some of them can be cancelled, the goal is shown as partly cancelled, with each booking listed separately. A goal is never marked as done or cancelled only because the work that was running has stopped.

Next steps