feat(chat/synapse): multi-turn memory (#129), hub-spoke delegation (#262), and agent cards (#272) - #290
Merged
Conversation
…nd REST endpoints (#272)
jarvispectrayan
approved these changes
Jul 15, 2026
|
All contributors have signed the CLA. ✅ |
Member
Author
|
I have read the CLA Document and I hereby sign the CLA |
Member
Author
|
recheck |
Member
|
I have read the CLA Document and I hereby sign the CLA |
Member
|
recheck |
sbharatjoshi
force-pushed
the
feature/129-reflector-summarizer-integration
branch
from
July 15, 2026 02:01
93d30a8 to
783c725
Compare
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.
This PR implements the ConversationReflector and ConversationSummarizer integration, resolving multi-turn chat history bugs, porting the companion prompt, resolving build flakiness in KeyedSynapticTagEncoderTest, implementing the multi-agent coordinator hub-spoke delegation, and exposing Agent Cards capability discovery manifests and REST endpoints.
Changes Included:
1. Multi-Turn Session Integration (#129)
companion-system.txtprompt template from spector-enterprise to spector core repository (spector-synapsemodule resources).AgenticChatGraph.javato support an overloadedchatmethod that accepts conversation history as a list ofChatMessageobjects, prepending it to the state graph'smessageschannel.ChatService.javato load session history (supporting both database loading and client-passed arrays), run compaction viaConversationSummarizerwhen exceeding the token budget, map history to LangChain4j message types, and execute the graph with the fully reconstructed history.InMemoryChatMemoryPortinChatServiceLiveIT.javaandDeepConversationLiveIT.javawhereexcludeSessionIdwas ignored (which was masking bugs by leaking active session turns as cross-session semantic recalls).KeyedSynapticTagEncoderTest.differentKeysProduceDifferentFilterswhere two different keys could randomly collide in the 64-bit Bloom filter space for a single tag. It now asserts over multiple tags to ensure a 0% collision probability.2. Multi-Agent Hub-Spoke Delegation (#262)
AgenticChatGraph.chatinside the compiled plan subgraph.CognitiveStateandCoordinatorStateschemas withchild_resultsappender channels.DynamicGraphBuilderto use theAgentSelectorand wireAgentDelegationNodewhen compilingAGENTnodes in subgraphs.PlannerNodeandcoordinator-planner-system.txtto automatically list and inject all available child agent metadata into the planner's context prompt.SubgraphExecutorNodeto fetch child execution results from completed subgraphs and bubble them up to the coordinator state.3. Agent Cards: JSON Capability Discovery Manifest (#272)
GET /api/v1/agents/soul/card,GET /api/v1/agents/{id}/card, andPOST /api/v1/agents/{id}/invokeinAgentController.WellKnownControllerto expose the active default agent card at the standard A2A pathGET /.well-known/agent.json.Resolves #129
Resolves #262
Resolves #272