Skip to content

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

chore: files changed crates/openhuman-core/src/flows/bus_subscriber_tests.rs

Steven Enamakel8607f00c295f
diff --git a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs b/crates/openhuman-core/src/flows/bus_subscriber_tests.rs
index 1dafb275a1..c1b6c671c8 100644
--- a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs
+++ b/crates/openhuman-core/src/flows/bus_subscriber_tests.rs
@@ -277,7 +277,7 @@ async fn digest_ignores_cancelled_run() {
}
#[tokio::test]
-async fn digest_writes_run_digest_entry_for_completed_run() {
+async fn digest_sanitizes_persisted_outputs() {
let tmp = tempfile::TempDir::new().unwrap();
let config = test_config(&tmp);
let _engine = digest_test_engine(&config);
@@ -296,16 +296,16 @@ async fn digest_writes_run_digest_entry_for_completed_run() {
node_id: "n1".to_string(),
output: json!({
"sent": 3,
- "access_token": "synthetic-credential-value",
+ "access_token": format!("synthetic-credential-value{}", "x".repeat(140)),
}),
port: None,
status: Some("success".to_string()),
duration_ms: Some(12),
diagnostics: Vec::new(),
};
- // Build a synthetic token at runtime so repository credential scanners
- // do not mistake this sanitizer fixture for a usable credential.
- let token_output = format!("sk-ant-api03-{}{}", "abcdefghijklmnopqrstuvwxyz", "0123456789");
+ // Generated synthetic fixture data exercises text-token scrubbing; it is
+ // deterministic test input and never a real credential.
+ let token_output = format!("sk-ant-api03-{}", "0123456789abcdef".repeat(3));
let string_step = tinyflows_catalog::FlowRunStep {
node_id: "n2".to_string(),
output: json!(token_output.clone()),