Repository navigation
Description
Revised after the review by @maximmaxim345. The first version proposed client/stream-start, and that name was wrong. See the discussion below.
Problem
The prefix client_stream/ is the only message prefix with an underscore. Two messages use it, client_stream/start and client_stream/end.
The spec also does not give the rule for its message prefixes. Thus the reader makes a rule, and then finds the exceptions:
stream/request-formatgoes from the client to the server. The otherstream/messages go from the server to the client.management/requests go from the server to the client. Onlymanagement/resultgoes to the server.pair/abortandnoise/handshakego in both directions.
Change 1: rename client_stream/*
Change client_stream/start to stream/client-start. Change client_stream/end to stream/client-end.
The prefix stream/ is a category, not a sender. @maximmaxim345 gives the rule: these messages carry the metadata for a binary channel, and they open, close or reconfigure that channel. The two client_stream/* messages have the same function.
Thus the new names keep the category. The prefix gives the function, and the name gives the direction. The messages stream/start, stream/end and stream/clear do not change.
All 15 occurrences are in roles/source/v1.md, and no other file links to them. Thus this is a change to one file.
Change 2: give the rule in messaging.md
Add a short note in the Communication section, near the text about type and payload.
Give this rule: a prefix identifies a group of messages. The prefixes client/ and server/ give the sender. The prefix stream/ gives the messages that control a binary channel. The prefixes group/, management/, pair/ and noise/ give a subject. A message that is not in the client/ or server/ group can go in either direction, and each message gives its own direction.
The rule for stream/ is the important part. The spec does not give it today, and for this reason the first version of this issue proposed the wrong names.
Not proposed
A full correction of the message names. It changes 16 to 22 of the 38 message types. It also cannot be fully consistent, because a message in both directions has no sender prefix.
@maximmaxim345 gives one alternative: rename stream/start to server/stream-start, and use client/stream-start for the source. This makes the sender the rule for all messages, but it removes the stream/ category. This issue does not propose it.
Compatibility
Change 1 breaks compatibility for a source client. No other message type changes.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
maximmaxim345 commentedon Aug 18, 2026
The
client_stream/prefix was deliberate: Thestream/start,stream/end,stream/clearare messages with the purpose of providing metadata for binary messages. They are different from the regularserver/...messages.The two
client_stream/*messages carry the same purpose: open, close and reconfigure a binary channel.client/stream-startclassifies by sender and drops that meaning. (unless we also rename the regularstream/starttoserver/stream-start)The underscore is a valid point though.
balloob commentedon Aug 18, 2026
You are correct, and I withdraw the proposed names.
I did not see that
stream/is a category. The messagesstream/start,stream/endandstream/clearcarry the metadata for a binary channel. The twoclient_stream/*messages have the same function. Thusclient/stream-startclassifies by sender and removes the category.But a third form keeps the category and removes the underscore:
client_stream/startstream/client-startclient_stream/endstream/client-endThen one prefix holds all binary-channel messages. The prefix gives the function, and the name gives the direction. The messages
stream/start,stream/endandstream/cleardo not change.Change 2 is now the more important half. Your comment gives the rule for the
stream/category, and the spec does not give this rule anywhere. That is the text to add. The first version of this issue proposed the wrong names for exactly this reason.I updated the issue with both changes, and recorded your alternative (rename
stream/starttoserver/stream-start) as an option that this issue does not propose.Generated by Claude Code
maximmaxim345 commentedon Aug 19, 2026
Don't see the value that
stream/client-startadds overclient-stream/startthough.With
client-streamit's IMO clearer that the scope of the command is different tostream.server to client streams are completely separate from client to server streams after all. Both types of streams don't share the same lifetime.
refactor: use client-stream/* per review, split the prefix rule
refactor: rename client_stream/* to client-stream/*, document prefix …