Skip to content

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

feat(embed): re-export session store record types

Steven Enamakele211f15c7078
diff --git a/crates/openhuman-core/src/agent/session_store/mod.rs b/crates/openhuman-core/src/agent/session_store/mod.rs
index 3926e45165..3f9af8a81f 100644
--- a/crates/openhuman-core/src/agent/session_store/mod.rs
+++ b/crates/openhuman-core/src/agent/session_store/mod.rs
@@ -17,7 +17,13 @@
use std::sync::{Arc, LazyLock, PoisonError, RwLock};
pub use agent_transcripts::{agent_transcript_root, AgentTranscriptFiles};
+// Keep host codecs identical to the records the harness and stores persist.
+pub use tinyagents_graph::todos::TodoList;
+pub use tinyagents_harness::events::{AgentEvent, HarnessRunStatus};
+pub use tinyagents_harness::ids::ExecutionStatus;
+pub use tinyagents_harness::observability::AgentObservation;
pub use tinyagents_session::port::{AgentStores, SessionStoreProvider};
+pub use tinyagents_session::transcript::import::types::{JournalMessage, SessionDescriptor};
mod agent_transcripts;
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index 150226287b..d3e8c35e96 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -213,9 +213,13 @@ pub mod seams {
/// The session store port: what a host implements to keep every agent's
/// conversations in its own database ([`RuntimeBuilder::session_store`]),
/// with the in-memory provider and the conformance suites a host's provider
-/// is held to.
+/// is held to. The persisted record types are the harness's own serde codecs,
+/// so hosts can encode and decode stored state without duplicating wire shapes.
pub mod session_store {
- pub use openhuman_core::agent::session_store::{AgentStores, SessionStoreProvider};
+ pub use openhuman_core::agent::session_store::{
+ AgentEvent, AgentObservation, AgentStores, ExecutionStatus, HarnessRunStatus,
+ JournalMessage, SessionDescriptor, SessionStoreProvider, TodoList,
+ };
pub use tinyagents_session::port::{
AppendStore, InMemorySessionStores, InMemoryTranscriptLocator, InMemoryTurnStates, Store,
TurnStates,
diff --git a/crates/openhuman-embed/tests/README.md b/crates/openhuman-embed/tests/README.md
index 9155177fcc..f3d4a0bea1 100644
--- a/crates/openhuman-embed/tests/README.md
+++ b/crates/openhuman-embed/tests/README.md
@@ -22,6 +22,9 @@ Routing assertions come from the mocks: each agent gets its own provider
mock, so a turn that leaked to another agent's endpoint shows up as a request
recorded on the wrong server.
+`session_codecs.rs` uses no runtime: it verifies that the public session-store
+record types preserve populated persisted JSON, including metadata and lineage.
+
## Layout
| File | What it proves |