phenotypic.sdk_.ImageState#
- class phenotypic.sdk_.ImageState(work_id: str, dataset: str, image_stem: str, stages: Mapping[str, Mapping[str, object]], verdict: Literal['verified', 'unverified', 'failed'], reason: str | None = None)[source]#
Bases:
objectOne image’s stages and whether its declared artifacts still match disk.
stagesis the open map from spec §6.1 –stage1/stage2/stage3/measuredtoday, more later. Nothing here enumerates its keys; a caller asking “did stage 3 run?” reads"stage3" in state.stages, which is what makes a future stage additive rather than a schema break.Under D-A there is no
backfilledstage: per-store metadata is written in the store’s original promote, so there is nothing to record having happened afterwards.Methods
__init__Attributes
Spec §9 annotates
imagesas "work_id -> stages + VERDICT".- Parameters: