Important envelope fields
Lifecycle
attempt counts returned failures. crash_attempt counts expired leases and process
crashes. The distinction is durable because quarantine depends on it.
The archived state is Headgate’s dead-letter queue: retry-exhausted, skipped, and
deadline-expired jobs remain inspectable and can be redriven while their terminal retention
is active. It is distinct from quarantined poison-pill fingerprints, undecodable
payloads, and the optional SQL cold archive used only for long-term audit.
Dead-letter queue
Inspect, diagnose, redrive, and retain archived jobs safely.