refactor(gateway): decouple extension tool wiring via IAgentToolContributor#146
Merged
Conversation
Introduce IAgentToolContributor for runtime extension tool contribution and register it through the extension loader so Gateway no longer compiles against Skills/MCP/WebTools extension projects. Move extension-specific tool construction into extension-owned contributor classes and update InProcessIsolationStrategy to aggregate contributor output and dispose session-scoped resources. Update gateway tests for the new strategy constructor and add coverage that contributor-provided tools are included. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Orchestration logs for Leela, Farnsworth, Hermes - Session log for gateway-decoupling work - Merged 7 decisions from inbox to decisions.md - Updated agent history.md with cross-agent signals - Dependency review findings, IAgentToolContributor introduction, test audit results
…espace alignment) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nsion-decoupling # Conflicts: # src/gateway/BotNexus.Gateway/Isolation/InProcessIsolationStrategy.cs # tests/BotNexus.Gateway.Tests/InProcessIsolationStrategyTests.cs
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.
Summary
Removes compile-time \ProjectReference\ from \BotNexus.Gateway\ to 4 extension projects (Skills, Mcp, McpInvoke, WebTools), replacing hardwired tool instantiation with a runtime contribution contract.
Changes
ew-ing extension types
Motivation
The architecture review (Leela) identified this as the #1 highest-impact structural issue: Gateway was violating its own documented rule that extensions depend on the gateway, not vice versa. With 16 project references, Gateway had become a monolithic gravity well.
Verification
Follow-up
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com