Skip to content

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

test(storage): cover host calls to the jsonl task opener

Steven Enamakel6d62ef1d9e01
diff --git a/scripts/__tests__/storage-bypass-debt.test.mjs b/scripts/__tests__/storage-bypass-debt.test.mjs
index 3bec85d9ab..4997401d18 100644
--- a/scripts/__tests__/storage-bypass-debt.test.mjs
+++ b/scripts/__tests__/storage-bypass-debt.test.mjs
@@ -284,3 +284,10 @@ for (const [name, source] of [
}
});
}
+
+
+test("host calls to the JSONL task opener cannot hide their persistent path", () => {
+ const findings = scan("crates/openhuman-core/src/tasks.rs", "let store = tinyagents::open_jsonl_task_store_or_memory(path, None);");
+ assert.equal(findings.length, 1);
+ assert.equal(findings[0].rule, "task-store-open");
+});