Skip to main content

move_to

Function move_to 

Source
pub fn move_to(
    mstore: &Store,
    def_id: &str,
    harness: &str,
    target: Target<'_>,
    key_present: impl Fn(&Route) -> bool,
) -> Result<Moved, String>
Expand description

Records the agent’s move to target, after the shared validation and with its old place kept as previous. key_present says whether a route’s key is in the Vault: a route without one is not moved to. Leaving a route keeps its gateway token until the harness is relaunched (finish_leaving), so a turn in flight finishes.