spdl.autoresearch.core.FailureRecord

class FailureRecord(kind: ~spdl.autoresearch.core._types.FailureKind, phase: ~spdl.autoresearch.core._types.FailurePhase, message: str, retryable: bool = False, details: dict = <factory>, exception_type: str | None = None, job_id: str | None = None, created_at: str | None = None)[source]

Machine-readable failure attached to a failed hypothesis node.

Methods

from_dict(data)

to_dict()

Attributes

created_at

ISO 8601 timestamp when the failure was recorded.

exception_type

Fully qualified name of the original exception, if any.

job_id

Identifier of the failed job, if applicable.

retryable

Whether the engine should attempt a retry.

kind

Category of the failure.

phase

Workflow phase where the failure occurred.

message

Human-readable description.

details

Arbitrary extra context for debugging.

created_at: str | None = None

ISO 8601 timestamp when the failure was recorded.

details: dict

Arbitrary extra context for debugging.

exception_type: str | None = None

Fully qualified name of the original exception, if any.

classmethod from_dict(data: dict) FailureRecord
job_id: str | None = None

Identifier of the failed job, if applicable.

kind: FailureKind

Category of the failure.

message: str

Human-readable description.

phase: FailurePhase

Workflow phase where the failure occurred.

retryable: bool = False

Whether the engine should attempt a retry.

to_dict() dict