Workflows Engine
The workflow engine composes triggers, conditions, and actions into approval and automation flows.
Core Primitives
- Trigger: when to evaluate
- Condition: whether to proceed
- Action: what to execute
- Action
when: action-level gate
Runtime Model
- Hook or event determines a candidate workflow definition
- Engine evaluates trigger and conditions
- Actions execute in order, with approval actions introducing natural gating
- Workflow instance state advances through events until completion/failure
Key Components
internal/workflows/enginefor orchestration and executioninternal/workflows/reconcilerfor retries and recoveryinternal/workflows/resolversfor dynamic target resolutioninternal/workflows/observabilityfor telemetry hooks
Approval Behavior
PRE_COMMIT: staged proposal behavior before mutation is finalizedPOST_COMMIT: review/automation after mutation is committed
For full architecture and event lifecycle details, refer to internal/workflows/README.md in core.