Uh oh!
There was an error while loading. Please reload this page.
feat: serve SolutionServer through agents.Serve() (#290) - #293
Merged
antoinetoussaint-byte merged 2 commits intoAug 16, 2026
Merged
Conversation
Add a Solution field to PluginRegistration and register it during agent startup, so a solution plugin can expose its gRPC contract through the standard Serve() path alongside Provider and the other capabilities. Extract the unconditional server registrations into a testable registerServices helper and cover Solution registration with a test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The prior test asserted a private registerServices helper via GetServiceInfo, so it could not catch a regression that stopped Serve from calling the registration (both tests passed against the helper, not against Serve). The helper existed only to enable that weaker test. Register Solution inline in Serve exactly like Provider (dropping the helper), and replace the unit test with a real spawn test: it builds a testdata solution agent, starts it through Serve, dials over gRPC, and asserts a Solution RPC routes to the fixture handler. Removing the registration in Serve now surfaces as an Unimplemented "unknown service" error — verified by temporarily deleting the registration. No mocks; the test drives the actual Serve path. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Closes#290.
Summary
SolutiongRPC contract is generated but no plugin can expose it through the standard agent startup path —PluginRegistrationhad noSolutionfield andServe()never registered one (unlikeProvider). This wires it up so a solution binary can serve its contract, unblocking the end-to-end tracer bullet.main. This PR re-lands the same work rebased ontomain.Test plan
go test ./agents/passesserve_solution_test.goboots a real solution agent binary throughServe()and calls the Solution RPC end-to-end (no mocks)