From 0f62eca356d219dee43b2445b5439a538bfd942e Mon Sep 17 00:00:00 2001 From: damocles Date: Mon, 1 Jun 2026 15:57:04 +0200 Subject: [PATCH] fix(#942): wire bash_tasks_vacuum spawn into main.rs --- hive-c0re/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hive-c0re/src/main.rs b/hive-c0re/src/main.rs index 626d48bb..762a26ff 100644 --- a/hive-c0re/src/main.rs +++ b/hive-c0re/src/main.rs @@ -13,8 +13,8 @@ use hive_sh4re::{HostRequest, HostResponse}; use hive_c0re::coordinator::Coordinator; use hive_c0re::{ agent_sockets, auto_update, broker, client, crash_watch, dashboard, dashboard_events, - events_vacuum, forge, manager_server, matrix, migrate, rebuild_queue, reminder_scheduler, - scheduled_prompts_worker, server, stats_vacuum, + bash_tasks_vacuum, events_vacuum, forge, manager_server, matrix, migrate, rebuild_queue, + reminder_scheduler, scheduled_prompts_worker, server, stats_vacuum, }; #[derive(Parser)] @@ -250,6 +250,9 @@ async fn cmd_serve( // Per-agent turn-stats.sqlite vacuum: same pattern, 90-day // retention so trend analysis has enough history. stats_vacuum::spawn(&coord); + // Per-agent bash-tasks file vacuum: host-side so the harness + // cannot disable it. Deletes terminal task trios older than 48h. + bash_tasks_vacuum::spawn(&coord); // build_logs.sqlite vacuum: c0re-side (single db). Failures kept // 30d, successes 24h — see `build_logs::vacuum` for the rule. hive_c0re::build_logs::spawn_vacuum(&coord);