Phase 5a: approval queue (request_apply_commit, pending/approve/deny)

This commit is contained in:
müde 2026-05-14 22:50:19 +02:00
parent 4a73340150
commit f12837fe32
7 changed files with 270 additions and 0 deletions

View file

@ -124,5 +124,17 @@ async fn dispatch(req: &ManagerRequest, coord: &Coordinator) -> ManagerResponse
},
}
}
ManagerRequest::RequestApplyCommit { agent, commit_ref } => {
tracing::info!(%agent, %commit_ref, "manager: request_apply_commit");
match coord.approvals.submit(agent, commit_ref) {
Ok(id) => {
tracing::info!(%id, %agent, %commit_ref, "approval queued");
ManagerResponse::Ok
}
Err(e) => ManagerResponse::Err {
message: format!("{e:#}"),
},
}
}
}
}