Lifecycle
A goal isactive, paused, or completed.
- Set it when creating a session, from a scheduled task, or from inside the run with the agent’s
goal_settool. A goal carries an objective and success criteria. - Complete is explicit: the agent calls
goal_completewith evidence. - Pause holds the goal with a rationale: the agent’s
goal_pause, a user pause, an API call, or a budget or admission limit. Any pause is resumable withgoal_resume. - Clear removes the goal. The session stays usable as an ordinary session.