Repository navigation
feat: channel registry with openclaw config shapes (#44 step 2) - #51
Merged
Merged
Conversation
channels.<name> blocks share openclaw's universal fields — enabled,
dmPolicy ('allowlist' default, 'open' requires allowFrom ['*'],
'pairing' rejected as not yet supported), allowFrom — with
channel-specific fields passed to a registry factory. Inbound
messages route through bindings (most-specific-wins, default main);
one session per (channel, peer); replies and failure apologies go
back via the channel. Mock-channel tests only — nothing is wired
into the gateway yet (step 3 moves nostr behind this).
This was referenced Jun 11, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 2 of the channel-strategy refactor agreed on #44: a tested registry module (
src/channels.js) speaking openclaw's exact universal fields (enabled,dmPolicy,allowFrom— schema read from openclaw's own bundled channel config schemas), routing inbound messages throughresolveBindingwithmainas fallback, per-(channel, peer) sessions, channel-delivered replies and failure apologies. Deliberately NOT wired into the gateway yet — step 3 moves the Nostr block from bin/jsclaw.js behind this registry (renamingallowed→allowFrom,open→dmPolicy, droppingagentIdin favor of bindings); step 4 adds Telegram via grammy. PoC scope: 'pairing' dmPolicy and multi-account deferred. Tests 134/134 (5 new).