Skip to content

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

Merge remote-tracking branch 'origin/epic/8088-tinyagents-slim' into epic-8088-208-update-tools

Steven Enamakelab82bc49b70a
diff --cc crates/openhuman-core/src/agent/tinyagents/observability/event_projection_cache_layout.rs
index 0000000000,f8660a99ea..b9f4492a59
mode 000000,100644..100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection_cache_layout.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection_cache_layout.rs
@@@ -1,0 -1,25 +1,25 @@@
++use tinyagents_harness::cache::CacheLayoutEvent;
++
+ /// Surface the crate `PromptCacheGuardMiddleware`'s recorded
+ /// [`CacheLayoutEvent`]s as structured `[cache]` warnings (issue #4249, 03.2).
+ ///
+ /// The guard records a layout event whenever the cacheable prompt prefix changes
+ /// between turns (volatile content — a timestamp, uuid, injected memory, etc. —
+ /// silently busting the provider KV-cache prefix). This is the crate-native
+ /// replacement for the deleted `CacheAlignMiddleware` free-text warn-log:
+ /// instead of a token-pattern heuristic it reports the exact before/after
+ /// cacheable segment ids. Drained by the turn loop after the run and logged
+ /// here. The warn-only `CacheAlignMiddleware` shadow was deleted in C3; this
+ /// guard is now the sole owner of KV-cache-prefix drift detection.
+ pub(crate) fn surface_cache_layout_events(model: &str, events: &[CacheLayoutEvent]) {
+ for event in events {
+ tracing::warn!(
+ model,
+ changed_prefix = event.changed_prefix,
+ volatile_only = event.volatile_only,
+ segments_before = ?event.segment_ids_before,
+ segments_after = ?event.segment_ids_after,
+ "[cache] prompt-cache prefix changed across turns — KV-cache prefix may not hit; keep dynamic content out of the system prompt / stable tool set"
+ );
+ }
+ }
-use tinyagents_harness::cache::CacheLayoutEvent;
-
diff --cc crates/openhuman-core/src/tools/impl/README.md
index 4e62b90242,df570fd01d..47957b089b
--- a/crates/openhuman-core/src/tools/impl/README.md
+++ b/crates/openhuman-core/src/tools/impl/README.md
@@@ -26,7 -26,7 +26,7 @@@ tested but no production assembly site
| Family | Tools | Registration gate |
| --- | --- | --- |
- | [`system/`](./system/) | `ShellTool`, `InstallToolTool`, `DetectToolsTool`, `CurrentTimeTool`, `ResolveTimeTool`, `ScheduleTool`, `ProxyConfigTool`, `PushoverTool`, workspace and retrieval helpers. |
-| [`system/`](./system/) | `ShellTool`, `InstallToolTool`, `DetectToolsTool`, `CurrentTimeTool`, `ResolveTimeTool`, `ProxyConfigTool`, `PushoverTool`, update tools, workspace and retrieval helpers. |
++| [`system/`](./system/) | `ShellTool`, `InstallToolTool`, `DetectToolsTool`, `CurrentTimeTool`, `ResolveTimeTool`, `ProxyConfigTool`, `PushoverTool`, workspace and retrieval helpers. |
| [`filesystem/`](./filesystem/) | Host adapter only: `SecurityPolicy` implements `tinytools_std::filesystem::FsGate`. The tools (`FileReadTool`, `FileWriteTool`, `EditFileTool`, `ApplyPatchTool`, `GrepTool`, `GlobTool`, `ListFilesTool`, `ReadDiffTool`, `CsvExportTool`, `GitOperationsTool`, `RunLinterTool`, `RunTestsTool`, `UpdateMemoryMdTool`) live in `tinytools_std::filesystem` and are imported directly by `tools/ops.rs` | always registered, except `ReadDiffTool`, `RunLinterTool`, and `RunTestsTool`, which are exported, not registered |
| [`browser/`](./browser/) | `BrowserTool` (TinyComputer browser members and tasks), `BrowserOpenTool` (simple TinyComputer navigation), `ImageInfoTool` | Both browser tools need `browser.enabled` and the `modules` feature, and are deferred until `tool_search`; `ImageInfoTool` remains direct. Browser navigation uses the shared `http_request.allowed_domains` policy, and the checksum-pinned TinyComputer release module. Consequential actions go through the forced approval gate; `browser_unattended.rs` lets trusted cron/background/approval-free workflow turns skip it for the kinds listed in `[browser] unattended_actions`. |
| [`network/`](./network/) | `HttpRequestTool`, `WebFetchTool`, `CurlTool`, `GitbooksSearchTool`, `GitbooksGetPageTool`, and under the `mcp` Cargo feature `McpListServersTool`, `McpListToolsTool`, `McpCallTool`; `url_guard.rs` is the shared SSRF/allowlist validator, not a tool | `http_request`, `web_fetch`, `curl` always registered; `gitbooks_*` need `gitbooks.enabled` and, when the active profile sets an `mcp_allowlist`, an entry named `gitbooks`; `mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool` register only when the static `[[mcp_client.servers]]` registry (after the profile allowlist) is non-empty |
diff --cc crates/openhuman-core/src/tools/impl/system/mod.rs
index 8070455008,a867d78cd3..b4118bafdd
--- a/crates/openhuman-core/src/tools/impl/system/mod.rs
+++ b/crates/openhuman-core/src/tools/impl/system/mod.rs
@@@ -19,8 -20,9 +18,7 @@@ use tinytools::ToolRunContext
pub use install_tool::InstallToolTool;
pub use proxy_config::ProxyConfigTool;
pub use retrieve_tool_output::{retrieve_tool_output_tool, RetrieveToolOutputTool};
- pub use schedule::ScheduleTool;
pub use shell::ShellTool;
-pub use update_apply::UpdateApplyTool;
-pub use update_check::UpdateCheckTool;
/// Clone and scope `security` to the run's workspace descriptor, if any.
pub(in crate::tools::implementations) fn security_for_tool_context(