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 'refs/remotes/upstream/main' into pr/5846

Steven Enamakelcfb753170ec6
diff --cc .github/workflows/ci-lite.yml
index ca9b88ffa8,50a0196be9..aca7f8cb8c
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@@ -591,7 -589,7 +594,7 @@@ jobs
# it is a second source of truth for the same Linux name count and is
# not derived from that file. Bump both in the same PR that raises
# (or lowers) the floor.
- run: python3 scripts/dep-sim.py --cut-nothing --expect-names 273
- run: python3 scripts/dep-sim.py --cut-nothing --expect-names 267
++ run: python3 scripts/dep-sim.py --cut-nothing --expect-names 271
- name: Guard — new feature-gated test modules must be acknowledged
# Self-maintaining coverage: the set of source files that #[cfg]-gate a test on
diff --cc AGENTS.md
index 55f6be1127,8b5adc789b..7771d357ab
--- a/AGENTS.md
+++ b/AGENTS.md
@@@ -788,10 -774,10 +774,10 @@@ Two columns because there are two sets
| `documents` | OFF | ON | the `generate_document` / `generate_presentation` agent tools and PDF text extraction during multimodal ingest. **The synthesis is not in this build** — all three run in the `tinydocs` TinyBus module (see below), so this gate turns on the tools and the host policy around them: the artifact pipeline, the deadlines, image resolution under the security policy. The dependency is `tinydocs-bus`, the wire contract crate, and nothing else from that repository. Implies `modules`. Off ⇒ both tools absent from the tool list rather than degraded, and PDF ingest degrades a file to a reference instead of extracted text | **39 crates**, and they leave `Cargo.lock` entirely: `docx-rs`, `ppt-rs`, `pdf-extract` plus `lopdf`, `syntect`, `pulldown-cmark`, `xml-rs`, `quick-xml`, `zip 0.6`, `zstd`, `bzip2`, `encoding_rs`, `euclid`, `ttf-parser`, the CFF/Type1/CMap parsers, … Product profile 505 → 448 names |
| `modules` | ON | ON | `openhuman::modules` — the dynamic module host: the loader that admits a compiled `cdylib` through tinybus's ABI descriptor, manifest, dependency and SHA-256 gates, the compiled-in registry of modules this build trusts, and the `modules` RPC namespace. Implied by `documents`. Off ⇒ `modules.*` is unknown-method and nothing can load a native module | none in the product profile (`ureq`, `flate2`, `tar`, `zip 2`, `tempfile`, `toml` are already there) — **but see the kernel-floor note**: this feature exists so `tinybus/modules` is not enabled on the dependency itself, which would put a `dlopen` loader into the kernel profile where `tinybus` is always-on |
| `skills` | ON | ON | `openhuman::skills` + `openhuman::skills::runtime` + `openhuman::skills::catalog` domains — SKILL.md discovery/parse/install, workflow execution + run logs, remote catalogs, the `skill_setup` / `skill_executor` builtin agents, and the 16 skill agent tools | none (see below) |
-| `flows` | ON | ON | `openhuman::flows` (saved automation graphs — create/run/schedule, the `workflow_builder` + `flow_discovery` agents), `openhuman::flows::tinyflows` (engine seam), `openhuman::flows::rhai` (`.ragsh` language-workflow tool) | `tinyflows`, `jaq-core`, `jaq-std`, `jaq-json`, `rhai` |
+| `flows` | ON | ON | `openhuman::flows` (saved automation graphs — create/run/schedule, the `workflow_builder` + `flow_discovery` agents), `openhuman::flows::tinyflows` (engine seam), `openhuman::flows::rhai` (`.ragsh` language-workflow tool). Pulls the four tinyflows workspace crates — see the seam note below | `tinyflows`, `tinyflows-catalog`, `tinyflows-copilot`, `tinyflows-sqlite`, `jaq-core`, `jaq-std`, `jaq-json`, `rhai` |
| `mcp` | ON | ON | `openhuman::mcp::server` (the `openhuman mcp` stdio/HTTP server), `openhuman::mcp::registry` (dynamic Smithery installs — `mcp_clients` RPC namespace, SQLite, boot spawn, supervisor, OAuth), `openhuman::mcp::audit` (write-audit log), and the static config-declared server set in `openhuman::mcp::config_servers`. ~19 agent tools, ~20k LOC | **none** — and the `tinymcp` module extraction does not change that either; see the scope note |
| `tui` | OFF | — | `openhuman::tui` — the tabbed ratatui/crossterm CLI UI (Logs, Chat, Config, Settings), auto-opened by bare `openhuman` on interactive non-container hosts and forced with `openhuman tui` (alias `chat`). Runs the core in-process. No controllers, no agent tools. **Intentionally NOT forwarded to the desktop shell** (allowlisted in `check-feature-forwarding.mjs`). | `ratatui`, `crossterm` |
- | `channels` | ON | ON | `openhuman::channels` (external-messaging providers — Telegram/Discord/Slack/Signal/WhatsApp/iMessage/IRC/… — plus the channel runtime, controllers, host, proactive messaging + inbound dispatch) and the `webview_notifications` bridge domain. **Carve-outs `channels::{traits, cli}` stay ungated.** The family now owns **no agent tool** — the three `whatsapp_data_*` tools were its only ones and went with the store (see below) — which is why `DomainGroup::Channels` is in `TOOL_LESS` in `tools/ops_tests.rs`, alongside `Relay`. | **28** via `tinychannels/{email,lark}` — the crate itself stays (load-bearing), its two heavy providers do not |
+ | `channels` | ON | ON | `openhuman::channels` (external-messaging providers — Telegram/Discord/Slack/Signal/WhatsApp/iMessage/IRC/… — plus the channel runtime, controllers, host, proactive messaging + inbound dispatch) and the `webview_notifications` bridge domain. **Carve-outs `channels::{traits, cli}` stay ungated.** The family now owns **no agent tool** — the three `whatsapp_data_*` tools were its only ones and went with the store (see below) — which is why `DomainGroup::Channels` is in `TOOL_LESS` in `tools/ops_tests.rs`. | **none in the kernel profile** — the gate swaps `tinychannels` for `tinychannels-bus` one-for-one, because every heavy dep it carried is shared. It buys ~31.7k lines of compile surface, not crates. The email + lark cohorts are shed only relative to a `channels`-ON build |
| `contacts` | OFF | ON | `memory::people::address_book`'s macOS CNContactStore reader — the address-book seeding path for the people domain. Leaf gate over a **pre-existing** off-state: the module already shipped a non-macOS `imp` stub returning an empty contact list, so the gate only widens that stub's cfg. `read`/`read_with`/`AddressBookError`/`SystemContactsSource` and the whole `people` RPC surface stay compiled in every build; off ⇒ a refresh seeds nothing instead of failing. | **6** on macOS (`objc2`, `objc2-foundation`, `objc2-contacts`, `block2` + 2 transitive). **No-op on Linux/Windows** — never in those graphs, so the kernel-floor ratchet does not move. Verify cross-target: `cargo tree --target aarch64-apple-darwin -e normal -i objc2-contacts --no-default-features` (294 → 288 packages). |
| `runtime-node` | OFF | ON | `runtime::node` (the client that asks the `tinyruntime` module for a Node.js toolchain), the `runtime::javascript` language slot, `runtime::pool::node`, the `node_exec` / `npm_exec` agent tools, and the `node_runtime` harness-init step. **Facade + stub** — `ShellTool` holds `Option<Arc<NodeBootstrap>>` and `shell.rs` is kernel, so the module cannot simply vanish; `runtime/node/stub.rs` carries the `NodeBootstrap` type surface while registration sites are leaf-gated. **The generic native-tool dispatcher (`runtime::node::ops` / `runtime::node::types`) is NOT gated** — it backs both the gated `javascript.*` controllers and the ungated `flows` `oh:` `NativeToolBackend`, so native flow tools (`memory_search`, file, shell, …) keep working when the managed Node runtime is off. Off ⇒ `try_cached`/`probe_installed` return `None` and the shell never prepends a managed bin dir, identical to today's `node.enabled = false` path. | **Nothing any more.** This gate used to shed `xz2` and its static liblzma C build; download and extraction moved into the `tinyruntime` module, so that native build left the manifest for **every** configuration rather than only for slim ones. The gate still buys the absence of the tools and controllers. |
diff --cc Cargo.toml
index dcd6998866,8494c53ba5..933b69d815
--- a/Cargo.toml
+++ b/Cargo.toml
@@@ -1276,10 -1265,10 +1289,10 @@@ motosan-ai-oauth = { path = "vendor/mot
# version in lockstep with the `tinyagents` requirement above. After cloning:
# `git submodule update --init vendor/tinyagents` (worktrees included).
tinyagents = { path = "vendor/tinyagents" }
- # TinyFlows, TinyCortex, TinyChannels, and TinyPlace are vendored beside
+ # TinyFlows, TinyCortex, and TinyChannels are vendored beside
# TinyAgents so integration work can test crate changes against OpenHuman before
# publishing.
-tinyflows = { path = "vendor/tinyflows" }
+tinyflows = { path = "vendor/tinyflows/crates/tinyflows" }
tinycortex = { path = "vendor/tinycortex" }
# `tinymemory-core` names `tinycortex-api` by version requirement (this crate
# depends on it by path, above). Patch it onto the same checkout so both see one
diff --cc app/src-tauri/Cargo.toml
index c2a42abbda,65d37f917a..ccc3565172
--- a/app/src-tauri/Cargo.toml
+++ b/app/src-tauri/Cargo.toml
@@@ -275,10 -275,10 +275,10 @@@ tinyagents = { path = "../../vendor/tin
# match the one the core crate names, or cargo resolves two distinct packages
# and the shell's `dyn Tool` stops being the core's. See the core manifest.
tinytools = { path = "../../vendor/tinyagents/vendor/tinytools/crates/tinytools" }
- # TinyFlows, TinyCortex, TinyChannels, and TinyPlace are vendored beside
+ # TinyFlows, TinyCortex, and TinyChannels are vendored beside
# TinyAgents so integration work can test crate changes against OpenHuman before
# publishing.
-tinyflows = { path = "../../vendor/tinyflows" }
+tinyflows = { path = "../../vendor/tinyflows/crates/tinyflows" }
tinycortex = { path = "../../vendor/tinycortex" }
# `tinymemory-core` (pulled in transitively through `openhuman_core`) names
# `tinycortex-api` by version requirement, same as the root Cargo world —
diff --cc scripts/kernel-floor.limits
index 5653a741f6,2dca89c76d..6f24c77276
--- a/scripts/kernel-floor.limits
+++ b/scripts/kernel-floor.limits
@@@ -13,34 -13,9 +13,36 @@@
# Simulate with: scripts/dep-sim.py --cut <crates>
#
# History
- # 291/273/2 2026-08-30 moving flows::store.rs / flows::draft_store.rs and
++# 287/271/2 2026-08-30 moving flows::store.rs / flows::draft_store.rs and
+# the copilot's authoring prompts upstream split the
+# `tinyflows` crate's catalog/storage/copilot surface into
+# three sibling crates in the SAME vendored workspace:
+# `tinyflows-catalog` (flows/revisions/runs/drafts/
+# suggestions + n8n import + save/run gates),
+# `tinyflows-sqlite` (the SQLite backend + engine
+# checkpointer), and `tinyflows-copilot` (the
+# `workflow_builder` / `flow_discovery` archetype prose).
+# (+3 packages, +3 NAMES — one each.)
+#
+# All three are path dependencies into
+# `vendor/tinyflows`, the SAME checkout `tinyflows` itself
+# already came from — not a new external crate and not a
+# second copy of an existing one. `cargo metadata` still
+# shows exactly one `tinyflows` package. Native build
+# count is unchanged at 2 (`libsqlite3-sys`, `ring`); none
+# of the three pulls in a new native dependency — their
+# own dependency lists (serde, serde_json, anyhow,
+# rusqlite via the existing `tinyflows-sqlite` path,
+# thiserror) are already resolved in this graph.
+#
+# All three are `optional = true` and gated behind
+# `flows = ["dep:tinyflows", "dep:tinyflows-catalog",
+# "dep:tinyflows-copilot", "dep:tinyflows-sqlite"]`, so a
+# slim build without `flows` drops all four together, same
+# as before this PR.
- #
+ # 283/267/2 2026-08-30 removed TinyPlace from the core and app, shedding
+ # five packages and three unique crate names from the
+ # workflow-only profile.
# 288/270/2 2026-08-29 the tool vocabulary moved into its own crate
# (+1 package, +1 NAME: `tinytools`). This entry is the
# CURRENT limit; the tinyjuice entry below it left the
@@@ -521,4 -495,4 +522,4 @@@
# (libsqlite3-sys, ring) — see docs/plans MIGRATION-PLAN G6.
# 307/284 2026-08-12 Re-baseline after the upstream lockfile resolution;
# `flows` remains at two native packages.
- flows:291:273:2
-flows:283:267:2
++flows:287:271:2