feat(#665): harness-internal async bash task runner (option B)

This commit is contained in:
damocles 2026-06-01 13:07:11 +02:00 committed by mara
commit 1178bb2999
5 changed files with 512 additions and 3 deletions

View file

@ -736,6 +736,8 @@ pub enum ToolGroup {
Scheduling,
/// `get_logs` - *(privileged)*
Diagnostics,
/// `bash_run`, `bash_status`
Execution,
}
impl ToolGroup {
@ -765,13 +767,14 @@ impl ToolGroup {
"list_schedules",
],
Self::Diagnostics => &["get_logs"],
Self::Execution => &["bash_run", "bash_status"],
}
}
/// Default tool groups for a plain agent harness — equivalent to the
/// old `Flavor::Agent` allow-list. Used when `HIVE_TOOL_GROUPS` is unset.
pub const AGENT_DEFAULT: &'static [Self] =
&[Self::Messaging, Self::Meta, Self::Inbox];
&[Self::Messaging, Self::Meta, Self::Inbox, Self::Execution];
/// Default tool groups for the manager harness — equivalent to the
/// old `Flavor::Manager` allow-list. Used when `HIVE_TOOL_GROUPS` is unset.
@ -783,6 +786,7 @@ impl ToolGroup {
Self::Approvals,
Self::Scheduling,
Self::Diagnostics,
Self::Execution,
];
}