fn record( state: &AppState, block_id: &str, target: &FillTarget, agent: &str, where_: &str, outcome: &str, reason: &str, )