Skip to main content

Function: isDuplicateStepKeyError()

isDuplicateStepKeyError(error): error is DuplicateStepKeyError

Defined in: packages/workflow-engine/src/core/steps.ts:450

Detect a duplicate step key reliably across duplicated package bundles. Step machinery that turns a thrown body into a recorded failure (the AI map's per-item verdicts, most of all) must rethrow this instead: it names a bug in the stage definition, and burying it in an item's verdict is exactly the silence the guard exists to remove.

Parameters​

error​

unknown

Returns​

error is DuplicateStepKeyError