Skip to main content

mutate

Function mutate 

Source
pub async fn mutate(
    verb: SessionVerb,
    mutation: &SessionMutation,
) -> Result<SessionMutationOutcome, SessionControlError>
Expand description

Perform one conversation mutation through the harness’s own door.

SessionDoor::Live verbs are NOT handled here: they need an open runtime connection, which only the service owns. Callers check door first and route those to harness.v1.runtimes.send_input; asking for one here is an SessionControlError::Invalid, because it names a door this function cannot open rather than a door the harness lacks.