pub trait TaskItemQueryRepository {
// Required methods
fn first_task_item_id(&self, task_id: &str) -> Result<Option<String>>;
fn list_task_items_for_cycle(
&self,
task_id: &str,
) -> Result<Vec<TaskItemRow>>;
fn count_unresolved_items(&self, task_id: &str) -> Result<i64>;
fn count_stale_pending_items(&self, task_id: &str) -> Result<i64>;
fn count_recent_heartbeats_for_items(
&self,
task_id: &str,
item_ids: &[String],
cutoff_ts: &str,
) -> Result<i64>;
}Expand description
Task item enumeration and health-check queries.
Required Methods§
Sourcefn first_task_item_id(&self, task_id: &str) -> Result<Option<String>>
fn first_task_item_id(&self, task_id: &str) -> Result<Option<String>>
Returns the first task-item identifier for a task, if any.
Sourcefn list_task_items_for_cycle(&self, task_id: &str) -> Result<Vec<TaskItemRow>>
fn list_task_items_for_cycle(&self, task_id: &str) -> Result<Vec<TaskItemRow>>
Lists task items participating in the current cycle.
Sourcefn count_unresolved_items(&self, task_id: &str) -> Result<i64>
fn count_unresolved_items(&self, task_id: &str) -> Result<i64>
Counts unresolved items for the task.
Sourcefn count_stale_pending_items(&self, task_id: &str) -> Result<i64>
fn count_stale_pending_items(&self, task_id: &str) -> Result<i64>
Counts stale pending items (FR-038).