Skip to content

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

docs(openhuman-core): add README files for flows and file storage modules

Steven Enamakel7479ce5c9812
diff --git a/crates/openhuman-core/src/flows/README.md b/crates/openhuman-core/src/flows/README.md
index 2f6f525fb6..7224f4e61c 100644
--- a/crates/openhuman-core/src/flows/README.md
+++ b/crates/openhuman-core/src/flows/README.md
@@ -73,7 +73,7 @@ from always-compiled code.
- Unit: `*_tests.rs` attached with `#[path]` to nearly every top-level file (`ops_tests*`, `bus_tests*`, `builder_tools_tests*`, `catalogue_tests.rs`, `discovery_tools_tests.rs`, `medulla_bridge_tests.rs`, `memory_tools_tests.rs`, `node_contracts_tests.rs`, `schemas_tests.rs`, `tools_tests.rs`), plus `import_tests.rs` for the n8n importer (declared in `mod.rs`).
- `tinyflows/` has its own suite: `checkpoint_compat_tests.rs`, `memory_adapter_tests.rs`, `memory_node_e2e_tests.rs`, `observability_tests.rs`, `langfuse_export_tests.rs`, `tinyflows_tests.rs`, and `caps/*_tests.rs`.
-- Not compiled: `types.rs` / `types_tests.rs` and `store_tests_part_01..03.rs` are declared by no module (`flows::types` resolves to `tinyflows_catalog::types`, and `store.rs` has no test attachment). They are leftovers from moving the model and store into `tinyflows-catalog` / `tinyflows-sqlite`.
+- Not compiled: `types.rs` / `types_tests.rs` are declared by no module (`flows::types` resolves to `tinyflows_catalog::types`, and `store.rs` has no test attachment). They are leftovers from moving the model and store into `tinyflows-catalog` / `tinyflows-sqlite`.
## Related docs
diff --git a/crates/openhuman-core/src/integrations/file_storage/README.md b/crates/openhuman-core/src/integrations/file_storage/README.md
index f0252927e1..dfd6c6b9e5 100644
--- a/crates/openhuman-core/src/integrations/file_storage/README.md
+++ b/crates/openhuman-core/src/integrations/file_storage/README.md
@@ -26,9 +26,10 @@ and TTL enforcement.
| --- | --- |
| `mod.rs` | Export-only module root; re-exports `build_file_storage_tools` and the six `Storage*Tool` structs. |
| `types.rs` | Serde types for backend responses (`UploadResponse`, `ListFilesResponse`, `FileMeta`, `LinkResponse`, `DeleteResponse`). |
-| `tools.rs` | Module doc listing the backend endpoints and billing model; wires in `tools_part_01.rs` / `tools_part_02.rs` via `include!`. |
-| `tools_part_01.rs` | Shared helpers (`resolve_upload_path`, `validate_file_id`, `validate_visibility`, `sanitize_filename`, `action_dir_for_context`, `readonly_autonomy_block`) plus `StorageUploadFileTool`, `StorageDownloadFileTool`, `StorageListFilesTool`, and the `StorageGetLinkTool` struct. |
-| `tools_part_02.rs` | The `Tool` impl for `StorageGetLinkTool`, `StorageSetVisibilityTool`, `StorageDeleteFileTool`, and the `build_file_storage_tools` builder. |
+| `tools/mod.rs` | Module doc listing the backend endpoints and billing model; declares and re-exports the tool submodules. |
+| `tools/helpers.rs` | Shared helpers: `resolve_upload_path`, `validate_file_id`, `validate_visibility`, `sanitize_filename`, `action_dir_for_context`, `readonly_autonomy_block`. |
+| `tools/upload.rs`, `tools/download.rs`, `tools/list.rs`, `tools/link.rs`, `tools/visibility.rs`, `tools/delete.rs` | `StorageUploadFileTool`, `StorageDownloadFileTool`, `StorageListFilesTool`, `StorageGetLinkTool`, `StorageSetVisibilityTool`, `StorageDeleteFileTool` respectively, one `Tool` impl per file. |
+| `tools/registry.rs` | The `build_file_storage_tools` builder. |
| `tools_tests.rs` | Tool metadata/schema tests and path-resolution/sanitization unit tests. |
## Agent Tools
@@ -49,7 +50,7 @@ alphanumeric/`-`/`_` charset before it is interpolated into the URL path
## Security Notes
-- `resolve_upload_path` (`tools_part_01.rs`) resolves the `path` argument
+- `resolve_upload_path` (`tools/helpers.rs`) resolves the `path` argument
relative to `action_dir` if not absolute, canonicalizes both the workspace
root and the candidate, and rejects the upload unless the canonicalized
path starts with the canonicalized `action_dir` — this also rejects a