nirs4all.pipeline.dagml.training_contracts module

Native DAG-ML training contract assembly helpers.

These helpers are the P3-R1 substrate for lowering nirs4all syntax to the public dag_ml.execute_training(...) surface. They intentionally assemble and sign only the contract shell that nirs4all owns; DAG-ML remains the authority for graph, campaign, controller, projection and runtime validation.

nirs4all.pipeline.dagml.training_contracts.tcv1_fingerprint_without(document: Mapping[str, Any], field: str) → str[source]

TCV1 SHA-256 of an object while omitting its self-fingerprint field.

nirs4all.pipeline.dagml.training_contracts.training_data_identity_from_binding(binding: Mapping[str, Any], *, data_content_fingerprint: str, target_content_fingerprint: str) → dict[str, Any][source]

Build and sign one TrainingDataIdentity from a DAG-ML data binding.

nirs4all.pipeline.dagml.training_contracts.validate_training_request_with_dagml(request: Mapping[str, Any], dagml_module: Any) → Any[source]

Return a validated dag_ml.TrainingRequest object.