artifact_import_contract
Dependency-light validation for receipt-bound imported stage manifests.
Functions
Return the canonical identity of one version-2 artifact receipt. |
|
Build the canonical version-3 completion marker for one imported stage. |
|
Return whether an imported stage matches the atomic campaign import contract. |
- canonical_receipt_identity(receipt)
Return the canonical identity of one version-2 artifact receipt.
- Parameters:
receipt (Mapping[str, Any])
- Return type:
str
- imported_completion_payload(*, stage_id, target_config, receipt_identity, expected_semantic_config, semantic_identity, required_artifacts, stable_hash)
Build the canonical version-3 completion marker for one imported stage.
- Parameters:
stage_id (str)
target_config (str)
receipt_identity (str)
expected_semantic_config (Mapping[str, Any])
semantic_identity (str)
required_artifacts (Mapping[str, Any])
stable_hash (Callable[[...], str])
- Return type:
dict[str, Any]
- imported_stage_manifest_is_complete(root, stage_id, manifest, *, expected_semantic_config, stable_hash)
Return whether an imported stage matches the atomic campaign import contract.
- Parameters:
root (Path)
stage_id (str)
manifest (Mapping[str, Any])
expected_semantic_config (Mapping[str, Any])
stable_hash (Callable[[...], str])
- Return type:
bool