Skip to content

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

ci: extend agent runtime boundary self-tests to progress tests

Steven Enamakele2ae975cd9c2
diff --git a/scripts/ci/check-agent-runtime-boundary.mjs b/scripts/ci/check-agent-runtime-boundary.mjs
index 31ef4d8258..a8c9f7a132 100644
--- a/scripts/ci/check-agent-runtime-boundary.mjs
+++ b/scripts/ci/check-agent-runtime-boundary.mjs
@@ -558,8 +558,11 @@ function assertSelfTests() {
"vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/types.rs";
const testPath =
"vendor/tinyagents/crates/tinyagents-harness/src/turn_runner/mod_tests.rs";
+ const progressTestsPath =
+ "vendor/tinyagents/crates/tinyagents-harness/src/progress_tests.rs";
const nativeTypes =
"use crate::progress::AgentProgress;\nProgress(Box<AgentProgress>)";
+ const progressTests = "use crate::progress::AgentProgress;";
if (
!isNativeAgentProgressReference(progressPath, "pub enum AgentProgress {") ||
!isNativeAgentProgressReference(
@@ -575,6 +578,11 @@ function assertSelfTests() {
testPath,
"_event: crate::progress::AgentProgress",
) ||
+ !isNativeAgentProgressReference(
+ progressTestsPath,
+ "let event = AgentProgress::ContextCompacting;",
+ progressTests,
+ ) ||
isNativeAgentProgressReference(
"vendor/tinyagents/crates/tinyagents-session/src/lib.rs",
"pub enum AgentProgress {",
@@ -592,6 +600,11 @@ function assertSelfTests() {
isNativeAgentProgressReference(
testPath,
"_event: openhuman_core::AgentProgress",
+ ) ||
+ isNativeAgentProgressReference(
+ progressTestsPath,
+ "let event = openhuman_core::AgentProgress::ContextCompacting;",
+ "use openhuman_core::AgentProgress;",
)
)
throw new Error(