nirs4all.api.native_retrain_lineage module

Signed provenance for the supported native Methods full-retrain lane.

The parent result is not a fitted-model handle: every field below is copied from the parent DAG-ML outcome before the child fit starts. The child outcome then includes this object in its self-fingerprinted diagnostics, which makes the relationship durable through Package V2 and Archive V2 without inventing an archive retraining recipe.

class nirs4all.api.native_retrain_lineage.NativeRetrainLineage(source_outcome_fingerprint: str, source_training_request_fingerprint: str, source_effective_plan_fingerprint: str, source_selected_variant_id: str, source_selected_variant_fingerprint: str, source_seed: int)[source]

Bases: object

The immutable parent evidence for one native full retrain.

classmethod from_mapping(value: Mapping[str, Any]) → NativeRetrainLineage[source]

Strictly parse persisted lineage without accepting extension keys.

classmethod from_source_outcome(outcome: Mapping[str, Any]) → NativeRetrainLineage[source]

Build lineage only from an attested, completed native outcome.

source_effective_plan_fingerprint: str
source_outcome_fingerprint: str
source_seed: int
source_selected_variant_fingerprint: str
source_selected_variant_id: str
source_training_request_fingerprint: str
to_dict() → dict[str, Any][source]

Return the exact versioned diagnostic representation.