Skip to content

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

chore: files changed crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs,c

Steven Enamakel46f8e74b5ebe
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs
index a79a40e3f1..2d8e4e6309 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/memory_ingest.rs
@@ -117,14 +117,6 @@ impl OpenHumanTurnPrelude {
},
)
.await;
- if let Some(pack) = &pack {
- crate::core::bus::BUS.publish(crate::core::events::DomainEvent::MemoryPackInjected {
- thread_id: thread_id.clone(),
- agent_id: identity.agent_id.clone(),
- tokens: pack.tokens,
- refs: pack.refs.len(),
- });
- }
Some(Arc::new(MemoryTurn {
config,
identity,
diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rs
index 0344ffb431..bbb3efb305 100644
--- a/crates/openhuman-core/src/core/bus.rs
+++ b/crates/openhuman-core/src/core/bus.rs
@@ -83,8 +83,7 @@ pub const EVENTS_INTERFACE: &str = "ai.tinyhumans.openhuman.Events";
/// `MemoryTreeBuildProgress`, `CacheRebuilt`) — nothing publishes them any
/// more — and adds `ConversationTurnCommitted` (memory's conversation
/// ingestion) and `CronSystemJobDue` (host-owned cron jobs).
-/// `1.9.0` adds `MemoryPackInjected` (the per-turn memory pack, additive).
-pub const EVENTS_VERSION: Version = Version::new(1, 9, 0);
+pub const EVENTS_VERSION: Version = Version::new(1, 8, 0);
/// The bus. Initialised once by [`init`]; safe to touch before that.
pub static BUS: OnceBus<DomainEvent> = OnceBus::new();
diff --git a/crates/openhuman-core/src/core/events.rs b/crates/openhuman-core/src/core/events.rs
index 50b023948d..c38b5113f7 100644
--- a/crates/openhuman-core/src/core/events.rs
+++ b/crates/openhuman-core/src/core/events.rs
@@ -283,17 +283,6 @@ pub enum DomainEvent {
},
/// A memory recall query completed.
MemoryRecalled { query: String, hit_count: usize },
- /// A turn was given a memory pack before the model ran
- /// (`memory::lifecycle::hooks::pre_turn`). Counts only, never content.
- MemoryPackInjected {
- thread_id: String,
- /// The memory agent id the turn ran as.
- agent_id: String,
- /// The pack's estimated tokens.
- tokens: usize,
- /// How many items it cites.
- refs: usize,
- },
// ── Channels ────────────────────────────────────────────────────────
/// An inbound channel message from the transport layer, ready for processing.
@@ -1384,8 +1373,7 @@ impl DomainEvent {
Self::EmbeddingModelUnhealthy { .. }
| Self::MemoryStored { .. }
- | Self::MemoryRecalled { .. }
- | Self::MemoryPackInjected { .. } => "memory",
+ | Self::MemoryRecalled { .. } => "memory",
Self::ChannelInboundMessage { .. }
| Self::ChannelMessageReceived { .. }
@@ -1523,7 +1511,6 @@ impl DomainEvent {
Self::MonitorLine { .. } => "MonitorLine",
Self::MemoryStored { .. } => "MemoryStored",
Self::MemoryRecalled { .. } => "MemoryRecalled",
- Self::MemoryPackInjected { .. } => "MemoryPackInjected",
Self::ChannelInboundMessage { .. } => "ChannelInboundMessage",
Self::ChannelMessageReceived { .. } => "ChannelMessageReceived",
Self::ChannelMessageProcessed { .. } => "ChannelMessageProcessed",
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index e8c8bea3ee..f680d5f58e 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -38,7 +38,7 @@ const LEGACY_LIMIT_ENTRIES = [
// under the general 750 limit, so it needs no exception at all.
// The session-todo integration added transcript metadata construction to
// this already-exempt composition seam. Keep its allowance exact.
- ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1495],
+ ["crates/openhuman-core/src/agent/session_host/runtime_session.rs", 1492],
// Session-host factory still assembles the product's deliberately coupled
// provider, security, memory, tool and prompt policy. Generic session
// state moved to tinyagents-runtime; this remaining composition is split in
@@ -57,7 +57,7 @@ const LEGACY_LIMIT_ENTRIES = [
["crates/openhuman-core/src/core/events.rs", 1808],
["crates/openhuman-core/src/core/events_tests.rs", 1003],
["crates/openhuman-core/src/core/observability.rs", 3502],
- ["crates/openhuman-core/src/core/runtime/builder.rs", 819],
+ ["crates/openhuman-core/src/core/runtime/builder.rs", 813],
];
const LEGACY_LIMITS = new Map(LEGACY_LIMIT_ENTRIES);