Skip to content

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

docs(embed): fix strict rustdoc links and clarify approval surfaces

Steven Enamakel3392da4c6648
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rs
index 75eb097e74..ec6e6c1157 100644
--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs
+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs
@@ -555,8 +555,8 @@ impl ApprovalGate {
agent_id: agent_id.clone(),
});
// Publish every surface inside the same registration barrier.
- // Workspace lookup completed before creating a row, so neither
- // removal nor a fast human decision can precede these surfaces.
+ // Workspace lookup cannot delay a flow surface after the generic
+ // request; scoped removal and decisions wait for every surface.
if let Some(ApprovalSourceContext::Flow {
flow_id, run_id, ..
}) = &source_context
diff --git a/crates/openhuman-embed/src/agent/spec.rs b/crates/openhuman-embed/src/agent/spec.rs
index 6ef9ad28d2..0a45d619a8 100644
--- a/crates/openhuman-embed/src/agent/spec.rs
+++ b/crates/openhuman-embed/src/agent/spec.rs
@@ -364,8 +364,9 @@ impl AgentSpec {
/// The agent's own in-process tools, built fresh for every turn.
///
/// Until this existed, an embedder's tools could only reach an agent over
- /// [`mcp`](Self::mcp): a spec is data, and the session behind it is rebuilt
- /// from that data on every turn, so a `Box<dyn Tool>` had nowhere to live
+ /// the `mcp` builder (with the `mcp` feature enabled): a spec is data, and
+ /// the session behind it is rebuilt from that data on every turn, so a
+ /// `Box<dyn Tool>` had nowhere to live
/// in between. The cost was paid by the model — a discovery call to learn
/// what the server offers, an `mcp_call_tool` envelope whose inner
/// `arguments` object no provider can validate or constrain decoding
diff --git a/crates/openhuman-embed/src/turn_control.rs b/crates/openhuman-embed/src/turn_control.rs
index bcfa0aca63..1549866b97 100644
--- a/crates/openhuman-embed/src/turn_control.rs
+++ b/crates/openhuman-embed/src/turn_control.rs
@@ -13,7 +13,7 @@ impl Turn {
/// Run the turn.
///
/// Establishes the origin and progress scopes described in the module docs,
- /// then dispatches through [`call`](crate::call::call) so the
+ /// then dispatches through the shared call handler so the
/// `{result, logs}` envelope, [`DomainSet`](openhuman_core::core::runtime::DomainSet)
/// gating and error classification are handled the same way as every other
/// facade method.
diff --git a/crates/openhuman-embed/src/turn_types.rs b/crates/openhuman-embed/src/turn_types.rs
index 6ffe8dbee5..816e45ab75 100644
--- a/crates/openhuman-embed/src/turn_types.rs
+++ b/crates/openhuman-embed/src/turn_types.rs
@@ -166,7 +166,7 @@ pub struct TurnRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub temperature: Option<f64>,
/// Conversation this turn belongs to. The core does **not** mint one, so
- /// [`Turn::send`] does; see [`TurnOutcome::session_id`].
+ /// [`Turn::send`](crate::Turn::send) does; see [`TurnOutcome::session_id`].
#[serde(skip_serializing_if = "Option::is_none")]
pub thread_id: Option<String>,
/// Per-turn working directory for the agent's filesystem and shell tools.
@@ -215,14 +215,14 @@ pub struct TurnOutcome {
pub reply: String,
/// The conversation this turn ran in — the caller's `session_id` when one
/// was supplied, otherwise the one minted for it. Pass it to the next
- /// [`Turn::session`] to continue the conversation.
+ /// [`Turn::session`](crate::Turn::session) to continue the conversation.
pub session_id: String,
/// What the turn spent: tokens, cost, context window, and any synchronous
/// children it ran.
///
/// Present only when the turn returned. A turn that **failed** also spent
/// what it spent, and there is no outcome to carry it on -- use
- /// [`Turn::meter`] for that, which fires either way.
+ /// [`Turn::meter`](crate::Turn::meter) for that, which fires either way.
///
/// `None` when the turn ran against a caller-built runtime's orchestrator
/// rather than a runtime-owned [`Agent`](crate::Agent): that path answers
@@ -230,7 +230,7 @@ pub struct TurnOutcome {
/// report from. `None` also when the session reported nothing at all.
pub usage: Option<openhuman_core::agent::tinyagents::host::LastTurnUsage>,
/// [`reply`](Self::reply) parsed as JSON, when the turn asked for a JSON
- /// [`response_format`](Turn::response_format) and the reply parses.
+ /// [`response_format`](crate::Turn::response_format) and the reply parses.
/// `None` otherwise -- including a reply the model did not shape, which
/// the host should treat as a failed structured answer.
pub structured: Option<serde_json::Value>,