Skip to content

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

feat(memory): add compile-time identity probe for SourceKind

Steven Enamakel394e4d949727
diff --git a/src/openhuman/memory/source_scope.rs b/src/openhuman/memory/source_scope.rs
index 46ad5da306..d9eff020df 100644
--- a/src/openhuman/memory/source_scope.rs
+++ b/src/openhuman/memory/source_scope.rs
@@ -248,3 +248,15 @@ mod tests {
.await;
}
}
+
+#[cfg(test)]
+mod identity_probe {
+ /// Compiles only if the engine's `SourceKind` and the contract's are the
+ /// *same item*, not structural twins.
+ #[allow(dead_code)]
+ fn same_item(
+ x: tinymemory_core::store::chunks::types::SourceKind,
+ ) -> tinymemory_api::chunks::SourceKind {
+ x
+ }
+}