Skip to main content

authorize_run

Function authorize_run 

Source
pub fn authorize_run(
    record: &RunRecord,
    writer: &ActorId,
    action: &'static str,
) -> Result<(), RunError>
Expand description

Refuse an agent that is not the run’s executor; humans and services may record any run.

Runs observe an executor, so an agent must not be able to complete or fail another agent’s run, while a service host or an operator can speak for a run it watches or recovers.