The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(ci): refresh storage-bypass allowlist and baseline
Steven Enamakel04bdc19b3486
diff --git a/crates/openhuman-core/src/inference/tokenjuice/savings.rs b/crates/openhuman-core/src/inference/tokenjuice/savings.rsindex 0424effe99..f4e96f81f6 100644--- a/crates/openhuman-core/src/inference/tokenjuice/savings.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/savings.rs@@ -7,9 +7,10 @@//! saving is attributed to and the USD price per input token from//! [`crate::agent::cost`].//!-//! The snapshot is deliberately local, not on the storage port: it is one-//! process-global counter that is cheap to lose. Allowlisted in-//! `scripts/ci/check-storage-bypass.mjs`.+//! The snapshot file is written by the module itself (`ConfigureSavings` takes+//! its path), not by the host, so it is outside the host's storage-bypass+//! ratchet. Keeping it on the storage port needs a storage-backed savings+//! contract in tinyjuice first; the host passes the path until then.use std::sync::{Mutex, OnceLock};diff --git a/scripts/ci/check-storage-bypass.mjs b/scripts/ci/check-storage-bypass.mjsindex f12f2fd079..3382b7bf13 100755--- a/scripts/ci/check-storage-bypass.mjs+++ b/scripts/ci/check-storage-bypass.mjs@@ -139,10 +139,10 @@ export const ALLOW = new Map("a derived view of a blob-stored tool-result artifact, written under the workspace's read-only artifacts root so file_read can open the key a pointer hands back; re-derived from the tenant's blob store on every read, which stays the source of truth",],[- "inference/tokenjuice/savings.rs",+ "modules/browser_task_report.rs","json-write",- "if let Err(e) = std::fs::write(path, json) {",- "one process-global savings counter snapshot, cheap to lose; not per-user data a scope would mean anything for",+ "let mut options = tokio::fs::OpenOptions::new();",+ "opt-in debug trace (`[computer] trace`): the module's full task report, written as a file beside the module's own traces in the same trace directory so a person can open both; page text stays in a file only its owner can read and no store reads it back",],["agent/artifacts/files.rs",diff --git a/scripts/ci/storage-bypass-baseline.json b/scripts/ci/storage-bypass-baseline.jsonindex b583a1b6c4..05d7fd2cca 100644--- a/scripts/ci/storage-bypass-baseline.json+++ b/scripts/ci/storage-bypass-baseline.json@@ -9,14 +9,14 @@{"rule": "json-write","path": "crates/openhuman-core/src/agent/attachments/mod.rs",- "line": 288,+ "line": 313,"text": "let mut file = tokio::fs::OpenOptions::new()","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/agent/attachments/provider_cache.rs",- "line": 163,+ "line": 164,"text": "let mut file = tokio::fs::OpenOptions::new()","occurrence": 1},@@ -97,45 +97,17 @@"text": "let _ = std::fs::write(&hash_path, ¤t_hash);","occurrence": 1},- {- "rule": "json-write",- "path": "crates/openhuman-core/src/agent/subagent_host/lifecycle.rs",- "line": 668,- "text": "let file = OpenOptions::new()",- "occurrence": 1- },- {- "rule": "json-write",- "path": "crates/openhuman-core/src/agent/subagent_host/lifecycle.rs",- "line": 758,- "text": "std::fs::write(&temporary, bytes)",- "occurrence": 1- },- {- "rule": "json-write",- "path": "crates/openhuman-core/src/agent/subagent_host/lifecycle.rs",- "line": 774,- "text": "std::fs::write(&temporary, bytes)",- "occurrence": 2- },- {- "rule": "json-write",- "path": "crates/openhuman-core/src/agent/subagent_host/ops/pause_checkpoint.rs",- "line": 82,- "text": "if let Err(e) = std::fs::write(&checkpoint_path, json) {",- "occurrence": 1- },{"rule": "json-write","path": "crates/openhuman-core/src/config/migrations/phase_out_profile_md.rs",- "line": 192,+ "line": 175,"text": "match fs::write(&md_path, cleaned.as_bytes()) {","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/config/ops/ui.rs",- "line": 321,+ "line": 327,"text": "std::fs::write(&flag_path, \"\")","occurrence": 1},@@ -198,14 +170,14 @@{"rule": "json-write","path": "crates/openhuman-core/src/flows/tinyflows/caps/code.rs",- "line": 112,+ "line": 127,"text": "tokio::fs::write(&script_path, script_body)","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/flows/tinyflows/caps/code.rs",- "line": 115,+ "line": 130,"text": "tokio::fs::write(&input_path, input_json)","occurrence": 1},@@ -219,17 +191,10 @@{"rule": "json-write","path": "crates/openhuman-core/src/integrations/file_storage/tools/download.rs",- "line": 84,+ "line": 89,"text": "if let Err(e) = tokio::fs::write(&path, &body).await {","occurrence": 1},- {- "rule": "json-write",- "path": "crates/openhuman-core/src/memory/files.rs",- "line": 61,- "text": "let mut options = std::fs::OpenOptions::new();",- "occurrence": 1- },{"rule": "json-write","path": "crates/openhuman-core/src/memory/layout_migration/claim.rs",@@ -237,27 +202,6 @@"text": "let temp = tempfile::NamedTempFile::new_in(key.marker.parent().unwrap_or(Path::new(\".\")))?;","occurrence": 1},- {- "rule": "json-write",- "path": "crates/openhuman-core/src/memory/local_root.rs",- "line": 168,- "text": "let temp = tempfile::NamedTempFile::new_in(dir)?;",- "occurrence": 1- },- {- "rule": "json-write",- "path": "crates/openhuman-core/src/modules/browser_task_report.rs",- "line": 304,- "text": "let mut options = tokio::fs::OpenOptions::new();",- "occurrence": 1- },- {- "rule": "json-write",- "path": "crates/openhuman-core/src/modules/site_memory_host.rs",- "line": 159,- "text": "let mut options = tokio::fs::OpenOptions::new();",- "occurrence": 1- },{"rule": "json-write","path": "crates/openhuman-core/src/platform/doctor/core/workspace_checks.rs",@@ -324,7 +268,7 @@{"rule": "json-write","path": "crates/openhuman-core/src/profiles/registry.rs",- "line": 141,+ "line": 181,"text": "std::fs::write(&layout.meta_path, raw)","occurrence": 1},@@ -338,21 +282,21 @@{"rule": "json-write","path": "crates/openhuman-core/src/security/credentials/http_creds.rs",- "line": 420,+ "line": 424,"text": "fs::write(&tmp_path, &json)","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/security/credentials/profiles.rs",- "line": 284,+ "line": 288,"text": "let mut file = OpenOptions::new()","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/security/credentials/profiles.rs",- "line": 297,+ "line": 301,"text": "fs::write(path, bytes)","occurrence": 1},@@ -429,28 +373,28 @@{"rule": "json-write","path": "crates/openhuman-core/src/threads/welcome_migration.rs",- "line": 298,+ "line": 302,"text": "fs::write(path, rewritten).map_err(|e| {","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/threads/welcome_migration.rs",- "line": 389,+ "line": 393,"text": "fs::write(marker, b\"done\\n\").map_err(|e| {","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/tools/impl/document/mod.rs",- "line": 264,+ "line": 307,"text": "if let Err(err) = tokio::fs::write(&output_path, &bytes).await {","occurrence": 1},{"rule": "json-write","path": "crates/openhuman-core/src/tools/impl/presentation/mod.rs",- "line": 365,+ "line": 419,"text": "if let Err(err) = tokio::fs::write(&output_path, &bytes).await {","occurrence": 1},