Skip to content

Conversation routing: channel_publish fence is untested (home-default + foreign-reject) #45

Description

@Anarchid

Found during review of #41. Test-coverage gap on a merged feature.

Problem

The channel fence in dispatchChannelToolCall is tested only for channel_open and foreign channel_close. The action forks actually perform — channel_publish — has no coverage:

  • home-defaulting (omitted channelId → injected home) — untested
  • foreign-publish rejection — untested

Additionally, the existing fence test reaches through as unknown as { dispatchChannelToolCall } and calls the private directly, so it validates the guard in isolation, not that a fork's real tool call is routed through it.

Suggested fix

Add a channel_publish case to test/conversation-routing.test.ts: assert (a) omitted channelId is rewritten to the home channel, and (b) a foreign channelId is rejected. ~3 asserts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions