Skip to main content

Interface: WorkflowStep

Defined in: packages/core/src/domain/value-objects/workflow-step.ts:48

A single entry in a schema's workflow[] array, defining a named lifecycle phase, which artifact IDs must be complete before the phase becomes available, and optional pre/post hook arrays.

Schema workflow steps fire first; project-level steps (specd.yaml) are matched by step name and appended after.

Properties​

hooks​

readonly hooks: object

Defined in: packages/core/src/domain/value-objects/workflow-step.ts:68

Pre- and post-event hooks for this step.

post​

readonly post: readonly HookEntry[]

Hooks that fire after the step completes.

pre​

readonly pre: readonly HookEntry[]

Hooks that fire before the step executes.


requires​

readonly requires: readonly string[]

Defined in: packages/core/src/domain/value-objects/workflow-step.ts:58

Artifact IDs (from the same schema) that must have status complete before this step becomes available. Empty array means the step is always available.


requiresTaskCompletion​

readonly requiresTaskCompletion: readonly string[]

Defined in: packages/core/src/domain/value-objects/workflow-step.ts:65

Subset of requires for which task completion gating is enforced on this step. Each listed artifact ID must be in requires and reference an artifact type that declares taskCompletionCheck. Empty array means no task completion gating.


step​

readonly step: string

Defined in: packages/core/src/domain/value-objects/workflow-step.ts:52

The lifecycle step name (e.g. "designing", "implementing", "archiving").