Watch
0
0
Fork
You've already forked hyperhive
0

swarm: subagent-status KV bucket, the run state of each subagent

One key per subagent (<agent>.<subagent>) holding running/finished, since,
exit, model, effort and the publish time. The controller creates the bucket,
and the agent credential may publish its own keys. Nothing reads or writes
it yet; the daemon publisher and the controller list follow.
This commit is contained in:
iris 2026-11-15 14:39:37 +01:00 • committed by mara
commit c7d7f0df55

View file

@ -73,6 +73,12 @@ pub(crate) fn spawn(client: async_nats::Client, wanted: Arc<WantedWriter>, hives
tracing::debug!("terminal streams: queue not connected; next pass");
continue;
}
if let Err(e) = swarm_queue_client::subagent_status::open_or_create(&client).await {
tracing::warn!(
error = %swarm_queue_client::chain(&e),
"subagent status: opening the bucket failed; next pass"
);
}
for agent in live_agents(&wanted, &hives).await {
if let Err(e) =
swarm_queue_client::subagent_term::open_or_create(&client, &agent).await