topology: operator-driven move-agent via set_parent (#486)

This commit is contained in:
damocles 2026-05-26 19:15:00 +02:00 committed by Mara
commit 5456377622
5 changed files with 245 additions and 0 deletions

View file

@ -46,6 +46,15 @@ pub enum HostRequest {
Approve { id: i64 },
/// Deny a pending request by id.
Deny { id: i64 },
/// Move an agent in the topology tree (#486). Pass `new_parent =
/// None` to promote the agent to root, or `Some(name)` to set a
/// new parent. Refuses cycles, unknown agents, and any attempt
/// to reparent the manager (which is structurally root).
/// Pure topology-json edit today; bind-mount work follows in #361.
SetParent {
child: String,
new_parent: Option<String>,
},
}
#[derive(Debug, Clone, Serialize, Deserialize)]