Skip to content

[Spec coverage] External source handling (state: 'external_source') #33

Open

Description

@balloob

Gap

The spec's "External Source Handling" section specifies a multi-step server response when a client reports state: 'external_source':

  • If in a multi-client group: remember "previous group", move client to a new solo stopped group, send group/update, send stream/end for all active streams.
  • If already in a solo group: stop and stream/end.

Also relevant: the switch command cycle must prioritize rejoining the remembered "previous group" while the client is still in the post-external solo group.

Nothing in the conformance matrix exercises this flow.

Proposed coverage

  1. A scenario that establishes a multi-client group, sends client/state { state: 'external_source' }, and asserts the server sends group/update (new solo group_id) + stream/end.
  2. A follow-up scenario where the same client returns to state: 'synchronized' and sends a switch command — assert the server puts it back in the remembered previous group.

Spec references

  • "External Source Handling"
  • client/state.state 'external_source' value
  • "Previous group priority" in switch command cycle

Activity

  1. added
    enhancement
    on Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions