identity

Canonical execution identities for post-MIP nodes.

Functions

expected_post_mip_candidate_count

Return the candidate count for the currently runnable node contract.

expected_post_mip_execution_contract

Resolve the currently runnable contract for a compiled post-MIP stage.

expected_post_mip_execution_identity

Return the producer identity expected for the current post-MIP inputs.

post_mip_execution_contract

Return the exact node, input, dependency, and source-revision contract.

post_mip_execution_contract_identity

Hash one already-resolved canonical post-MIP execution contract.

post_mip_execution_identity

Return the producer identity for one resolved node execution.

prepare_post_mip_candidate_ledger

Publish a candidate ledger for the active successful MIP execution if needed.

exception PostMIPExecutionContractUnavailable

Bases: ExecutionIdentityProjectionUnavailable

The current upstream artifacts do not yet define a post-MIP execution.

expected_post_mip_candidate_count(config, stage_id)

Return the candidate count for the currently runnable node contract.

Parameters:
  • config (Mapping[str, Any])

  • stage_id (str)

Return type:

int

expected_post_mip_execution_contract(config, stage_id)

Resolve the currently runnable contract for a compiled post-MIP stage.

Parameters:
  • config (Mapping[str, Any])

  • stage_id (str)

Return type:

dict[str, Any]

expected_post_mip_execution_identity(config, stage_id)

Return the producer identity expected for the current post-MIP inputs.

Parameters:
  • config (Mapping[str, Any])

  • stage_id (str)

Return type:

str

post_mip_execution_contract(config, node, candidate_set, ledger)

Return the exact node, input, dependency, and source-revision contract.

Parameters:
Return type:

dict[str, Any]

post_mip_execution_contract_identity(contract)

Hash one already-resolved canonical post-MIP execution contract.

Parameters:

contract (Mapping[str, Any])

Return type:

str

post_mip_execution_identity(config, node, candidate_set, ledger)

Return the producer identity for one resolved node execution.

Parameters:
Return type:

str

prepare_post_mip_candidate_ledger(config)

Publish a candidate ledger for the active successful MIP execution if needed.

Parameters:

config (Mapping[str, Any])

Return type:

None