Skip to content

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

chore(agent): drop the dead copy of the cache-layout warning

M3gA-Minde2c0c36b78ef
diff --git a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
index 67dfdde4f5..6a88e382c1 100644
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/observability/event_projection.rs
@@ -4,7 +4,6 @@
use std::sync::atomic::Ordering;
-use tinyagents_harness::cache::CacheLayoutEvent;
use tinyagents_harness::events::{AgentEvent, EventListener, EventRecord};
use crate::progress::AgentProgress;
@@ -736,5 +735,3 @@ impl OpenhumanEventBridge {
})
}
}
-
-include!("event_projection_cache_layout.rs");
diff --git 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
deleted file mode 100644
index 4cf52e7371..0000000000
--- a/crates/openhuman-core/src/agent/tinyagents/observability/event_projection_cache_layout.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-/// 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"
- );
- }
-}