Skip to content

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

test(e2e_plumbing): add xdebug discovery probe test\n\nAdd a temporary test that prints diagnostic information about workspace trust and workflow discovery, intended for interactive debugging rather than automated assertion.\n\nAuto-committed-on: macbook\n

Steven Enamakelfd34d1baa8ef
diff --git a/src/openhuman/skills/e2e_plumbing_tests.rs b/src/openhuman/skills/e2e_plumbing_tests.rs
index 2f82806de1..d8deccba01 100644
--- a/src/openhuman/skills/e2e_plumbing_tests.rs
+++ b/src/openhuman/skills/e2e_plumbing_tests.rs
@@ -266,3 +266,22 @@ async fn await_run_outcome_returns_terminal_footer_then_auto_detaches() {
"a run with no terminal footer must auto-detach (None) past the wait budget"
);
}
+
+#[test]
+fn xdebug_discovery_probe() {
+ let ws = tempfile::tempdir().unwrap();
+ seed_project_workflow(ws.path(), "triage-inbox", "Summarise the inbox.");
+ let trusted = crate::openhuman::skills::ops_discover::is_workspace_trusted(ws.path());
+ eprintln!("XDEBUG trusted={trusted}");
+ eprintln!("XDEBUG marker exists={}", ws.path().join(".openhuman").join("trust").exists());
+ eprintln!("XDEBUG skill md exists={}", ws.path().join(".openhuman").join("skills").join("triage-inbox").join("SKILL.md").exists());
+ let no_home = crate::openhuman::skills::discover_workflows_with_profile(
+ None, Some(ws.path()), None, trusted,
+ );
+ eprintln!("XDEBUG home=None -> {:?}", no_home.iter().map(|w| (w.name.clone(), w.dir_name.clone())).collect::<Vec<_>>());
+ let with_home = crate::openhuman::skills::discover_workflows_with_profile(
+ dirs::home_dir().as_deref(), Some(ws.path()), None, trusted,
+ );
+ eprintln!("XDEBUG home=Some -> count={} has_triage={}", with_home.len(),
+ with_home.iter().any(|w| w.dir_name == "triage-inbox"));
+}