# Function resultToOutcome

Audit exports - Structured audit logging (Issue #193) Split from index.ts for file size compliance (Issue #285)

- resultToOutcome(
  isError: boolean | undefined,
  isPolicyDenied: boolean,
  ): "error" | "success" | "failure" | "denied"

  Maps tool result to audit outcome.

  #### Parameters

  - isError: boolean | undefined
  - isPolicyDenied: boolean

  #### Returns "error" | "success" | "failure" | "denied"

  - Defined in packages/nexus-agents/src/audit/secure-handler-audit.ts:43