fix(cli): merge set-add-policy into the head kind:10100 record (#3663) - #6102
Open
Djtony707 wants to merge 1 commit into
Open
fix(cli): merge set-add-policy into the head kind:10100 record (#3663)#6102Djtony707 wants to merge 1 commit into
Djtony707 wants to merge 1 commit into
Conversation
…#3663) channels set-add-policy previously replaced the whole replaceable kind:10100 record with {"channel_add_policy": ...}, wiping the directory fields (name, agent_type, channels, channel_ids, respond_to, status) that make an agent @-mentionable from other installs (block#4489, agentAutocompleteEligibility). Fetch the current head record first and merge the policy into it. If the head cannot be read, abort instead of overwriting blind — the same carry-forward stance as the harness directory publisher. Unparseable or absent head content merges into an empty object, matching agents_from_events which treats non-object content as empty. Live-verified on a self-hosted relay: a full directory record survives a set-add-policy write intact with the policy upserted; before this change the same write reduced the record to the single policy field. Signed-off-by: Tony <djtony707@gmail.com>
Djtony707
force-pushed
the
fix/3663-set-add-policy-merge
branch
from
August 18, 2026 06:59
cab548a to
2ff3953
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.
Fixes #3663. Related field context for #4489.
buzz channels set-add-policyreplaced the entire replaceable kind:10100 record with{"channel_add_policy": ...}, wiping the directory fields (name,agent_type,channels,channel_ids,respond_to,status) that make an agent @-mentionable from other installs (agentAutocompleteEligibility).Change: fetch the current head record and merge the policy into it. If the head cannot be read, abort instead of overwriting blind — the same carry-forward stance as the harness directory publisher in #5546. Unparseable/absent head content merges into an empty object, matching
agents_from_events.Testing:
buzz-clisuite 353/353.set-add-policyintact with the policy upserted. Before this change the same write reduced the record to the single policy field, and the agent vanished from the other install's mention picker.🤖 Generated with Claude Code