The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(doctor): expect no config path when write probe passes
Steven Enamakel9b299b0d8e4d
diff --git a/crates/openhuman-core/src/doctor/checks/config_semantics_tests.rs b/crates/openhuman-core/src/doctor/checks/config_semantics_tests.rsindex 988ed0c010..f91457de02 100644--- a/crates/openhuman-core/src/doctor/checks/config_semantics_tests.rs+++ b/crates/openhuman-core/src/doctor/checks/config_semantics_tests.rs@@ -258,7 +258,9 @@ async fn action_directory_without_write_mode_bits_reports_effective_writability(findings[0].severity, expected_severity,"action-directory probe should reflect effective write access");- assert_eq!(findings[0].config_path.as_deref(), Some("action_dir"));+ // A passing probe (root writing past the mode bits) names no config key.+ let expected_path = (expected_severity != FindingSeverity::Pass).then_some("action_dir");+ assert_eq!(findings[0].config_path.as_deref(), expected_path);assert_eq!(std::fs::read_dir(dir.path()).unwrap().count(), 0);}diff --git a/crates/openhuman-core/src/doctor/checks/workspace_tests.rs b/crates/openhuman-core/src/doctor/checks/workspace_tests.rsindex 74213b89fb..433d971a2c 100644--- a/crates/openhuman-core/src/doctor/checks/workspace_tests.rs+++ b/crates/openhuman-core/src/doctor/checks/workspace_tests.rs@@ -196,7 +196,9 @@ async fn workspace_without_write_mode_bits_reports_effective_writability() {.find(|finding| finding.check_id == "workspace/writable").expect("native workspace check produces a finding");assert_eq!(finding.severity, expected_severity);- assert_eq!(finding.config_path.as_deref(), Some("workspace_dir"));+ // A passing probe (root writing past the mode bits) names no config key.+ let expected_path = (expected_severity != FindingSeverity::Pass).then_some("workspace_dir");+ assert_eq!(finding.config_path.as_deref(), expected_path);let serialized = serde_json::to_string(&report).expect("serialize doctor report");assert!(!serialized.contains(PRIVATE_WORKSPACE_MARKER),