Skip to content

Term

Task

A schedulable unit in a WorkSession task graph. A Task is not necessarily one-to-one with an AgentRun.

Parent: WorkSession 1 via tasks

Identity
task_id
Kind
name
Authority role
work-session-coordinator
Mutability
mutable
Status
accepted

Purpose

Describe planned or in-flight work items and their dependencies without forcing each item to be an agent assignment.

Relationships

NameTargetKindCardinalityInverse
work_sessionWorkSessionreferences1tasks 0..*
agent_runsAgentRunreferences0..*tasks 0..*
artifactsArtifactpublishes0..*produced_by_task 0..1
depends_onTaskreferences0..*dependents 0..*
dependentsTaskobserves0..*depends_on 0..*

Lifecycle

Initial pending. Terminal: succeeded, failed, cancelled.

pendingreadyin_progressblockedsucceededfailedcancelled
  • pendingready
  • readyin_progress
  • in_progressblocked
  • blockedready
  • blockedin_progress
  • in_progresssucceeded
  • in_progressfailed
  • pendingcancelled
  • readycancelled
  • in_progresscancelled
  • blockedcancelled
  • readyfailed

Invariants

  • MUST session-scoped: A Task MUST belong to exactly one WorkSession.
  • MUST NOT not-1to1-run: A Task MUST NOT be assumed to map 1:1 to an AgentRun.

Aliases

  • work-item

Deprecated aliases

None.

Not synonyms

  • AgentRun: Several runs may serve one task, or one run may serve several tasks.
  • Artifact: An artifact is an output, not the schedulable unit.
  • Turn: A turn is a cycle inside a run, not a graph node.

Examples

  • A "draft the migration plan" node that two AgentRuns later serve.

Anti-examples

  • Equating every AgentRun with exactly one Task.

Fields

The identity field is the index of the handle. fields is the exchange shape.

NameKindTypePortableNotes
task_ididentitynameTrue
work_session_idreferencenameTrue
titledescriptivestringTrue

Native mapping hooks

SystemNative termFidelityNotes
project-interop_none_tbd