Skip to content

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

fix: address TinyPlace removal review feedback

Steven Enamakeld2c4948bcff3
diff --git a/docs/TEST-COVERAGE-MATRIX.md b/docs/TEST-COVERAGE-MATRIX.md
index 151fd7edc8..2bc66b1c27 100644
--- a/docs/TEST-COVERAGE-MATRIX.md
+++ b/docs/TEST-COVERAGE-MATRIX.md
@@ -500,7 +500,6 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| ID | Feature | Layer | Test path(s) | Status | Notes |
| ------ | --------------------------------------------------------------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| 11.3.2 | Direct paid Medulla orchestration with local OpenHuman tools | RU | `src/openhuman/hosted/orchestration/medulla.rs`, `src/openhuman/hosted/orchestration/schemas.rs` | ✅ | `openhuman.orchestration_run` checks the active paid plan, starts a hosted Medulla cycle, executes requested contact/session/send tools locally, and continues pending/tool-use events to a final result. Mocked HTTP tests cover direct and tool-loop success plus plan, pending, backend-error, unknown-tool, and tool-failure paths. |
| 11.3.3 | Local medulla-serve supervision (`medulla_local` RPC, Flavor A draft) | RU+RI | `src/openhuman/medulla_local/server_tests.rs`, `tests/medulla_local_e2e.rs` | ✅ | Behind the default-ON `medulla-local` feature. Unit tests drive the supervisor's handshake seam against a mock connector: restart-and-retry fires only on mid-request transport death of an idempotent op (exactly one respawn); the non-idempotent `instruct` is never replayed — a transport break surfaces the typed `MaybeApplied` error with no duplicate submission; an overall per-request deadline (`subconscious.medulla_local.request_deadline_secs`, default 300s) bounds a request even while the child keeps streaming frames or while a serve→host port callback (`inference.invoke`/`tools.invoke`) hangs on a stalled provider/tool — tripping as the typed transport error (`MaybeApplied` for `instruct`, restart-and-retry-once for `status`); a retry that also breaks mid-request resets the replacement connection, so the next request re-establishes cleanly instead of reusing a poisoned transport; child liveness is probed before the cached connection is trusted, so a child that dies between requests reports `running=false` and is respawned on the next request instead of misreporting `MaybeApplied`; `ok=false` serve rejections fail fast with the typed `RequestError` without killing the child; and the global cache is keyed on an order-canonical config fingerprint (map-field insertion order cannot invalidate it, a changed config rebuilds and bypasses the start-failure backoff). The transport is unix-only; non-unix targets compile a stub whose entry points report a typed unsupported-platform error (self-tested on those targets). The RI suite boots the real JSON-RPC router and asserts `medulla_local.status` returns a well-formed idle snapshot (running=false, actionable message) and `instruct` fails cleanly when no serve entry is configured — hermetic, no Node child or network. |
---
@@ -632,17 +631,16 @@ End-to-end coverage of the agent harness via the web-chat RPC surface against an
| 16.1.8 | MCP servers declared programmatically | RU | `src/embed/harness/mcp_tests.rs` | ✅ | stdio/HTTP transports mutually exclusive, enabled by default, env accumulation, allow/deny filters, auth carried through |
| 16.1.9 | Skill bundles installed into the workspace | RU | `src/embed/harness/skills_tests.rs` | ✅ | Copied not linked (discovery rejects symlinked bundles and manifests by design); symlinks skipped both as bundles and inside them; `Inherit` refuses the copy |
| 16.1.10 | One harness per process | RU+RI | `src/embed/harness/builder_tests.rs`, `tests/harness_embed.rs` | ✅ | Second build returns `AlreadyRunning` rather than sharing process-global keyring/event-bus/subscribers; a failed build releases the slot so a retry is possible |
-| 16.1.11 | Gated domains start no background clients | RU | covered by 16.1.1 end-to-end | 🟡 | `start_login_gated_services` now skips the `hosted::orchestration` client when `DomainSet.hosted` is off; asserted indirectly (the e2e turn fails `SESSION_EXPIRED` without it), no dedicated unit test |
## Summary
| Status | Count |
| ---------------- | ------------------------------------------------ |
-| ✅ Covered | 89 |
-| 🟡 Partial | 28 |
+| ✅ Covered | 88 |
+| 🟡 Partial | 27 |
| ❌ Missing | 26 |
| 🚫 Manual smoke | 11 |
-| **Total leaves** | **154 explicit + nested = 214 product features** |
+| **Total leaves** | **152 explicit + nested = 212 product features** |
PR-A delta: 13 leaves moved from ❌ → ✅ via 5 WDIO specs + 2 Vitest + 1 Rust integration test.
Section 16 adds 11 leaves (10 ✅, 1 🟡) for the embedded library harness.
diff --git a/gitbooks/features/orchestration.md b/gitbooks/features/orchestration.md
index 972eb36417..289f114f15 100644
--- a/gitbooks/features/orchestration.md
+++ b/gitbooks/features/orchestration.md
@@ -12,7 +12,7 @@ icon: sitemap
Most harnesses run one agent in one loop. OpenHuman is built as an **orchestrator**: a stack for coordinating many agents, over long horizons, across machines. It does this durably, observably, and under your control.
-Five layers make that real:
+Four layers make that real:
## 1. Graphs, not loops
diff --git a/src/openhuman/platform/socket/medulla/envelope.rs b/src/openhuman/platform/socket/medulla/envelope.rs
index a392e4b2d1..bce2254cdc 100644
--- a/src/openhuman/platform/socket/medulla/envelope.rs
+++ b/src/openhuman/platform/socket/medulla/envelope.rs
@@ -5,7 +5,10 @@ use serde::{Deserialize, Serialize};
use crate::openhuman::agent::progress::AgentProgress;
-const MEDULLA_ENVELOPE_VERSION: &str = "medulla.harness.session.v1";
+// The backend validates this discriminator. Keep the established v2 wire value
+// even though the Rust types are now owned here instead of by the retired
+// TinyPlace crate.
+const MEDULLA_ENVELOPE_VERSION: &str = "tinyplace.harness.session.v2";
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)]
pub struct TextPayload {
@@ -251,7 +254,7 @@ pub fn envelope_for_kind(session_id: &str, seq: i64, kind: &HarnessEventKind) ->
HarnessEnvelope {
envelope_version: MEDULLA_ENVELOPE_VERSION.to_string(),
- version: 1,
+ version: 2,
scope: HarnessScope {
scope_type: "session".to_string(),
wrapper_session_id: session_id.to_string(),
@@ -335,6 +338,8 @@ mod tests {
});
let env = envelope_for_kind("sess-1", 7, &kind);
assert!(env.is_valid());
+ assert_eq!(env.envelope_version, "tinyplace.harness.session.v2");
+ assert_eq!(env.version, 2);
assert_eq!(env.event.kind, "agent_message");
assert_eq!(env.event.seq, 7);
diff --git a/src/openhuman/security/credentials/ops.rs b/src/openhuman/security/credentials/ops.rs
index 3f9919d61d..ec039d8693 100644
--- a/src/openhuman/security/credentials/ops.rs
+++ b/src/openhuman/security/credentials/ops.rs
@@ -54,8 +54,8 @@ fn is_embedder_host() -> bool {
crate::core::runtime::context::CoreContext::current_embedder_config().is_some()
}
-/// Start all login-gated background services (local AI, voice, and
-/// orchestration). Called both from the initial boot path (when an existing
+/// Start all login-gated background services (local AI and voice). Called both
+/// from the initial boot path (when an existing
/// session is detected) and from `store_session()` on fresh login.
pub async fn start_login_gated_services(config: &Config) {
// These login-gated services are mutually independent — the ONLY ordering
@@ -63,9 +63,9 @@ pub async fn start_login_gated_services(config: &Config) {
// for the single rdev global listener on macOS). Previously each was
// `.await`ed in series, so their cold-start costs SUMMED: the local-AI
// bootstrap (Ollama/embeddings) + the Windows WASAPI microphone init
- // (a synchronous readiness handshake in `always_on::spawn_capture_thread`) +
- // the hosted-client network sync stacked into the ~10s stall users hit
- // before hotkeys/commands were usable — worst on Windows (#3490). Worse,
+ // (a synchronous readiness handshake in `always_on::spawn_capture_thread`)
+ // stacked into the ~10s stall users hit before hotkeys/commands were usable
+ // — worst on Windows (#3490). Worse,
// the hotkey/command registration (steps 2–3) sat
// *after* the local-AI bootstrap in the series, so commands could not
// register until Ollama finished warming.
@@ -77,9 +77,8 @@ pub async fn start_login_gated_services(config: &Config) {
// panic in one service is logged on join and never aborts the others.
// Unit tests must not launch the real login-gated background services: they
- // are detached, long-lived loops (hosted-client read-sync + world-diff
- // uploader + one-shot history migration, continuous audio capture) that
- // outlive the test that spawned them and interleave with the
+ // include detached, long-lived continuous audio capture that outlives the
+ // test that spawned it and interleaves with the
// shared process state (HOME / active_user.toml) of the parallel `cargo
// test` run. Once startup became concurrent (#3490) that interleaving made
// the session-isolation tests order-dependent. `cfg!(test)` is compiled out
diff --git a/src/openhuman/web3/wallet/mod.rs b/src/openhuman/web3/wallet/mod.rs
index c3b0651c98..6d0313a418 100644
--- a/src/openhuman/web3/wallet/mod.rs
+++ b/src/openhuman/web3/wallet/mod.rs
@@ -12,8 +12,8 @@
//! exposes the same public surface that always-on / other-gated callers depend
//! on (`WALLET_NOT_CONFIGURED_MESSAGE`, `status`, `secret_material`,
//! `WalletChain`, `prepare_transfer`, `execute_prepared`, the prepare/execute
-//! param + result types, `solana_cluster` / `SolanaCluster`, the `rpc`
-//! submodule, `prepared_quotes_for_test`, and the controller-registration
+//! param + result types, `solana_cluster` / `SolanaCluster`,
+//! `prepared_quotes_for_test`, and the controller-registration
//! entry points) with no-op / disabled-error bodies. Signatures MUST match the real ones;
//! the disabled build
//! (`cargo check --no-default-features`) is