feat(honcho): add honcho_list_conclusions tool to expose conclusion IDs#16133
Open
AdhamHsn wants to merge 1 commit into
Open
feat(honcho): add honcho_list_conclusions tool to expose conclusion IDs#16133AdhamHsn wants to merge 1 commit into
AdhamHsn wants to merge 1 commit into
Conversation
The Honcho memory plugin exposes a honcho_conclude(delete_id=...) tool to delete conclusions for PII removal, but no tool exposes conclusion IDs. Users (and the agent itself) cannot determine the delete_id to pass. In practice, agents accumulate test/debug conclusions during interactive debugging that they cannot clean up. The agent reports "Impossible to recover ID for delete_id" because all read-side tools (honcho_search, honcho_profile, honcho_reasoning, honcho_context) return aggregated or synthesized text without underlying document IDs. This adds honcho_list_conclusions, a read tool that returns conclusions with their metadata (id, content, observer, observed, session_id, created_at) using the Honcho SDK's existing peer.conclusions.list() and peer.conclusions.query() APIs. - plugins/memory/honcho/__init__.py: LIST_CONCLUSIONS_SCHEMA + handler - plugins/memory/honcho/session.py: list_conclusions() method on HonchoSessionManager, reusing the same peer/scope resolution logic as delete_conclusion for consistency. Verified end-to-end on Honcho self-hosted v3.0.6 + honcho-ai SDK 2.1.1: list returns conclusions with IDs, query returns ranked subset, and the delete_id flow works after listing.
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.
Problem
The Honcho memory plugin exposes a
honcho_conclude(delete_id=...)tool to delete conclusions for PII removal, but no tool exposes conclusion IDs. Users (and the agent itself) cannot determine thedelete_idto pass.In practice, agents accumulate test/debug conclusions during interactive debugging that they cannot clean up. The agent reports "Impossible to recover ID for delete_id" because all read-side tools (
honcho_search,honcho_profile,honcho_reasoning,honcho_context) return aggregated/synthesized text without underlying document IDs.Solution
Adds a new
honcho_list_conclusionstool that returns conclusions with their metadata (id, content, observer, observed, session_id, created_at) using the Honcho SDK's existingpeer.conclusions.list()andpeer.conclusions.query()APIs.Changes
plugins/memory/honcho/__init__.py(+27 lines)LIST_CONCLUSIONS_SCHEMAtool definition withquery,limit,peerparamsALL_TOOL_SCHEMAShandle_tool_callcallingself._manager.list_conclusions(...)plugins/memory/honcho/session.py(+56 lines)list_conclusions(session_key, query, limit, peer)method onHonchoSessionManagerdelete_conclusionfor consistencylist[dict]with id, content, observer, observed, session_id, created_atBehavior
query=None→peer.conclusions.list()(most recent)query="..."→peer.conclusions.query(query=...)(semantic search)limitclamped to [1, 100]user,ai, or explicit ID)_ai_observe_othersflag handling asdelete_conclusionUse case
honcho_list_conclusions(query="test")→ gets[{id: "abc123", content: "..."}]honcho_conclude(delete_id="abc123")→ conclusion deletedTesting
Verified end-to-end on Honcho self-hosted v3.0.6 + honcho-ai SDK 2.1.1:
list()returns conclusions with IDsquery()returns ranked subset with IDsdelete_idflow works after listing