StepRecord

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

class StepRecord(step: str, subject_id: str, payload: Any, produced_by: str, spec_fingerprint: str | None = None)[source]

Bases: object

One observed pipeline boundary for one subject.

step

Stable step name from STEP_NAMES.

Type:

str

subject_id

Owning subject.

Type:

str

payload

Domain object at that boundary (or a frame kept by a recorder). Contracts never convert payloads to DataFrames.

Type:

Any

produced_by

Short producer tag (component or stage id).

Type:

str

spec_fingerprint

Optional component fingerprint for provenance.

Type:

str | None

__init__(step: str, subject_id: str, payload: Any, produced_by: str, spec_fingerprint: str | None = None) → None