summaryrefslogtreecommitdiff
path: root/internal/task
diff options
context:
space:
mode:
Diffstat (limited to 'internal/task')
-rw-r--r--internal/task/task.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/task/task.go b/internal/task/task.go
index 811379e..464d05d 100644
--- a/internal/task/task.go
+++ b/internal/task/task.go
@@ -105,6 +105,12 @@ type Task struct {
Interactions []Interaction `yaml:"-" json:"interactions,omitempty"`
CreatedAt time.Time `yaml:"-" json:"created_at"`
UpdatedAt time.Time `yaml:"-" json:"updated_at"`
+ // NeedsReview is set by internal/scheduler.Scheduler when it resumes a
+ // BLOCKED role-typed task past its ask_user-timeout with a system-authored
+ // fallback answer rather than a real human answer — a flag for a human to
+ // find and double-check later (GET /api/tasks?needs_review=true), not a
+ // state-machine state.
+ NeedsReview bool `yaml:"-" json:"needs_review,omitempty"`
}
// Duration wraps time.Duration for YAML unmarshaling from strings like "30m".