Skip to content

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

docs(agent): update prompt builder references to render_current_turn_prompt

Steven Enamakela594ca83fc8a
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.md
index 7a570cd3d0..4ecc487d60 100644
--- a/crates/openhuman-core/src/agent/README.md
+++ b/crates/openhuman-core/src/agent/README.md
@@ -239,8 +239,8 @@ display-safe `AgentDefinitionDisplay` for the UI.
OpenHuman product content and delegates tier assembly to TinyAgents,
optionally returning a `TieredPrompt` with cache breakpoints. `context/` holds
the shared default for TinyAgents microcompact configuration. `debug/`
-renders the exact prompt a live session would send, by building a real
-session host and calling `build_system_prompt`.
+renders the exact prompt a cold live turn would send, by building a real
+session host and calling `render_current_turn_prompt`.
### Host agents
diff --git a/crates/openhuman-core/src/core/agent_cli/debug/mod.rs b/crates/openhuman-core/src/core/agent_cli/debug/mod.rs
index 60195c1398..dddcf89a38 100644
--- a/crates/openhuman-core/src/core/agent_cli/debug/mod.rs
+++ b/crates/openhuman-core/src/core/agent_cli/debug/mod.rs
@@ -4,7 +4,7 @@
//! Instead of re-implementing prompt assembly, this module routes
//! through [`OpenHumanSessionHost::from_config_for_agent`] — the same entry point the
//! Tauri web channel and CLI use — and then calls
-//! [`OpenHumanSessionHost::build_system_prompt`] on the constructed session. The
+//! [`OpenHumanSessionHost::render_current_turn_prompt`] on the constructed session. The
//! output is assembled through the current-turn prelude used by runtime
//! sessions, so it matches the system prompt on a cold model request.
//!
diff --git a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs
index c98d595d18..21a8a314c9 100644
--- a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs
+++ b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs
@@ -151,8 +151,8 @@ fn collects_agentid_entries_and_expands_skills_wildcard_to_deferred_actions() {
);
// Every action is `Deferred`: off the wire, reachable through
- // `tool_search`. (The archetype delegates are `Hidden` — the collapsed
- // `delegate_to` tool advertises them — so only the actions are checked.)
+ // `tool_search`. Archetype delegates are Hidden from this registry view,
+ // while their live routing descriptions are included in the orchestrator prompt.
for tool in tools.iter().filter(|t| t.name().starts_with("G")) {
assert_eq!(
tool.exposure(),
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index bd685ccf5c..87cc2d6a41 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -4420,9 +4420,9 @@ mod tool_policy_boundary_placement {
/// the inference backend's automatic prefix cache everything behind it. It
/// also replaced each agent's opening persona line with a constant heading.
///
- /// This drives the real `OpenHumanSessionHost::build_system_prompt`. The four tests #5821
+ /// This drives the real `OpenHumanSessionHost::render_current_turn_prompt`. The four tests #5821
/// shipped exercise the extracted pure helper `append_tool_policy_boundary`
- /// and would all still pass if `build_system_prompt` stopped calling it; the
+ /// and would all still pass if the current-turn builder stopped calling it; the
/// one existing test that goes through the builder,
/// `turn_tests_part_01_tests::system_prompt_includes_tool_policy_boundary`,
/// asserts the block is PRESENT and says nothing about where.