# Function runPreconditions

- runPreconditions(
  node: GraphNode,
  state: Readonly<GraphState>,
  stepNumber: number,
  options?: GraphExecuteOptions,
  ): Promise<PreconditionResult>

  Runs all precondition hooks for a node. If any required precondition fails, returns passed=false. Optional precondition failures are logged but don't block execution.

  #### Parameters

  - node: GraphNode
  - state: Readonly<GraphState>
  - stepNumber: number
  - `Optional` options: GraphExecuteOptions

  #### Returns Promise<PreconditionResult>

  - Defined in packages/nexus-agents/src/orchestration/graph/graph-hooks.ts:58