Skip to main content

Type Alias: FailureClass

FailureClass = "infrastructure" | "transient" | "tool" | "permanent"

Defined in: packages/core/src/core/run-contract.ts:64

How a failure affects the run.

  • infrastructure: the attempt lost its footing (a journal conflict, a required write). It resumes without using an attempt.
  • transient: retried at the place, bounded by maxAttempts.
  • tool: a tool's failure. Tool errors stay tool results under toolFailMode; only a host classify hook returns this.
  • permanent: settles at once, never retried.