Skip to content

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

fix(channels): correct test assertion for prompt channel behavior

Steven Enamakele929a5476732
diff --git a/crates/openhuman-core/src/channels/tests/common.rs b/crates/openhuman-core/src/channels/tests/common.rs
index fe834c7902..583ae0f34b 100644
--- a/crates/openhuman-core/src/channels/tests/common.rs
+++ b/crates/openhuman-core/src/channels/tests/common.rs
@@ -66,20 +66,13 @@ pub(super) use crate::agent::bus::use_real_agent_handler;
pub(super) fn make_workspace() -> TempDir {
let tmp = TempDir::new().unwrap();
- // Create minimal workspace files — only the bundled identity prompts
- // plus a MEMORY.md stand-in for what the archivist would write.
+ // Create minimal workspace files — only the bundled identity prompts.
std::fs::write(tmp.path().join("SOUL.md"), "# Soul\nBe helpful.").unwrap();
std::fs::write(
tmp.path().join("IDENTITY.md"),
"# Identity\nName: OpenHuman",
)
.unwrap();
- std::fs::write(
- tmp.path().join("PROFILE.md"),
- "# User Profile\nName: Test User",
- )
- .unwrap();
- std::fs::write(tmp.path().join("MEMORY.md"), "# Memory\nUser likes Rust.").unwrap();
tmp
}
diff --git a/crates/openhuman-core/src/channels/tests/prompt.rs b/crates/openhuman-core/src/channels/tests/prompt.rs
index ba2962ab1f..b42e493c9c 100644
--- a/crates/openhuman-core/src/channels/tests/prompt.rs
+++ b/crates/openhuman-core/src/channels/tests/prompt.rs
@@ -62,7 +62,6 @@ fn prompt_injects_workspace_files() {
// v1 memory files are never inlined; memory v2 injects `context.md`.
assert!(!prompt.contains("### PROFILE.md"), "PROFILE.md must not be inlined");
assert!(!prompt.contains("### MEMORY.md"), "MEMORY.md must not be inlined");
- assert!(!prompt.contains("User likes Rust"), "MEMORY content must not leak");
}
#[test]
@@ -73,18 +72,9 @@ fn prompt_missing_file_markers() {
assert!(prompt.contains("[File not found: SOUL.md]"));
assert!(prompt.contains("[File not found: IDENTITY.md]"));
- // PROFILE.md is optional (generated by onboarding enrichment) — should
- // NOT emit a missing marker when absent.
- assert!(
- !prompt.contains("[File not found: PROFILE.md]"),
- "PROFILE.md is optional and should be silently skipped when absent"
- );
- // MEMORY.md is optional and must NOT emit a marker when absent —
- // a fresh install has no archivist output yet.
- assert!(
- !prompt.contains("[File not found: MEMORY.md]"),
- "MEMORY.md is optional and should be silently skipped when absent"
- );
+ // PROFILE.md and MEMORY.md are retired (memory v2) and never get a marker.
+ assert!(!prompt.contains("[File not found: PROFILE.md]"));
+ assert!(!prompt.contains("[File not found: MEMORY.md]"));
}
#[test]