Operation
Durable tracking for session workflow execution.
An Operation tracks an admitted workflow action within a session. Its durable record supports execution status, cancellation, and recovery when work is interrupted.
Connections🔗
flowchart LR
S[Session] -->|owns| O[Operation]
WF[Session workflows] -->|save on admission| O
T[Task attempt] -->|execution authority| O
W[Run Worker] -->|status, cancellation, recovery| O
O -->|can enclose| R[Run]Workflow Boundary🔗
An operation can encompass model work and ordered Git or forge effects. Completion therefore reflects the workflow outcome, not just an assistant response. Isolated model work within a workflow can have its own run.
The worker coordinates execution and recovery. Saving an operation does not guarantee automatic replay after a restart.
A task attempt uses a unique operation as its execution authority. Its terminal operation cannot be reopened; explicit retries create a new attempt and operation, preserving earlier history.