Skip to content

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

Align integration credentials and stabilize the Cargo jail check

lord_Tyrion07ecc12258e1
diff --git a/crates/openhuman-core/src/sandbox/ops_tests.rs b/crates/openhuman-core/src/sandbox/ops_tests.rs
index b9fe871c2a..374ced5cb8 100644
--- a/crates/openhuman-core/src/sandbox/ops_tests.rs
+++ b/crates/openhuman-core/src/sandbox/ops_tests.rs
@@ -508,12 +508,17 @@ async fn landlock_jail_runs_cargo_and_mktemp_but_blocks_writes_outside() {
let outside = tempfile::tempdir().unwrap();
let policy = local_policy(action.path(), state.path());
- if host_has("cargo") {
- let r = run_local(&policy, "cargo --version").await;
+ // Cargo records the executable for the active build toolchain. Use it
+ // directly so this check exercises Cargo inside the jail: a rustup proxy
+ // on PATH can try to initialize a different HOME in a CI container.
+ let cargo = Path::new(env!("CARGO"));
+ if cargo.is_file() {
+ let quoted_cargo = format!("'{}'", cargo.to_string_lossy().replace('\'', "'\\''"));
+ let r = run_local(&policy, &format!("{quoted_cargo} --version")).await;
assert!(r.success(), "cargo failed under the jail: {}", r.stderr);
assert!(r.stdout.starts_with("cargo "), "stdout: {}", r.stdout);
} else {
- eprintln!("SKIP cargo: not installed on this host");
+ eprintln!("SKIP cargo: build toolchain executable is absent on this host");
}
// `/tmp` is not granted; `mktemp` lands in the per-call TMPDIR scratch dir.
diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.md
index 7322fb9cb1..3cc5247119 100644
--- a/crates/openhuman-embed/README.md
+++ b/crates/openhuman-embed/README.md
@@ -273,12 +273,12 @@ are documented rather than hidden; each is a candidate follow-up in the core.
`include_user_skills(false)` (the default) an agent does not _discover_ the
operator's skills, but an install by the agent lands there.
- One API key (or session) is shared by all agents.
-- `IntegrationClient` (backend-proxied Composio/search/media tools) only
- ever reads the app-session JWT
- (`security::credentials::session_support::get_session_token`), never the
- runtime's API key. A library runtime that authenticates with only
- `.api_key(...)` gets no integration tools at all rather than the key
- being sent as the wrong header.
+- `IntegrationClient` (backend-proxied Composio/search/media tools) accepts
+ the runtime's TinyHumans API key or an app-session JWT through
+ `security::credentials::session_support::resolve_backend_credential`.
+ API keys use `x-api-key`; session JWTs use `Authorization: Bearer`.
+ With the backend transport installed and the integration feature and runtime
+ gates enabled, an API-key-only runtime can register integration tools.
Other invariants worth knowing before wiring any entry point: