agentmux_srv_core/backend/reactive/
turn_audit.rs1use super::handler::{Handler, ReactiveHandler};
7
8pub(super) fn turn_in_flight(block_id: &str) -> bool {
11 crate::backend::blockcontroller::get_controller(block_id).and_then(|c| c.turn_tracker()).is_some_and(|t| t.is_active_turn())
12}
13
14impl Handler {
15 pub(super) fn log_ack_refused(&mut self, source_agent: &str, target_agent: &str, request_id: &str, why: &str) {
18 self.log_audit(Some(source_agent), target_agent, "", "", false, Some(why), request_id, Some("ack_refused"), None);
19 }
20}
21
22impl ReactiveHandler {
23 pub fn log_ack_refused(&self, source_agent: &str, target_agent: &str, request_id: &str, why: &str) {
25 self.inner.lock().log_ack_refused(source_agent, target_agent, request_id, why);
26 }
27}