Interface: WorkflowRun
@kortexya/reasoninglayer / WorkflowRun
Interface: WorkflowRun
Section titled “Interface: WorkflowRun”Defined in: src/types/workflows.ts:304
A run of a workflow.
Properties
Section titled “Properties”authority?
Section titled “authority?”
optionalauthority?: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
Section titled “context”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.
Index Signature
Section titled “Index Signature”[key: string]: unknown
Additional native context entries retain their names and values.
continuation?
Section titled “continuation?”
optionalcontinuation?:unknown
Native continuation provenance, retained verbatim.
input:
Record<string,unknown>
redacted?
Section titled “redacted?”
optionalredacted?:string
The engine withheld old outputs from the current authority scope.
steps:
Record<string,unknown>
cursor
Section titled “cursor”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
Section titled “finishedAt”finishedAt:
string|null
Defined in: src/types/workflows.ts:335
halted
Section titled “halted”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
Section titled “resumeAt”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
Section titled “startedAt”startedAt:
string
Defined in: src/types/workflows.ts:334
startedBy
Section titled “startedBy”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
Section titled “status”status:
WorkflowRunStatus
Defined in: src/types/workflows.ts:311
stepsTaken
Section titled “stepsTaken”stepsTaken:
number
Defined in: src/types/workflows.ts:327
workflowId
Section titled “workflowId”workflowId:
string
Defined in: src/types/workflows.ts:306
workflowVersion
Section titled “workflowVersion”workflowVersion:
number
Defined in: src/types/workflows.ts:308
The version of the definition the run follows.