Skip to content

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

test(tinyagents): update shell missing program failure classification

Steven Enamakelc4bcb17fa70b
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_tests.rs
index 2e092be64e..406d884bea 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_classified_failure_tests.rs
@@ -531,14 +531,16 @@ fn a_mistyped_file_path_is_a_correctable_call_not_a_missing_program() {
"{tool}"
);
}
- // A shell that cannot find a program is still unsupported.
+ // A shell that cannot find a program is a missing program, not a wrong
+ // path: its own class, with one correction (see
+ // `middleware_failure_effect_tests.rs`).
assert_eq!(
super::super::repeated_failure::recovery_policy(
"shell",
"bash: jq: command not found",
false
),
- Some(("unsupported", 0))
+ Some(("missing_app", 1))
);
}