Expand description
Task management system for tracking agent workflows
This module provides a task management system that integrates with the agent loop to track complex workflows, subtasks, and progress throughout conversation sessions.
§Architecture
.gestura/tasks/
├── {session_id_1}.json # Tasks for session 1
├── {session_id_2}.json # Tasks for session 2
└── ...§Usage
ⓘ
use gestura_core::tasks::{TaskManager, Task, TaskStatus};
let manager = TaskManager::new("/path/to/workspace");
let task = manager.create_task("session-123", "Implement feature", "Add new API endpoint", None)?;
manager.update_task_status("session-123", &task.id, TaskStatus::InProgress)?;Structs§
- Auto
Tracked Execution Plan - Shared execution context for a tracked auto-planned request.
- Materialized
Task Breakdown - Result of materializing requirement-breakdown tasks.
- Requirement
Breakdown Task Spec - LLM-produced task specification used to materialize an auto-plan breakdown.
- Task
- A task represents a unit of work to be tracked
- Task
Background Job - Background job metadata attached to a task.
- Task
Execution Evidence - A single execution evidence record stored in task metadata.
- Task
Execution State - Runtime-owned execution state persisted in task metadata.
- Task
List - A list of tasks for a session
- Task
Manager - Task manager for persisting and managing tasks
- Task
Memory Event - Structured event recorded in task metadata for memory lifecycle tracking.
- Task
Memory Lifecycle - Structured task-local memory lifecycle information persisted in metadata.
- Task
Tree Node - A hierarchical node for rendering task trees in dashboards.
- Task
Verification Profile - Runtime-authored verification requirements for a tracked task.
Enums§
- Task
Background Status - Background execution status for tasks that represent long-running work.
- Task
Error - Error type for task operations
- Task
Execution Evidence Kind - Structured runtime evidence recorded for a task.
- Task
Execution Kind - Runtime-owned execution kind inferred or assigned for a tracked task.
- Task
Memory Phase - Phase in the task/memory lifecycle.
- Task
Source - Source of a task (who created it)
- Task
Status - Status of a task
- Tracked
Task Finalization - Result of reconciling a tracked task after an agent turn.
Functions§
- get_
global_ task_ manager - Returns the process-wide shared
TaskManager. - parse_
requirement_ breakdown_ response - Parse, normalize, and validate a planner response into typed task specs.