Skip to content
Français

TerminationCode

import type { TerminationCode } from "@elie-laloum/outpost/core";

Shared termination reason vocabulary for workflow results and speculation coordinator stops. Includes FaultCode, failed for unclassified errors and usage-unavailable for incomplete budget accounting. Each result documents its applicable codes; dispatch continues to throw OutpostError with its existing code. Budget exhaustion uses limit, not the speculation status budget-exhausted.

Complete example and detailed rules.

export type TerminationCode = FaultCode | "failed" | "usage-unavailable";