Skip to main content

raise_fence

Function raise_fence 

Source
async fn raise_fence(
    state: &AppState,
    actor: &Actor,
    target: &AgentDefinition,
) -> Result<Option<Handover>, Refusal>
Expand description

A move by file marks the agent handed over first, then stops it through the normal stop path, so nothing can start it or reach a live process between the stop and the file, and nothing writes to its conversation after the file is made. Returns the mark it had before, to put back if the export fails. A refusal puts it back too.