# Function correlateOutcome

- correlateOutcome(decisionId: string, latencyMs: number, ok: boolean): void

  Closes a pending decision with its actual request outcome.

  When `MONAD_DECISION_LOG` is set, the completed decision is appended as one JSON object per line. Missing decision IDs are ignored.

  #### Parameters

  - decisionId: string
  - latencyMs: number
  - ok: boolean

  #### Returns void

  - Defined in kernel/decisionLog.ts:49