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: update module docs for TinyBox shell ownership
Steven Enamakel31054b079de8
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.mdindex 47f16ce1b5..62caf3daae 100644--- a/crates/openhuman-core/src/agent/README.md+++ b/crates/openhuman-core/src/agent/README.md@@ -286,7 +286,7 @@ Turn execution:| [`cost.rs`](./cost.rs) | Per-turn token and cost accounting (`TurnCost`) || [`message_convert.rs`](./message_convert.rs), [`messages.rs`](./messages.rs) | Conversions between `TranscriptMessage` rows and TinyAgents `Message`s; the `history_wire` adapter for host-owned files || `attachments/`, [`multimodal.rs`](./multimodal.rs) | Durable user uploads and provider-side attachment resolution; legacy marker compatibility ([README](attachments/README.md)) |-| [`host_runtime.rs`](./host_runtime.rs), [`platform_shell.rs`](./platform_shell.rs) | Native and Docker shell `RuntimeAdapter`s and the shared `cmd.exe` vs `sh` selection |+| [`host_runtime.rs`](./host_runtime.rs) | Native and Docker shell `RuntimeAdapter`s; the shell flavor is the contract's `tinybox_bus::ShellFlavor` and execution is TinyBox's || `session_store/` | Process-wide `SessionStoreProvider` slot for hosts with their own database |Delegation and coordination:diff --git a/crates/openhuman-core/src/hooks/README.md b/crates/openhuman-core/src/hooks/README.mdindex ee5469e969..79b6cb5328 100644--- a/crates/openhuman-core/src/hooks/README.md+++ b/crates/openhuman-core/src/hooks/README.md@@ -174,7 +174,7 @@ hook costs a model call per event, so they belong on rare, high-stakes moments.| Path | What it does || --- | --- || [`mod.rs`](./mod.rs) | Module declarations; re-exports `init`, `PromptVerdict` and the controller aggregators. |-| `host.rs` | The process-global `HookEngine` (`engine()`), the `HookEnvironment` built from `PRODUCT_NAME`, the home dir, `agent::platform_shell::build_tokio_command` and the prompt evaluator, and `reload`. |+| `host.rs` | The process-global `HookEngine` (`engine()`), the `HookEnvironment` built from `PRODUCT_NAME`, the home dir, the shell factory from [`shell.rs`](./shell.rs) (TinyBox's `SelectShell`, resolved once in `reload`) and the prompt evaluator, and `reload`. || [`bridge.rs`](./bridge.rs) | `ConfiguredHookBridge`: the `ToolHook` and `PostTurnHook` impls, derived-event mapping and payload shaping, and the translation from `HookOutput` to `ToolHookDecision`. || `ops.rs` | `init` and the direct entry points for non-tool lifecycle moments. || [`prompt_eval.rs`](./prompt_eval.rs) | Model evaluation for `prompt`-kind hooks. |diff --git a/crates/openhuman-core/src/sandbox/README.md b/crates/openhuman-core/src/sandbox/README.mdindex be5ea95b09..2a7627c24c 100644--- a/crates/openhuman-core/src/sandbox/README.md+++ b/crates/openhuman-core/src/sandbox/README.md@@ -66,12 +66,15 @@ from [`local_grants.rs`](./local_grants.rs) only for the Local backend.### The None backend-`execute_unsandboxed` builds the command with `agent::platform_shell` (so-Windows gets `cmd.exe /C`), clears the environment, and forwards only-`SANDBOX_ENV_PASSTHROUGH` (`PATH`, `HOME`, `TERM`, `LANG`, `LC_ALL`,-`LC_CTYPE`, `USER`, `SHELL`, `TMPDIR`) plus the Windows process-bootstrap-variables and the caller's extra env. A passthrough variable that is set but-empty is an error. The command runs under `tools::timeout::output_or_kill`.+`execute_unsandboxed` maps the command onto TinyBox's `StartNativeShellExec`+through [`shell_exec.rs`](./shell_exec.rs): a module-owned `passthrough` resource+rooted at the working directory, the host's own network, no jail. TinyBox+selects the shell (`cmd.exe` on Windows, bash with `pipefail` or `sh` elsewhere),+starts the child from its safe environment snapshot (`SANDBOX_ENV_PASSTHROUGH`+plus the Windows process-bootstrap variables, an empty value being an error),+applies the caller's UTF-8 overrides, owns the per-call scratch directory and+enforces the runtime budget. The host never spawns the shell itself, and without+the `modules` feature the run is refused.### The Local backend@@ -115,9 +118,10 @@ any extra drops, `--security-opt no-new-privileges`, a read-only rootfs with`/tmp` and `/var/tmp` tmpfs mounts, memory and CPU limits (512 MB and 1 CPU bydefault), and only the passthrough env plus the request's env. Containerscarry the label `openhuman.sandbox=true`; TinyBox owns the bounded daemon status-probe and label-scoped orphan cleanup. `validate_docker_policy` rejects host-networking and a mount or workspace root of `/`, `/etc`, `/proc`, `/sys` or the-Docker socket.+probe and label-scoped orphan cleanup. `validate_docker_policy` asks TinyBox's+`ValidateDockerPolicy` member (the check `RunDocker` itself enforces), which+reports host networking and a mount or workspace root of `/`, `/etc`, `/proc`,+`/sys` or the Docker socket; with no module there is no verdict, never a clean one.### Backend status@@ -171,8 +175,9 @@ Registered through `all_sandbox_registered_controllers()` in `core/all.rs`:`is_remote` flag.- `sandbox.cleanup_orphans`: kill labelled orphan containers, returns thecount.-- `sandbox.validate_policy`: run `validate_docker_policy` on a supplied- policy, returns `valid` and `issues`.+- `sandbox.validate_policy`: ask TinyBox (`ValidateDockerPolicy`) about a+ supplied policy, returns `valid` and `issues`; an error when the module is+ unavailable.The settings surface (`get_sandbox_settings`, `[security.sandbox]` and`[runtime.docker]`) is in `config/ops/sandbox.rs`, which reads@@ -187,7 +192,9 @@ The settings surface (`get_sandbox_settings`, `[security.sandbox]` andare `security/`. The autonomy policy is off by default there, so for adefault install the sandbox and the `is_always_forbidden` floor are whatbound an agent.-- Shell construction for each platform is `agent::platform_shell`.+- Shell selection and the child environment for each platform are TinyBox's+ (`SelectShell` / `StartNativeShellExec`); `agent::host_runtime::host_shell_flavor`+ only tells the model which family that is.- The agent's `SandboxMode` is declared in its definition(`agent::harness::definition`) and read per call throughthe explicit agent sandbox mode supplied by the tool execution context.diff --git a/docs/module-boundary-inventory.md b/docs/module-boundary-inventory.mdindex c1aced428e..8cafc704a2 100644--- a/docs/module-boundary-inventory.md+++ b/docs/module-boundary-inventory.md@@ -21,7 +21,7 @@ copying its implementation into a host, or accepting weaker isolation.| tinyhosts | none | tinyhosts-bus | core hosting tools | Released Execute/Providers contract consumed through the module (v0.4.0: tool-to-operation mapping, argument shaping, outcome matching and summaries live in `tinyhosts-bus::tools`); workspace authorization, credentials and approval policy remain in OpenHuman || tinymemes | none | tinymemes-bus | core `tinymemes` reply remix | Released Remix contract (v0.2.0) consumed through the module: reading, rating, rewrite, slang and meme indexes run in the module; the host serves the Complete, Evaluate, Search, LoadIndex, SaveIndex and Deliver callbacks (OpenHuman inference, managed Jev, web search, workspace index files) and keeps the A/B arm, flag and delivered-history policy || tinywallet | none in normal/build host dependencies | tinywallet-bus | core wallet/web3/x402 | Complete: v0.20.0 contract 1.14 adds mnemonic word-count validation to module-owned mnemonic derivation, native transactions, Web3 quotes/execution, ERC-20 encoding, and x402 payment parsing/budgets/ledger. OpenHuman retains encrypted-key custody, authenticated transport, explicit approval, and lifecycle orchestration |-| tinybox | tinybox-core (test-only) | tinybox-bus | core sandbox and security, desktop gateways | Host cutover uses TinyBox v0.1.26 (contract 1.17); the host calls members only through `tinybox_bus::names` constants and uses `tinybox_bus::CommandClass` directly (no host copy or re-export). It covers for sandbox/resource lifecycle, collected and supervised execution, jailed and native shell execution, Docker control, local grants (`ResolveLocalGrants`; the host re-applies `is_always_forbidden` to the reply), file transfer and port forwarding. Host authorization and the security floor remain in OpenHuman |+| tinybox | tinybox-core (test-only) | tinybox-bus | core sandbox and security, desktop gateways | Host cutover uses TinyBox v0.1.28 (contract 1.18); the host calls members only through `tinybox_bus::names` constants and uses `tinybox_bus::CommandClass` directly (no host copy or re-export). It covers for sandbox/resource lifecycle, collected and supervised execution, jailed and native shell execution (unsandboxed, cron and the `shell` tool run through `StartNativeShellExec`; core has no shell selection or spawn of its own), standalone Docker policy validation (`ValidateDockerPolicy`), Docker control, local grants (`ResolveLocalGrants`; the host re-applies `is_always_forbidden` to the reply), file transfer and port forwarding. Host authorization and the security floor remain in OpenHuman || tinycomputer | none | tinycomputer-bus | core voice, paste/focus and permission checks | Permission, focus, paste and Globe listener operations use the module; native thread and target rules remain covered || tinyvoice | None | tinyvoice-bus | core voice capture/hotkeys | Module-owned devices, recording and continuous capture, bounded audio reads/batches, explicit lease cleanup; computer module permission decisions || tinyruntime | tinyruntime-pyserver | tinyruntime-bus | core Python worker, optional TinyJuice ML | Excluded from this migration: TinyRuntime is being removed separately |diff --git a/docs/specs/agent-runtime-upstream-boundary.md b/docs/specs/agent-runtime-upstream-boundary.mdindex 0107e0a5b1..e4d3f48a03 100644--- a/docs/specs/agent-runtime-upstream-boundary.md+++ b/docs/specs/agent-runtime-upstream-boundary.md@@ -297,7 +297,7 @@ all consumers import the owner directly, not that behavior is dropped.| `tool_dialect.rs` | Delete | Import `tinytools-agent::dialect` directly; keep only concrete I/O conversions. || `error.rs` | Keep/Shrink | Product-facing errors and RPC mapping only; loop/model/tool errors originate upstream. || `hooks.rs`, `stop_hooks.rs` | Keep adapter | Product hook policy; generic callback/control machinery is harness-owned and values are explicit in context. |-| `host_runtime.rs`, `platform_shell.rs` | Keep | Host execution/shell policy shared with sandbox. |+| `host_runtime.rs` | Keep | Host runtime adapters; shell selection and execution are TinyBox's. || `message_convert.rs` | Keep at boundary | Only legacy persistence/import/provider boundaries may convert; remove it from live harness assembly. || `messages.rs` | Keep | Durable OpenHuman transcript wire contract. || `multimodal.rs` | Split | Keep file access/security and host attachment resolution; import marker/MIME/data-URI mechanics from harness directly, with no re-exports. |