Skip to content

voiage.contracts.analysis.AnalysisSpec

Declarative identity and scientific intent for one analysis.

serialize_json_mappings([positional or keyword] self: None = None, [positional or keyword] value: object = None) -> object

Serialize frozen mappings with their original JSON shape.

Parameters:

  • self
  • value object

Returns: object

serialize_tags([positional or keyword] self: None = None, [positional or keyword] value: frozenset[str] = None) -> tuple[str, ...]

Serialize tag sets in canonical order.

Parameters:

  • self
  • value frozenset[str]

Returns: tuple[str, ...]

validate_unique_identifiers([positional or keyword] self: None = None) -> AnalysisSpec

Require stable identifiers to be unique within the specification.

Parameters:

  • self

Returns: AnalysisSpec

canonical_json([positional or keyword] self: None = None) -> str

Return deterministic JSON used for provenance fingerprints.

Parameters:

  • self

Returns: str

contract_digest([positional or keyword] self: None = None) -> str

Return the SHA-256 digest of the canonical specification JSON.

Parameters:

  • self

Returns: str