Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: update source references to reflect tinytools-std relocation

Steven Enamakel2d1ef2197c51
diff --git a/app/test/e2e/specs/harness-search-tool-flow.spec.ts b/app/test/e2e/specs/harness-search-tool-flow.spec.ts
index a47797e18d..426ebd00af 100644
--- a/app/test/e2e/specs/harness-search-tool-flow.spec.ts
+++ b/app/test/e2e/specs/harness-search-tool-flow.spec.ts
@@ -288,7 +288,7 @@ describe('Harness - Search tool-flow', () => {
const CANARY = 'canary-file-read-e5f6';
const FILE_SNIPPET = 'OpenHuman is an AI assistant for communities';
- // Tool name: "file_read" (crates/openhuman-core/src/tools/impl/filesystem/file_read.rs)
+ // Tool name: "file_read" (tinytools-std filesystem/file_read/mod.rs)
// Path: use a clearly fictional path so no real data is read in test env.
const FORCED = [
{
diff --git a/app/test/e2e/specs/tool-filesystem-flow.spec.ts b/app/test/e2e/specs/tool-filesystem-flow.spec.ts
index 0e187e6836..cdcf52b7c9 100644
--- a/app/test/e2e/specs/tool-filesystem-flow.spec.ts
+++ b/app/test/e2e/specs/tool-filesystem-flow.spec.ts
@@ -15,7 +15,7 @@ const USER_ID = 'e2e-tool-filesystem';
* same security contract the agent-facing `file_read` / `file_write` tools
* enforce: workspace-relative paths only, parent-traversal blocked, absolute
* paths blocked, all writes confined to `OPENHUMAN_WORKSPACE`. The Rust unit
- * tests in `crates/openhuman-core/src/tools/impl/filesystem/file_read.rs` /
+ * tests in `tinytools-std `filesystem/file_read/mod.rs`` /
* `file_write.rs` cover the in-process tool path; this WDIO spec proves the
* UI⇄Tauri⇄sidecar wiring honours the same gates over JSON-RPC.
*
diff --git a/app/test/e2e/specs/tool-shell-git-flow.spec.ts b/app/test/e2e/specs/tool-shell-git-flow.spec.ts
index 93a3690e3f..3e5e015ff0 100644
--- a/app/test/e2e/specs/tool-shell-git-flow.spec.ts
+++ b/app/test/e2e/specs/tool-shell-git-flow.spec.ts
@@ -25,7 +25,7 @@ const USER_ID = 'e2e-tool-shell-git';
* RPC and registry contract end-to-end, and skip the LLM-driven assertion
* with an explicit reason. The execution path itself is covered by the Rust
* unit suite under `crates/openhuman-core/src/tools/impl/system/shell.rs` and
- * `crates/openhuman-core/src/tools/impl/filesystem/git_operations.rs`.
+ * `tinytools-std filesystem/git_operations/mod.rs`.
*
* What this spec proves end-to-end:
* - 6.2.1 — the agent runtime is up and the `orchestrator` definition, which
@@ -47,7 +47,7 @@ const USER_ID = 'e2e-tool-shell-git';
* - 6.2.4 — same fixture supports a Node-side commit, proving that a write
* op is structurally feasible against the resolved workspace. The full
* sidecar-driven write path is exercised by
- * `crates/openhuman-core/src/tools/impl/filesystem/git_operations_tests.rs`.
+ * tinytools-std `filesystem/git_operations/test.rs`.
*
* Future: when the harness gains a deterministic mock-LLM that emits
* structured tool_calls (tracked alongside #68 in skill-execution-flow), the
@@ -255,7 +255,7 @@ describe('System tools — Shell + Git (registry, denial envelope, fixture repo)
const repoDir = path.join(workspaceDir(), FIXTURE_REPO_REL);
// Add a second file and commit — proves the same fixture supports the
// full add → commit lifecycle the agent's `git_operations` write path
- // uses (validated structurally in git_operations_tests.rs).
+ // uses (validated structurally in filesystem/git_operations/test.rs).
const followupFile = 'CHANGELOG.md';
await fs.writeFile(
path.join(repoDir, followupFile),
diff --git a/crates/openhuman-core/src/agent/harness/memory_protocol.rs b/crates/openhuman-core/src/agent/harness/memory_protocol.rs
index 5ec8de78c4..5302bb87e2 100644
--- a/crates/openhuman-core/src/agent/harness/memory_protocol.rs
+++ b/crates/openhuman-core/src/agent/harness/memory_protocol.rs
@@ -55,7 +55,7 @@ pub enum MemoryOp {
///
/// Two tools are polymorphic and cannot be classified by name alone:
/// - `update_memory_md` edits either `MEMORY.md` **or** `SKILL.md`
-/// (`crates/openhuman-core/src/tools/impl/filesystem/update_memory_md.rs`); only a
+/// (`tinytools_std::filesystem::UpdateMemoryMdTool`); only a
/// `MEMORY.md` edit reconciles the memory index, so a `SKILL.md` edit is not
/// an [`MemoryOp::IndexUpdate`] and must not close the cycle.
/// - the consolidated `memory_tree` tool (`crates/openhuman-core/src/memory/query/mod.rs`)
diff --git a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs
index c3041cbd9f..ea0c320bbc 100644
--- a/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs
+++ b/crates/openhuman-core/src/agent/session_host/artifact_wiring.rs
@@ -35,7 +35,7 @@ const ARTIFACT_RETENTION: std::time::Duration = std::time::Duration::from_secs(2
///
/// The store writes under `<root>/artifacts/tool-results/…` but hands the model
/// a RELATIVE pointer, which `file_read` later resolves through
-/// `security_for_tool_context` (`tools/impl/filesystem/mod.rs`). That function
+/// `FsGate::scoped_to_workspace` (`tools/impl/filesystem/gate.rs`). That scoping
/// overwrites `action_dir` with `ctx.workspace().root` whenever the turn carries
/// a workspace descriptor — and `turn()` sets `context.workspace` from the
/// host's own descriptor. So on a turn bound to a per-turn workspace, rooting
diff --git a/crates/openhuman-core/src/memory/guard/policy.rs b/crates/openhuman-core/src/memory/guard/policy.rs
index 0e9dd17dcf..603b22a410 100644
--- a/crates/openhuman-core/src/memory/guard/policy.rs
+++ b/crates/openhuman-core/src/memory/guard/policy.rs
@@ -186,7 +186,7 @@ impl GuardPolicy {
/// So the guard takes the tier half only, via
/// [`SecurityPolicy::enforce_write_tier`]. That is the same shape the ~15
/// acting tools which gate on bare `can_act()` already use
- /// (`tools/impl/filesystem/file_write.rs`,
+ /// (`tinytools_std::filesystem::FileWriteTool`,
/// `tools/impl/system/python_exec.rs`, `cron/scheduler.rs`, …). Budget
/// accounting stays where it is denominated: at the tool boundary.
///
diff --git a/crates/openhuman-core/src/security/policy/README.md b/crates/openhuman-core/src/security/policy/README.md
index bf2a6f9bbb..43dfafde12 100644
--- a/crates/openhuman-core/src/security/policy/README.md
+++ b/crates/openhuman-core/src/security/policy/README.md
@@ -59,9 +59,10 @@ Re-exported through `policy/mod.rs` and then through `security/mod.rs`:
`security/live_policy.rs` (a sibling of this directory) holds the current
`SecurityPolicy` in a process-global cell: new sessions `install` the latest
policy, and `reload_from` / `reload_privacy` swap it the moment the config is
-saved. `security_for_tool_context` (`tools/impl/filesystem/mod.rs`,
-`tools/impl/system/mod.rs`) clones a tool's policy per call and, when the run
-carries a workspace descriptor, sets `action_dir` to that root and pushes it
+saved. `security_scoped_to_root` (`tools/impl/filesystem/gate.rs`, reached through
+`FsGate::scoped_to_workspace`) and `security_for_tool_context`
+(`tools/impl/system/mod.rs`) clone a tool's policy per call and, when the run
+carries a workspace descriptor, set `action_dir` to that root and pushes it
as a `ReadWrite` `TrustedRoot`. `is_always_forbidden` and
`is_workspace_internal_path` are evaluated before any trusted-root shortcut,
so the grant cannot widen them.
diff --git a/crates/openhuman-core/src/security/policy/enforcement.rs b/crates/openhuman-core/src/security/policy/enforcement.rs
index d1e7f24fde..c48ffe54f5 100644
--- a/crates/openhuman-core/src/security/policy/enforcement.rs
+++ b/crates/openhuman-core/src/security/policy/enforcement.rs
@@ -27,7 +27,7 @@ impl SecurityPolicy {
/// guard, which sits under `MemoryCore::store` and is hit hundreds of times
/// by one bulk ingest — want the tier refusal and nothing else. That is the
/// same shape the ~15 acting tools which gate on bare [`Self::can_act`]
- /// already use (e.g. `tools/impl/filesystem/file_write.rs`,
+ /// already use (e.g. `tinytools_std::filesystem::FileWriteTool`,
/// `tools/impl/system/python_exec.rs`, `cron/scheduler.rs`).
pub fn enforce_write_tier(&self, operation_name: &str) -> Result<(), String> {
if !self.can_act() {
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index d791dae310..54625141c3 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -261,9 +261,9 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ----- | ---------------------------- | ----- | ------------------------------------------------------------------------------------------------------ | ------ | -------------------------------------------------------------------- |
-| 6.1.1 | File Read Access | RU+WD | `crates/openhuman-core/src/tools/impl/filesystem/file_read.rs`, `app/test/e2e/specs/tool-filesystem-flow.spec.ts` | ✅ | Was 🟡 — WDIO drives memory_read_file + asserts via Node fs. Byte `offset` paging (continues a paged artifact read, #6284): `file_read_tests.rs::file_read_offset_continues_from_the_given_byte` |
-| 6.1.2 | File Write Access | RU+WD | `crates/openhuman-core/src/tools/impl/filesystem/file_write.rs`, `app/test/e2e/specs/tool-filesystem-flow.spec.ts` | ✅ | Was 🟡 — WDIO drives memory_write_file + asserts bytes match on disk |
-| 6.1.3 | Path Restriction Enforcement | RU+WD | `crates/openhuman-core/src/tools/impl/filesystem/file_read.rs`, `app/test/e2e/specs/tool-filesystem-flow.spec.ts` | ✅ | Was 🟡 — WDIO asserts traversal + absolute-path denial envelope |
+| 6.1.1 | File Read Access | RU+WD | `vendor/tinyagents/vendor/tinytools/crates/tinytools-std/src/filesystem/file_read/mod.rs`, `app/test/e2e/specs/tool-filesystem-flow.spec.ts` | ✅ | Was 🟡 — WDIO drives memory_read_file + asserts via Node fs. Byte `offset` paging (continues a paged artifact read, #6284): `file_read/test.rs::file_read_offset_continues_from_the_given_byte` (tinytools-std) |
+| 6.1.2 | File Write Access | RU+WD | `vendor/tinyagents/vendor/tinytools/crates/tinytools-std/src/filesystem/file_write/mod.rs`, `app/test/e2e/specs/tool-filesystem-flow.spec.ts` | ✅ | Was 🟡 — WDIO drives memory_write_file + asserts bytes match on disk |
+| 6.1.3 | Path Restriction Enforcement | RU+WD | `crates/openhuman-core/src/tools/impl/filesystem/gate_tests.rs`, `app/test/e2e/specs/tool-filesystem-flow.spec.ts` | ✅ | Was 🟡 — WDIO asserts traversal + absolute-path denial envelope |
### 6.2 Shell & Git
@@ -271,8 +271,8 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| ----- | ---------------------------- | ----- | --------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------ |
| 6.2.1 | Shell Command Execution | RU+WD | `crates/openhuman-core/src/tools/impl/system/shell.rs`, `app/test/e2e/specs/tool-shell-git-flow.spec.ts` | ✅ | Was 🟡 — WDIO asserts agent runtime + the shell-bearing agent registry contract (the orchestrator since `tools_agent` was removed); full LLM path tracked #68 |
| 6.2.2 | Command Restriction Handling | RU+WD | `crates/openhuman-core/src/security/policy/policy_tests.rs` (+ `policy_injection_tests.rs`), `app/test/e2e/specs/tool-shell-git-flow.spec.ts` | ✅ | Was 🟡 — WDIO locks denial envelope shape `{ ok:false, error }` consumed by the React UI |
-| 6.2.3 | Git Read Operations | RU+WD | `crates/openhuman-core/src/tools/impl/filesystem/git_operations_tests.rs`, `app/test/e2e/specs/tool-shell-git-flow.spec.ts` | ✅ | Was 🟡 — WDIO seeds a fixture repo in OPENHUMAN_WORKSPACE and asserts read ops succeed |
-| 6.2.4 | Git Write Operations | RU+WD | `crates/openhuman-core/src/tools/impl/filesystem/git_operations_tests.rs`, `app/test/e2e/specs/tool-shell-git-flow.spec.ts` | ✅ | Was 🟡 — WDIO commits into the same fixture and asserts log advances |
+| 6.2.3 | Git Read Operations | RU+WD | `vendor/tinyagents/vendor/tinytools/crates/tinytools-std/src/filesystem/git_operations/test.rs`, `app/test/e2e/specs/tool-shell-git-flow.spec.ts` | ✅ | Was 🟡 — WDIO seeds a fixture repo in OPENHUMAN_WORKSPACE and asserts read ops succeed |
+| 6.2.4 | Git Write Operations | RU+WD | `vendor/tinyagents/vendor/tinytools/crates/tinytools-std/src/filesystem/git_operations/test.rs`, `app/test/e2e/specs/tool-shell-git-flow.spec.ts` | ✅ | Was 🟡 — WDIO commits into the same fixture and asserts log advances |
### 6.3 Sub-agent Orchestration
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 140ba6ed1d..88973318da 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -1336,7 +1336,7 @@ async fn delegated_clarification_flow_inner() {
//
// Architecture notes for file_write approval:
//
-// `FileWriteTool::external_effect_with_args` (crates/openhuman-core/src/tools/impl/filesystem/file_write.rs:65)
+// `FileWriteTool::external_effect_with_args` (`tinytools_std::filesystem::FileWriteTool`)
// only returns `true` when the target file ALREADY EXISTS at `action_dir/path`.
// Logic: "exists = edit → prompt; new = create → free". The default action_dir
// is `~/OpenHuman/projects` (derived from the HOME env var that boot_stack