Skip to content

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

docs(plans): update controller parser migration plan

Steven Enamakeld4bd59e02271
diff --git a/docs/plans/2026-10-20-controller-parser-migration.md b/docs/plans/2026-10-20-controller-parser-migration.md
index 39e29a7c8f..7d232f74f0 100644
--- a/docs/plans/2026-10-20-controller-parser-migration.md
+++ b/docs/plans/2026-10-20-controller-parser-migration.md
@@ -124,7 +124,7 @@ Files: `crates/openhuman-core/src/core/all.rs` extension types and registration;
Preserve the current `RegisteredController`, `ControllerExtension`, and `register_controller_extension` APIs exactly. Add `BoundControllerExtension` with `Vec<BoundRegisteredController>` and a separate registration function; core stores both in `ControllerEntry` and never converts a bound entry back to a legacy handler pointer. TinyHumans' `hosted::extension()` migrates its proxy controllers through this new path. Separately migrate `tinyhumans/src/voice/schemas.rs`: its `voice.agent_signed_url` and `voice.cloud_transcribe` entries are a Voice-group extension, distinct from the Hosted-group proxy extension, and need their own fixed contract table and owner tests. Each extension constructor returns the actual bound extension object tested locally before install.
-The extension path already crosses a fixed facade chain. Add only the necessary type/function re-exports to `openhuman_embed::__host` (`crates/openhuman-embed/src/lib.rs`), relying on `openhuman-tinyhumans/src/lib.rs`'s existing `pub use openhuman_embed::__host`; RPC already reaches that same list as `openhuman_tinyhumans::__host as core_host`. Do not add a core dependency upward or bypass the facade. Preserve the existing embed builder call `.controller_extension(ControllerExtension)` and add `.bound_controller_extension(BoundControllerExtension)` in `crates/openhuman-embed/src/runtime/seams.rs`; store legacy and bound options in separate vectors and install each through its matching registration function. In the TinyHumans generated `RuntimeBuilder` (`src/runtime.rs`), add a parallel bound setter and forward it to embed. Extend internal `InstallOptions`/`Wiring` preparation and `install` so today's `controllers: Option<ControllerExtension>` legacy path remains intact while a `bound_controllers: Option<BoundControllerExtension>` path carries the parser binding without conversion. For `RuntimeBuilder::controller_extension`, keep its existing setter and generated forwarding from TinyHumans; add a separate bound setter in TinyHumans runtime. For `InstallOptions`, keep public fields and meanings unchanged, and migrate only its private `Wiring` controller payload to carry an additional `Option<BoundControllerExtension>` alongside the existing `Option<ControllerExtension>`. Update the `prepare` and `install` tuple/struct plumbing to retain both values until registration. Migrate hosted proxies and TinyHumans voice registration separately; preserve voice registration's current boot timing and duplicate/idempotency behavior.
+The extension path already crosses a fixed facade chain. Add only the necessary type/function re-exports to `openhuman_embed::__host` (`crates/openhuman-embed/src/lib.rs`), relying on `openhuman-tinyhumans/src/lib.rs`'s existing `pub use openhuman_embed::__host`; RPC already reaches that same list as `openhuman_tinyhumans::__host as core_host`. Do not add a core dependency upward or bypass the facade. Preserve the existing embed builder call `.controller_extension(ControllerExtension)` and add `.bound_controller_extension(BoundControllerExtension)` in `crates/openhuman-embed/src/runtime/seams.rs`; store legacy and bound options in separate vectors and install each through its matching registration function. In the TinyHumans generated `RuntimeBuilder` (`src/runtime.rs`), add a parallel bound setter and forward it to embed. Extend internal `Wiring` preparation and `install` so the existing `controllers: Option<ControllerExtension>` legacy path remains intact while a `bound_controllers: Option<BoundControllerExtension>` path carries the parser binding without conversion. In `RuntimeBuilder::controller_extension`, keep its existing setter and generated forwarding from TinyHumans; add a separate bound setter in TinyHumans runtime. Keep public `InstallOptions` fields and meanings unchanged; add a bound sibling to the private `Wiring.controllers` payload and update `prepare`/`install` plumbing to retain both the legacy and bound extension values until their matching registration calls. Migrate hosted proxies and TinyHumans voice registration separately; preserve voice registration's current boot timing and duplicate/idempotency behavior.
RPC owns a third extension: `http_host::extension()` under `DomainGroup::Platform`, not Hosted or Voice. Convert `crates/openhuman-rpc/src/http_host/schemas.rs` registrations to bound constructors and `http_host::extension()` plus `register_controllers`/`ensure_registered` to the bound extension path. Update `host.rs` builder setup to call `.bound_controller_extension(...)`, and preserve the legacy builder method for callers. Keep contract tests in `crates/openhuman-rpc/src/http_host/schemas_tests.rs`; add explicit fixed required names/examples and mutants there. Add facade forwarding tests/checks through embed → tinyhumans → rpc and verify no product Cargo feature forwarding is changed unless an existing gate actually needs forwarding. Run core, tinyhumans (including `voice` and `hosted` configurations), and rpc `server`/relevant feature tests in their owning crates.