Skip to main content

latest_run_by

Function latest_run_by 

pub fn latest_run_by(doc: &mut AutoCommit, actor_hex: &str) -> Option<ChangeRun>
Expand description

The contiguous run of changes authored by actor_hex, ending at the document’s newest change by that actor.

How “undo what the agent just did” finds its target when nobody recorded a run: the agent commits under one stable actor, so its work is a maximal run of consecutive changes under that actor, stopping at the first change by anybody else.