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
docs(browser): update site memory references to site_memory_host
Steven Enamakeld47fb1156b3a
diff --git a/crates/openhuman-core/src/config/schema/tools/browser.rs b/crates/openhuman-core/src/config/schema/tools/browser.rsindex 74a99db0bc..d583ad928b 100644--- a/crates/openhuman-core/src/config/schema/tools/browser.rs+++ b/crates/openhuman-core/src/config/schema/tools/browser.rs@@ -96,7 +96,7 @@ pub struct BrowserConfig {pub unattended_actions: Vec<String>,/// Keep, per site, the plan a finished browser task ran and the elements/// it found, and hand them to the next task there- /// (`modules::browser_sites`). Kept in the workspace only, never in the+ /// (`modules::site_memory_host`). Kept in the workspace only, never in the/// agent's memory.#[serde(default = "default_true")]pub learn_from_tasks: bool,diff --git a/crates/openhuman-core/src/modules/README.md b/crates/openhuman-core/src/modules/README.mdindex 01b6742968..6903990e12 100644--- a/crates/openhuman-core/src/modules/README.md+++ b/crates/openhuman-core/src/modules/README.md@@ -306,7 +306,7 @@ download, its `dlopen`, or its resident memory.| [`browser_task.rs`](browser_task.rs) | `tinycomputer` | Browser tasks over `StartTask` / `AwaitTask` / `ContinueTask`: `start`, `wait`, `resume`, `cancel`, `report`. The host keeps the policy (surfaces, origins, action budget, approvals) and sends Browser Control's Chrome path, and in persistent mode its profile folder, with every task, read from the settings each time. A refusal or failure that says Chrome is missing, or that its path names no Chrome, tells the agent where the user sets that path. || [`profile_claim.rs`](profile_claim.rs) | `tinycomputer` | Host adapter over `BrowserClaimProfile` / `BrowserReleaseProfile`: sends the configured persistent profile folder with the wait (5 s for a task, 1 s for a session) and applies the outcome, a claimed folder or a fresh profile. Chrome's lock detection, the wait and the claim bookkeeping live in the module. || [`browser_task_report.rs`](browser_task_report.rs) | `tinycomputer` | What is kept when a task stops: a content-free log summary, and with tracing on the full report under `<workspace>/state/computer/tasks/`. |-| [`browser_sites.rs`](browser_sites.rs), [`browser_sites/store.rs`](browser_sites/store.rs) | `tinycomputer` | Per-site memory of plans and elements learned by finished tasks, in `<workspace>/state/computer/sites/<site>.json`, with 30-day expiry. Fed back on `StartTask`; never reaches the agent's memory or prompts. |+| [`site_memory_host.rs`](site_memory_host.rs) | `tinycomputer` | Host side of `SiteMemoryHost`: stores the per-site memory the module keeps (plans and elements learned by finished tasks) in `<workspace>/state/computer/sites/<site>.json`, sweeps files unchanged for 30 days, refuses saves while learning is off, and bumps a forget epoch so a task running when its site was forgotten cannot write it back. The module applies the reuse rules and calls Load/Save from `StartTask` onward; never reaches the agent's memory or prompts. || [`connectors.rs`](connectors.rs) | `tinyconnectors` | `proxy`, `call`, `call_stateless`, `call_bare`, `reconcile_route_if_loaded`. Builds the route configuration (signed-in backend or the user's own Composio key) and reconciles it on every call so sign-out reaches the module. || [`search/mod.rs`](search/mod.rs) | `tinysearch` | `module_config` from the host's resolved search policy, and `configured_tool_specs` computed synchronously from that same configuration. || [`search/proxy.rs`](search/proxy.rs) | `tinysearch` | Lazy load, private reinitialization on configuration change, and serialized `list_tools` / `execute_tool`; `refresh_loaded` after settings saves and credential changes. |diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.mdindex bec1a5dc6a..b3be5abfc8 100644--- a/docs/TEST-COVERAGE-MATRIX.md+++ b/docs/TEST-COVERAGE-MATRIX.md@@ -328,7 +328,7 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an| 7.1.1 | Open URL | RU+WD | `crates/openhuman-core/src/tools/impl/browser/browser_open_tests.rs`, `app/test/e2e/specs/tool-browser-flow.spec.ts` | ✅ | `browser_open` is a deferred one-shot TinyComputer entry point. || 7.1.2 | Browser Automation | RU+WD | `crates/openhuman-core/src/tools/impl/browser/browser_computer_tests.rs`, `app/test/e2e/specs/tool-browser-flow.spec.ts` | ✅ | `browser` is deferred until `tool_search`; tests cover task limits, TinyComputer task pauses, session reuse, policy rebinds, and host confirmation. || 7.1.3 | Browser Connections | VU+RU | `app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx`, `crates/openhuman-core/src/modules/browser_tests.rs` | ✅ | Readiness, launch settings, and the shared website policy are configured in Connections. |-| 7.1.4 | Browser site memory | RU+VU | `crates/openhuman-core/src/modules/browser_sites_tests.rs`, `app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx` | ✅ | A finished task's plan (for the same goal and facts) and the elements it found are kept per site in the workspace and handed to the next task there. Fact values, page text, rescued runs' plans and reused plans that fail are not kept; entries expire after 30 days unused. The learning switch and "forget learned sites" live in Browser settings. |+| 7.1.4 | Browser site memory | RU+VU | `crates/openhuman-core/src/modules/site_memory_host_tests.rs`, `vendor/tinycomputer` (`site_memory_tests.rs`, `sites_tests.rs`), `app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx` | ✅ | A finished task's plan (for the same goal and facts) and the elements it found are kept per site in the workspace and handed to the next task there. Fact values, page text, rescued runs' plans and reused plans that fail are not kept; entries expire after 30 days unused. The learning switch and "forget learned sites" live in Browser settings. || 7.1.5 | Unattended browser actions | RU | `crates/openhuman-core/src/tools/impl/browser/browser_unattended_tests.rs`, `crates/openhuman-core/src/config/schema/tools/browser_tests.rs`, `crates/openhuman-core/src/config/schema/load_env_overlay_context_tests.rs`, `crates/openhuman-core/src/security/approval/gate_forced_tests.rs` | 🟡 | `[browser] unattended_actions` lets Cron/Background/approval-free Workflow turns take listed gated actions (and `task_step`) without the forced gate; WebChat, channels, CLI, Unknown and `require_approval` workflows stay gated. RU drives `BrowserTool::execute` under a CoreContext-scoped turn origin for every origin; allowed actions log kind + digest only, unknown names are counted, not echoed. No E2E: the action needs the native TinyComputer module and Chromium, which the test lanes do not carry and must not download. |### 7.2 Networkdiff --git a/docs/gitbooks/en/developing/jev.md b/docs/gitbooks/en/developing/jev.mdindex e789706057..a5cd46b459 100644--- a/docs/gitbooks/en/developing/jev.md+++ b/docs/gitbooks/en/developing/jev.md@@ -50,10 +50,10 @@ If the process has no usable embedding provider, `TinyHumansJevRanker` declinesThe decision model is set in `[computer] decision_model`: Jev (through the hosted proxy when signed in, or your OpenRouter key), OpenJev or Sage. A failed step goes to the rescue model (`[computer] rescue_model`, up to `max_rescues` times) before the task fails. An irreversible step pauses as `needs_approval`. The browser tool holds it behind a one-use token, and only `confirm_pending`, through the host approval gate, answers `ContinueTask`.-`crates/openhuman-core/src/modules/browser_sites.rs` keeps what finished browser tasks learned, per site, in `<workspace>/state/computer/sites/`. It hands that to the next task on the same site:+The TinyComputer module keeps what finished browser tasks learned, per site, through the host's `SiteMemoryHost` interface (`crates/openhuman-core/src/modules/site_memory_host.rs` stores it in `<workspace>/state/computer/sites/`). `StartTask.site` makes the module load that and hand it to the task on the same site:-- The plan a run finished with goes in as `StartTask.flow` for the same goal and facts, so no planning is needed.-- The elements it found go in as `StartTask.memory`. A remembered element costs one yes/no instead of a search.+- The plan a run finished with goes in as the task's flow for the same goal and facts, so no planning is needed.+- The elements it found go in as its grounding hints. A remembered element costs one yes/no instead of a search.Only a finished run (`done`, or its payment checkpoint) teaches anything. A plan is kept only when its run needed no rescue and holds no fact value its goal does not. A reused plan that fails or needs a rescue is forgotten. Elements holding a fact value or page text are not kept. Entries expire after 30 days unused, and none of it reaches the agent's memory or prompts. `[browser] learn_from_tasks` turns this off, and `modules.browser_forget_sites` forgets one site or all.diff --git a/gitbooks/developing/jev.md b/gitbooks/developing/jev.mdindex e789706057..a5cd46b459 100644--- a/gitbooks/developing/jev.md+++ b/gitbooks/developing/jev.md@@ -50,10 +50,10 @@ If the process has no usable embedding provider, `TinyHumansJevRanker` declinesThe decision model is set in `[computer] decision_model`: Jev (through the hosted proxy when signed in, or your OpenRouter key), OpenJev or Sage. A failed step goes to the rescue model (`[computer] rescue_model`, up to `max_rescues` times) before the task fails. An irreversible step pauses as `needs_approval`. The browser tool holds it behind a one-use token, and only `confirm_pending`, through the host approval gate, answers `ContinueTask`.-`crates/openhuman-core/src/modules/browser_sites.rs` keeps what finished browser tasks learned, per site, in `<workspace>/state/computer/sites/`. It hands that to the next task on the same site:+The TinyComputer module keeps what finished browser tasks learned, per site, through the host's `SiteMemoryHost` interface (`crates/openhuman-core/src/modules/site_memory_host.rs` stores it in `<workspace>/state/computer/sites/`). `StartTask.site` makes the module load that and hand it to the task on the same site:-- The plan a run finished with goes in as `StartTask.flow` for the same goal and facts, so no planning is needed.-- The elements it found go in as `StartTask.memory`. A remembered element costs one yes/no instead of a search.+- The plan a run finished with goes in as the task's flow for the same goal and facts, so no planning is needed.+- The elements it found go in as its grounding hints. A remembered element costs one yes/no instead of a search.Only a finished run (`done`, or its payment checkpoint) teaches anything. A plan is kept only when its run needed no rescue and holds no fact value its goal does not. A reused plan that fails or needs a rescue is forgotten. Elements holding a fact value or page text are not kept. Entries expire after 30 days unused, and none of it reaches the agent's memory or prompts. `[browser] learn_from_tasks` turns this off, and `modules.browser_forget_sites` forgets one site or all.diff --git a/scripts/ci/storage-bypass-baseline.json b/scripts/ci/storage-bypass-baseline.jsonindex ea562223aa..03e9363762 100644--- a/scripts/ci/storage-bypass-baseline.json+++ b/scripts/ci/storage-bypass-baseline.json@@ -244,13 +244,6 @@"text": "let temp = tempfile::NamedTempFile::new_in(dir)?;","occurrence": 1},- {- "rule": "json-write",- "path": "crates/openhuman-core/src/modules/browser_sites/store.rs",- "line": 174,- "text": "let mut options = tokio::fs::OpenOptions::new();",- "occurrence": 1- },{"rule": "json-write","path": "crates/openhuman-core/src/modules/browser_task_report.rs",@@ -261,7 +254,7 @@{"rule": "json-write","path": "crates/openhuman-core/src/modules/site_memory_host.rs",- "line": 147,+ "line": 159,"text": "let mut options = tokio::fs::OpenOptions::new();","occurrence": 1},