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(security): describe tinybox command analysis boundary
Steven Enamakel022fa328a045
diff --git a/crates/openhuman-core/src/security/README.md b/crates/openhuman-core/src/security/README.mdindex 2c889ce42b..3a739fec64 100644--- a/crates/openhuman-core/src/security/README.md+++ b/crates/openhuman-core/src/security/README.md@@ -133,10 +133,9 @@ The invariants that hold with the policy enabled:(`DEFAULT_APPROVAL_TTL` in [`approval/gate.rs`](./approval/gate.rs); the Flow Canvas copilot pathuses a three-minute window).-The shell-string scanning itself (segment splitting, quoting, heredoc-stripping, segment classification, hidden-execution detection) is-`tinybox_core::shell`, in `vendor/tinybox/crates/tinybox-core`.-[`policy/command_checks.rs`](./policy/command_checks.rs) composes it with the tier.+The TinyBox module owns shell-string scanning and returns `CommandAnalysis`+facts over the `tinybox-bus` contract. [`policy/command_checks.rs`](./policy/command_checks.rs)+applies the host's autonomy tier and protected-path policy to those facts.### Hot-swapping the policy@@ -241,8 +240,9 @@ The subfolders register their own namespaces: `approval.*` ([`approval/`](./appr- Sandbox backends do not live here. `crates/openhuman-core/src/sandbox/`picks a backend per session and delegates native confinement and processownership to the loaded TinyBox module (`vendor/tinybox`).-- Shell parsing and command classification primitives are owned by- `tinybox` (`tinybox_core::shell`). Policy over them stays here.+- Shell parsing and command classification run inside the loaded TinyBox module;+ its `CommandAnalysis` response is the bus boundary. Policy over those facts+ stays here.- Secret and PII scrubbers are TinyMemory's(`tinymemory_integrations::safety`, `vendor/tinymemory`); this folder onlypins the policy.diff --git a/crates/openhuman-core/src/security/policy/README.md b/crates/openhuman-core/src/security/policy/README.mdindex 98bb19696c..c3f9334fb8 100644--- a/crates/openhuman-core/src/security/policy/README.md+++ b/crates/openhuman-core/src/security/policy/README.md@@ -45,7 +45,7 @@ impl in [`types.rs`](./types.rs).| [`path_checks.rs`](./path_checks.rs) | `is_workspace_internal_path`, `is_always_forbidden`, `check_cross_profile`, `is_within_trusted_root`, `is_resolved_path_allowed[_for]`, `check_resolved_against_forbidden` || [`command_checks.rs`](./command_checks.rs) | `classify_command`, `gate_decision`, `check_gated_command`, `is_command_allowed`, `command_risk_level`, `parse_declared_class`, `is_command_executor`, `split_unquoted_segments` || [`enforcement.rs`](./enforcement.rs) | `can_act`, `enforce_write_tier`, `enforce_tool_operation`, `record_action`/`is_rate_limited`, `from_config`, `with_privacy_mode`, `openhuman_scratch_dir`/`ensure_openhuman_scratch_dir`, `validate_path_within_root` |-| `tinybox_core::shell::{scan,classify,executor,env_guard}` (vendored) | Shell-parsing helpers behind the command checks: `split_unquoted_segments`, `skip_env_assignments`, `normalized_command_name`, `is_command_executor`, `classify_segment`, `has_hidden_execution`, `has_dangerous_env_prefix`, `contains_unquoted_char`, and the `CommandClass` enum (re-exported from `types.rs`) |+| TinyBox module `CommandAnalysis` (`tinybox-bus`) | Module-produced command segments, classifications, structural flags, and literal path words; the host applies autonomy, allowlist, approval, and protected-path policy to these facts |## Public surface