Skip to content

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

Merge remote-tracking branch 'upstream/main' into tinywallet-release-0192

Steven Enamakeladaac4a6fcbf
diff --cc .github/workflows/ci-lanes.yml
index 0708b38282,a91809834b..f15030fbd8
--- a/.github/workflows/ci-lanes.yml
+++ b/.github/workflows/ci-lanes.yml
@@@ -80,20 -80,24 +80,43 @@@ jobs
- name: Install jq for release-script tests
if: steps.filter.outputs.scripts == 'true'
+ env:
+ JQ_URL: https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64
+ JQ_SHA256: 5942c9b0934e510ee61eb3e30273f1b3fe2590df93933a93d7c58b81d19c8ff5
run: |
- if command -v jq >/dev/null; then
+ if command -v jq >/dev/null && python3 -c 'import tomllib' 2>/dev/null; then
exit 0
fi
- if [ "$(uname -m)" != "x86_64" ]; then
- echo "::error::no jq on this runner and no pinned build for $(uname -m)"
- exit 1
++
++ if ! command -v jq >/dev/null; then
++ if [ "$(uname -m)" != "x86_64" ]; then
++ echo "::error::no jq on this runner and no pinned build for $(uname -m)"
++ exit 1
++ fi
++ bin="$RUNNER_TEMP/jq-bin"
++ mkdir -p "$bin"
++ curl -fsSL --retry 3 -o "$bin/jq" "$JQ_URL"
++ echo "$JQ_SHA256 $bin/jq" | sha256sum -c -
++ chmod +x "$bin/jq"
++ "$bin/jq" --version
++ echo "$bin" >> "$GITHUB_PATH"
++ PATH="$bin:$PATH"
++ export PATH
++ fi
++
++ if python3 -c 'import tomllib' 2>/dev/null; then
++ exit 0
++ fi
+ if [ "$(id -u)" -eq 0 ]; then
+ SUDO=""
+ elif command -v sudo >/dev/null 2>&1; then
+ SUDO=sudo
+ else
- echo "::warning::jq/tomli are unavailable and this runner cannot install packages; continuing with the Node-only script tests."
++ echo "::warning::a Python TOML parser is unavailable and this runner cannot install packages; continuing with the Node-only script tests."
+ exit 0
fi
- bin="$RUNNER_TEMP/jq-bin"
- mkdir -p "$bin"
- curl -fsSL --retry 3 -o "$bin/jq" "$JQ_URL"
- echo "$JQ_SHA256 $bin/jq" | sha256sum -c -
- chmod +x "$bin/jq"
- "$bin/jq" --version
- echo "$bin" >> "$GITHUB_PATH"
+ $SUDO apt-get update
- $SUDO apt-get install -y --no-install-recommends jq python3-tomli
++ $SUDO apt-get install -y --no-install-recommends python3-tomli
# One step per lane: `Start lanes` launches every lane in the background
# (they still run in parallel); each `Lane:` step streams its own lane's
diff --cc crates/openhuman-core/src/agent/tinyagents/mod.rs
index f9ff244012,64352e909e..9159fdd40f
--- a/crates/openhuman-core/src/agent/tinyagents/mod.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/mod.rs
@@@ -74,12 -74,8 +74,9 @@@ pub(crate) use crate::agent::message_co
#[allow(unused_imports)] // Wired into the recall/retrieval facade in workstream 09.2.
pub(crate) use embeddings::ProviderEmbeddingModel;
- pub(crate) use middleware::{
- render_unanswered_steps, TranscriptSnapshot, TranscriptSnapshotSink, TurnContextMiddleware,
- };
pub(crate) use observability::SubagentScope;
pub(crate) use reasoning::{apply_requested_effort, parse_reasoning_effort};
+pub(crate) use turn_exec::{run_root_turn_via_hosted_agent, run_turn_via_tinyagents_shared};
pub use turn_models::TurnModelSource;
pub(crate) use turn_models::TurnModels;
pub(crate) use turn_outcome::TinyagentsTurnOutcome;
diff --cc crates/openhuman-core/src/media/generation/artifact_tool_tests.rs
index 18fe36411a,aec45e8c31..f5838401e6
--- a/crates/openhuman-core/src/media/generation/artifact_tool_tests.rs
+++ b/crates/openhuman-core/src/media/generation/artifact_tool_tests.rs
@@@ -172,16 -96,11 +172,16 @@@ async fn files_a_single_generated_artif
// Original staged file is gone (moved).
assert!(!staging.join("stub-0.png").exists());
- // Metadata may live in the configured storage backend; resolve it through
- // the artifact store and verify the user-facing file it records.
- // The artifact record lives in the document store (no `meta.json`).
++ // The artifact record lives in the document store (no `meta.json`), and
++ // its user-facing file remains resolvable from the visible Files folder.
let meta = crate::agent::artifacts::store::get_artifact(&workspace, artifact_id)
.await
- .unwrap();
+ .expect("artifact metadata is persisted");
assert_eq!(meta.kind, ArtifactKind::Image);
+ assert_eq!(meta.status, ArtifactStatus::Ready);
+ let file = meta.file.expect("artifact points at its visible file");
+ assert!(std::path::Path::new(&file).exists(), "{file}");
+ assert_eq!(std::fs::read(file).unwrap(), b"bytes-0");
}
#[tokio::test]
diff --cc scripts/__tests__/self-hosted-lanes.test.mjs
index 976a6f1ed9,c6480ab5f7..e961a0f427
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@@ -49,13 -49,18 +49,23 @@@ test("EX63 installs script dependencie
const detect = ciLanes.indexOf("- name: Detect changed areas");
const install = ciLanes.indexOf("- name: Install jq for release-script tests");
assert.ok(detect >= 0 && install > detect, "filter outputs must exist before they gate jq installation");
+ const nextStep = ciLanes.indexOf("\n - name:", install + 1);
+ const installBlock = ciLanes.slice(install, nextStep < 0 ? undefined : nextStep);
+ assert.match(installBlock, /import tomllib/, "Python 3.11+ already provides TOML parsing");
+ assert.match(installBlock, /command -v sudo/, "non-root runners may not have sudo");
+ assert.match(installBlock, /cannot install packages/, "the EX63 image may not grant package installation");
});
+ test("EX63 provides jq without root and before the lanes start", () => {
+ const install = ciLanes.indexOf("- name: Install jq for release-script tests");
+ const end = ciLanes.indexOf("\n - name:", install + 1);
+ const step = ciLanes.slice(install, end);
+ assert.doesNotMatch(step, /\bsudo\b|apt-get/);
+ assert.match(step, /sha256sum -c/);
+ assert.match(step, /GITHUB_PATH/);
+ assert.ok(install < ciLanes.indexOf("- name: Start lanes"), "jq must be on PATH before the lanes spawn");
+ });
+
const plans = () => [
buildPlan({ profile: "ex63", areas: ALL, env: EX63_ENV }),
buildPlan({ profile: "hosted", areas: ALL }),