Skip to content

fix(relay): refuse Solo role changes on open channels - #9677

Merged
tellaho merged 1 commit into
tho/solo-agent-role-updates-relayfrom
solo-role-private-guard
Nov 19, 2026
Merged

tellaho merged 1 commit into
tho/solo-agent-role-updates-relayfrom
solo-role-private-guard

Conversation

@brow

@brow brow commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Fix for #9667, stacked on its branch.

The locked Solo guard in change_solo_member_role_with_event accepted any stream labelled buzz.solo, whatever its visibility. An open stream can carry that label (created open with it, labelled later by a metadata edit, or a Solo chat holding only the owner and the owner's agents that was then opened). On such a channel the owner's kind 9050 skipped decide_put_user and the agent invitation-policy check for members who joined later, and emitted no notices.

The guard now also requires visibility == "private", matching the Solo definition in docs/solo-mobile-contract.md and how clients recognize Solo chats.

Validation

Added solo_role_change_is_refused_on_an_open_channel to solo_member_role_postgres_tests.rs: on an open stream labelled buzz.solo, the owner's role change for their own agent is rejected as "channel is not a Solo chat", the command is not stored, and the agent's role is unchanged.

Regressions

Only kind 9050 on non-private channels changes, and those were never Solo chats. Private Solo chats behave as before.

The locked Solo guard accepted any stream labelled buzz.solo, so an
open channel carrying that label let the owner's kind 9050 skip the
ordinary role-change policy and its notices. Require private
visibility, matching the Solo definition in the mobile contract.

Signed-off-by: Tom Brow <tomb@block.xyz>
@brow
brow marked this pull request as ready for review November 18, 2026 22:44
@brow
brow requested a review from a team as a code owner November 18, 2026 22:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T22:45:46.202789Z 5595b1c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tellaho
tellaho merged commit e66b732 into tho/solo-agent-role-updates-relay Nov 19, 2026
83 checks passed
@tellaho
tellaho deleted the solo-role-private-guard branch November 19, 2026 00:31
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.

2 participants