async fn run_inner_with_policy( state: &AppState, tab_id: String, block_id: String, policy: Policy, report_out: &mut Option<TeardownReport>, ) -> Result<Value, String>