Watch
0
0
Fork
You've already forked hyperhive
0

a hive-side pause holds against the swarm's declared state until an operator resumes

the harness writes the reason into the pause marker when it pauses itself and reports it as paused_by_hive in its turn-state header. swarm-controller declares such an agent paused (only if declared up) and shows the reason on the agents status row and the swarm ui card.
This commit is contained in:
atlas 2026-11-09 23:09:14 +01:00 • committed by mara
commit e5c55257f8

View file

@ -73,6 +73,11 @@ pub struct AgentStatusRow {
/// `AppState::agent_login` — this reader sees the hive's bucket, and the
/// flag comes from the agent itself.
pub needs_login: Option<bool>,
/// Why the agent's own harness paused its turn loop, from its latest
/// turn-state header; `None` when that header named none, none arrived
/// since swarm-controller started, or the harness predates the field.
/// Filled in by the `GET /api/agents/status` handler like `needs_login`.
pub paused_by_hive: Option<String>,
/// The archetype the agent is built from; `None` for a custom agent. Always
/// `None` out of this reader, filled in by the `GET /api/agents/status`
/// handler from the `agent-archetype` bucket.
@ -202,6 +207,7 @@ fn render(
config_pr: None,
wanted: None,
needs_login: None,
paused_by_hive: None,
archetype: None,
},
})
@ -248,6 +254,7 @@ fn row(
config_pr: None,
wanted: None,
needs_login: None,
paused_by_hive: None,
archetype: None,
}
}