Skip to content

Interface: WorkflowRun

@kortexya/reasoninglayer


@kortexya/reasoninglayer / WorkflowRun

Defined in: src/types/workflows.ts:304

A run of a workflow.

optional authority?: Record<string, unknown> | null

Defined in: src/types/workflows.ts:342

The engine’s proof of the run actor’s authority at its last start or resume: the decision time, the verdict on each operational root and the overall verdict, passed through as sent. Each step still proves its own writes. null before a start; absent from an older engine.


context: object

Defined in: src/types/workflows.ts:313

The run’s inputs and each step’s output by step id, as the engine wrote them.

[key: string]: unknown

Additional native context entries retain their names and values.

optional continuation?: unknown

Native continuation provenance, retained verbatim.

input: Record<string, unknown>

optional redacted?: string

The engine withheld old outputs from the current authority scope.

steps: Record<string, unknown>


cursor: string | null

Defined in: src/types/workflows.ts:326

The step the run goes to next; null once it settled.


error: string | null

Defined in: src/types/workflows.ts:333

Why the run failed, naming the step.


finishedAt: string | null

Defined in: src/types/workflows.ts:335


halted: string | null

Defined in: src/types/workflows.ts:331

Why a run waits before its next step: the tenant’s emergency stop.


id: string

Defined in: src/types/workflows.ts:305


log: WorkflowStepRecord[]

Defined in: src/types/workflows.ts:324

The steps taken, in order.


resumeAt: string | null

Defined in: src/types/workflows.ts:329

When a run parked by a wait step or the emergency stop is due.


startedAt: string

Defined in: src/types/workflows.ts:334


startedBy: string

Defined in: src/types/workflows.ts:310

The principal the run acts as: who started it (a cron job’s id for a scheduled run).


status: WorkflowRunStatus

Defined in: src/types/workflows.ts:311


stepsTaken: number

Defined in: src/types/workflows.ts:327


workflowId: string

Defined in: src/types/workflows.ts:306


workflowVersion: number

Defined in: src/types/workflows.ts:308

The version of the definition the run follows.