refactor(hive_mind): enhance documentation for clarity and consistency in terminology

This commit is contained in:
asepharyana
2026-07-15 00:22:59 +07:00
parent 519be7559b
commit b5e3dfe4b1
2 changed files with 86 additions and 82 deletions
+7 -6
View File
@@ -9,14 +9,15 @@ use serde::{Deserialize, Serialize};
pub enum ScriptPrimitive {
/// Run a single agent with the given prompt template.
Agent(String),
/// Run a single agent with an explicit node designation and
/// Run a single Hive drone with an explicit node designation and
/// tool-scope tier.
///
/// Used by the hive-mind pipeline, where a node's identity is its
/// system-assigned designation (e.g. `"Node-0-1"`) paired with a
/// bounded tool allowlist. `tool_scope` is one of `"read"`,
/// `"write"`, `"full"` (see `app::subagent::division::tool_scope`);
/// unrecognized values fall back to `"read"`.
/// Used by the Hive's cognitive cycle pipeline, where a drone's
/// identity is its system-assigned coordinate (e.g. `"Node-0-1"`)
/// paired with a bounded tool allowlist. `tool_scope` is one of
/// `"read"`, `"write"`, `"full"` (see
/// `app::subagent::division::tool_scope`); unrecognized values fall
/// back to `"read"`.
ScopedAgent {
prompt: String,
node_id: String,