Skip to content

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

feat(memory): register EpisodicPortability capability for v1.21.0

Steven Enamakelfc1d372d4aaf
diff --git a/crates/openhuman-core/src/core/subsystem/driver_tests.rs b/crates/openhuman-core/src/core/subsystem/driver_tests.rs
index dd67524820..a2a6ca741a 100644
--- a/crates/openhuman-core/src/core/subsystem/driver_tests.rs
+++ b/crates/openhuman-core/src/core/subsystem/driver_tests.rs
@@ -198,11 +198,12 @@ fn every_memory_contract_capability_string_maps_into_driver_capabilities() {
// and Profile, then 18 with Episodic, then 20 when tinymemory v1.7.0 added
// SourceSync and CodingSessions, then 21 with v1.13.2 adding Scoring,
// then 26 with v1.13.7's typed-ingestion round (Document/Conversation/
- // Learning/Event ingest and Answer). The assertion above is the
+ // Learning/Event ingest and Answer), then 27 with v1.21.0's
+ // EpisodicPortability. The assertion above is the
// load-bearing one: it says the mapping is lossless, which is what makes
// the kernel's opaque-string set able to carry the contract without
// knowing what a memory capability is.
- assert_eq!(caps.len(), 26);
+ assert_eq!(caps.len(), 27);
assert!(
caps.contains("tool_memory"),
"the one non-identity snake_case family must survive"
diff --git a/crates/openhuman-core/src/modules/memory/capabilities.rs b/crates/openhuman-core/src/modules/memory/capabilities.rs
index a2adceefbd..70fe498ead 100644
--- a/crates/openhuman-core/src/modules/memory/capabilities.rs
+++ b/crates/openhuman-core/src/modules/memory/capabilities.rs
@@ -10,7 +10,7 @@ use tinymemory_api::capabilities::{Capabilities, Capability};
/// Checked against the registry pin by `the_capability_list_matches_the_pinned_release`,
/// so bumping the pin without re-reading the list is a red test rather than a
/// silent over-claim.
-pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.20.0";
+pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.21.0";
/// The capability families the **pinned artifact** actually serves.
///
@@ -46,6 +46,9 @@ pub(crate) const ARTIFACT_CAPABILITIES_PIN: &str = "1.20.0";
/// crates, and v1.20.0 adds the hosted families on the TinyHumans wire and
/// the optional `TreeSummary::preview` (contract 4.2); none of that is a family
/// the module serves, so the advertised families stay the same.
+/// Re-read at `v1.21.0`: the capability diff adds one family,
+/// `EpisodicPortability` (tinymemory#178), which the module serves; it is
+/// listed below.
///
/// Read at tag `v1.3.0`. Unchanged from v1.2.0 — the release added members
/// within existing families (`retry_failed`, the diagnostics trio,
@@ -136,6 +139,11 @@ pub(crate) const ARTIFACT_CAPABILITIES: &[Capability] = &[
Capability::LearningIngest,
Capability::EventIngest,
Capability::Answer,
+ // Arrived in v1.21.0 (tinymemory#178): `ExportEpisodic` / `ImportEpisodic`,
+ // which the module serves from both engines and `ModuleMemoryProvider`
+ // forwards through `as_episodic_portability`. `git diff v1.20.0..v1.21.0 --
+ // crates/tinymemory-bus/src/capabilities.rs` adds exactly this family.
+ Capability::EpisodicPortability,
];
/// Escape hatch for a locally-built module.