From 004cf7f449770cb868e0f80376008c4fefd59d75 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 9 Sep 2026 16:00:33 +0200 Subject: [PATCH] swarm-queue-client: fix AgentState::Destroyed doc, entry never drops out of the set --- swarm-queue-client/src/wanted.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/swarm-queue-client/src/wanted.rs b/swarm-queue-client/src/wanted.rs index 98140b1e..080032a7 100644 --- a/swarm-queue-client/src/wanted.rs +++ b/swarm-queue-client/src/wanted.rs @@ -92,9 +92,12 @@ pub enum AgentState { /// Exists on the hive and is not running. Offline, /// Torn down entirely — the hive runs the destroy template once, then - /// this agent drops out of the declared set rather than staying as a - /// third steady state. Irreversible: there is no state that brings a - /// destroyed agent back short of a fresh deploy. + /// treats absence as agreement rather than re-running it. The key + /// stays in the declared set with this state forever, on purpose: it's + /// what lets a redeclare of an already-destroyed agent be rejected as + /// a terminal-state transition instead of silently reviving it. + /// Irreversible: there is no state that brings a destroyed agent back + /// short of a fresh deploy. Destroyed, }