Repository navigation
refactor(subagents): remove registry forwarding shim - #177
Merged
senamakel merged 2 commits intoOct 22, 2026
Merged
Conversation
The harness-tools subagents module no longer re-exports SubAgentJobRegistry, so callers now import it directly from tinyagents_orchestration::subagent. The README and tests were updated to match, keeping a single canonical path for the type. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
The README now spells out the full `tinyagents_orchestration::subagent::SubAgentJobRegistry` path so readers can find the type without guessing its crate. The session tests import `SubAgentJobRegistry` directly instead of repeating the `crate::subagents::` prefix at each call site. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the
tinyagents-harness-tools::subagents::SubAgentJobRegistryre-export. The registry is owned bytinyagents-orchestration, and consumers now import it fromtinyagents_orchestration::subagent; tool constructors and behavior are unchanged. This leaves one canonical path for the registry type and removes the owner-boundary forwarding shim.Updated harness-tools and integration tests to use the orchestration-owned type directly, and clarified the module README.
Validation on this source:
cargo fmt --all -- --checkcargo check --workspace --all-targetscargo clippy --workspace --all-targets -- -D warningscargo test -p tinyagents-harness-tools --features subagents(188 passed)cargo test -p tinyagents-integration-tests --features subagents --test subagent_sessions_tools(11 passed)Refs senamakel/openhuman#256
Part of tinyhumansai/openhuman#8092