phenotypic.sdk_.run_identity#
- phenotypic.sdk_.run_identity(output_dir: Path) RunIdentity | None[source]#
Return this output’s run identity, or
Nonewhen it has no state.In P1 the tokens are read from the fields today’s writers already produce:
processing_generation(still auuid4().hexuntil P2),pipeline_sha256, the three finalization inputs, andwork_ids.restart_epochdefaults to0because P2 introduces its writer. That is what makes this phase independently landable – the reader works on today’s trees, before any writer moves.scheduler_epochandowner_generationcome from the two liveness records and are deliberately outsideRunIdentity.digest(): they are facts about processes, not about configuration, and folding them in would discard the verification cache every time a job is submitted against unchanged work.- Parameters:
output_dir (Path) – Run output root. May be any directory, including one this package has never written to.
- Returns:
A
RunIdentity, orNonewhen there is no readable processing state. Never raises.- Return type:
RunIdentity | None