The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(document): clarify bus contract ownership in module docs
Steven Enamakela2c1167711f4
diff --git a/crates/openhuman-core/src/tools/impl/document/document_tests.rs b/crates/openhuman-core/src/tools/impl/document/document_tests.rsindex bac6018e95..78eccb4e03 100644--- a/crates/openhuman-core/src/tools/impl/document/document_tests.rs+++ b/crates/openhuman-core/src/tools/impl/document/document_tests.rs@@ -108,7 +108,11 @@ async fn execute_rejects_too_many_sections() {let args = json!({ "title": "Big doc", "sections": sections });let result = tool.execute(args).await.expect("execute returns Ok");assert!(result.is_error);- assert!(result.text().contains(&MAX_SECTIONS.to_string()));+ assert!(+ result.text().contains(&format!("must contain ≤ {MAX_SECTIONS} sections")),+ "the tool should preserve the bus limit in its error: {}",+ result.text()+ );}#[tokio::test]diff --git a/crates/openhuman-core/src/tools/impl/document/types.rs b/crates/openhuman-core/src/tools/impl/document/types.rsindex 1748627068..5399d9f0f9 100644--- a/crates/openhuman-core/src/tools/impl/document/types.rs+++ b/crates/openhuman-core/src/tools/impl/document/types.rs@@ -1,11 +1,9 @@//! Typed input / output / error contracts for the `generate_document` tool.//!-//! The *document* half of these contracts — the section spec, its size-//! limits, and the validation rules — lives in the host-local-//! [`format`](super::format)-//! module and is re-exported here. Nothing about "a title, some sections, and a bullet-//! list" is OpenHuman-specific, so the definitions live where any host can-//! reach them and this module keeps only what genuinely is ours:+//! The document spec, its size limits, and validation rules are owned by+//! `tinydocs-bus`. The parent module aliases that contract crate as `format`+//! to preserve existing paths. This module keeps only OpenHuman's product+//! boundary://!//! - [`GenerateDocumentOutput`] — artifact ids and workspace paths, concepts//! the bus contract has no notion of.@@ -14,9 +12,8 @@//! the deadline is OpenHuman's policy, applied by [`engine`](super::engine)//! around a synchronous crate call.//!-//! The re-exported [`GenerateDocumentInput`] is the format module's `DocumentSpec`-//! under its historical OpenHuman name. Field names are unchanged, so the JSON-//! tool schema the agent sees is byte-identical to before the extraction.+//! [`GenerateDocumentInput`] names the bus `DocumentSpec` under its historical+//! OpenHuman name. Field names are unchanged, so the JSON tool schema is stable.use serde::{Deserialize, Serialize};