Skip to content

Rename messaging "set" concept to "message group"#108

Closed
scion-gteam[bot] wants to merge 4 commits into
mainfrom
scion/cleanup-message-group-rename
Closed

Rename messaging "set" concept to "message group"#108
scion-gteam[bot] wants to merge 4 commits into
mainfrom
scion/cleanup-message-group-rename

Conversation

@scion-gteam
Copy link
Copy Markdown

@scion-gteam scion-gteam Bot commented May 31, 2026

Summary

  • Renames the internal "set" vocabulary for multi-recipient messaging to "message group" for clarity
  • Preserves the user-facing set[...] CLI wire-format syntax via backward-compatible aliases
  • Retains "broadcast" as a separate concept (targets all agents vs. named subset)

Resolves #94

Changes

Old New
SetRecipient GroupRecipient (type alias kept)
IsSetRecipient() IsGroupRecipient() (deprecated wrapper kept)
ParseSetRecipient() ParseGroupRecipient() (deprecated wrapper kept)
FormatSetRecipients() FormatGroupRecipients() (deprecated wrapper kept)
sendSetMessageViaHub() sendGroupMessageViaHub()
handleSetMessage() handleGroupMessage()
PublishToSet() PublishToGroup()
set.go / set_test.go message_group.go / message_group_test.go

Wire-format constants (SetPrefix, SetSuffix, TypeGroupSet) are unchanged.

Test plan

  • All pkg/messages tests pass (renamed tests + deprecated alias tests)
  • All cmd message-related tests pass (TestSetRecipientFlagValidation, TestSendGroupMessageViaHub, TestSendGroupMessageViaHub_RequiresHub)
  • TestMessageBrokerProxy_PublishToGroup passes in pkg/hub
  • go vet clean on all affected packages
  • go build ./... succeeds
  • Pre-existing gofmt issues in touched files fixed

ptone added 4 commits May 31, 2026 16:35
Rename SetRecipient→GroupRecipient, IsSetRecipient→IsGroupRecipient,
ParseSetRecipient→ParseGroupRecipient, FormatSetRecipients→FormatGroupRecipients,
sendSetMessageViaHub→sendGroupMessageViaHub, PublishToSet→PublishToGroup,
handleSetMessage→handleGroupMessage, and related response types across
cmd/message.go, pkg/messages, pkg/hub, and extras/scion-telegram.

The user-facing wire-format syntax (set[...]) is unchanged for backward
compatibility. Deprecated type aliases and wrapper functions are provided
for SetRecipient, IsSetRecipient, ParseSetRecipient, FormatSetRecipients,
and MaxSetRecipients.

Resolves #94
@ptone ptone closed this May 31, 2026
@ptone
Copy link
Copy Markdown
Owner

ptone commented May 31, 2026

This pull request has been recreated on the target repository as GoogleCloudPlatform#278.

@scion-gteam scion-gteam Bot deleted the scion/cleanup-message-group-rename branch May 31, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename messaging "set" concept to "message group"

1 participant