Sanity Library Reference Docs
    Preparing search index...

    A stage's multi-guard deploy failed after at least one guard already landed. Those partial locks can't be cleanly undone (guard docs have no transactional deploy). Inside the engine deployOrRollback rolls the state move back and escalates this to a loud WorkflowStateDivergedError; a caller that invokes deployStageGuards directly (without that rollback wrapper) can also see it, so it's exported to be catchable by type.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • args: { cause: unknown; deployed: number; rollbackError?: unknown; stageName: string }

      Returns PartialGuardDeployError

    Properties

    cause?: unknown
    deployed: number
    kind: "partial-guard-deploy"
    message: string
    name: string
    rollbackError?: unknown

    The cleanup failure, when newly created guards could not be retracted.

    stack?: string
    stageName: string