phenotypic.sdk_.aggregate_proof_is_current#

phenotypic.sdk_.aggregate_proof_is_current(output_dir: Path) bool[source]#

Return whether a valid aggregate proof still covers the deliverables.

The boolean half of _valid_aggregate_proof(), exported because the GUI’s core_readable asks exactly this question and spec §5.2 makes this module the public reader surface. Named to match run_proof_is_current(): the two ask the same shape of question about the run proof and the aggregate proof respectively.

Returns ``False`` on: an absent .phenotypic/aggregate_publication.json, one whose version is not AGGREGATE_PROOF_VERSION, one with an empty or non-mapping required_outputs, or one naming a required output whose bytes on disk no longer match the descriptor it was published with.

This is O(1) in images – three or four run-level deliverables – which is why callers re-ask it rather than caching the answer.

Parameters:

output_dir (Path)

Return type:

bool