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 Enamakel0d4de9d27dbd
diff --git a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs b/crates/openhuman-core/src/flows/bus_subscriber_tests.rs
index 58c78a1431..1dafb275a1 100644
--- a/crates/openhuman-core/src/flows/bus_subscriber_tests.rs
+++ b/crates/openhuman-core/src/flows/bus_subscriber_tests.rs
@@ -294,18 +294,32 @@ async fn digest_writes_run_digest_entry_for_completed_run() {
.unwrap();
let step = tinyflows_catalog::FlowRunStep {
node_id: "n1".to_string(),
- output: json!({ "sent": 3 }),
+ output: json!({
+ "sent": 3,
+ "access_token": "synthetic-credential-value",
+ }),
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");
+ let string_step = tinyflows_catalog::FlowRunStep {
+ node_id: "n2".to_string(),
+ output: json!(token_output.clone()),
+ port: None,
+ status: Some("success".to_string()),
+ duration_ms: Some(8),
+ diagnostics: Vec::new(),
+ };
store::finish_flow_run(
&config,
"run-ok",
"completed",
"2026-01-01T00:05:00Z",
- &[step],
+ &[step, string_step],
&[],
None,
None,
@@ -337,6 +351,11 @@ async fn digest_writes_run_digest_entry_for_completed_run() {
assert!(entry.text.contains("f-ok"));
assert!(entry.text.contains("completed"));
assert!(entry.text.contains("n1"));
+ assert!(entry.text.contains("\"sent\":3"));
+ assert!(!entry.text.contains("synthetic-credential-value"));
+ assert!(entry.text.contains("[REDACTED]"));
+ assert!(!entry.text.contains(&token_output));
+ assert!(entry.text.contains("n2"));
assert!(entry.text.chars().count() <= DIGEST_MAX_CHARS);
}