Skip to content

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

docs(test_support): add README for test support module

Steven Enamakel2b5099eea175
diff --git a/crates/openhuman-core/src/test_support/README.md b/crates/openhuman-core/src/test_support/README.md
index 429e3e0fe0..c52ee37553 100644
--- a/crates/openhuman-core/src/test_support/README.md
+++ b/crates/openhuman-core/src/test_support/README.md
@@ -75,6 +75,6 @@ This module owns no state of its own. It mutates and reads state owned by other
- In-process reset: the core process is not restarted; specs reload the webview afterward so the renderer also starts blank.
- Add new persistent state to `reset`. Per the module docstring, any new domain that survives `test_reset` is a leak that lets specs interfere, so extend `rpc::reset` when adding persistent state.
- Path-jail ordering: `resolve_workspace_relative` rejects `..` (and root/prefix components) lexically before touching the filesystem; the `canonicalize` + `starts_with` check underneath only catches symlink escapes and used to fail open for non-existent targets (openhuman#6085). It canonicalizes the root first (macOS `/var`→`/private/var`); `walk_dir` uses `symlink_metadata` and skips symlinks so listings can't follow links out of the workspace.
-- CI runs only the `introspect` tests: the CI Lite lane filters to `test_support::introspect::` because `rpc_tests.rs`'s `wipe_memory_tree` test fails under `--no-default-features` (the memory driver there does not serve `Maintenance`, so `wipe_all_rpc` errors). Run `cargo test -p openhuman --features e2e-test-support --lib -- test_support::` locally to cover both files.
+- CI runs only the `introspect` tests (the CI Lite lane filters to `test_support::introspect::`). Run `cargo test -p openhuman --features e2e-test-support --lib -- test_support::` locally to cover both files.
- `read_workspace_file` byte accounting: `returned_bytes` is the raw byte count before lossy UTF-8 conversion (which substitutes U+FFFD and can change length) so specs can assert byte-accurate truncation.
- `list_workspace_files` schema omits `entries` for brevity, but the runtime payload includes them. `max_depth` defaults to 2, clamped to 6; entry cap is 2000.