Skip to content

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

fix: stabilize release CI gates after upstream merge

Steven Enamakel75cf8234671a
diff --git a/crates/openhuman-core/src/core/all_registry_tests.rs b/crates/openhuman-core/src/core/all_registry_tests.rs
new file mode 100644
index 0000000000..c4890b84c8
--- /dev/null
+++ b/crates/openhuman-core/src/core/all_registry_tests.rs
@@ -0,0 +1,48 @@
+use super::*;
+
+#[tokio::test]
+async fn full_registration_is_byte_identical() {
+ // With no ambient CoreContext (⇒ full, no filter), the public
+ // `all_registered_controllers()` must equal the raw grouped registry — same
+ // length AND same rpc-method-name sequence IN ORDER. This is the DoD (1)
+ // proof that wrapping every entry in a `GroupedController` + filtering by the
+ // ambient DomainSet changes neither the membership nor the ordering of the
+ // full() surface.
+ //
+ // The baseline is the raw `registry()` view rather than a checked-in method
+ // snapshot (a #4808 review suggestion): `all_registered_controllers()` and
+ // `registry()` are DIFFERENT code paths — the former exercises the ambient
+ // filter (`group_allowed`) and re-collects, the latter is the unfiltered
+ // source — so this asserts the filter is an order-preserving identity under
+ // full(). A frozen snapshot would instead ossify the controller list and
+ // force churn on every legitimate new controller; git history is the
+ // authoritative pre-#4796 baseline for "did the raw list itself change".
+ // Tests in this binary may have initialized the process default context,
+ // whose DomainSet can be narrower than full(). Scope the assertion
+ // explicitly so parallel test order cannot change the registry surface.
+ let ctx = CoreContext::for_test(DomainSet::full(), None, None);
+ let (filtered_methods, raw_methods) = CoreContext::scope(ctx, async {
+ let filtered = all_registered_controllers()
+ .iter()
+ .map(|c| c.rpc_method_name())
+ .collect::<Vec<_>>();
+ let raw = registry_view()
+ .iter()
+ .map(|g| g.controller.rpc_method_name())
+ .collect::<Vec<_>>();
+ (filtered, raw)
+ })
+ .await;
+
+ assert_eq!(
+ filtered_methods.len(),
+ raw_methods.len(),
+ "unfiltered all_registered_controllers() must equal raw registry length"
+ );
+ // Ordered comparison — NOT sorted. A reordering (or a drop/add) under full()
+ // would change dispatch/schema iteration order and must fail here.
+ assert_eq!(
+ filtered_methods, raw_methods,
+ "unfiltered rpc-method sequence must be byte-identical (order + membership) to the raw registry"
+ );
+}
diff --git a/crates/openhuman-core/src/core/all_tests.rs b/crates/openhuman-core/src/core/all_tests.rs
index d4a0361593..3e47be40c7 100644
--- a/crates/openhuman-core/src/core/all_tests.rs
+++ b/crates/openhuman-core/src/core/all_tests.rs
@@ -915,45 +915,6 @@ fn subsystems_namespace_is_registered_under_platform() {
);
}
-#[test]
-fn full_registration_is_byte_identical() {
- // With no ambient CoreContext (⇒ full, no filter), the public
- // `all_registered_controllers()` must equal the raw grouped registry — same
- // length AND same rpc-method-name sequence IN ORDER. This is the DoD (1)
- // proof that wrapping every entry in a `GroupedController` + filtering by the
- // ambient DomainSet changes neither the membership nor the ordering of the
- // full() surface.
- //
- // The baseline is the raw `registry()` view rather than a checked-in method
- // snapshot (a #4808 review suggestion): `all_registered_controllers()` and
- // `registry()` are DIFFERENT code paths — the former exercises the ambient
- // filter (`group_allowed`) and re-collects, the latter is the unfiltered
- // source — so this asserts the filter is an order-preserving identity under
- // full(). A frozen snapshot would instead ossify the controller list and
- // force churn on every legitimate new controller; git history is the
- // authoritative pre-#4796 baseline for "did the raw list itself change".
- let filtered_methods: Vec<String> = all_registered_controllers()
- .iter()
- .map(|c| c.rpc_method_name())
- .collect();
- let raw_methods: Vec<String> = registry_view()
- .iter()
- .map(|g| g.controller.rpc_method_name())
- .collect();
-
- assert_eq!(
- filtered_methods.len(),
- raw_methods.len(),
- "unfiltered all_registered_controllers() must equal raw registry length"
- );
- // Ordered comparison — NOT sorted. A reordering (or a drop/add) under full()
- // would change dispatch/schema iteration order and must fail here.
- assert_eq!(
- filtered_methods, raw_methods,
- "unfiltered rpc-method sequence must be byte-identical (order + membership) to the raw registry"
- );
-}
-
#[tokio::test]
async fn harness_excludes_gated_namespaces() {
use std::collections::BTreeSet;
@@ -2535,3 +2496,6 @@ mod extensions_tests;
#[path = "all_removed_tests.rs"]
mod removed_tests;
+
+#[path = "all_registry_tests.rs"]
+mod registry_tests;
diff --git a/scripts/__tests__/e2e-web-bundle-guard.test.mjs b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
index a6a05c9d9a..e4bf2a3ec9 100644
--- a/scripts/__tests__/e2e-web-bundle-guard.test.mjs
+++ b/scripts/__tests__/e2e-web-bundle-guard.test.mjs
@@ -25,6 +25,7 @@ const repoRoot = path.join(
"..",
);
const MARKER = "openhuman-e2e-bundle.marker";
+const BUNDLE_INPUTS = ["src/App.tsx", "public/favicon.ico", "index.html", "vite.config.ts"];
function writeExecutable(file, body) {
fs.mkdirSync(path.dirname(file), { recursive: true });
@@ -49,6 +50,14 @@ function makeTree(script) {
path.join(root, "app", "scripts", file),
);
}
+ // e2e-web-session.sh checks these paths before starting the mock or core.
+ // The fixture needs the same bundle inputs as the port-guard tests so this
+ // suite reaches the guard under test instead of failing on its test tree.
+ for (const rel of BUNDLE_INPUTS) {
+ const file = path.join(root, "app", rel);
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, "");
+ }
fs.mkdirSync(path.join(root, "scripts"), { recursive: true });
fs.copyFileSync(
path.join(repoRoot, "scripts", "load-dotenv.sh"),
diff --git a/scripts/__tests__/e2e-web-ports.test.mjs b/scripts/__tests__/e2e-web-ports.test.mjs
index 4acc2a4b46..cd3542632c 100644
--- a/scripts/__tests__/e2e-web-ports.test.mjs
+++ b/scripts/__tests__/e2e-web-ports.test.mjs
@@ -132,6 +132,14 @@ function markBundle(tree, { mockPort, corePort }) {
backdateBundleInputs(tree);
}
+function setMtimeAfter(file, reference) {
+ // CI filesystems can have coarse timestamp granularity. Put the input two
+ // seconds past the marker so find -newer exercises the stale-bundle path
+ // deterministically even when both files were created in one test tick.
+ const after = (fs.statSync(reference).mtimeMs + 2000) / 1000;
+ fs.utimesSync(file, after, after);
+}
+
/**
* Age every bundle input so the marker is strictly newer, the way a real build
* leaves them: `build:web` reads the sources and the marker is written after it
@@ -585,7 +593,10 @@ test("the session refuses a bundle older than the sources", async () => {
const base = await freeBase();
markBundle(tree, { mockPort: base, corePort: base + 1 });
stubCore(tree, base + 1);
- fs.writeFileSync(path.join(tree.root, "app", "src", "App.tsx"), "// edited\n");
+ const marker = path.join(tree.root, "app", "dist-web", MARKER);
+ const edited = path.join(tree.root, "app", "src", "App.tsx");
+ fs.writeFileSync(edited, "// edited\n");
+ setMtimeAfter(edited, marker);
const res = run(tree, "e2e-web-session.sh", { E2E_PORT_BASE: String(base) });
@@ -614,6 +625,8 @@ test("a file added after the build is caught even when the file itself is old",
fs.writeFileSync(added, "");
const old = fs.statSync(path.join(tree.root, "app", "index.html")).mtimeMs / 1000;
fs.utimesSync(added, old, old);
+ const marker = path.join(tree.root, "app", "dist-web", MARKER);
+ setMtimeAfter(path.join(tree.root, "app", "src"), marker);
const res = run(tree, "e2e-web-session.sh", { E2E_PORT_BASE: String(base) });
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.json
index 024ce6406e..9ac737a5c8 100644
--- a/scripts/ci/agent-runtime-boundary-baseline.json
+++ b/scripts/ci/agent-runtime-boundary-baseline.json
@@ -1392,6 +1392,13 @@
"text": "use tinytools_agent::dialect::{NativeToolCall, encode_assistant_envelope, encode_tool_envelope};",
"occurrence": 1
},
+ {
+ "rule": "tinyagents-tool-calling-facade",
+ "path": "vendor/tinyagents/crates/tinyagents-session/src/transcript/types.rs",
+ "line": 5,
+ "text": "use tinytools_agent::dialect::{",
+ "occurrence": 1
+ },
{
"rule": "tinyagents-upstream-reexport",
"path": "vendor/tinyagents/crates/tinyagents-graph/src/lib.rs",
diff --git a/scripts/ci/check-dep-sim-calibration.sh b/scripts/ci/check-dep-sim-calibration.sh
index 2e896c0185..787c1058e5 100755
--- a/scripts/ci/check-dep-sim-calibration.sh
+++ b/scripts/ci/check-dep-sim-calibration.sh
@@ -77,11 +77,10 @@
# 282 -> 283 on 2026-09-30: TinyChannels supplies the always-on CLI channel
# and shared runtime helpers through `tinychannels-runtime`; the required
# workspace package adds one name, no dependency tail or native build. See PR #6782.
-# 283 -> 299 on 2026-10-01: the refreshed first-party module workspaces add
-# required crates and their transitive dependencies to the flows profile. The
-# measured graph has 316 packages / 299 names and still 2 native builds; the
-# kernel-floor history lists the contributing modules and explains the measured
-# increase.
+# 299 -> 304 on 2026-10-01: the current merged upstream module pins resolve
+# five additional crate names in the flows profile. The measured graph has 321
+# packages / 304 names and still 2 native builds; the kernel-floor history
+# records the upstream update and its measured increase.
#
# Called by ci-lite.yml's feature-gate smoke lane and by the lane runner, so the
# expected count lives here once (plus scripts/kernel-floor.limits).
@@ -89,6 +88,6 @@ set -euo pipefail
cd "$(dirname "$0")/../.."
-EXPECTED_NAMES=299
+EXPECTED_NAMES=304
exec python3 scripts/dep-sim.py --cut-nothing --expect-names "${EXPECTED_NAMES}"
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 752f6c5dfb..f9f4acd0dd 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -54,7 +54,7 @@ const LEGACY_LIMIT_ENTRIES = [
// `core/` was pruned from the line limit by name until these pins; its
// oversized files are pinned at the size they had when enforcement began.
["crates/openhuman-core/src/core/all.rs", 1840],
- ["crates/openhuman-core/src/core/all_tests.rs", 2537],
+ ["crates/openhuman-core/src/core/all_tests.rs", 2501],
["crates/openhuman-core/src/core/cli.rs", 803],
["crates/openhuman-core/src/core/events.rs", 2005],
["crates/openhuman-core/src/core/events_tests.rs", 1062],