get_latest_complete_commit

ezga_lib_class.get_latest_complete_commit(agent_id=None, generation=None, stage_index=None)

Return the complete commit with the greatest commit ID and row index.

Parameters:
  • agent_id (int, optional) – EZGA agent identifier; None selects one latest record across all agents. Default: None.

  • generation (int, optional) – Generation number to select; None leaves it unrestricted. Default: None.

  • stage_index (int, optional) – Stage index to select; None includes all stages. Default: None.

Returns:

EzgaGenerationCommit or None – Latest matching complete save record, or None when absent. Contains generation, stage, and saved-data boundaries, not population structures.

Notes

Selects records marked complete by greatest commit_id, using row index to break ties. This does not validate payload integrity or establish search convergence. Supply generation to inspect an earlier save.