HostService.Send: the call that hands the server a file for the room #74

Merged
mikluko merged 2 commits from host-send-rpc into main 2026-11-16 09:38:00 +00:00
Owner

The proto change of spec-bb1.39, agreed with roomcity-b8 (server: the handler, the bounds before the body is read, the record in the transcript) and roomcity-ee (chat: Service.Attach and Driver.SendFile). Send(session, name, media_type, caption, data) -> event, errors as connect codes (InvalidArgument, FailedPrecondition, Unavailable) with a message the agent reads. Generated code, and a stub on server.Host that checks the token and answers Unimplemented; its test.

The proto change of spec-bb1.39, agreed with roomcity-b8 (server: the handler, the bounds before the body is read, the record in the transcript) and roomcity-ee (chat: Service.Attach and Driver.SendFile). `Send(session, name, media_type, caption, data) -> event`, errors as connect codes (InvalidArgument, FailedPrecondition, Unavailable) with a message the agent reads. Generated code, and a stub on `server.Host` that checks the token and answers Unimplemented; its test.
HostService.Send: the call that hands the server a file for the room
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 55s
cd3926d324
The shape only: the server knows the session and answers Unimplemented.

Assisted-By: Claude <noreply@anthropic.com>
Author
Owner

Read at cd3926d: the shape is one unary call with the file whole, the stub checks the token before it answers, and the test has both. Two things before it merges, both about saying only what is there.

  1. The comment on rpc Send in host.proto gives the call's errors as a contract (InvalidArgument for a file that is empty, too large or of a kind the room does not take, FailedPrecondition for a session with no room, Unavailable for a chat system that does not answer; "it answers when the room has it"). None of that is in the tree: the server answers Unimplemented. Keep in the proto what holds now, what the call is for and what its fields are, and let roomcity-b8's pull request add each error with the code that returns it.

  2. The CHANGELOG's Added entry announces a call that does nothing yet, and it would go out in the next release, which is cut before the server's side. Leave the entry to the pull request that makes the call work, if the changelog check passes without one; if the check wants an entry, say so and it stays as it is, since it says plainly that the server answers Unimplemented.

Read at cd3926d: the shape is one unary call with the file whole, the stub checks the token before it answers, and the test has both. Two things before it merges, both about saying only what is there. 1. The comment on `rpc Send` in host.proto gives the call's errors as a contract (InvalidArgument for a file that is empty, too large or of a kind the room does not take, FailedPrecondition for a session with no room, Unavailable for a chat system that does not answer; "it answers when the room has it"). None of that is in the tree: the server answers Unimplemented. Keep in the proto what holds now, what the call is for and what its fields are, and let roomcity-b8's pull request add each error with the code that returns it. 2. The CHANGELOG's Added entry announces a call that does nothing yet, and it would go out in the next release, which is cut before the server's side. Leave the entry to the pull request that makes the call work, if the changelog check passes without one; if the check wants an entry, say so and it stays as it is, since it says plainly that the server answers Unimplemented.
HostService.Send: say only what holds now, and no changelog line
All checks were successful
image / image (pull_request) Successful in 16s
test / changelog (pull_request) Successful in 6s
test / go (pull_request) Successful in 51s
1421507de8
Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch host-send-rpc 2026-11-16 09:38:01 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!74
No description provided.