Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(toolpacks): update delegation and pack withholding docs

Steven Enamakelceb956a1cdfb
diff --git a/crates/openhuman-core/src/attachments/README.md b/crates/openhuman-core/src/attachments/README.md
index c415dda2f9..b5fcac9c7f 100644
--- a/crates/openhuman-core/src/attachments/README.md
+++ b/crates/openhuman-core/src/attachments/README.md
@@ -123,7 +123,7 @@ already running blocking parser.
## Explicit delegation
-Named and collapsed delegation tools accept `image_paths`. Paths resolve against
+Named delegation tools accept `image_paths`. Paths resolve against
the acting workspace and pass the same policy checks as other local reads.
Legacy `[IMAGE:path]` markers remain supported; filenames mentioned only in
ordinary prose grant no read. An explicit image selection replaces automatic
diff --git a/crates/openhuman-core/src/tools/toolpacks/README.md b/crates/openhuman-core/src/tools/toolpacks/README.md
index 4e89e358a5..e535fb476c 100644
--- a/crates/openhuman-core/src/tools/toolpacks/README.md
+++ b/crates/openhuman-core/src/tools/toolpacks/README.md
@@ -23,8 +23,8 @@ constructed and executable but unadvertised: the agent sees one small tool,
`callable_pack_ids` all read this table. The `pub(crate)`
`DELIBERATELY_UNPACKED_FLEET_TOOLS` list names the delegation family that is
kept *off* packs because it is used on almost every turn;
- `agent/orchestration/tools/collapsed_delegation.rs` collapses that family
- into `delegate_to` instead and explains the trade.
+ Tool packs withhold their schemas from the model until a matching pack is
+ requested; hidden synthesized tools remain registered for dispatch.
- `tools::UseSkillTool` (`USE_SKILL = "use_skill"`) is the one always-on proxy
tool. Called with `skill` alone it renders that pack's tool schemas into the
conversation; with `skill` + `tool` + `args` it resolves the real tool
diff --git a/crates/openhuman-core/src/tools/toolpacks/ops.rs b/crates/openhuman-core/src/tools/toolpacks/ops.rs
index 2e42a6a17e..8b57a4ff77 100644
--- a/crates/openhuman-core/src/tools/toolpacks/ops.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/ops.rs
@@ -123,17 +123,8 @@ pub fn strip_packed_from_visible(visible: &mut HashSet<String>, agent_id: &str)
/// Is `tool` withheld from `agent_id` by the pack table right now?
///
/// The predicate behind [`strip_packed_from_visible`], exposed for callers that
-/// build a *listing* of tools rather than a visible set — today the collapsed
-/// `delegate_to` tool, whose `agent` enum is an advertised surface that no
-/// `visible` subtraction can reach.
-///
-/// That distinction is load-bearing. Collapsing the archetype delegates without
-/// it silently re-advertised seven routes the pack table deliberately withholds
-/// (`do_crypto`, `use_mcp_server`, `setup_skills`,
-/// `run_skill`, `build_workflow`, `discover_workflows`): each one stopped being
-/// a tool — so `strip_packed_from_visible` had nothing to remove — and became a
-/// string inside another tool's schema instead. A collapse must never widen
-/// what the pack posture narrowed.
+/// build a listing of tools rather than a visible set. This keeps packed tools
+/// out of listings while preserving their registered dispatch paths.
pub fn is_withheld_from(agent_id: &str, tool: &str) -> bool {
let groups = super::groups::current();
groups.mode_for_tool(tool) == super::groups::GroupMode::Withheld